🔖 [pagetop] release development version 0.0.57
This commit is contained in:
parent
43883eebd3
commit
88b7bb88c5
4 changed files with 7 additions and 9 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
|
@ -1560,7 +1560,7 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pagetop"
|
name = "pagetop"
|
||||||
version = "0.0.56"
|
version = "0.0.57"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-files",
|
"actix-files",
|
||||||
"actix-session",
|
"actix-session",
|
||||||
|
|
@ -1590,7 +1590,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pagetop-build"
|
name = "pagetop-build"
|
||||||
version = "0.0.11"
|
version = "0.0.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"grass",
|
"grass",
|
||||||
"static-files",
|
"static-files",
|
||||||
|
|
@ -1598,7 +1598,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pagetop-macros"
|
name = "pagetop-macros"
|
||||||
version = "0.0.13"
|
version = "0.0.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro-crate",
|
"proc-macro-crate",
|
||||||
"proc-macro-error",
|
"proc-macro-error",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pagetop"
|
name = "pagetop"
|
||||||
version = "0.0.56"
|
version = "0.0.57"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
description = """\
|
description = """\
|
||||||
|
|
|
||||||
|
|
@ -129,8 +129,6 @@ pub fn configure_services(scfg: &mut service::web::ServiceConfig) {
|
||||||
m.configure_service(scfg);
|
m.configure_service(scfg);
|
||||||
}
|
}
|
||||||
include_files_service!(
|
include_files_service!(
|
||||||
scfg,
|
scfg, assets => "/", [&global::SETTINGS.dev.pagetop_project_dir, "static"]
|
||||||
assets => "/",
|
|
||||||
[&global::SETTINGS.dev.pagetop_project_dir, "static/assets"]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,13 +112,13 @@ static LANGUAGES: LazyLock<HashMap<String, (LanguageIdentifier, &str)>> = LazyLo
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
static FALLBACK: LazyLock<LanguageIdentifier> = LazyLock::new(|| langid!("en-US"));
|
pub static FALLBACK_LANGID: LazyLock<LanguageIdentifier> = LazyLock::new(|| langid!("en-US"));
|
||||||
|
|
||||||
/// Sets the application's default
|
/// Sets the application's default
|
||||||
/// [Unicode Language Identifier](https://unicode.org/reports/tr35/tr35.html#Unicode_language_identifier)
|
/// [Unicode Language Identifier](https://unicode.org/reports/tr35/tr35.html#Unicode_language_identifier)
|
||||||
/// through `SETTINGS.app.language`.
|
/// through `SETTINGS.app.language`.
|
||||||
pub static DEFAULT_LANGID: LazyLock<&LanguageIdentifier> =
|
pub static DEFAULT_LANGID: LazyLock<&LanguageIdentifier> =
|
||||||
LazyLock::new(|| langid_for(&global::SETTINGS.app.language).unwrap_or(&FALLBACK));
|
LazyLock::new(|| langid_for(&global::SETTINGS.app.language).unwrap_or(&FALLBACK_LANGID));
|
||||||
|
|
||||||
pub enum LangError {
|
pub enum LangError {
|
||||||
EmptyLang,
|
EmptyLang,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue