gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit85b5654185b56541layouts mission 002 3/3: same-output tests, letcount, shots ports, docs, reportmre85b56541/lib/site.hl

2.8 KB

  1. // lib/site.hl — the showcase site's own lists: the main menu (header + phone sidebar), the sidebar's sections, the
  2. // accent colours the switcher offers. Plain data, read by components/site-*.hl.
  3. static siteName = 'WorldAPI layouts'
  4. static menu = [
  5. { label = 'Elements' href = '/elements' }
  6. { label = 'Components' href = '/components' }
  7. { label = 'Shells' href = '/shells' }
  8. { label = 'Docs' href = '/docs' }
  9. ]
  10. static componentPages = [
  11. { label = 'Month view' href = '/components/month-view' about = 'A month to page through; today is marked.' }
  12. { label = 'Date picker' href = '/components/date-picker' about = 'A date field with a month popup.' }
  13. { label = 'Date range picker' href = '/components/range-picker' about = 'One field for a period.' }
  14. { label = 'Pagination' href = '/components/pagination' about = 'Previous 1 … 44 45 46 … 89 Next.' }
  15. { label = 'Markdown editor' href = '/components/md-editor' about = 'Visual Markdown, the value stays Markdown.' }
  16. { label = 'Code editor' href = '/components/code-editor' about = 'Coloured code with line numbers.' }
  17. { label = 'File upload' href = '/components/file-upload' about = 'Drop or choose one file.' }
  18. { label = 'Modal' href = '/components/modal' about = 'A window over the dimmed page.' }
  19. ]
  20. static shellPages = [
  21. { label = 'Content-first' href = '/shells/content-first' about = 'A regular app: sidebar + main content; the phone shows the content, the sidebar slides in.' }
  22. { label = 'List-first' href = '/shells/list-first' about = 'Notes: the phone shows the list first, an item replaces it; desktop shows both.' }
  23. { label = 'Three-pane' href = '/shells/three-pane' about = 'Mail: folders, the list, the opened item with its actions; desktop shows all three.' }
  24. ]
  25. static docPages = [
  26. { label = 'Using the theme in an app' href = '/docs/using-the-theme.md' }
  27. { label = 'Theme: tokens and elements' href = '/docs/layouts/theme.md' }
  28. { label = 'Header' href = '/docs/layouts/app-header.md' }
  29. { label = 'Main menu' href = '/docs/layouts/main-menu.md' }
  30. { label = 'User menu' href = '/docs/layouts/user-menu.md' }
  31. { label = 'Sidebar' href = '/docs/layouts/app-sidebar.md' }
  32. { label = 'Content-first' href = '/docs/layouts/content-first.md' }
  33. { label = 'List-first' href = '/docs/layouts/list-first.md' }
  34. { label = 'Three-pane' href = '/docs/layouts/three-pane.md' }
  35. { label = 'Design rules' href = '/docs/design-rules.md' }
  36. { label = 'Shell ground types' href = '/docs/shells.md' }
  37. { label = 'Conventions' href = '/docs/conventions.md' }
  38. ]
  39. // the palette colours an app may take as its accent (per app: tickets purple, ident orange, tracker green-dark, gitoria
  40. // blue-dark, notes yellow, calendar blue-light, antcolony green-light)
  41. static accents = [ 'blue-dark' 'green-dark' 'yellow' 'orange' 'red' 'purple' 'blue-light' 'green-light' ]

Branches

Latest commits

  • 85b56541layouts mission 002 3/3: same-output tests, letcount, shots ports, docs, reportmre
  • 0f325d3blayouts mission 002 2/3: code rules — styles.hl -> components/styles.hl, the one never-reassigned let dropped; gate 73/0, same outputmre
  • a3e74c8alayouts mission 002 1/3: components re-copied byte-verbatim from components.hybriel 3f93d71 by tools/sync-components.sh (+ --check, components/SOURCE); gate 73/0, check-theme 0mre
  • 80ce6ba9report 001 (mission 075)mre
  • 5c6e338flayouts.worldapi.org in Hybriel: WorldAPI theme (tokens, borderless elements, themed components.hybriel components), shells (header, main/user menu, sidebar overlay, content-first, list-first, three-pane), showcase, check-theme helper; gate 73/0 (mission 075)mre