diff --git a/.gitignore b/.gitignore index 3146f78..98633da 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ perico/train temp.png perico/gta-hepler-log.txt ui/gta-hepler-log.txt +ui/config.json diff --git a/ui/config.json b/ui/config.json deleted file mode 100644 index 7b96a49..0000000 --- a/ui/config.json +++ /dev/null @@ -1 +0,0 @@ -{"height":"1440","width":"2560","tp":"f8","perico":"f9","afk":"","stop":"backspace","mode":"borderless","cast":["0.317",0.885,0.226,0.4165],"keydelay":"0","allstop":"delete","dc":"f10"} \ No newline at end of file diff --git a/ui/package.json b/ui/package.json index 9ada011..1f62e63 100644 --- a/ui/package.json +++ b/ui/package.json @@ -40,11 +40,11 @@ "cross-env": "^7.0.2", "electron": "^11.0.3", "electron-builder": "^22.9.1", - "vite": "^1.0.0-rc.13", - "iconv-lite": "^0.6.2" + "vite": "^1.0.0-rc.13" }, "dependencies": { "element-plus": "^1.0.1-beta.10", - "vue": "^3.0.4" + "vue": "^3.0.4", + "iconv-lite": "^0.6.2" } } diff --git a/ui/vite.config.js b/ui/vite.config.js index 4fb48e5..c2dd9c2 100644 --- a/ui/vite.config.js +++ b/ui/vite.config.js @@ -8,7 +8,7 @@ export default { "/@/": root, }, rollupInputOptions: { - external: ["fs", "path", "stream", "electron","iconv-lite"], + external: ["fs", "path", "stream", "electron","iconv-lite","buffer"], }, rollupOutputOptions: { format: "commonjs",