🚧 Actualiza dependencias y revisa código
This commit is contained in:
parent
8856699c3b
commit
c046014d04
4 changed files with 678 additions and 547 deletions
1202
Cargo.lock
generated
1202
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
|
@ -16,12 +16,12 @@ authors.workspace = true
|
|||
|
||||
[dependencies]
|
||||
chrono = "0.4"
|
||||
colored = "3.0"
|
||||
colored = "3.1"
|
||||
config = { version = "0.15", default-features = false, features = ["toml"] }
|
||||
figlet-rs = "0.1"
|
||||
figlet-rs = "1.0"
|
||||
getter-methods = "2.0"
|
||||
itoa = "1.0"
|
||||
indexmap = "2.12"
|
||||
indexmap = "2.14"
|
||||
parking_lot = "0.12"
|
||||
substring = "1.4"
|
||||
terminal_size = "0.4"
|
||||
|
|
@ -31,7 +31,7 @@ tracing-appender = "0.2"
|
|||
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
|
||||
tracing-actix-web = "0.7"
|
||||
|
||||
fluent-templates = "0.13"
|
||||
fluent-templates = "0.14"
|
||||
unic-langid = { version = "0.9", features = ["macros"] }
|
||||
|
||||
actix-web = { workspace = true, default-features = true }
|
||||
|
|
@ -49,7 +49,7 @@ default = []
|
|||
testing = []
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.23"
|
||||
tempfile = "3.27"
|
||||
serde_json = "1.0"
|
||||
pagetop-aliner.workspace = true
|
||||
pagetop-bootsier.workspace = true
|
||||
|
|
@ -78,7 +78,7 @@ license = "MIT OR Apache-2.0"
|
|||
authors = ["Manuel Cillero <manuel@cillero.es>"]
|
||||
|
||||
[workspace.dependencies]
|
||||
actix-web = { version = "4.11", default-features = false }
|
||||
actix-web = { version = "4.13", default-features = false }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
# Helpers
|
||||
pagetop-build = { version = "0.3", path = "helpers/pagetop-build" }
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ use crate::global;
|
|||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use figlet_rs::FIGfont;
|
||||
use figlet_rs::FIGlet;
|
||||
|
||||
pub static FIGFONT: LazyLock<FIGfont> = LazyLock::new(|| {
|
||||
pub static FIGFONT: LazyLock<FIGlet> = LazyLock::new(|| {
|
||||
let slant = include_str!("slant.flf");
|
||||
let small = include_str!("small.flf");
|
||||
let speed = include_str!("speed.flf");
|
||||
let starwars = include_str!("starwars.flf");
|
||||
|
||||
FIGfont::from_content(match global::SETTINGS.app.startup_banner {
|
||||
FIGlet::from_content(match global::SETTINGS.app.startup_banner {
|
||||
global::StartupBanner::Off | global::StartupBanner::Slant => slant,
|
||||
global::StartupBanner::Small => small,
|
||||
global::StartupBanner::Speed => speed,
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ impl<C: Component> ComponentRender for C {
|
|||
action::component::BeforeRender::dispatch(self, cx);
|
||||
|
||||
// Prepara el renderizado: recorre la cadena de temas, luego el componente.
|
||||
let prepare = match 'resolve: {
|
||||
let result = 'resolve: {
|
||||
let mut t: Option<ThemeRef> = Some(cx.theme());
|
||||
while let Some(theme) = t {
|
||||
if let Some(r) = theme.handle_component(self, cx) {
|
||||
|
|
@ -167,7 +167,8 @@ impl<C: Component> ComponentRender for C {
|
|||
t = theme.parent();
|
||||
}
|
||||
self.prepare(cx)
|
||||
} {
|
||||
};
|
||||
let prepare = match result {
|
||||
Ok(markup) => markup,
|
||||
Err(error) => {
|
||||
crate::trace::error!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue