Selaa lähdekoodia

make ready for site_prefix

Daniel Sheffield 8 kuukautta sitten
vanhempi
sitoutus
961eb687b8

+ 1 - 1
sqlpage/sqlpage/internal/nav.sql

@@ -3,7 +3,7 @@ SELECT 'tab' AS component, TRUE AS center;
 SELECT title
 , lower(title) AS id
 , $title = title AS active
-, '/grocery/'||lower(title)||'.sql' AS link
+, lower(title)||'.sql' AS link
 FROM (
   SELECT name FROM sqlpage_pages
 ) AS tabs(title)

+ 2 - 2
sqlpage/sqlpage/internal/theme.sql

@@ -2,6 +2,6 @@ SELECT 'shell' AS component
 , 'dark' AS theme
 , 'fluid' AS layout
 , $title AS title
-, '/grocery/'||lower($title)||'.sql' AS link
-, '/grocery/favicon.svg' AS image
+, lower($title)||'.sql' AS link
+, '../favicon.svg' AS image
 ;

+ 3 - 3
sqlpage/sqlpage/pages/Trend.sql

@@ -3,18 +3,18 @@ SELECT 'card' AS component
 , 2 AS columns
 ;
 
-SELECT '/grocery/trend/Quantity.sql?unit='||$unit_mass||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
+SELECT 'trend/Quantity.sql?unit='||$unit_mass||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_mass LIMIT 1)
 ;
 
-SELECT '/grocery/trend/Quantity.sql?unit='||$unit_volume||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
+SELECT 'trend/Quantity.sql?unit='||$unit_volume||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_volume LIMIT 1)
 ;
 
 SET unit_count_chart = (SELECT v#>>'{}' FROM json_array_elements($unit_count::json) j(v) LIMIT 1);
-SELECT '/grocery/trend/Quantity.sql?unit='||$unit_count_chart||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
+SELECT 'trend/Quantity.sql?unit='||$unit_count_chart||'&log_scale='||$log_scale||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_count_chart LIMIT 1)
 AND (SELECT count(DISTINCT v#>>'{}') FROM json_array_elements($unit_count::json) j(v)) == 1

+ 4 - 4
sqlpage/sqlpage/pages/Volume.sql

@@ -2,22 +2,22 @@ SELECT 'card' AS component
 , 'Volume by Expendature and Quantity' AS title
 , 2 AS columns
 ;
-SELECT '/grocery/volume/Expense.sql?_sqlpage_embed' AS embed
+SELECT 'volume/Expense.sql?_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn LIMIT 1);
 
-SELECT '/grocery/volume/Quantity.sql?unit='||$unit_mass||'&_sqlpage_embed' AS embed
+SELECT 'volume/Quantity.sql?unit='||$unit_mass||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_mass LIMIT 1)
 ;
 
-SELECT '/grocery/volume/Quantity.sql?unit='||$unit_volume||'&_sqlpage_embed' AS embed
+SELECT 'volume/Quantity.sql?unit='||$unit_volume||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_volume LIMIT 1)
 ;
 
 SET unit_count_chart = (SELECT v#>>'{}' FROM json_array_elements($unit_count::json) j(v) LIMIT 1);
-SELECT '/grocery/volume/Quantity.sql?unit='||$unit_count_chart||'&_sqlpage_embed' AS embed
+SELECT 'volume/Quantity.sql?unit='||$unit_count_chart||'&_sqlpage_embed' AS embed
 , '' AS footer
 WHERE EXISTS (SELECT 1 FROM sqlpage_txn WHERE unit = $unit_count_chart LIMIT 1)
 AND (SELECT count(DISTINCT v#>>'{}') FROM json_array_elements($unit_count::json) j(v)) == 1