Update dependencies #83
6 changed files with 2958 additions and 1424 deletions
|
@ -8,6 +8,7 @@
|
|||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" sizes="48x48" href="/favicon.ico">
|
||||
<link rel="mask-icon" href="/favicon.svg" color="#2E3440">
|
||||
<meta name="theme-color" content="#2E3440">
|
||||
|
||||
<title>Profectus</title>
|
||||
|
|
4332
package-lock.json
generated
4332
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
@ -24,15 +24,15 @@
|
|||
"@pixi/particle-emitter": "^5.0.7",
|
||||
"@pixi/sprite": "~6.3.2",
|
||||
"@pixi/ticker": "~6.3.2",
|
||||
"@vitejs/plugin-vue": "^2.3.3",
|
||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||
"is-plain-object": "^5.0.0",
|
||||
"lz-string": "^1.4.4",
|
||||
"nanoevents": "^6.0.2",
|
||||
"unofficial-galaxy-sdk": "git+https://code.incremental.social/thepaperpilot/unofficial-galaxy-sdk.git#1.0.1",
|
||||
"vite": "^2.9.12",
|
||||
"vite-plugin-pwa": "^0.12.0",
|
||||
"vite-tsconfig-paths": "^3.5.0",
|
||||
"vite": "^5.1.6",
|
||||
"vite-plugin-pwa": "^0.19.4",
|
||||
"vite-tsconfig-paths": "^4.3.0",
|
||||
"vue": "^3.2.26",
|
||||
"vue-next-select": "^2.10.2",
|
||||
"vue-panzoom": "https://github.com/thepaperpilot/vue-panzoom.git",
|
||||
|
@ -55,6 +55,6 @@
|
|||
"vue-tsc": "^0.38.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16.x"
|
||||
"node": "21.x"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ watch(saveToImport, importedSave => {
|
|||
}
|
||||
});
|
||||
|
||||
let bankContext = import.meta.globEager("./../../../saves/*.txt", { as: "raw" });
|
||||
let bankContext = import.meta.glob("./../../../saves/*.txt", { query: "?raw", eager: true });
|
||||
let bank = ref(
|
||||
Object.keys(bankContext).reduce((acc: Array<{ label: string; value: string }>, curr) => {
|
||||
acc.push({
|
||||
|
@ -311,4 +311,4 @@ function editSave(id: string, newName: string) {
|
|||
.presets .vue-select[aria-expanded="true"] vue-dropdown {
|
||||
visibility: hidden;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
31
src/main.ts
31
src/main.ts
|
@ -18,11 +18,6 @@ declare global {
|
|||
vue: VueApp;
|
||||
projInfo: typeof projInfo;
|
||||
}
|
||||
|
||||
/** Fix for typedoc treating import functions as taking AssertOptions instead of GlobOptions. */
|
||||
interface AssertOptions {
|
||||
as: string;
|
||||
}
|
||||
}
|
||||
|
||||
const error = console.error;
|
||||
|
@ -75,33 +70,13 @@ requestAnimationFrame(async () => {
|
|||
// Setup PWA update prompt
|
||||
nextTick(() => {
|
||||
const toast = useToast();
|
||||
const { updateServiceWorker } = useRegisterSW({
|
||||
onNeedRefresh() {
|
||||
toast.info("New content available, click here to update.", {
|
||||
timeout: false,
|
||||
closeOnClick: false,
|
||||
draggable: false,
|
||||
icon: {
|
||||
iconClass: "material-icons",
|
||||
iconChildren: "refresh",
|
||||
iconTag: "i"
|
||||
},
|
||||
rtl: false,
|
||||
onClick() {
|
||||
updateServiceWorker();
|
||||
}
|
||||
});
|
||||
},
|
||||
useRegisterSW({
|
||||
immediate: true,
|
||||
onOfflineReady() {
|
||||
toast.info("App ready to work offline");
|
||||
},
|
||||
onRegisterError: console.warn,
|
||||
onRegistered(r) {
|
||||
if (r) {
|
||||
// https://stackoverflow.com/questions/65500916/typeerror-failed-to-execute-update-on-serviceworkerregistration-illegal-in
|
||||
setInterval(() => r.update(), 60 * 60 * 1000);
|
||||
}
|
||||
}
|
||||
onRegistered: console.info
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ export default defineConfig({
|
|||
}),
|
||||
tsconfigPaths(),
|
||||
VitePWA({
|
||||
includeAssets: ["Logo.svg", "favicon.ico", "robots.txt", "apple-touch-icon.png"],
|
||||
registerType: 'autoUpdate',
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue