diff --git a/package.json b/package.json index 5d01be4..74a9283 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "star-rail-warp-export", - "version": "0.1.0", + "version": "0.1.1", "main": "./dist/electron/main/main.js", "author": "biuuu ", "license": "MIT", @@ -71,7 +71,7 @@ }, "dependencies": {}, "devDependencies": { - "@element-plus/icons-vue": "^0.2.6", + "@element-plus/icons-vue": "^2.1.0", "@rollup/plugin-alias": "^3.1.9", "@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-json": "^4.1.0", @@ -91,7 +91,7 @@ "electron-fetch": "^1.7.4", "electron-unhandled": "^3.0.2", "electron-window-state": "^5.0.3", - "element-plus": "^1.3.0-beta.7", + "element-plus": "^2.3.7", "fs-extra": "^10.0.0", "get-stream": "^6.0.1", "jest": "^29.5.0", diff --git a/src/i18n/Deutsch.json b/src/i18n/Deutsch.json index b106a43..88a85bf 100644 --- a/src/i18n/Deutsch.json +++ b/src/i18n/Deutsch.json @@ -3,7 +3,7 @@ "ui.button.load": "Lade Daten", "ui.button.update": "Aktualisieren", "ui.button.excel": "In Excel exportieren", - "ui.button.srgf": "In SRGF exportieren", + "ui.button.srgf": "In JSON exportieren", "ui.button.url": "Eingabe URL", "ui.button.setting": "Einstellungen", "ui.button.option": "Optionen", diff --git a/src/i18n/English.json b/src/i18n/English.json index 2dee8ef..5ec432d 100644 --- a/src/i18n/English.json +++ b/src/i18n/English.json @@ -3,8 +3,9 @@ "ui.button.load": "Load data", "ui.button.update": "Update", "ui.button.directUpdate": "Direct update", + "ui.button.files": "Export Files", "ui.button.excel": "Export Excel", - "ui.button.srgf": "Export SRGF", + "ui.button.srgf": "Export JSON", "ui.button.url": "Input URL", "ui.button.setting": "Settings", "ui.button.option": "Option", diff --git a/src/i18n/Français.json b/src/i18n/Français.json index 92e696a..639d8aa 100644 --- a/src/i18n/Français.json +++ b/src/i18n/Français.json @@ -4,7 +4,7 @@ "ui.button.update": "Mettre à jour", "ui.button.directUpdate": "Mise à jour directe", "ui.button.excel": "Exporter vers Excel", - "ui.button.srgf": "Exporter vers SRGF", + "ui.button.srgf": "Exporter vers JSON", "ui.button.url": "URL d'import", "ui.button.setting": "Paramètres", "ui.button.option": "Options", diff --git a/src/i18n/日本語.json b/src/i18n/日本語.json index aa5f734..61398fd 100644 --- a/src/i18n/日本語.json +++ b/src/i18n/日本語.json @@ -3,7 +3,7 @@ "ui.button.load": "データの読み込み", "ui.button.update": "更新データ", "ui.button.excel": "Excelにエクスポート", - "ui.button.srgf": "SRGFにエクスポート", + "ui.button.srgf": "JSONにエクスポート", "ui.button.url": "URL入力", "ui.button.setting": "設定", "ui.button.option": "オプション", diff --git a/src/i18n/简体中文.json b/src/i18n/简体中文.json index 294fdf4..b229b32 100644 --- a/src/i18n/简体中文.json +++ b/src/i18n/简体中文.json @@ -3,8 +3,9 @@ "ui.button.load": "加载数据", "ui.button.update": "更新数据", "ui.button.directUpdate": "直接更新", + "ui.button.files": "导出文件", "ui.button.excel": "导出Excel", - "ui.button.srgf":"导出SRGF", + "ui.button.srgf":"导出JSON", "ui.button.url": "输入URL", "ui.button.setting": "设置", "ui.button.option": "选项", diff --git a/src/i18n/繁體中文.json b/src/i18n/繁體中文.json index 52a4763..c5252d3 100644 --- a/src/i18n/繁體中文.json +++ b/src/i18n/繁體中文.json @@ -3,8 +3,9 @@ "ui.button.load": "載入資料", "ui.button.update": "更新資料", "ui.button.directUpdate": "直接更新", + "ui.button.files": "匯出檔案", "ui.button.excel": "匯出 Excel", - "ui.button.srgf": "匯出 SRGF", + "ui.button.srgf": "匯出 JSON", "ui.button.url": "輸入 URL", "ui.button.setting": "設定", "ui.button.option": "選項", diff --git a/src/main/SRGFJson.js b/src/main/SRGFJson.js index 4c33f7b..be5cd97 100644 --- a/src/main/SRGFJson.js +++ b/src/main/SRGFJson.js @@ -27,7 +27,7 @@ const start = async () => { uid: data.uid, lang: data.lang, export_time: formatDate(new Date()), - export_timestamp: Math.ceil(Date.now()/1000), + export_timestamp: Math.ceil(Date.now() / 1000), export_app: 'star-rail-warp-export', export_app_version: `v${version}`, region_time_zone: data.region_time_zone, @@ -39,19 +39,19 @@ const start = async () => { for (let [type, arr] of data.result) { arr.forEach(log => { listTemp.push({ - gacha_id:log.gacha_id, - gacha_type: log.gacha_type, - item_id:log.item_id, - count:"1", - time:log.time, - name:log.name, - item_type:log.item_type, - rank_type:log.rank_type, - id:log.id + gacha_id: log.gacha_id, + gacha_type: log.gacha_type, + item_id: log.item_id, + count: '1', + time: log.time, + name: log.name, + item_type: log.item_type, + rank_type: log.rank_type, + id: log.id }) }) } - listTemp.sort((a, b) => BigInt(a.id) - BigInt(b.id)) + listTemp.sort((a, b) => Number(BigInt(a.id) - BigInt(b.id))) listTemp.forEach(item => { result.list.push({ ...item diff --git a/src/renderer/App.vue b/src/renderer/App.vue index d31c30c..59f6d58 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -1,10 +1,20 @@