feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)

This commit is contained in:
Florian Sylvain committed 2026-10-15 05:25:44 +02:00
1 parent 3d81d2c717
commit 6b8990c55e
239 files changed
+9194 -1354

No files matched your search

+20 -4
View File
@@ -29,7 +29,11 @@ export function upToDate(overrides: Partial<UpdateStatus> = {}): UpdateStatus {
latest: RUNNING_VERSION,
available: false,
release_url: RELEASE_URL,
notes: { version: RUNNING_VERSION, released_at: RELEASED_AT, items: [] },
notes: {
version: RUNNING_VERSION,
released_at: RELEASED_AT,
items: [],
},
checked_at: hoursAgo(1),
can_apply: false,
state: 'idle',
@@ -46,7 +50,11 @@ export function newerAvailable(overrides: Partial<UpdateStatus> = {}): UpdateSta
return upToDate({
latest: NEW_TAG,
available: true,
notes: { version: NEW_TAG, released_at: RELEASED_AT, items: NOTE_ITEMS },
notes: {
version: NEW_TAG,
released_at: RELEASED_AT,
items: NOTE_ITEMS,
},
...overrides,
})
}
@@ -82,7 +90,11 @@ export function downloading(percent = 42): UpdateStatus {
return startable({
state: 'downloading',
started_at: '2026-09-30T09:51:00Z',
progress: { percent, downloaded_bytes: downloaded, total_bytes: BOARD_TOTAL_BYTES },
progress: {
percent,
downloaded_bytes: downloaded,
total_bytes: BOARD_TOTAL_BYTES,
},
})
}
@@ -95,7 +107,11 @@ export function ready(): UpdateStatus {
}
export function failedWith(error: 'download' | 'verification'): UpdateStatus {
return startable({ state: 'failed', error, started_at: '2026-09-30T09:51:00Z' })
return startable({
state: 'failed',
error,
started_at: '2026-09-30T09:51:00Z',
})
}
export const RESTART_STARTED_AT = '2026-09-30T09:51:00Z'