Skip to content

Commit

Permalink
💄 Show engine version in the configuration page.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Apr 1, 2024
1 parent 1d3bfa5 commit 2aa856b
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ panic = "abort"
authors = ["langyo <[email protected]>"]
publish = false

version = "0.1.1"
version = "0.1.2"
edition = "2021"

[workspace.dependencies]
Expand Down
6 changes: 6 additions & 0 deletions packages/client/src/pages/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ pub fn ConfigPage() -> HtmlResult {
")}>
{
[
(
t.config.portal.engine_version.clone(),
html! {
{env!("CARGO_PKG_VERSION")}
}
),
(
t.config.portal.title_suffix.clone(),
html! {
Expand Down
1 change: 1 addition & 0 deletions packages/database/src/types/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub mod config_item {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct Portal {
pub engine_version: String,
pub title_suffix: String,
pub footer_banner: String,
pub language: String,
Expand Down
1 change: 1 addition & 0 deletions res/languages/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "Gesamtzahl"
load-more = "Mehr laden"

[config.portal]
engine-version = "Motorversion"
title-suffix = "Seitentitel"
footer-banner = "Fußzeilentext"
language = "Bevorzugte Sprache"
Expand Down
1 change: 1 addition & 0 deletions res/languages/en_us.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "Total Count"
load-more = "Load More"

[config.portal]
engine-version = "Engine Version"
title-suffix = "Site Title"
footer-banner = "Footer Banner"
language = "Preferred Language"
Expand Down
1 change: 1 addition & 0 deletions res/languages/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "Nombre total"
load-more = "Charger plus"

[config.portal]
engine-version = "Version du"
title-suffix = "Titre du site"
footer-banner = "Texte du pied de page"
language = "Langue préférée"
Expand Down
1 change: 1 addition & 0 deletions res/languages/it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "Totale"
load-more = "Carica di più"

[config.portal]
engine-version = "Versione del motore"
title-suffix = "Titolo del sito"
footer-banner = "Testo del piè di pagina"
language = "Lingua preferita"
Expand Down
1 change: 1 addition & 0 deletions res/languages/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "合計数"
load-more = "さらに読み込む"

[config.portal]
engine-version = "エンジンバージョン"
title-suffix = "サイトタイトル"
footer-banner = "フッターバナー"
language = "言語"
Expand Down
1 change: 1 addition & 0 deletions res/languages/ko.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "총 이미지 수"
load-more = "더 보기"

[config.portal]
engine-version = "엔진 버전"
title-suffix = "사이트 제목"
footer-banner = "푸터 배너"
language = "기본 언어"
Expand Down
1 change: 1 addition & 0 deletions res/languages/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "Всего изображений"
load-more = "Загрузить еще"

[config.portal]
engine-version = "Версия движка"
title-suffix = "Заголовок сайта"
footer-banner = "Текст подвала"
language = "Предпочтительный язык"
Expand Down
1 change: 1 addition & 0 deletions res/languages/zh_hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "总数"
load-more = "加载更多"

[config.portal]
engine-version = "引擎版本"
title-suffix = "站点标题"
footer-banner = "页脚文本"
language = "首选语言"
Expand Down
1 change: 1 addition & 0 deletions res/languages/zh_hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ total-count = "總數"
load-more = "加載更多"

[config.portal]
engine-version = "引擎版本"
title-suffix = "網站標題"
footer-banner = "頁腳文本"
language = "首選語言"
Expand Down

0 comments on commit 2aa856b

Please sign in to comment.