Compare commits

...

4 Commits

Author SHA1 Message Date
mio
c724727886 fix: add background color in the browser window 2023-05-04 12:41:44 +08:00
mio
d324aee160 fix: ignore case when reading game paths from logs 2023-05-04 11:34:02 +08:00
5a5a7c1327 Update 繁體中文.json (#9)
* Update 繁體中文.json

* fix: 原神 -> 崩壞:星穹鐵道
2023-05-04 11:12:14 +08:00
mio
77a1d611be fix: weapon -> light cone 2023-05-04 11:00:21 +08:00
7 changed files with 25 additions and 25 deletions

View File

@ -1,6 +1,6 @@
{
"name": "star-rail-warp-export",
"version": "0.0.8",
"version": "0.0.10",
"main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>",
"license": "MIT",

View File

@ -30,9 +30,9 @@
"ui.data.average": "5 star on average",
"ui.data.chara5": "5 star character",
"ui.data.chara4": "4 star character",
"ui.data.weapon5": "5 star light cone",
"ui.data.weapon4": "4 star light cone",
"ui.data.weapon3": "3 star light cone",
"ui.data.weapon5": "5 star Light Cone",
"ui.data.weapon4": "4 star Light Cone",
"ui.data.weapon3": "3 star Light Cone",
"ui.setting.title": "Settings",
"ui.setting.language": "Language",
"ui.setting.languageHint": "When the translation is missing, English will be displayed by default.",
@ -84,5 +84,5 @@
"excel.filePrefix": "Star Rail Warp logger",
"excel.fileType": "Excel file",
"ui.extra.cacheClean": "1. Confirm whether the warp history in the game has been opened, and if the error \"User authentication expired\" still appears, try the following steps \n2. Close the game window of Star Rail \n3. Click the \"Open Web Cache Folder\" button above to open the \"Cache\" folder \n4. Delete the \"Cache_ Data\" folder \n5. Start the Star Rail game and open the warp history page in the game \n6. Close this dialog and click the \"Update Data\" button",
"ui.extra.findCacheFolder": "If the \"Open cache folder\" button does not respond, you can manually find the game's web cache folder. The directory is \"Your game installation path/Star Rail/Game/StarRail_Data/webCaches/Cache/\""
"ui.extra.findCacheFolder": "If the \"Open cache folder\" button does not respond, you can manually find the game's web cache folder. The directory is \"Your game installation path/Star Rail/Games/StarRail_Data/webCaches/Cache/\""
}

View File

@ -18,7 +18,7 @@
"ui.data.sum": "合計",
"ui.data.no5star": "連星5取得しません",
"ui.data.character": "キャラ",
"ui.data.weapon": "武器",
"ui.data.weapon": "光円錐",
"ui.data.star5": "星5",
"ui.data.star4": "星4",
"ui.data.star3": "星3",
@ -26,9 +26,9 @@
"ui.data.average": "星5取得平均回数",
"ui.data.chara5": "星5キャラ",
"ui.data.chara4": "星4キャラ",
"ui.data.weapon5": "星5武器",
"ui.data.weapon4": "星4武器",
"ui.data.weapon3": "星3武器",
"ui.data.weapon5": "星5光円錐",
"ui.data.weapon4": "星4光円錐",
"ui.data.weapon3": "星3光円錐",
"ui.setting.title": "設定",
"ui.setting.language": "言語",
"ui.setting.languageHint": "翻訳されていない場合は、デフォルトで英語が表示されます。",

View File

@ -22,7 +22,7 @@
"ui.data.sum": "已累计",
"ui.data.no5star": "抽未出5星",
"ui.data.character": "角色",
"ui.data.weapon": "武器",
"ui.data.weapon": "光錐",
"ui.data.star5": "5星",
"ui.data.star4": "4星",
"ui.data.star3": "3星",
@ -30,9 +30,9 @@
"ui.data.average": "5星平均出货次数为",
"ui.data.chara5": "5星角色",
"ui.data.chara4": "4星角色",
"ui.data.weapon5": "5星武器",
"ui.data.weapon4": "4星武器",
"ui.data.weapon3": "3星武器",
"ui.data.weapon5": "5星光錐",
"ui.data.weapon4": "4星光錐",
"ui.data.weapon3": "3星光錐",
"ui.setting.title": "设置",
"ui.setting.language": "语言",
"ui.setting.languageHint": "缺少翻译时,会默认显示简体中文",

View File

@ -8,7 +8,7 @@
"ui.button.setting": "設定",
"ui.button.option": "選項",
"ui.button.startProxy": "Proxy 模式",
"ui.button.solution": "解決方",
"ui.button.solution": "解決方",
"ui.button.cacheFolder": "開啟快取資料夾",
"ui.select.newAccount": "新帳號",
"ui.hint.newAccount": "從其他帳號匯出資料",
@ -16,13 +16,13 @@
"ui.hint.lastUpdate": "上次資料更新時間為",
"ui.hint.relaunchHint": "更新已完成,按下按鈕重新啟動工具後生效",
"ui.hint.failed": "作業失敗",
"ui.win.title": "",
"ui.win.title": "崩壞:星穹鐵道 躍遷記錄匯出工具",
"ui.data.total": "總計",
"ui.data.times": "抽",
"ui.data.sum": "已累計",
"ui.data.no5star": "抽未出5星",
"ui.data.character": "角色",
"ui.data.weapon": "武器",
"ui.data.weapon": "光錐",
"ui.data.star5": "5星",
"ui.data.star4": "4星",
"ui.data.star3": "3星",
@ -30,9 +30,9 @@
"ui.data.average": "5星平均出貨次數為",
"ui.data.chara5": "5星角色",
"ui.data.chara4": "4星角色",
"ui.data.weapon5": "5星武器",
"ui.data.weapon4": "4星武器",
"ui.data.weapon3": "3星武器",
"ui.data.weapon5": "5星光錐",
"ui.data.weapon4": "4星光錐",
"ui.data.weapon3": "3星光錐",
"ui.setting.title": "設定",
"ui.setting.language": "語言",
"ui.setting.languageHint": "缺少翻譯時,預設會顯示簡體中文。",
@ -42,7 +42,7 @@
"ui.setting.seaServer": "國際服",
"ui.setting.logTypeHint": "使用遊戲記錄取得 URL 時,優先選擇哪種伺服器產生的記錄檔案。",
"ui.setting.autoUpdate": "自動更新",
"ui.setting.hideNovice": "",
"ui.setting.hideNovice": "隱藏始發躍遷",
"ui.setting.proxyMode": "Proxy 模式",
"ui.setting.proxyModeHint": "透過設定系統 Proxy 以取得 URL將會在從系統記錄中取得 URL 失敗時啟動。",
"ui.setting.fetchFullHistory": "取得完整資料",
@ -81,8 +81,8 @@
"excel.header.remark": "備註",
"excel.wish2": "躍遷-2",
"excel.customFont": "微軟正黑體",
"excel.filePrefix": "",
"excel.filePrefix": "星穹鐵道躍遷紀錄",
"excel.fileType": "Excel 檔案",
"ui.extra.cacheClean": "1. 確認是否已經開啟遊戲內的躍遷歷史紀錄,如果仍然出現「身分驗證已過期」的錯誤,再嘗試下面的步驟\n2. 關閉原神的遊戲視窗\n3. 按一下上方的「開啟快取資料夾」按鈕開啟「Cache」資料夾\n4. 刪除「Cache_Data」資料夾\n5. 啟動原神遊戲,開啟遊戲內躍遷歷史紀錄頁面\n6. 關閉這個對話方塊,再按下「更新資料」按鈕",
"ui.extra.findCacheFolder": "如果按下「開啟快取資料夾」按鈕沒有回應,可以手動找到遊戲的網頁快取資料夾,目錄為「您的遊戲安裝路徑/Star Rail/Game/StarRail_Data/webCaches/Cache/」"
"ui.extra.cacheClean": "1. 確認是否已經開啟遊戲內的躍遷歷史紀錄,如果仍然出現「身分驗證已過期」的錯誤,再嘗試下面的步驟\n2. 關閉「崩壞:星穹鐵道」的遊戲視窗\n3. 按一下上方的「開啟快取資料夾」按鈕開啟「Cache」資料夾\n4. 刪除「Cache_Data」資料夾\n5. 啟動「崩壞:星穹鐵道」遊戲,開啟遊戲內躍遷歷史紀錄頁面\n6. 關閉這個對話方塊,再按下「更新資料」按鈕",
"ui.extra.findCacheFolder": "如果按下「開啟快取資料夾」按鈕沒有回應,可以手動找到遊戲的網頁快取資料夾,目錄為「您的遊戲安裝路徑/Star Rail/Games/StarRail_Data/webCaches/Cache/」"
}

View File

@ -132,7 +132,7 @@ const readLog = async () => {
}
const promises = logPaths.map(async logpath => {
const logText = await fs.readFile(logpath, 'utf8')
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//)
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//i)
if (gamePathMch) {
let cacheText = ''
try {

View File

@ -6,7 +6,6 @@ const crypto = require('crypto')
const unhandled = require('electron-unhandled')
const windowStateKeeper = require('electron-window-state')
const debounce = require('lodash/debounce')
const Registry = require('winreg')
const isDev = !app.isPackaged
@ -26,6 +25,7 @@ const initWindow = () => {
y: mainWindowState.y,
width: mainWindowState.width,
height: mainWindowState.height,
backgroundColor: '#fff',
webPreferences: {
contextIsolation:false,
nodeIntegration: true