From 44bf6be2bd3fe53d7a9963fff2bc845e4fc98df4 Mon Sep 17 00:00:00 2001 From: infinia-yzl Date: Mon, 15 Jul 2024 12:04:44 +0800 Subject: [PATCH] chocolate-curry-28 Add Wuthering Waves image template --- app/page.tsx | 9 +- imageset.config.json | 277 +++++++++++++++++++++++++++++++++++++++++++ imageset.custom.json | 5 +- package-lock.json | 10 ++ package.json | 1 + 5 files changed, 299 insertions(+), 3 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 295c7ba..bfaaf29 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,8 +8,13 @@ import {PlusCircledIcon} from "@radix-ui/react-icons"; const typedImageSetConfig = imagesetConfig as ImageSetConfig; -const featuredSets = { +const FEATURED_SETS = { "image-reachthefinals": ['all', 'light', 'medium', 'heavy'], + "image-wutheringwaves": [ + 'c_all', + 'c_rarity_5', + 'c_rarity_4', + ] // Add more packages and their featured sets here }; @@ -20,7 +25,7 @@ const Home = () => {
{/* Featured sets */} - {Object.entries(featuredSets).map(([packageName, tags]) => { + {Object.entries(FEATURED_SETS).map(([packageName, tags]) => { const packageData = typedImageSetConfig.packages[packageName]; if (!packageData) return null; diff --git a/imageset.config.json b/imageset.config.json index ff7b0e8..14b6ec9 100644 --- a/imageset.config.json +++ b/imageset.config.json @@ -720,6 +720,283 @@ "category": "general" } } + }, + "image-wutheringwaves": { + "displayName": "Wuthering Waves", + "images": [ + { + "filename": "c/aa.webp", + "label": "Aalto", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_aer", + "c_1_0" + ] + }, + { + "filename": "c/bz.webp", + "label": "Baizhi", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_gla", + "c_1_0" + ] + }, + { + "filename": "c/cc.webp", + "label": "Calcharo", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_ele", + "c_1_0" + ] + }, + { + "filename": "c/cl.webp", + "label": "Changli", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_fus", + "c_1_1" + ] + }, + { + "filename": "c/cx.webp", + "label": "Chixia", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_fus", + "c_1_0" + ] + }, + { + "filename": "c/dj.webp", + "label": "Danjin", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_hav", + "c_1_0" + ] + }, + { + "filename": "c/ec.webp", + "label": "Encore", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_fus", + "c_1_0" + ] + }, + { + "filename": "c/js.webp", + "label": "Jinshi", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_spe", + "c_1_1" + ] + }, + { + "filename": "c/jx.webp", + "label": "Jianxin", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_aer", + "c_1_0" + ] + }, + { + "filename": "c/jy.webp", + "label": "Jiyan", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_aer", + "c_1_0" + ] + }, + { + "filename": "c/ly.webp", + "label": "Lingyang", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_gla", + "c_1_0" + ] + }, + { + "filename": "c/mf.webp", + "label": "Mortefi", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_fus", + "c_1_0" + ] + }, + { + "filename": "c/rm-h.webp", + "label": "Rover Havoc", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_hav", + "c_1_0" + ] + }, + { + "filename": "c/rm-s.webp", + "label": "Rover Spectro", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_spe", + "c_1_0" + ] + }, + { + "filename": "c/sh.webp", + "label": "Sanhua", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_gla", + "c_1_0" + ] + }, + { + "filename": "c/vr.webp", + "label": "Verina", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_spe", + "c_1_0" + ] + }, + { + "filename": "c/xy.webp", + "label": "Xiangli Yao", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_ele", + "c_1_2" + ] + }, + { + "filename": "c/yl.webp", + "label": "Yinlin", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_ele", + "c_1_0" + ] + }, + { + "filename": "c/yw.webp", + "label": "Yuanwu", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_ele", + "c_1_0" + ] + }, + { + "filename": "c/yy.webp", + "label": "Yangyang", + "tags": [ + "c_all", + "c_rarity_4", + "c_att_aer", + "c_1_0" + ] + }, + { + "filename": "c/zz.webp", + "label": "Zhezhi", + "tags": [ + "c_all", + "c_rarity_5", + "c_att_gla", + "c_1_2" + ] + } + ], + "tags": { + "c_all": { + "title": "All Resonators", + "description": "All Resonators who have been officially released or announced", + "category": "general" + }, + "c_rarity_4": { + "title": "4-Star Resonators", + "description": "Resonators with a rarity of 4 stars", + "category": "general" + }, + "c_att_aer": { + "title": "Aero Resonators", + "description": "Aero attribute Resonators", + "category": "general" + }, + "c_1_0": { + "title": "Resonators - Version 1", + "description": "Resonators from Version 1", + "category": "general" + }, + "c_att_gla": { + "title": "Glacio Resonators", + "description": "Glacio attribute Resonators", + "category": "general" + }, + "c_rarity_5": { + "title": "5-Star Resonators", + "description": "Resonators with a rarity of 5 stars", + "category": "general" + }, + "c_att_ele": { + "title": "Electro Resonators", + "description": "Electro attribute Resonators", + "category": "general" + }, + "c_att_fus": { + "title": "Fusion Resonators", + "description": "Fusion attribute Resonators", + "category": "general" + }, + "c_1_1": { + "title": "Resonators - Version 1.1", + "description": "Resonators from Version 1.1", + "category": "general" + }, + "c_att_hav": { + "title": "Havoc Resonators", + "description": "Havoc attribute Resonators", + "category": "general" + }, + "c_att_spe": { + "title": "Spectro Resonators", + "description": "Spectro attribute Resonators", + "category": "general" + }, + "c_1_2": { + "title": "Resonators - Version 1.2", + "description": "Resonators from Version 1.2", + "category": "general" + } + } } } } \ No newline at end of file diff --git a/imageset.custom.json b/imageset.custom.json index 85efdc9..2cfb544 100644 --- a/imageset.custom.json +++ b/imageset.custom.json @@ -5,6 +5,9 @@ }, "image-reachthefinals": { "displayName": "The Finals" + }, + "image-wutheringwaves": { + "displayName": "Wuthering Waves" } } -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index f6ac959..e182ca7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,6 +32,7 @@ "html2canvas-pro": "^1.5.4", "image-reachthefinals": "^1.0.0", "image-set": "^2.0.1", + "image-wutheringwaves": "^1.0.1", "lz-string": "^1.5.0", "next": "14.2.4", "next-themes": "^0.3.0", @@ -4293,6 +4294,15 @@ "@inquirer/prompts": "^5.1.2" } }, + "node_modules/image-wutheringwaves": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/image-wutheringwaves/-/image-wutheringwaves-1.0.1.tgz", + "integrity": "sha512-J9yxHLAOXVfVk4BVErYirMjjhJJ+u0HMxWZhiPL6mi73NHAv0+rzZzla34RQtvurgf8vptV0a2l1cI5GULkQuA==", + "license": "MIT", + "dependencies": { + "@inquirer/prompts": "^5.1.2" + } + }, "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", diff --git a/package.json b/package.json index 95842da..12c0418 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "html2canvas-pro": "^1.5.4", "image-reachthefinals": "^1.0.0", "image-set": "^2.0.1", + "image-wutheringwaves": "^1.0.1", "lz-string": "^1.5.0", "next": "14.2.4", "next-themes": "^0.3.0",