components
All repositories: gitoria
3.6 KB
// project.hl — components.hybriel.worldapi.org: THE SITE. Hybriel components developed standalone: the home// lists them, each has a demo page (`/<component>`) and its README (`/<component>/README.md`). No login, no data.// Apps vendor a component by copying its folder (README of the component says which files).import WebFramework from 'hl:web'import { env } from 'hl:proc'import Styles from './styles.hl'import Index from './components/index.hl'import MonthViewDemo from './components/month-view/demo.hl'import DatePickerDemo from './components/date-picker/demo.hl'import RangePickerDemo from './components/range-picker/demo.hl'import PaginationDemo from './components/pagination/demo.hl'import MdEditorDemo from './components/md-editor/demo.hl'import CodeEditorDemo from './components/code-editor/demo.hl'import FileUploadDemo from './components/file-upload/demo.hl'import ModalDemo from './components/modal/demo.hl'static siteName = "Hybriel components"appTitle = siteNamestyles = Styles// the component's README is plain Markdown, served as it isroutes = [{ pattern = "/favicon.ico" direct = "" }{ pattern = "/" component = Index }{ pattern = "/month-view" component = MonthViewDemo }{ pattern = "/month-view/README.md" file = "./components/month-view/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/date-picker" component = DatePickerDemo }{ pattern = "/date-picker/README.md" file = "./components/date-picker/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/range-picker" component = RangePickerDemo }{ pattern = "/range-picker/README.md" file = "./components/range-picker/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/md-editor" component = MdEditorDemo }{ pattern = "/md-editor/README.md" file = "./components/md-editor/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/md-editor/files/*" directory = "./storage/md-files" headers = { 'X-Content-Type-Options' = 'nosniff' 'Content-Security-Policy' = "sandbox" } }{ pattern = "/code-editor" component = CodeEditorDemo }{ pattern = "/code-editor/README.md" file = "./components/code-editor/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/file-upload" component = FileUploadDemo }{ pattern = "/file-upload/README.md" file = "./components/file-upload/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/modal" component = ModalDemo }{ pattern = "/modal/README.md" file = "./components/modal/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }{ pattern = "/pagination" component = PaginationDemo }{ pattern = "/pagination/README.md" file = "./components/pagination/README.md" headers = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' } }]sessionDir = env('COMPONENTS_SESSIONS') != null ? env('COMPONENTS_SESSIONS') : nullport = env('COMPONENTS_PORT') != null ? toNumber(env('COMPONENTS_PORT')) : 8380// HL_HOST = the interface hl:web binds: 127.0.0.1 on Byrodin behind nginx; unset = 0.0.0.0 (dev on Loreana).// COMPONENTS_WATCH=0 = no dev watcher.watching = env('COMPONENTS_WATCH') != '0'sessionCookie = 'componentssid'server = new WebFramework(routes = routes, styles = styles, minify = true, port = port, watchMode = watching, sessionCookie = sessionCookie, uploadMax = 5242880)on Error(e) { console.log('error absorbed: ' + e.message) }
Branches
- mainmain branch
Latest commits
- 317bd09fdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- becbd59bcomponents#13: modal dialog (<dialog> based, focus wrap, backdrop/Esc/x close with reason, scroll lock, footer buttons)mre
- 367dd19adeploy.sh: never send .git or .gitignore to Byrodinmre
- 4b4dabe5State of 2026-09-27, before the move to gitoriamre