fmt(js): npm run fix on merge (#86407)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eb20188d2e
commit
31e571acf6
@@ -21,10 +21,7 @@ const INDEX_HTML = [
|
||||
].join('\n')
|
||||
|
||||
test('parseModuleAssetRefs collects module scripts and modulepreload hrefs', () => {
|
||||
assert.deepEqual(parseModuleAssetRefs(INDEX_HTML), [
|
||||
'/assets/index-a1b2c3.js',
|
||||
'/assets/shiki-block-COiz1pEN.js'
|
||||
])
|
||||
assert.deepEqual(parseModuleAssetRefs(INDEX_HTML), ['/assets/index-a1b2c3.js', '/assets/shiki-block-COiz1pEN.js'])
|
||||
})
|
||||
|
||||
test('parseModuleAssetRefs ignores non-module tags (plain stylesheet, non-module script)', () => {
|
||||
@@ -80,10 +77,7 @@ const INDEX_PATH = path.join('/app', 'dist', 'index.html')
|
||||
const INDEX_DIR = path.dirname(INDEX_PATH)
|
||||
|
||||
test('missingRendererAssets: intact generation reports nothing missing', () => {
|
||||
const deps = depsFor(INDEX_DIR, INDEX_HTML, [
|
||||
'assets/index-a1b2c3.js',
|
||||
'assets/shiki-block-COiz1pEN.js'
|
||||
])
|
||||
const deps = depsFor(INDEX_DIR, INDEX_HTML, ['assets/index-a1b2c3.js', 'assets/shiki-block-COiz1pEN.js'])
|
||||
|
||||
assert.deepEqual(missingRendererAssets(INDEX_PATH, deps), [])
|
||||
})
|
||||
@@ -113,10 +107,7 @@ test('missingRendererAssets: existence is checked relative to the index dir, per
|
||||
const unpackedIndex = path.join('/app', 'app.asar.unpacked', 'dist', 'index.html')
|
||||
const unpackedDir = path.dirname(unpackedIndex)
|
||||
|
||||
const intact = depsFor(unpackedDir, INDEX_HTML, [
|
||||
'assets/index-a1b2c3.js',
|
||||
'assets/shiki-block-COiz1pEN.js'
|
||||
])
|
||||
const intact = depsFor(unpackedDir, INDEX_HTML, ['assets/index-a1b2c3.js', 'assets/shiki-block-COiz1pEN.js'])
|
||||
|
||||
const torn = depsFor(INDEX_DIR, INDEX_HTML, ['assets/index-a1b2c3.js'])
|
||||
|
||||
|
||||
@@ -66,7 +66,9 @@ export function applyZoomLevel(webContents, level) {
|
||||
export const ZOOM_RESIZE_REASSERT_DELAY_MS = 100
|
||||
|
||||
export function zoomReassertWindowEvents(platform = process.platform) {
|
||||
return platform === 'linux' ? ['show', 'restore', 'focus', 'resize', 'move'] : ['show', 'restore', 'focus', 'resized', 'moved']
|
||||
return platform === 'linux'
|
||||
? ['show', 'restore', 'focus', 'resize', 'move']
|
||||
: ['show', 'restore', 'focus', 'resized', 'moved']
|
||||
}
|
||||
|
||||
export function installZoomReassertOnWindowEvents(win, reassert, platform = process.platform) {
|
||||
|
||||
@@ -251,6 +251,7 @@ function useSessionActions({
|
||||
label: r.openInTerminal,
|
||||
onSelect: () => {
|
||||
triggerHaptic('selection')
|
||||
|
||||
// Read the row lazily: subscribing every row's menu to $sessions
|
||||
// would re-render the whole sidebar on each session update.
|
||||
const cwd =
|
||||
|
||||
@@ -70,7 +70,6 @@ export const mergeUsageStable = (prev: Usage, patch: Partial<Usage> | undefined)
|
||||
return usageChanged(prev, merged) ? merged : prev
|
||||
}
|
||||
|
||||
|
||||
const statusFromBusy = () => (getUiState().busy ? 'running…' : 'ready')
|
||||
|
||||
// The last gateway skin, kept so the theme can be re-derived when the OSC-11
|
||||
|
||||
Reference in New Issue
Block a user