Skip to content

Commit bb269b2

Browse files
committed
update
1 parent 071da05 commit bb269b2

File tree

10 files changed

+2766
-387
lines changed

10 files changed

+2766
-387
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules
33
dist
44
dist-ssr
55
*.local
6-
.vscode
6+
.vscode
7+
out/

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>原神抽卡记录导出工具</title>
77
</head>
88
<body class="bg-blue">
9-
<div id="app" class="pt-6 px-6"></div>
9+
<div id="app" class="pt-4 px-6"></div>
1010
<script type="module" src="/src/renderer/main.js"></script>
1111
</body>
1212
</html>

package.json

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,65 @@
11
{
22
"name": "genshin-gacha-export",
33
"version": "0.0.1",
4+
"main": "./src/main.js",
45
"scripts": {
56
"dev": "vite",
67
"build": "vite build",
78
"serve": "vite preview",
8-
"start": "electron ./src/main.js"
9+
"start": "electron-forge start",
10+
"package": "electron-forge package",
11+
"make": "electron-forge make"
912
},
1013
"dependencies": {
1114
"axios": "^0.21.1",
12-
"echarts": "^5.0.2",
15+
"electron-squirrel-startup": "^1.0.0",
1316
"element-plus": "^1.0.2-beta.32",
14-
"exceljs": "^4.2.0",
1517
"fs-extra": "^9.1.0",
1618
"vue": "^3.0.5"
1719
},
1820
"devDependencies": {
21+
"@electron-forge/cli": "^6.0.0-beta.54",
22+
"@electron-forge/maker-deb": "^6.0.0-beta.54",
23+
"@electron-forge/maker-rpm": "^6.0.0-beta.54",
24+
"@electron-forge/maker-squirrel": "^6.0.0-beta.54",
25+
"@electron-forge/maker-zip": "^6.0.0-beta.54",
1926
"@vitejs/plugin-vue": "^1.1.4",
2027
"@vue/compiler-sfc": "^3.0.5",
2128
"autoprefixer": "^10.2.4",
2229
"electron": "^11.2.3",
2330
"postcss": "^8.2.5",
2431
"tailwindcss": "^2.0.3",
2532
"vite": "^2.0.0-beta.65"
33+
},
34+
"config": {
35+
"forge": {
36+
"packagerConfig": {
37+
"ignore": [
38+
"src/(renderer)",
39+
"(\\.vscode)",
40+
"node_modules/(\\.vite|@.+|element-plus|vue)"
41+
],
42+
"icon": "src/assets/fish.ico",
43+
"name": "原神抽卡数据导出"
44+
},
45+
"makers": [
46+
{
47+
"name": "@electron-forge/maker-zip",
48+
"platforms": [
49+
"win32"
50+
]
51+
}
52+
],
53+
"publishers": {
54+
"name": "@electron-forge/publisher-github",
55+
"config": {
56+
"repository": {
57+
"owner": "biuuu",
58+
"name": "genshin-gacha-export"
59+
},
60+
"prerelease": true
61+
}
62+
}
63+
}
2664
}
2765
}

src/assets/fish.ico

264 KB
Binary file not shown.

src/excel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ExcelJS = require('exceljs')
1+
const ExcelJS = require('./module/exceljs.min.js')
22
const readData = require('./getData').readData
33
const { app, ipcMain, dialog } = require('electron')
44
const fs = require('fs-extra')

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ let win = null
88
function createWindow () {
99
win = new BrowserWindow({
1010
width: 880,
11-
height: 580,
11+
height: 540,
1212
webPreferences: {
1313
nodeIntegration: true
1414
}
1515
})
16+
win.setMenuBarVisibility(false)
1617
isDev ? win.loadURL(`http://localhost:3000`) : win.loadFile('./dist/index.html')
1718
}
1819

src/module/echarts.esm.min.js

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/module/exceljs.min.js

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/PieChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<script setup>
66
import { defineProps, reactive, ref, onMounted } from 'vue'
7-
import * as echarts from 'echarts'
7+
import * as echarts from '../../module/echarts.esm.min.js'
88
99
const props = defineProps({
1010
data: Object

0 commit comments

Comments
 (0)