v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

19
frontend/node_modules/vite-plugin-pwa/preact.d.ts generated vendored Normal file
View File

@ -0,0 +1,19 @@
declare module 'virtual:pwa-register/preact' {
// eslint-disable-next-line ts/ban-ts-comment
// @ts-ignore ignore when preact/hooks is not installed
import type { Dispatch, StateUpdater } from 'preact/hooks'
import type { RegisterSWOptions } from 'vite-plugin-pwa/types'
export type { RegisterSWOptions }
export function useRegisterSW(options?: RegisterSWOptions): {
needRefresh: [boolean, Dispatch<StateUpdater<boolean>>]
offlineReady: [boolean, Dispatch<StateUpdater<boolean>>]
/**
* Reloads the current window to allow the service worker take the control.
*
* @param reloadPage From version 0.13.2+ this param is not used anymore.
*/
updateServiceWorker: (reloadPage?: boolean) => Promise<void>
}
}