clip.sql 598 B

123456789101112131415161718192021
  1. SELECT 'shell' AS component
  2. , 'dark' AS theme
  3. , 'Clip' AS title
  4. , 'https://shandan.one/static/clip/clip-favicon_square.svg' AS image
  5. , 'https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css' AS css
  6. ;
  7. SET color = '#4f8f4f';
  8. SET tabler_color = 'green';
  9. SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/Style.sql') AS properties;
  10. SET tool = 'clip';
  11. SET hash = CASE $hash = ''
  12. WHEN TRUE THEN NULL
  13. ELSE $hash
  14. END;
  15. SET inner = CASE $hash IS NULL
  16. WHEN TRUE THEN 'sqlpage/Link.sql'
  17. ELSE 'sqlpage/link.sql'
  18. END;
  19. SELECT 'dynamic' AS component, sqlpage.run_sql($inner) AS properties;