feat(ui): new patch status integration
This commit is contained in:
parent
172241457a
commit
95f283794c
2 changed files with 10 additions and 6 deletions
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -58,7 +58,7 @@ checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anime-game-core"
|
name = "anime-game-core"
|
||||||
version = "1.17.2"
|
version = "1.17.2"
|
||||||
source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.17.2#11b51441ed0390b7a5ba20e62e3c28a6886f8b97"
|
source = "git+https://github.com/an-anime-team/anime-game-core?tag=1.17.2#79fa0ea967b05efcbf19b2db4800ddd2b731c2c9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
@ -3094,9 +3094,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tracing-log"
|
name = "tracing-log"
|
||||||
version = "0.1.4"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2"
|
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
|
@ -3105,9 +3105,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tracing-subscriber"
|
name = "tracing-subscriber"
|
||||||
version = "0.3.17"
|
version = "0.3.18"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77"
|
checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nu-ansi-term",
|
"nu-ansi-term",
|
||||||
"sharded-slab",
|
"sharded-slab",
|
||||||
|
|
|
@ -401,7 +401,8 @@ impl SimpleAsyncComponent for GeneralApp {
|
||||||
JadeitePatchStatusVariant::Verified => &["success"],
|
JadeitePatchStatusVariant::Verified => &["success"],
|
||||||
JadeitePatchStatusVariant::Unverified => &["warning"],
|
JadeitePatchStatusVariant::Unverified => &["warning"],
|
||||||
JadeitePatchStatusVariant::Broken => &["error"],
|
JadeitePatchStatusVariant::Broken => &["error"],
|
||||||
JadeitePatchStatusVariant::Unsafe => &["error"]
|
JadeitePatchStatusVariant::Unsafe => &["error"],
|
||||||
|
JadeitePatchStatusVariant::Concerning => &["error"]
|
||||||
}
|
}
|
||||||
|
|
||||||
None => &[]
|
None => &[]
|
||||||
|
@ -414,6 +415,9 @@ impl SimpleAsyncComponent for GeneralApp {
|
||||||
JadeitePatchStatusVariant::Broken => tr!("patch-broken-tooltip"),
|
JadeitePatchStatusVariant::Broken => tr!("patch-broken-tooltip"),
|
||||||
JadeitePatchStatusVariant::Unsafe => tr!("patch-unsafe-tooltip"),
|
JadeitePatchStatusVariant::Unsafe => tr!("patch-unsafe-tooltip"),
|
||||||
|
|
||||||
|
// TODO: special tooltip for concerning status
|
||||||
|
JadeitePatchStatusVariant::Concerning => tr!("patch-unsafe-tooltip"),
|
||||||
|
|
||||||
_ => String::new()
|
_ => String::new()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue