aboutsummaryrefslogtreecommitdiffstats
path: root/clients/www/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--clients/www/src-tauri/tauri.conf.json128
-rw-r--r--clients/www/src/app.d.ts2
-rw-r--r--clients/www/src/app.html2
-rw-r--r--clients/www/src/app.postcss2
-rw-r--r--clients/www/src/lib/components/ReloadPrompt.svelte56
-rw-r--r--clients/www/src/routes/+layout.svelte6
-rw-r--r--clients/www/src/routes/+layout.ts2
-rw-r--r--clients/www/src/routes/+page.svelte2
8 files changed, 100 insertions, 100 deletions
diff --git a/clients/www/src-tauri/tauri.conf.json b/clients/www/src-tauri/tauri.conf.json
index 24cb318..abb7183 100644
--- a/clients/www/src-tauri/tauri.conf.json
+++ b/clients/www/src-tauri/tauri.conf.json
@@ -1,66 +1,66 @@
{
- "$schema": "../../../node_modules/@tauri-apps/cli/schema.json",
- "build": {
- "beforeBuildCommand": "pnpm run build",
- "beforeDevCommand": "pnpm run dev",
- "devPath": "http://localhost:5173",
- "distDir": "../build"
- },
- "package": {
- "productName": "zorascript",
- "version": "0.1.0"
- },
- "tauri": {
- "allowlist": {
- "all": false
- },
- "bundle": {
- "active": true,
- "category": "DeveloperTool",
- "copyright": "",
- "deb": {
- "depends": []
- },
- "externalBin": [],
- "icon": [
- "icons/32x32.png",
- "icons/128x128.png",
- "icons/128x128@2x.png",
- "icons/icon.icns",
- "icons/icon.ico"
- ],
- "identifier": "io.github.rosstheross.zorascript",
- "longDescription": "",
- "macOS": {
- "entitlements": null,
- "exceptionDomain": "",
- "frameworks": [],
- "providerShortName": null,
- "signingIdentity": null
- },
- "resources": [],
- "shortDescription": "",
- "targets": "all",
- "windows": {
- "certificateThumbprint": null,
- "digestAlgorithm": "sha256",
- "timestampUrl": ""
- }
- },
- "security": {
- "csp": null
- },
- "updater": {
- "active": false
- },
- "windows": [
- {
- "fullscreen": false,
- "height": 600,
- "resizable": true,
- "title": "Zorascript",
- "width": 800
- }
- ]
- }
+ "$schema": "../../../node_modules/@tauri-apps/cli/schema.json",
+ "build": {
+ "beforeBuildCommand": "pnpm run build",
+ "beforeDevCommand": "pnpm run dev",
+ "devPath": "http://localhost:5173",
+ "distDir": "../build"
+ },
+ "package": {
+ "productName": "zorascript",
+ "version": "0.1.0"
+ },
+ "tauri": {
+ "allowlist": {
+ "all": false
+ },
+ "bundle": {
+ "active": true,
+ "category": "DeveloperTool",
+ "copyright": "",
+ "deb": {
+ "depends": []
+ },
+ "externalBin": [],
+ "icon": [
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/128x128@2x.png",
+ "icons/icon.icns",
+ "icons/icon.ico"
+ ],
+ "identifier": "io.github.rosstheross.zorascript",
+ "longDescription": "",
+ "macOS": {
+ "entitlements": null,
+ "exceptionDomain": "",
+ "frameworks": [],
+ "providerShortName": null,
+ "signingIdentity": null
+ },
+ "resources": [],
+ "shortDescription": "",
+ "targets": "all",
+ "windows": {
+ "certificateThumbprint": null,
+ "digestAlgorithm": "sha256",
+ "timestampUrl": ""
+ }
+ },
+ "security": {
+ "csp": null
+ },
+ "updater": {
+ "active": false
+ },
+ "windows": [
+ {
+ "fullscreen": false,
+ "height": 600,
+ "resizable": true,
+ "title": "Zorascript",
+ "width": 800
+ }
+ ]
+ }
}
diff --git a/clients/www/src/app.d.ts b/clients/www/src/app.d.ts
index 4c48b71..e3534e2 100644
--- a/clients/www/src/app.d.ts
+++ b/clients/www/src/app.d.ts
@@ -2,7 +2,7 @@
// for information about these interfaces
// and what to do when importing types
-import 'vite-plugin-pwa/info'
+import 'vite-plugin-pwa/info';
declare namespace App {
// interface Locals {}
diff --git a/clients/www/src/app.html b/clients/www/src/app.html
index cc192f8..c40af2d 100644
--- a/clients/www/src/app.html
+++ b/clients/www/src/app.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="utf-8" />
diff --git a/clients/www/src/app.postcss b/clients/www/src/app.postcss
index ddaec40..8ef7d35 100644
--- a/clients/www/src/app.postcss
+++ b/clients/www/src/app.postcss
@@ -6,4 +6,4 @@
html,
body {
@apply h-full overflow-hidden;
-} \ No newline at end of file
+}
diff --git a/clients/www/src/lib/components/ReloadPrompt.svelte b/clients/www/src/lib/components/ReloadPrompt.svelte
index e6effbb..6c778b6 100644
--- a/clients/www/src/lib/components/ReloadPrompt.svelte
+++ b/clients/www/src/lib/components/ReloadPrompt.svelte
@@ -1,32 +1,32 @@
<script lang="ts">
- import { getToastStore } from '@skeletonlabs/skeleton'
- import { useRegisterSW } from 'virtual:pwa-register/svelte'
+ import { getToastStore } from '@skeletonlabs/skeleton';
+ import { useRegisterSW } from 'virtual:pwa-register/svelte';
- const toastStore = getToastStore()
+ const toastStore = getToastStore();
- const { updateServiceWorker } = useRegisterSW({
- onRegisteredSW(r) {
- console.log('SW Registered: ', r)
- },
- onNeedRefresh() {
- toastStore.trigger({
- message: 'A new version of the application is available.',
- autohide: false,
- action: {
- label: 'Refresh',
- response: updateServiceWorker,
- },
- })
- },
- onOfflineReady() {
- toastStore.trigger({
- background: 'variant-filled-success',
- message: 'Now ready for offline use!',
- timeout: 5000,
- })
- },
- onRegisterError(err) {
- console.error('SW Registration Error: ', err)
- },
- })
+ const { updateServiceWorker } = useRegisterSW({
+ onRegisteredSW(r) {
+ console.log('SW Registered: ', r);
+ },
+ onNeedRefresh() {
+ toastStore.trigger({
+ message: 'A new version of the application is available.',
+ autohide: false,
+ action: {
+ label: 'Refresh',
+ response: updateServiceWorker
+ }
+ });
+ },
+ onOfflineReady() {
+ toastStore.trigger({
+ background: 'variant-filled-success',
+ message: 'Now ready for offline use!',
+ timeout: 5000
+ });
+ },
+ onRegisterError(err) {
+ console.error('SW Registration Error: ', err);
+ }
+ });
</script>
diff --git a/clients/www/src/routes/+layout.svelte b/clients/www/src/routes/+layout.svelte
index 6567ed5..a651da6 100644
--- a/clients/www/src/routes/+layout.svelte
+++ b/clients/www/src/routes/+layout.svelte
@@ -11,8 +11,8 @@
</script>
<svelte:head>
- <!-- eslint-disable-next-line svelte/no-at-html-tags VitePWA can probably be trusted -->
- {@html webManifest}
+ <!-- eslint-disable-next-line svelte/no-at-html-tags VitePWA can probably be trusted -->
+ {@html webManifest}
</svelte:head>
<Toast />
@@ -36,5 +36,5 @@
</AppShell>
{#await import('$lib/components/ReloadPrompt.svelte') then { default: ReloadPrompt }}
- <ReloadPrompt />
+ <ReloadPrompt />
{/await}
diff --git a/clients/www/src/routes/+layout.ts b/clients/www/src/routes/+layout.ts
index c8cacf0..189f71e 100644
--- a/clients/www/src/routes/+layout.ts
+++ b/clients/www/src/routes/+layout.ts
@@ -1 +1 @@
-export const prerender = true; \ No newline at end of file
+export const prerender = true;
diff --git a/clients/www/src/routes/+page.svelte b/clients/www/src/routes/+page.svelte
index 84d1c45..e963da4 100644
--- a/clients/www/src/routes/+page.svelte
+++ b/clients/www/src/routes/+page.svelte
@@ -1,3 +1,3 @@
<svelte:head>
<title>Zelda: Oracle of [Ages,Seasons] Passphrase Generator</title>
-</svelte:head> \ No newline at end of file
+</svelte:head>