theme.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. SELECT 'shell' AS component
  2. , 'dark' AS theme
  3. , :title AS title
  4. , :link AS link
  5. , :image AS image
  6. , :favicon AS favicon
  7. , :manifest AS manifest
  8. , 'https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css' AS css
  9. , 'https://shandan.one/css/'||:tool||'.css' AS css
  10. , json('{
  11. "title": "Home", "link": "/", "icon": "home"
  12. }') AS menu_item
  13. , json(CASE :tool
  14. WHEN 'clip' THEN NULL
  15. ELSE '{
  16. "link": "/clip",
  17. "title": "Clip and Paste",
  18. "icon": "clipboard"
  19. }'
  20. END) AS menu_item
  21. , json(CASE :tool
  22. WHEN 'goto' THEN NULL
  23. ELSE '{
  24. "link": "/goto",
  25. "title": "GotTo Tiny URL",
  26. "icon": "link"
  27. }'
  28. END) AS menu_item
  29. , json(CASE :tool
  30. WHEN 'upload' THEN NULL
  31. ELSE '{
  32. "link": "/upload",
  33. "title": "Share File",
  34. "icon": "cloud-share"
  35. }'
  36. END) AS menu_item
  37. , json(CASE :tool
  38. WHEN 'code' THEN NULL
  39. ELSE '{
  40. "link": "/code",
  41. "title": "Vouchers",
  42. "icon": "barcode"
  43. }'
  44. END) AS menu_item
  45. ;
  46. SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/Style.sql') AS properties;