diff --git a/CLAUDE.md b/CLAUDE.md index 2c65aca..b3a6a71 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -25,7 +25,7 @@ pnpm check # typecheck + lint + format:check pnpm tauri build # Regenerate third-party license manifest (requires cargo-about; config in about.toml) -pnpm licenses +pnpm generate:licenses # Rust-only operations (from workspace root) cargo clippy -p ltk-manager diff --git a/about.toml b/about.toml index fd3a2da..a5cac8c 100644 --- a/about.toml +++ b/about.toml @@ -1,6 +1,6 @@ # Configuration for cargo-about (https://github.com/EmbarkStudios/cargo-about) # Generates the third-party license manifest shown in Settings -> About. -# Regenerate with: pnpm licenses +# Regenerate with: pnpm generate:licenses # Only the platform we actually ship (see release.yml) targets = ["x86_64-pc-windows-msvc"] diff --git a/package.json b/package.json index 6a40e0d..840d716 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "check": "npm run typecheck && npm run lint && npm run format:check && npm run test", "prepare": "husky", "generate:types": "cd src-tauri && cargo test export_bindings --no-fail-fast", - "licenses": "node scripts/generate-licenses.mjs" + "generate:licenses": "node scripts/generate-licenses.mjs" }, "lint-staged": { "*.{ts,tsx}": [ diff --git a/public/third-party-licenses.json b/public/third-party-licenses.json index c7e2d38..41b2c9e 100644 --- a/public/third-party-licenses.json +++ b/public/third-party-licenses.json @@ -570,6 +570,11 @@ "name": "MIT License", "text": "The MIT License (MIT)\n\nCopyright (c) .NET Foundation and Contributors\nCopyright (c) anatawa12 2023\n\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" }, + { + "id": "MIT", + "name": "MIT License", + "text": "The MIT License (MIT)\n\nCopyright (c) 2014 Mathijs van de Nes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." + }, { "id": "MIT", "name": "MIT License", @@ -703,7 +708,7 @@ "version": "1.1.4", "url": "https://github.com/BurntSushi/aho-corasick", "licenses": [ - 116 + 117 ] }, { @@ -826,6 +831,14 @@ 29 ] }, + { + "name": "base64ct", + "version": "1.8.3", + "url": "https://github.com/RustCrypto/formats", + "licenses": [ + 31 + ] + }, { "name": "binrw", "version": "0.14.2", @@ -936,7 +949,7 @@ "version": "1.5.0", "url": "https://github.com/BurntSushi/byteorder", "licenses": [ - 116 + 117 ] }, { @@ -944,7 +957,7 @@ "version": "0.1.0", "url": "https://github.com/image-rs/byteorder-lite", "licenses": [ - 116 + 117 ] }, { @@ -1032,7 +1045,15 @@ "version": "1.1.0", "url": "https://github.com/image-rs/color_quant.git", "licenses": [ - 121 + 122 + ] + }, + { + "name": "const-oid", + "version": "0.9.6", + "url": "https://github.com/RustCrypto/formats/tree/master/const-oid", + "licenses": [ + 31 ] }, { @@ -1128,7 +1149,7 @@ "version": "0.36.0", "url": "https://github.com/servo/rust-cssparser", "licenses": [ - 131 + 132 ] }, { @@ -1136,7 +1157,7 @@ "version": "0.6.1", "url": "https://github.com/servo/rust-cssparser", "licenses": [ - 131 + 132 ] }, { @@ -1187,6 +1208,14 @@ 113 ] }, + { + "name": "der", + "version": "0.7.10", + "url": "https://github.com/RustCrypto/formats/tree/master/der", + "licenses": [ + 31 + ] + }, { "name": "deranged", "version": "0.5.8", @@ -1200,7 +1229,7 @@ "version": "2.1.1", "url": "https://github.com/JelteF/derive_more", "licenses": [ - 120 + 121 ] }, { @@ -1208,7 +1237,7 @@ "version": "2.1.1", "url": "https://github.com/JelteF/derive_more", "licenses": [ - 120 + 121 ] }, { @@ -1281,7 +1310,7 @@ "version": "0.3.5", "url": "https://github.com/upsuper/dtoa-short", "licenses": [ - 130 + 131 ] }, { @@ -1418,7 +1447,7 @@ "version": "0.2.0", "url": "https://github.com/orlp/foldhash", "licenses": [ - 135 + 136 ] }, { @@ -1490,7 +1519,7 @@ "version": "0.14.7", "url": "https://github.com/fizyk20/generic-array.git", "licenses": [ - 127 + 128 ] }, { @@ -1682,7 +1711,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1690,7 +1719,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1698,7 +1727,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1706,7 +1735,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1714,7 +1743,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1722,7 +1751,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1730,7 +1759,7 @@ "version": "2.2.0", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1901,6 +1930,14 @@ 58 ] }, + { + "name": "libm", + "version": "0.2.16", + "url": "https://github.com/rust-lang/compiler-builtins", + "licenses": [ + 108 + ] + }, { "name": "libwebp-sys", "version": "0.9.6", @@ -1922,7 +1959,7 @@ "version": "0.8.2", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -1946,7 +1983,7 @@ "version": "0.1.5", "url": "https://gitlab.com/kornelski/loop9.git", "licenses": [ - 129 + 130 ] }, { @@ -1959,7 +1996,7 @@ }, { "name": "ltk_fantome", - "version": "0.6.0", + "version": "0.6.1", "url": "https://github.com/LeagueToolkit/league-mod", "licenses": [ 39 @@ -2012,7 +2049,7 @@ }, { "name": "ltk_overlay", - "version": "0.5.0", + "version": "0.5.2", "url": "https://github.com/LeagueToolkit/league-mod", "licenses": [ 39 @@ -2046,6 +2083,13 @@ 39 ] }, + { + "name": "ltk_wad", + "version": "0.3.0", + "licenses": [ + 39 + ] + }, { "name": "lzma-rs", "version": "0.3.0", @@ -2091,7 +2135,7 @@ "version": "2.8.2", "url": "https://github.com/BurntSushi/memchr", "licenses": [ - 116 + 117 ] }, { @@ -2227,7 +2271,7 @@ "version": "0.50.3", "url": "https://github.com/nushell/nu-ansi-term", "licenses": [ - 126 + 127 ] }, { @@ -2238,6 +2282,14 @@ 29 ] }, + { + "name": "num-bigint-dig", + "version": "0.8.6", + "url": "https://github.com/dignifiedquire/num-bigint", + "licenses": [ + 29 + ] + }, { "name": "num-conv", "version": "0.2.2", @@ -2262,6 +2314,14 @@ 29 ] }, + { + "name": "num-iter", + "version": "0.1.45", + "url": "https://github.com/rust-num/num-iter", + "licenses": [ + 29 + ] + }, { "name": "num-rational", "version": "0.4.2", @@ -2307,7 +2367,7 @@ "version": "5.3.5", "url": "https://github.com/Byron/open-rs", "licenses": [ - 124 + 125 ] }, { @@ -2315,7 +2375,7 @@ "version": "0.2.0", "url": "https://github.com/soc/option-ext.git", "licenses": [ - 132 + 133 ] }, { @@ -2323,7 +2383,7 @@ "version": "1.2.3", "url": "https://github.com/oconnor663/os_pipe.rs", "licenses": [ - 123 + 124 ] }, { @@ -2374,6 +2434,14 @@ 31 ] }, + { + "name": "pem-rfc7468", + "version": "0.7.0", + "url": "https://github.com/RustCrypto/formats/tree/master/pem-rfc7468", + "licenses": [ + 31 + ] + }, { "name": "percent-encoding", "version": "2.3.2", @@ -2387,7 +2455,7 @@ "version": "0.13.1", "url": "https://github.com/rust-phf/rust-phf", "licenses": [ - 115 + 116 ] }, { @@ -2395,7 +2463,7 @@ "version": "0.13.1", "url": "https://github.com/rust-phf/rust-phf", "licenses": [ - 115 + 116 ] }, { @@ -2403,7 +2471,7 @@ "version": "0.13.1", "url": "https://github.com/rust-phf/rust-phf", "licenses": [ - 115 + 116 ] }, { @@ -2411,7 +2479,7 @@ "version": "0.13.1", "url": "https://github.com/rust-phf/rust-phf", "licenses": [ - 115 + 116 ] }, { @@ -2422,6 +2490,22 @@ 39 ] }, + { + "name": "pkcs1", + "version": "0.7.5", + "url": "https://github.com/RustCrypto/formats/tree/master/pkcs1", + "licenses": [ + 31 + ] + }, + { + "name": "pkcs8", + "version": "0.10.2", + "url": "https://github.com/RustCrypto/formats/tree/master/pkcs8", + "licenses": [ + 31 + ] + }, { "name": "plist", "version": "1.9.0", @@ -2451,7 +2535,7 @@ "version": "0.1.5", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -2555,7 +2639,7 @@ "version": "0.39.4", "url": "https://github.com/tafia/quick-xml", "licenses": [ - 128 + 129 ] }, { @@ -2566,6 +2650,14 @@ 39 ] }, + { + "name": "rand", + "version": "0.8.6", + "url": "https://github.com/rust-random/rand", + "licenses": [ + 39 + ] + }, { "name": "rand", "version": "0.9.4", @@ -2574,6 +2666,14 @@ 39 ] }, + { + "name": "rand_chacha", + "version": "0.3.1", + "url": "https://github.com/rust-random/rand", + "licenses": [ + 33 + ] + }, { "name": "rand_chacha", "version": "0.9.0", @@ -2582,6 +2682,14 @@ 39 ] }, + { + "name": "rand_core", + "version": "0.6.4", + "url": "https://github.com/rust-random/rand", + "licenses": [ + 32 + ] + }, { "name": "rand_core", "version": "0.9.5", @@ -2719,6 +2827,14 @@ 87 ] }, + { + "name": "rsa", + "version": "0.9.10", + "url": "https://github.com/RustCrypto/RSA", + "licenses": [ + 28 + ] + }, { "name": "rustc-hash", "version": "2.1.2", @@ -2788,7 +2904,7 @@ "version": "1.0.6", "url": "https://github.com/BurntSushi/same-file", "licenses": [ - 122 + 123 ] }, { @@ -2828,7 +2944,7 @@ "version": "0.36.1", "url": "https://github.com/servo/stylo", "licenses": [ - 132 + 133 ] }, { @@ -2996,7 +3112,15 @@ "version": "1.1.1", "url": "https://github.com/oconnor663/shared_child.rs", "licenses": [ - 123 + 124 + ] + }, + { + "name": "signature", + "version": "2.2.0", + "url": "https://github.com/RustCrypto/traits/tree/master/signature", + "licenses": [ + 31 ] }, { @@ -3063,6 +3187,22 @@ 35 ] }, + { + "name": "spin", + "version": "0.9.8", + "url": "https://github.com/mvdnes/spin-rs.git", + "licenses": [ + 114 + ] + }, + { + "name": "spki", + "version": "0.7.3", + "url": "https://github.com/RustCrypto/formats/tree/master/spki", + "licenses": [ + 31 + ] + }, { "name": "stable_deref_trait", "version": "1.2.1", @@ -3084,7 +3224,7 @@ "version": "0.11.1", "url": "https://github.com/rapidfuzz/strsim-rs", "licenses": [ - 117 + 118 ] }, { @@ -3156,7 +3296,7 @@ "version": "0.32.1", "url": "https://github.com/GuillaumeGomez/sysinfo", "licenses": [ - 118 + 119 ] }, { @@ -3324,7 +3464,7 @@ "version": "1.4.1", "url": "https://github.com/BurntSushi/termcolor", "licenses": [ - 116 + 117 ] }, { @@ -3404,7 +3544,7 @@ "version": "0.8.3", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -3701,7 +3841,7 @@ "url": "https://github.com/dtolnay/unicode-ident", "licenses": [ 39, - 133 + 134 ] }, { @@ -3789,7 +3929,7 @@ "version": "2.5.0", "url": "https://github.com/BurntSushi/walkdir", "licenses": [ - 116 + 117 ] }, { @@ -3869,7 +4009,7 @@ "version": "0.1.11", "url": "https://github.com/BurntSushi/winapi-util", "licenses": [ - 122 + 123 ] }, { @@ -4149,7 +4289,7 @@ "version": "0.6.3", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4181,7 +4321,7 @@ "version": "0.8.0", "url": "https://github.com/image-rs/y4m.git", "licenses": [ - 119 + 120 ] }, { @@ -4189,7 +4329,7 @@ "version": "0.8.3", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4197,7 +4337,7 @@ "version": "0.8.2", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4221,7 +4361,7 @@ "version": "0.1.8", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4229,7 +4369,7 @@ "version": "0.1.7", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4253,7 +4393,7 @@ "version": "0.2.4", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4261,7 +4401,7 @@ "version": "0.11.6", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4269,7 +4409,7 @@ "version": "0.11.3", "url": "https://github.com/unicode-org/icu4x", "licenses": [ - 134 + 135 ] }, { @@ -4277,7 +4417,7 @@ "version": "2.4.2", "url": "https://github.com/zip-rs/zip2.git", "licenses": [ - 114 + 115 ] }, { @@ -4285,7 +4425,7 @@ "version": "4.6.1", "url": "https://github.com/zip-rs/zip2.git", "licenses": [ - 114 + 115 ] }, { @@ -4309,7 +4449,7 @@ "version": "0.13.3", "url": "https://github.com/gyscos/zstd-rs", "licenses": [ - 125 + 126 ] }, { diff --git a/src/modules/library/components/ModCard/ModCardGrid.tsx b/src/modules/library/components/ModCard/ModCardGrid.tsx index fd64e15..5b22f0d 100644 --- a/src/modules/library/components/ModCard/ModCardGrid.tsx +++ b/src/modules/library/components/ModCard/ModCardGrid.tsx @@ -38,7 +38,7 @@ export function ModCardGrid({ view }: { view: ModCardView }) { .with( { isEnabled: true }, () => - "border-accent-500/40 bg-surface-800 shadow-[0_0_20px_-5px] shadow-accent-500/40 hover:-translate-y-px hover:shadow-[0_0_20px_-3px,0_4px_6px_-1px] hover:shadow-accent-500/40", + "border-accent-500/40 bg-surface-800 shadow-[0_0_12px_-6px] shadow-accent-500/25 hover:-translate-y-px hover:shadow-[0_0_14px_-5px,0_4px_6px_-1px] hover:shadow-accent-500/30", ) .otherwise( () => diff --git a/src/modules/library/components/ModCard/ModCardList.tsx b/src/modules/library/components/ModCard/ModCardList.tsx index aba0f5e..84cbe37 100644 --- a/src/modules/library/components/ModCard/ModCardList.tsx +++ b/src/modules/library/components/ModCard/ModCardList.tsx @@ -38,7 +38,7 @@ export function ModCardList({ view }: { view: ModCardView }) { .with( { isEnabled: true }, () => - "border-accent-500/40 bg-surface-800 shadow-[0_0_15px_-3px] shadow-accent-500/30 hover:-translate-y-px", + "border-accent-500/40 bg-surface-800 shadow-[0_0_10px_-4px] shadow-accent-500/20 hover:-translate-y-px", ) .otherwise( () => diff --git a/src/modules/settings/api/useThirdPartyLicenses.ts b/src/modules/settings/api/useThirdPartyLicenses.ts index 78897d2..de5bcae 100644 --- a/src/modules/settings/api/useThirdPartyLicenses.ts +++ b/src/modules/settings/api/useThirdPartyLicenses.ts @@ -21,7 +21,7 @@ export interface ThirdPartyLicensesManifest { crates: ThirdPartyCrate[]; } -// Generated by `pnpm licenses` (cargo-about), served as a static asset +// Generated by `pnpm generate:licenses` (cargo-about), served as a static asset async function fetchThirdPartyLicenses(): Promise { const response = await fetch("/third-party-licenses.json"); if (!response.ok) {