style: format web apps with prettier and sort imports
Apply repo-wide Prettier/lint normalization across admin-web, desktop-client and ops-web: single quotes, no semicolons, trailing commas, consistent line wrapping, and import ordering. Also drop an unused brand-logo import in DesktopShell.vue. No behavior changes — formatting only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -95,8 +95,7 @@ function scheduleBlankPageWatchdog(window: BrowserWindow, state: WindowNavigatio
|
||||
}
|
||||
|
||||
const looksBlank =
|
||||
shape.nodeCount < BLANK_PAGE_NODE_THRESHOLD &&
|
||||
shape.textLength < BLANK_PAGE_TEXT_THRESHOLD
|
||||
shape.nodeCount < BLANK_PAGE_NODE_THRESHOLD && shape.textLength < BLANK_PAGE_TEXT_THRESHOLD
|
||||
|
||||
if (!looksBlank) {
|
||||
return
|
||||
@@ -557,31 +556,28 @@ export function attachWindowDiagnostics(window: BrowserWindow, context: string):
|
||||
clearBlankPageWatchdog(state)
|
||||
})
|
||||
|
||||
window.webContents.on(
|
||||
'did-start-navigation',
|
||||
(_event, url, isInPlace, isMainFrame) => {
|
||||
if (!isMainFrame || isInPlace || !/^https?:\/\//i.test(url)) {
|
||||
return
|
||||
}
|
||||
window.webContents.on('did-start-navigation', (_event, url, isInPlace, isMainFrame) => {
|
||||
if (!isMainFrame || isInPlace || !/^https?:\/\//i.test(url)) {
|
||||
return
|
||||
}
|
||||
|
||||
const state = navigationStateRegistry.get(window)
|
||||
if (!state) {
|
||||
return
|
||||
}
|
||||
const state = navigationStateRegistry.get(window)
|
||||
if (!state) {
|
||||
return
|
||||
}
|
||||
|
||||
const fromLocalPage = isLocalPageURL(window.webContents.getURL())
|
||||
state.readyForDetection = false
|
||||
state.activeTargetURL = url
|
||||
if (fromLocalPage) {
|
||||
state.localPageKind = 'loading'
|
||||
}
|
||||
const fromLocalPage = isLocalPageURL(window.webContents.getURL())
|
||||
state.readyForDetection = false
|
||||
state.activeTargetURL = url
|
||||
if (fromLocalPage) {
|
||||
state.localPageKind = 'loading'
|
||||
}
|
||||
|
||||
if (fromLocalPage || !state.loadTimeoutWatchdog) {
|
||||
state.activeLoadToken += 1
|
||||
scheduleRemoteLoadTimeout(window, state, url, context, state.activeLoadToken)
|
||||
}
|
||||
},
|
||||
)
|
||||
if (fromLocalPage || !state.loadTimeoutWatchdog) {
|
||||
state.activeLoadToken += 1
|
||||
scheduleRemoteLoadTimeout(window, state, url, context, state.activeLoadToken)
|
||||
}
|
||||
})
|
||||
|
||||
window.webContents.on(
|
||||
'did-fail-load',
|
||||
|
||||
Reference in New Issue
Block a user