Sfoglia il codice sorgente

fix util spinner and app urls

Pi 1 mese fa
parent
commit
bc6df424ca

+ 2 - 2
rest/static/clip/manifest.json

@@ -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",

+ 0 - 3
util-sqlpage/clip/save.sql

@@ -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;

+ 0 - 3
util-sqlpage/goto/save.sql

@@ -6,7 +6,4 @@ UPDATE SET
   qr = excluded.qr,
   preview = excluded.preview
 WHERE excluded.created > goto.created;
-SELECT 'loader-stop' AS component
-WHERE :spinner
-;
 SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/link.sql') AS properties;

+ 3 - 0
util-sqlpage/sqlpage/Link.sql

@@ -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>

+ 0 - 3
util-sqlpage/sqlpage/validate.sql

@@ -38,9 +38,6 @@ SET ":inner" = CASE COALESCE(:content,'')
   ELSE :tool||'/form.sql'
 END;
 
-SELECT 'loader-stop' AS component
-WHERE :spinner;
-
 SET ":icon" = 'error-404';
 SET ":status" = '404';
 SET ":title" = :status||' - Not found';

+ 0 - 3
util-sqlpage/upload/save.sql

@@ -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;
 
-SELECT 'loader-stop' AS component
-WHERE :spinner
-;
 SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/link.sql') AS properties;