手动同步了客户端中的更改

This commit is contained in:
2023-12-18 06:57:24 +00:00
parent 59229eb1b5
commit b31e74d0d3
5 changed files with 2216 additions and 7 deletions

BIN
frontend/client/book.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://www.aconvert.com/
HostUrl=https://s10.aconvert.com/convert/p3r68-cdx67/a818f-0iqy5-001.ico

View File

@ -1,8 +1,19 @@
const { app, BrowserWindow } = require('electron'); const { app, BrowserWindow } = require('electron');
function createWindow() { function createWindow() {
const win = new BrowserWindow(); const win = new BrowserWindow({
win.loadURL('http://localhost:4000/'); fullscreen: true, // 设置默认全屏
frame: false, // 隐藏导航栏
});
win.loadURL('http://bookstore.zymsite.ink/');
// 监听按键事件
win.webContents.on('before-input-event', (event, input) => {
if (input.key === 'Escape') {
app.quit(); // 按下Esc键时退出程序
}
});
} }
app.whenReady().then(createWindow); app.whenReady().then(createWindow);

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,42 @@
{ {
"name": "bookstoreclient", "name": "bookstoreclient",
"version": "1.0.0", "version": "1.1.3",
"description": "Book Store Client", "description": "Book Store Client",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "electron ." "start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
}, },
"author": "ZhuangYumin", "author": "ZhuangYumin",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"electron": "^27.1.2"
},
"devDependencies": {
"electron-builder": "^24.9.1"
},
"build": {
"appId": "ZhuangYumin.homework.bookstoreclient",
"mac": {
"target": "dmg"
},
"win": {
"icon":"book.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
},
"linux": {
"target": ["AppImage", "deb"],
"category": "Utility"
}
} }
} }