gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit64a2bc2764a2bc27Document CS23b style formatting proof and review statusmre64a2bc27/components/file-upload/demo.hl

730 B

  1. // demo.hl — `/file-upload`: the upload on a page. WHERE THE FILE GOES IS THE APP'S DECISION: the component sends the file through
  2. // `emit server saveFile(file)`; this site keeps it for one day (lib/uploads.hl storeUpload).
  3. parent '../main.hl'
  4. import FileUpload from './file-upload.hl'
  5. import { storeUpload } from '../../lib/uploads.hl'
  6. __title = 'File upload · Hybriel components'
  7. View {
  8. fileUploadDemo {
  9. h1 { "File upload" }
  10. p { class = "muted" "Drop a file on the box, or choose one: its name, size and progress show, then it is listed as uploaded." }
  11. FileUpload { }
  12. p { a { id = "readme" href = "/file-upload/README.md" "README (how to use it)" } }
  13. }
  14. }
  15. on server saveFile(file) { return storeUpload(file) }

Branches

Latest commits

  • 64a2bc27Document CS23b style formatting proof and review statusmre
  • a72b57cficons: nest Style rules in the language's formmre
  • 927616e2pagination: nest Style rules in the language's formmre
  • aab8ad29code-editor: nest Style rules in the language's formmre
  • ba30727afile-upload: nest Style rules in the language's formmre
  • 42fefa4emodal: nest Style rules in the language's formmre
  • 6fd953e3range-picker: nest Style rules in the language's formmre
  • f661951ddate-picker: nest Style rules in the language's formmre
  • 363577e6media-player: nest Style rules in the language's formmre
  • 0b3fd8c9comments: nest Style rules in the language's formmre
  • 67e043c8plugins/web/README.md from hybriel cb9e480dmre
  • 519b56e9styles.hl: Style in the language's form (nested like the View, one declaration per line, bare @media)mre
  • 29f63d01md-editor: Style in the language's form (nested like the View, one declaration per line, bare @media)mre
  • 869f49c7files-upload: Style in the language's form (nested like the View, one declaration per line, bare @media)mre
  • f60dab20month-view: Style in the language's form (nested like the View, one declaration per line, bare @media)mre
  • 5b3c349aRe-vendor to Hybriel set day35 (cb9e480d): plugins core and web sources, README vendoring notemre
  • 3449b117components: a startup error prints its message before exit 1 (hybriel#247)mre
  • 59704ce1Merge branch 'n5b-pipes'mre
  • 23b9164aMdEditor: a clipboard whose text is only the names or file:// paths of its files (a file manager copy) is about the files, as before; any other text wins (tickets#49); gate casesmre
  • b0f1ec28MdEditor: a clipboard with text always pastes the text, also when a picture is on it too (a spreadsheet or office app), files on or off; a picture alone still goes to the files; real Ctrl+V gate tests/md-paste-files.mjs (tickets#49)mre