mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat: 新增NPC与外交逻辑,优化UI组件结构
重构并精简了部分UI组件,移除冗余弹窗与详情组件,新增NPC相关逻辑(npcBehaviorLogic、npcGrowthLogic、npcStore等)及外交逻辑(diplomaticLogic、DiplomacyView)。完善分页、标签、复选框等通用UI组件。优化战报弹窗,调整README下载链接为相对路径,修复部分国际化内容。
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
import { app, BrowserWindow } from 'electron'
|
||||
// @ts-ignore
|
||||
import path from "node:path";
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { dirname } from 'node:path'
|
||||
import pkg from '../package.json'
|
||||
|
||||
app.whenReady().then(() => {
|
||||
// @ts-ignore
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
const win = new BrowserWindow({
|
||||
title: 'OGame',
|
||||
icon: path.join(__dirname, '../public/favicon.ico'),
|
||||
width: 1200,
|
||||
height: 800,
|
||||
})
|
||||
win.setMenu(null);
|
||||
// @ts-ignore
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
const win = new BrowserWindow({
|
||||
title: pkg.title,
|
||||
icon: path.join(__dirname, '../public/favicon.ico'),
|
||||
width: 1200,
|
||||
height: 800
|
||||
})
|
||||
win.setMenu(null)
|
||||
|
||||
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
|
||||
if (process.env.VITE_DEV_SERVER_URL) {
|
||||
win.loadURL(process.env.VITE_DEV_SERVER_URL)
|
||||
} else {
|
||||
// Load your file
|
||||
win.loadFile('docs/index.html');
|
||||
}
|
||||
})
|
||||
// You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve`
|
||||
if (process.env.VITE_DEV_SERVER_URL) {
|
||||
win.loadURL(process.env.VITE_DEV_SERVER_URL)
|
||||
} else {
|
||||
// Load your file
|
||||
win.loadFile('docs/index.html')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user