gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit635234df635234dfcomponents re-synced to components.hybriel 5a98d77 (#15 black/white base look); gate 73/0, check-theme 0, screenshots unchangedmre635234df/components/showcase/file-upload.hl

1.1 KB

  1. // components/showcase/file-upload.hl — `/components/file-upload`: the one-file upload, themed. Its drop zone keeps the dashed
  2. // border (a drop zone is where a border means something). The showcase keeps no files: saveFile answers without storing.
  3. parent '../main.hl'
  4. import SiteHeader from '../site-header.hl'
  5. import SiteSidebar from '../site-sidebar.hl'
  6. import ContentFirst from '../../theme/shell/content-first.hl'
  7. import TheFileUpload from '../file-upload/file-upload.hl'
  8. __title = 'File upload · WorldAPI layouts'
  9. View {
  10. showFileUpload {
  11. SiteHeader { current = "/components/file-upload" }
  12. ContentFirst {
  13. SiteSidebar { current = "/components/file-upload" }
  14. main {
  15. h1 { "File upload" }
  16. p { class = "muted" "Drop or choose one file: name, size and progress show. The dashed border stays — it says where to drop. (Nothing is stored here.)" }
  17. TheFileUpload { }
  18. p { class = "readme" a { href = "/components/file-upload/README.md" "README of the component (how an app uses it)" } }
  19. }
  20. }
  21. }
  22. }
  23. // a showcase keeps nothing: the upload is answered as done, the bytes are dropped
  24. on server saveFile(file) {
  25. return { name = file.name size = file.size }
  26. }

Branches

Latest commits

  • 635234dfcomponents re-synced to components.hybriel 5a98d77 (#15 black/white base look); gate 73/0, check-theme 0, screenshots unchangedmre
  • 876b2064docs: workaround note for hybriel#130 (slot marker mid-line)mre
  • 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