mirror of
https://github.com/homarr-labs/dashboard-icons.git
synced 2026-01-12 16:25:38 +08:00
refactor(metadata): remove colors section and update light/dark checks in import-icon script
This commit is contained in:
@@ -34534,10 +34534,6 @@
|
||||
"login": "filogif403@httpsu.com"
|
||||
}
|
||||
},
|
||||
"colors": {
|
||||
"light": "helix-light",
|
||||
"dark": "helix-dark"
|
||||
},
|
||||
"wordmark": {
|
||||
"light": "helix-wordmark-light",
|
||||
"dark": "helix-wordmark-dark"
|
||||
|
||||
@@ -171,10 +171,10 @@ function buildTargets(submission: Submission): VariantTarget[] {
|
||||
const assetsLower = submission.assets.map((a) => a.toLowerCase());
|
||||
const hasLight =
|
||||
submission.extras?.colors?.light ||
|
||||
assetsLower.some((a) => a.includes("light"));
|
||||
assetsLower.some((a) => a.includes("light") && !a.includes("wordmark"));
|
||||
const hasDark =
|
||||
submission.extras?.colors?.dark ||
|
||||
assetsLower.some((a) => a.includes("dark"));
|
||||
assetsLower.some((a) => a.includes("dark") && !a.includes("wordmark"));
|
||||
const hasWordmark =
|
||||
submission.extras?.wordmark ||
|
||||
assetsLower.some((a) => a.includes("wordmark"));
|
||||
|
||||
Reference in New Issue
Block a user