手动同步了客户端中的更改
This commit is contained in:
BIN
frontend/client/book.ico
Normal file
BIN
frontend/client/book.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
4
frontend/client/book.ico:Zone.Identifier
Normal file
4
frontend/client/book.ico:Zone.Identifier
Normal 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
|
@ -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);
|
2171
frontend/client/package-lock.json
generated
2171
frontend/client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user