2025-10-16 20:01:57 +08:00
|
|
|
import path from 'path';
|
|
|
|
|
import {getBaseDir} from 'ee-core/ps';
|
|
|
|
|
import {type AppConfig} from 'ee-core/config';
|
|
|
|
|
|
|
|
|
|
const config: () => AppConfig = () => {
|
|
|
|
|
return {
|
|
|
|
|
openDevTools: false,
|
|
|
|
|
singleLock: true,
|
|
|
|
|
windowsOption: {
|
|
|
|
|
title: 'PQS9100工具箱', // 软件标题
|
2025-10-24 15:10:23 +08:00
|
|
|
width: 1366, // 软件窗口宽度
|
|
|
|
|
height: 768, // 软件窗口高度
|
|
|
|
|
minWidth: 1366, // 软件窗口最小宽度
|
|
|
|
|
minHeight: 768, // 软件窗口最小高度
|
2025-10-16 20:01:57 +08:00
|
|
|
autoHideMenuBar: true, // 默认不显示菜单栏,
|
|
|
|
|
webPreferences: {
|
|
|
|
|
webSecurity: true,
|
|
|
|
|
contextIsolation: false,
|
|
|
|
|
nodeIntegration: true,
|
|
|
|
|
},
|
|
|
|
|
frame: true,
|
|
|
|
|
show: false,
|
|
|
|
|
icon: path.join(getBaseDir(), 'public', 'images', 'logo-32.png'),
|
|
|
|
|
},
|
|
|
|
|
logger: {
|
|
|
|
|
level: 'INFO',
|
|
|
|
|
outputJSON: false,
|
|
|
|
|
appLogName: 'pqs-9100_tool.log',
|
|
|
|
|
coreLogName: 'pqs-9100_tool-core.log',
|
|
|
|
|
errorLogName: 'pqs-9100_tool-error.log',
|
|
|
|
|
},
|
|
|
|
|
remote: {
|
|
|
|
|
enable: false,
|
|
|
|
|
url: '',
|
|
|
|
|
},
|
|
|
|
|
socketServer: {
|
|
|
|
|
enable: true,
|
|
|
|
|
port: 7070,
|
|
|
|
|
path: "/socket.io/",
|
|
|
|
|
connectTimeout: 45000,
|
|
|
|
|
pingTimeout: 30000,
|
|
|
|
|
pingInterval: 25000,
|
|
|
|
|
maxHttpBufferSize: 1e8,
|
|
|
|
|
transports: ["polling", "websocket"],
|
|
|
|
|
cors: {
|
|
|
|
|
origin: true,
|
|
|
|
|
},
|
|
|
|
|
channel: 'socket-channel',
|
|
|
|
|
},
|
|
|
|
|
httpServer: {
|
|
|
|
|
enable: true,
|
|
|
|
|
https: {
|
|
|
|
|
enable: false,
|
|
|
|
|
key: '/public/ssl/localhost+1.key',
|
|
|
|
|
cert: '/public/ssl/localhost+1.pem',
|
|
|
|
|
},
|
|
|
|
|
host: '127.0.0.1',
|
|
|
|
|
port: 7071,
|
|
|
|
|
},
|
|
|
|
|
mainServer: {
|
|
|
|
|
indexPath: '/public/dist/index.html',
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|