-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Reader } from "./Reader"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export { default as IconTranslate } from "@material-design-icons/svg/filled/translate.svg?component-solid"; | ||
export { default as IconPrint } from "@material-design-icons/svg/outlined/print.svg?component-solid"; | ||
export { default as IconRefresh } from "@material-design-icons/svg/outlined/refresh.svg?component-solid"; | ||
export { default as IconSpeak } from "@material-design-icons/svg/outlined/record_voice_over.svg?component-solid"; | ||
|
||
export { default as IconGithub } from "./custom/github-mark.svg?component-solid"; | ||
export { default as IconGithubWhite } from "./custom/github-mark-white.svg?component-solid"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
import {loadDojo} from "@/data/dojos"; | ||
import { listDojos } from "@/data/dojos"; | ||
import { multiplyParams } from "@/utils/multiplyParams"; | ||
import { languages } from "@/i18n/server"; | ||
import {Reader} from "@/components/solid/organisms/Reader" | ||
import DefaultLayout from "@/layouts/DefaultLayout.astro"; | ||
export async function getStaticPaths() { | ||
const dojos = await listDojos(); | ||
return multiplyParams({ | ||
language: languages, | ||
dojoId: dojos.map((dojo) => dojo.id), | ||
}); | ||
} | ||
const id = Astro.params.dojoId; | ||
const dojo = await loadDojo(id); | ||
--- | ||
|
||
<DefaultLayout title="Reader"> | ||
<Reader dojoInfo={dojo.info} client:only /> | ||
</DefaultLayout> |