From 216a600224fde22ce76b367557a02094ec693886 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Dec 2023 20:04:13 -0800 Subject: prettier --- static/manifest.webmanifest | 72 ++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'static/manifest.webmanifest') diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest index c9243a94..f1cdeec1 100644 --- a/static/manifest.webmanifest +++ b/static/manifest.webmanifest @@ -1,38 +1,38 @@ { - "theme_color": "#fff", - "background_color": "#000", - "display": "fullscreen", - "scope": "/", - "start_url": "/", - "name": "Coinos", - "description": "Bitcoin web wallet", - "short_name": "Coinos", - "icons": [ - { - "src": "/icon-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/icon-256x256.png", - "sizes": "256x256", - "type": "image/png" - }, - { - "src": "/icon-384x384.png", - "sizes": "384x384", - "type": "image/png" - }, - { - "src": "/icon-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "protocol_handlers": [ - { - "protocol": "bitcoin", - "url": "/send/%s" - } - ] + "theme_color": "#fff", + "background_color": "#000", + "display": "fullscreen", + "scope": "/", + "start_url": "/", + "name": "Coinos", + "description": "Bitcoin web wallet", + "short_name": "Coinos", + "icons": [ + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icon-256x256.png", + "sizes": "256x256", + "type": "image/png" + }, + { + "src": "/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "protocol_handlers": [ + { + "protocol": "bitcoin", + "url": "/send/%s" + } + ] } -- cgit v1.2.3 From a80fbe90d0fb7f82ea06a212ab304fd5062f10d2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 5 Dec 2023 07:51:08 -0800 Subject: change pwa landing page to /start --- src/routes/start/+server.js | 13 +++++++++++++ static/manifest.webmanifest | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/routes/start/+server.js (limited to 'static/manifest.webmanifest') diff --git a/src/routes/start/+server.js b/src/routes/start/+server.js new file mode 100644 index 00000000..49474c36 --- /dev/null +++ b/src/routes/start/+server.js @@ -0,0 +1,13 @@ +import { auth, get } from "$lib/utils"; +import { redirect } from "@sveltejs/kit"; + +export async function GET({ cookies }) { + let token = cookies.get("token"); + let user; + if (token) { + user = await get("/me", auth(cookies)); + throw redirect(307, `/${user.username}`); + } + + throw redirect(307, "/"); +} diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest index f1cdeec1..1f716600 100644 --- a/static/manifest.webmanifest +++ b/static/manifest.webmanifest @@ -3,7 +3,7 @@ "background_color": "#000", "display": "fullscreen", "scope": "/", - "start_url": "/", + "start_url": "/start", "name": "Coinos", "description": "Bitcoin web wallet", "short_name": "Coinos", -- cgit v1.2.3