@@ -3,7 +3,7 @@
"name": "Paste & Clip",
"short_name": "Clip",
"description": "Save snippets of text to a virtual clipboard to share via a short URL",
- "start_url": "/clip",
+ "start_url": "/clip/",
"shortcuts": [
{
"name": "Open",
@@ -16,7 +16,7 @@
"icons": [{ "src": "/static/clip/96.png", "sizes": "96x96" }]
}
],
- "scope": "/clip",
+ "scope": "/clip/",
"theme_color": "#4f8f4f",
"background_color": "black",
"display": "standalone",
@@ -5,7 +5,4 @@ UPDATE SET
created = excluded.created,
qr = excluded.qr
WHERE excluded.created > clip.created;
-SELECT 'loader-stop' AS component
-WHERE :spinner
-;
SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/link.sql') AS properties;
@@ -6,7 +6,4 @@ UPDATE SET
qr = excluded.qr,
preview = excluded.preview
WHERE excluded.created > goto.created;
@@ -1,3 +1,6 @@
+SELECT 'loader-stop' AS component
+WHERE :spinner;
+
SET ":link" = COALESCE(:link, 'https://shandan.one/'||:tool);
SELECT 'text' AS component
, '<div class="pure-g" sty>
@@ -38,9 +38,6 @@ SET ":inner" = CASE COALESCE(:content,'')
ELSE :tool||'/form.sql'
END;
-WHERE :spinner;
-
SET ":icon" = 'error-404';
SET ":status" = '404';
SET ":title" = :status||' - Not found';
@@ -17,7 +17,4 @@ DELETE FROM upload_temp WHERE rowid = :rowid;
--SELECT 'redirect' AS component, '/upload?hash='||:hash AS link
--WHERE :rowid IS NOT NULL;