фронт

This commit is contained in:
test 2025-06-09 10:31:14 +05:00
parent eb1f18f53e
commit d67ea17fd7
160 changed files with 2611 additions and 5680 deletions

View file

@ -21,7 +21,7 @@ function createWindow() {
win.show();
if (process.env.NODE_ENV === 'development') {
win.loadURL('http://localhost:3000');
win.loadURL('http://192.168.1.152:8001');
win.webContents.openDevTools();
} else {
win.loadFile(path.join(__dirname, 'dist/index.html'));
@ -35,7 +35,7 @@ app.whenReady().then(() => {
// 2. Всех IP в локальной сети (192.168.x.x, 10.x.x.x и т.д.)
// 3. Конкретного домена (если есть)
if (
request.hostname === 'localhost' ||
request.hostname === '192.168.1.152' ||
request.hostname === '127.0.0.1' ||
request.hostname === '0.0.0.0' ||
/^(192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)/.test(request.hostname)
@ -44,6 +44,7 @@ app.whenReady().then(() => {
}
callback(-2);
});
Menu.setApplicationMenu(null);
createWindow();
});