|
@@ -1,3 +1,19 @@
|
|
|
-SET ":inner" = 'goto/Index.sql';
|
|
|
-SELECT 'dynamic' AS component, sqlpage.run_sql('goto/entry.sql') AS properties;
|
|
|
+SET ":title" = 'GoTo';
|
|
|
+SET ":tool" = 'goto';
|
|
|
+SET ":hash" = COALESCE($hash, '');
|
|
|
+SET ":hash" = sqlpage.url_encode(:hash);
|
|
|
+SET ":go" = COALESCE($go, '');
|
|
|
+SET ":color" = '#dc4e41';
|
|
|
+SET ":tabler_color" = 'google';
|
|
|
+SET ":image" = '/static/goto/chain-link2fr-3-2.svg';
|
|
|
+SET ":favicon" = :image;
|
|
|
+SET ":manifest" = '/static/goto/manifest.json';
|
|
|
+SET ":inner" = (CASE :inner
|
|
|
+ WHEN 'sqlpage/Open.sql' THEN :inner
|
|
|
+ ELSE 'goto/Index.sql'
|
|
|
+END);
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql('goto/redirect.sql') AS properties
|
|
|
+WHERE (:go = 'true' AND :hash <> '');
|
|
|
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/theme.sql') AS properties;
|
|
|
+SELECT 'dynamic' AS component, sqlpage.run_sql(:inner) AS properties;
|