init
This commit is contained in:
66
electron/config/config.default.ts
Normal file
66
electron/config/config.default.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
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工具箱', // 软件标题
|
||||
width: 980, // 软件窗口宽度
|
||||
height: 650, // 软件窗口高度
|
||||
minWidth: 800, // 软件窗口最小宽度
|
||||
minHeight: 650, // 软件窗口最小高度
|
||||
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;
|
||||
Reference in New Issue
Block a user