From 750c75ab50809de7af45f9f4a753f5a90117bc1f Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Sun, 29 Mar 2026 13:25:35 +0800 Subject: [PATCH] feat: hide standard banner --- src/i18n/English.json | 2 +- src/i18n/简体中文.json | 1 + src/i18n/繁體中文.json | 1 + src/main/config.js | 2 +- src/main/getData.js | 1 - src/renderer/App.vue | 2 +- src/renderer/components/Setting.vue | 9 ++++++++- src/renderer/gachaDetail.js | 6 +++++- 8 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/i18n/English.json b/src/i18n/English.json index 785a9f2..e36ede2 100644 --- a/src/i18n/English.json +++ b/src/i18n/English.json @@ -51,7 +51,7 @@ "ui.setting.logTypeHint": "Choose which server generated logs to be used first when acquiring URL from game logs", "ui.setting.dataManagerHint": "Unnecessary data can be deleted", "ui.setting.autoUpdate": "Auto update", - "ui.setting.hideNovice": "Hide Starter Warp", + "ui.setting.hideStandard": "Hide Standard Banner", "ui.setting.proxyMode": "Proxy mode", "ui.setting.proxyModeHint": "When we fail to get the URL from system logs, use the system proxy", "ui.setting.fetchFullHistory": "Get complete data", diff --git a/src/i18n/简体中文.json b/src/i18n/简体中文.json index 2dc53e9..5606b97 100644 --- a/src/i18n/简体中文.json +++ b/src/i18n/简体中文.json @@ -51,6 +51,7 @@ "ui.setting.logTypeHint": "使用游戏日志获取URL时,优先选择哪种服务器生成的日志文件。", "ui.setting.dataManagerHint": "可以删除不需要的数据。", "ui.setting.autoUpdate": "自动更新", + "ui.setting.hideStandard": "隐藏常驻池", "ui.setting.proxyMode": "代理模式", "ui.setting.proxyModeHint": "通过设置系统代理来获取URL,无法从日志中获取到有效的URL时才会启动代理服务器。", "ui.setting.fetchFullHistory": "获取完整数据", diff --git a/src/i18n/繁體中文.json b/src/i18n/繁體中文.json index 860df65..5d7e8b8 100644 --- a/src/i18n/繁體中文.json +++ b/src/i18n/繁體中文.json @@ -50,6 +50,7 @@ "ui.setting.logTypeHint": "使用遊戲日誌獲取URL時,優先選擇哪種服務器生成的日誌文件。", "ui.setting.dataManagerHint": "可以刪除不需要的數據。", "ui.setting.autoUpdate": "自動更新", + "ui.setting.hideStandard": "隱藏常駐池", "ui.setting.proxyMode": "代理模式", "ui.setting.proxyModeHint": "通過設置系統代理來獲取URL,無法從日誌中獲取到有效的URL時才會啟動代理服務器。", "ui.setting.fetchFullHistory": "獲取完整數據", diff --git a/src/main/config.js b/src/main/config.js index f77d1c8..d5b6e0f 100644 --- a/src/main/config.js +++ b/src/main/config.js @@ -9,7 +9,7 @@ const config = { proxyMode: false, autoUpdate: true, fetchFullHistory: false, - hideNovice: false + hideStandard: false } const getLocalConfig = async () => { diff --git a/src/main/getData.js b/src/main/getData.js index 5157511..341e9a2 100644 --- a/src/main/getData.js +++ b/src/main/getData.js @@ -12,7 +12,6 @@ const { mergeData } = require('./utils/mergeData') const gachaTypeRaw = require('../gachaType.json') const dataMap = new Map() -const order = ['2', '3', '1', '5'] let apiDomain = 'https://public-operation-nap.mihoyo.com' const saveData = async (data, url) => { diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 82d7ab1..9954b88 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -139,7 +139,7 @@ class="gap-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 2xl:grid-cols-4" >
-
+

{{ typeMap.get(item[0]) }}

diff --git a/src/renderer/components/Setting.vue b/src/renderer/components/Setting.vue index f1cf42c..64c3445 100644 --- a/src/renderer/components/Setting.vue +++ b/src/renderer/components/Setting.vue @@ -29,6 +29,12 @@ v-model="settingForm.autoUpdate"> + + + + props.i18n.ui.setting) const about = computed(() => props.i18n.ui.about) const saveSetting = async () => { - const keys = ['lang', 'logType', 'proxyMode', 'autoUpdate', 'fetchFullHistory'] + const keys = ['lang', 'logType', 'proxyMode', 'autoUpdate', 'fetchFullHistory', 'hideStandard'] for (let key of keys) { await ipcRenderer.invoke('SAVE_CONFIG', [key, settingForm[key]]) } diff --git a/src/renderer/gachaDetail.js b/src/renderer/gachaDetail.js index d28e109..bbe922d 100644 --- a/src/renderer/gachaDetail.js +++ b/src/renderer/gachaDetail.js @@ -8,9 +8,13 @@ const itemCount = (map, name) => { } } +const order = ['2', '3', '5', '102', '103', '1'] + const gachaDetail = (data) => { const detailMap = new Map() - for (let [key, value] of data) { + for (let key of order) { + if (!data.has(key)) continue + let value = data.get(key) let detail = { count2: 0, count3: 0, count4: 0, count2w: 0, count3w: 0, count4w: 0, count3c: 0, count4c: 0, count3b: 0, count4b: 0,