layouts
All repositories: gitoria
1.1 KB
// components/showcase/file-upload.hl — `/components/file-upload`: the one-file upload, themed. Its drop zone keeps the dashed// border (a drop zone is where a border means something). The showcase keeps no files: saveFile answers without storing.parent '../main.hl'import SiteHeader from '../site-header.hl'import SiteSidebar from '../site-sidebar.hl'import ContentFirst from '../../theme/shell/content-first.hl'import TheFileUpload from '../file-upload/file-upload.hl'__title = 'File upload · WorldAPI layouts'View {showFileUpload {SiteHeader { current = "/components/file-upload" }ContentFirst {SiteSidebar { current = "/components/file-upload" }main {h1 { "File upload" }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.)" }TheFileUpload { }p { class = "readme links" a { href = "/read/readme-file-upload" "README of the component (how an app uses it)" } }}}}}// a showcase keeps nothing: the upload is answered as done, the bytes are droppedon server saveFile(file) {return { name = file.name size = file.size }}
Branches
Latest commits
- 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
- 2752ceddMerge branch 'hl-standard-4' into mainAtlas
- ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
- 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
- 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
- ab54a39dMerge branch 'hl-standard' into mainAtlas
- 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
- 220c8fa4Merge branch 'readme-audit' into mainAtlas
- b78fb85a|||PR README matches the codemre
- 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
- 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
- ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
- 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
- b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
- ebd00b6cNest caller slot styles in three-panemre
- 009991efNest caller slot styles in list-firstmre
- 494d75d4Nest caller slot styles in app-sidebarmre
- e5571680Align all plugin sources with Hybriel day38bmre
- 5d204c46Re-vendor layouts to Hybriel set day38bmre