diff --git a/public/local-data/websiteInterfaces.json b/public/local-data/websiteInterfaces.json index fb6e908..5fc5a63 100644 --- a/public/local-data/websiteInterfaces.json +++ b/public/local-data/websiteInterfaces.json @@ -169,7 +169,7 @@ "level_x": "Level {x}", "story_x": "Story {x}", "player_name_tooltip": "Certain in-game texts use the player's name as part of the dialogue/narration. If you want to see your name in the transcript found on this website, feel free to enter your player's name here. If left empty, '(player)' will be used instead.", - "download_scans": "Download scans", + "download_archive": "Download archive", "search_placeholder": "Search...", "performance_mode": "Performance mode", "performance_mode_tooltip": "This option improves performances by reducing certain visual effects (blurry backgrounds, shadows...). This mode is enabled by default on Linux, iOS, and Safari. This mode cannot be disabled on iOS or Safari as the experience would be too poor.", @@ -349,7 +349,7 @@ "level_x": "Niveau {x}", "story_x": "Histoire {x}", "player_name_tooltip": "Certains textes dans les jeux utilisent le nom du joueur dans les dialogue/la narration. Si vous voulez voir votre nom dans les transcriptions se trouvant sur ce site web, n'hésitez pas à entrer votre nom de joueur ici. S'il n'est pas renseigné, '(player)' sera utilisé à la place.", - "download_scans": "Télécharger les scans", + "download_archive": "Télécharger l'archive", "search_placeholder": "Rechercher ...", "performance_mode": "Mode performance", "performance_mode_tooltip": "Cette option permet d'améliorer les performances en réduisant certains effets visuels (flous, ombres...). Ce mode est activé par défaut sur Linux, iOS et Safari. Ce mode ne peut pas être désactivé sur iOS ou Safari car l'expérience serait trop mauvaise.", @@ -529,7 +529,7 @@ "level_x": null, "story_x": null, "player_name_tooltip": null, - "download_scans": null, + "download_archive": null, "search_placeholder": null, "performance_mode": null, "performance_mode_tooltip": null, @@ -709,7 +709,7 @@ "level_x": null, "story_x": null, "player_name_tooltip": null, - "download_scans": null, + "download_archive": null, "search_placeholder": null, "performance_mode": null, "performance_mode_tooltip": null, @@ -889,7 +889,7 @@ "level_x": null, "story_x": null, "player_name_tooltip": null, - "download_scans": null, + "download_archive": null, "search_placeholder": null, "performance_mode": null, "performance_mode_tooltip": null, diff --git a/src/graphql/icuParams.ts b/src/graphql/icuParams.ts index 33e61d3..87ed324 100644 --- a/src/graphql/icuParams.ts +++ b/src/graphql/icuParams.ts @@ -167,7 +167,7 @@ export interface ICUParams { level_x: { x: Date | boolean | number | string }; story_x: { x: Date | boolean | number | string }; player_name_tooltip: never; - download_scans: never; + download_archive: never; search_placeholder: never; performance_mode: never; performance_mode_tooltip: never; diff --git a/src/graphql/operations/local-data/localDataGetWebsiteInterfaces.graphql b/src/graphql/operations/local-data/localDataGetWebsiteInterfaces.graphql index 189e425..f9ce9ea 100644 --- a/src/graphql/operations/local-data/localDataGetWebsiteInterfaces.graphql +++ b/src/graphql/operations/local-data/localDataGetWebsiteInterfaces.graphql @@ -174,7 +174,7 @@ query localDataGetWebsiteInterfaces { level_x story_x player_name_tooltip - download_scans + download_archive search_placeholder performance_mode performance_mode_tooltip diff --git a/src/pages/library/[slug]/index.tsx b/src/pages/library/[slug]/index.tsx index b097174..eb0a8cc 100644 --- a/src/pages/library/[slug]/index.tsx +++ b/src/pages/library/[slug]/index.tsx @@ -413,65 +413,60 @@ const LibrarySlug = ({ )} - {item.metadata?.[0]?.__typename !== "ComponentMetadataGroup" && - item.metadata?.[0]?.__typename !== "ComponentMetadataOther" && ( -
-

{format("type_information")}

-
- {item.metadata?.[0]?.__typename === "ComponentMetadataBooks" && ( - <> - {isDefined(item.metadata[0].page_count) && ( -
-

{format("page", { count: Infinity })}:

-

{item.metadata[0].page_count}

-
- )} + {item.metadata?.[0]?.__typename === "ComponentMetadataBooks" && ( +
+

{format("type_information")}

+
+ {isDefined(item.metadata[0].page_count) && ( +
+

{format("page", { count: Infinity })}:

+

{item.metadata[0].page_count}

+
+ )} -
-

{format("binding")}:

-

- {item.metadata[0].binding_type === - Enum_Componentmetadatabooks_Binding_Type.Paperback - ? format("paperback") - : item.metadata[0].binding_type === - Enum_Componentmetadatabooks_Binding_Type.Hardcover - ? format("hardcover") - : ""} -

-
- -
-

{format("page_order")}:

-

- {item.metadata[0].page_order === - Enum_Componentmetadatabooks_Page_Order.LeftToRight - ? format("left_to_right") - : format("right_to_left")} -

-
- - {isDefined(item.metadata[0].languages) && ( -
-

- {format("language", { - count: item.metadata[0].languages.data.length, - })} - : -

- {item.metadata[0].languages.data.map((lang) => ( -

{lang.attributes?.name}

- ))} -
- )} - - )} +
+

{format("binding")}:

+

+ {item.metadata[0].binding_type === + Enum_Componentmetadatabooks_Binding_Type.Paperback + ? format("paperback") + : item.metadata[0].binding_type === + Enum_Componentmetadatabooks_Binding_Type.Hardcover + ? format("hardcover") + : ""} +

+ +
+

{format("page_order")}:

+

+ {item.metadata[0].page_order === + Enum_Componentmetadatabooks_Page_Order.LeftToRight + ? format("left_to_right") + : format("right_to_left")} +

+
+ + {isDefined(item.metadata[0].languages) && ( +
+

+ {format("language", { + count: item.metadata[0].languages.data.length, + })} + : +

+ {item.metadata[0].languages.data.map((lang) => ( +

{lang.attributes?.name}

+ ))} +
+ )}
- )} +
+ )}
@@ -542,7 +537,7 @@ const LibrarySlug = ({
diff --git a/src/pages/library/[slug]/reader.tsx b/src/pages/library/[slug]/reader.tsx index eeec3dc..40d4ec2 100644 --- a/src/pages/library/[slug]/reader.tsx +++ b/src/pages/library/[slug]/reader.tsx @@ -374,7 +374,7 @@ const LibrarySlug = ({