Update Window Configuration and Code Formatting
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Changed the development server port from 5780 to 5173 for updated local development settings. - Reformatted import statements for better readability and consistency. - Simplified the timeout function call in handleWindowControl for improved code clarity.
This commit is contained in:
parent
9ca872e589
commit
7ab05c8c2d
@ -13,7 +13,10 @@ import {
|
|||||||
clampWindowToWorkArea,
|
clampWindowToWorkArea,
|
||||||
isWindowWorkAreaMaximized
|
isWindowWorkAreaMaximized
|
||||||
} from './windows-work-area.js'
|
} from './windows-work-area.js'
|
||||||
import { findProtocolUrl, setSingleInstanceHandlers } from './single-instance.js'
|
import {
|
||||||
|
findProtocolUrl,
|
||||||
|
setSingleInstanceHandlers
|
||||||
|
} from './single-instance.js'
|
||||||
import { getAppSettings } from './store.js'
|
import { getAppSettings } from './store.js'
|
||||||
import {
|
import {
|
||||||
getWindowSessionFile,
|
getWindowSessionFile,
|
||||||
@ -24,7 +27,7 @@ import {
|
|||||||
const isMacOS = process.platform === 'darwin'
|
const isMacOS = process.platform === 'darwin'
|
||||||
const isWindows = process.platform === 'win32'
|
const isWindows = process.platform === 'win32'
|
||||||
const WINDOWS_STARTUP_MAXIMIZE_DELAY_MS = 1500
|
const WINDOWS_STARTUP_MAXIMIZE_DELAY_MS = 1500
|
||||||
const DEV_SERVER_PORT = 5780
|
const DEV_SERVER_PORT = 5173
|
||||||
const DEV_SERVER_URL = `http://localhost:${DEV_SERVER_PORT}`
|
const DEV_SERVER_URL = `http://localhost:${DEV_SERVER_PORT}`
|
||||||
const DEFAULT_DASHBOARD_PATH = '/dashboard/production/overview'
|
const DEFAULT_DASHBOARD_PATH = '/dashboard/production/overview'
|
||||||
const PROTOCOL_PREFIX = 'farmcontrol://'
|
const PROTOCOL_PREFIX = 'farmcontrol://'
|
||||||
@ -728,10 +731,7 @@ export function handleWindowControl(action, windowId) {
|
|||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
setTimeout(
|
setTimeout(
|
||||||
() =>
|
() =>
|
||||||
handleWindowsWindowChange(
|
handleWindowsWindowChange(window, windowId || getFocusedWindowId()),
|
||||||
window,
|
|
||||||
windowId || getFocusedWindowId()
|
|
||||||
),
|
|
||||||
100
|
100
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user