layouts
All repositories: gitoria
6.6 KB
// project.hl — layouts.worldapi.org: THE MAP. The WorldAPI theme (theme/) and the showcase site that shows it: every// themed element and component, the three app shells as mock apps, the docs. No login, no data.//// Index (which file handles what):// theme/theme.hl the theme: tokens, plain elements, the components' themed rules (apps copy theme/)// theme/shell/*.hl header, main menu, user menu, sidebar, content-first, list-first, three-pane// theme/check-theme.mjs the gate helper apps run: hard-coded colours, decorative borders// components/styles.hl the site's styles file (inherits the theme)// components/main.hl the site's body shell (+ the accent the switcher kept)// components/site-*.hl the showcase's header and sidebar; accent-switcher.hl the switcher// components/home.hl, elements.hl, search.hl, pages/*.hl, list-pages.hl the showcase pages// components/showcase/*.hl one page per themed component; components/<name>/ = verbatim copies of components.hybriel// components/demo/*.hl the shell demos (mock tracker, notes, mail); lib/mock.hl their data, lib/site.hl the menus// components/settings.hl /settings: the header's Settings (the accent switcher), in the app shell// components/read.hl, lib/read.hl /read/:doc: docs and component READMEs read INSIDE the app shell (the raw .md stay routable for tools, nothing links to them)// lib/search.hl the header's search (GET /search?q= → /search/<words>)// docs/ the docs, served as Markdown under /docs/import WebFramework from 'hl:web'import { env } from 'hl:proc'import Styles from './components/styles.hl'import Home from './components/home.hl'import Elements from './components/elements.hl'import Search from './components/search.hl'import ReadPage from './components/read.hl'import SettingsPage from './components/settings.hl'import ComponentsPage from './components/pages/components.hl'import ShellsPage from './components/pages/shells.hl'import DocsPage from './components/pages/docs.hl'import ShowMonthView from './components/showcase/month-view.hl'import ShowDatePicker from './components/showcase/date-picker.hl'import ShowRangePicker from './components/showcase/range-picker.hl'import ShowPagination from './components/showcase/pagination.hl'import ShowMdEditor from './components/showcase/md-editor.hl'import ShowCodeEditor from './components/showcase/code-editor.hl'import ShowFileUpload from './components/showcase/file-upload.hl'import ShowModal from './components/showcase/modal.hl'import ShowComments from './components/showcase/comments.hl'import ShowFilesUpload from './components/showcase/files-upload.hl'import ShowFilesUploadPick from './components/showcase/files-upload-pick.hl'import ContentFirstDemo from './components/demo/tracker-demo.hl'import ListFirstDemo from './components/demo/notes-demo.hl'import ThreePaneDemo from './components/demo/mail-demo.hl'import { siteName } from './lib/site.hl'import { searchRedirect } from './lib/search.hl'appTitle = siteNameappDescription = 'The WorldAPI theme for Hybriel apps: tokens, themed components, app shells.'styles = Stylesstatic markdown = { 'Content-Type' = 'text/markdown; charset=utf-8' 'Cache-Control' = 'no-cache' }routes = [{ pattern = "/" component = Home }{ pattern = "/elements" component = Elements }{ pattern = "/settings" component = SettingsPage }{ pattern = "/read/:doc" component = ReadPage }{ pattern = "/search" function = (route, req) => { return searchRedirect(req) } }{ pattern = "/search/:q" component = Search }{ pattern = "/components" component = ComponentsPage }{ pattern = "/components/month-view" component = ShowMonthView }{ pattern = "/components/date-picker" component = ShowDatePicker }{ pattern = "/components/range-picker" component = ShowRangePicker }{ pattern = "/components/pagination" component = ShowPagination }{ pattern = "/components/md-editor" component = ShowMdEditor }{ pattern = "/components/code-editor" component = ShowCodeEditor }{ pattern = "/components/file-upload" component = ShowFileUpload }{ pattern = "/components/modal" component = ShowModal }{ pattern = "/components/comments" component = ShowComments }{ pattern = "/components/files-upload" component = ShowFilesUpload }{ pattern = "/components/files-upload-pick" component = ShowFilesUploadPick }{ pattern = "/components/month-view/README.md" file = "./components/month-view/README.md" headers = markdown }{ pattern = "/components/date-picker/README.md" file = "./components/date-picker/README.md" headers = markdown }{ pattern = "/components/range-picker/README.md" file = "./components/range-picker/README.md" headers = markdown }{ pattern = "/components/pagination/README.md" file = "./components/pagination/README.md" headers = markdown }{ pattern = "/components/md-editor/README.md" file = "./components/md-editor/README.md" headers = markdown }{ pattern = "/components/code-editor/README.md" file = "./components/code-editor/README.md" headers = markdown }{ pattern = "/components/file-upload/README.md" file = "./components/file-upload/README.md" headers = markdown }{ pattern = "/components/modal/README.md" file = "./components/modal/README.md" headers = markdown }{ pattern = "/components/comments/README.md" file = "./components/comments/README.md" headers = markdown }{ pattern = "/components/files-upload/README.md" file = "./components/files-upload/README.md" headers = markdown }{ pattern = "/shells" component = ShellsPage }{ pattern = "/shells/content-first" component = ContentFirstDemo }{ pattern = "/shells/content-first/:kind" component = ContentFirstDemo }{ pattern = "/shells/list-first" component = ListFirstDemo }{ pattern = "/shells/list-first/:id" component = ListFirstDemo }{ pattern = "/shells/three-pane" component = ThreePaneDemo }{ pattern = "/shells/three-pane/:id" component = ThreePaneDemo }{ pattern = "/docs" component = DocsPage }{ pattern = "/docs/*" directory = "./docs" headers = markdown }{ pattern = "/theme/check-theme.mjs" file = "./theme/check-theme.mjs" headers = { 'Content-Type' = 'text/javascript; charset=utf-8' 'Cache-Control' = 'no-cache' } }]port = env('LAYOUTS_PORT') != null ? toNumber(env('LAYOUTS_PORT')) : 8760// HL_HOST = the interface hl:web binds: 127.0.0.1 on Byrodin behind nginx; unset = 0.0.0.0 (dev on Loreana).// LAYOUTS_WATCH=0 = no dev watcher. No sessions are kept (no login, no data).watching = env('LAYOUTS_WATCH') != '0'server = new WebFramework(routes = routes, styles = styles, minify = true, port = port, watchMode = watching, sessionDir = false, sessionCookie = 'layoutssid', uploadMax = 5242880)on Error(e) { console.log('error absorbed: ' + e.message) }
Branches
Latest commits
- 99db79f0re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- 30353f60tests: e2e-md-showcase Chrome range from LAYOUTS_GATE_CHROME_MD, default unchangedmre
- 16a7878cre-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- 6af559e8docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 5599cf56deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- 0bcc6294Mission 011: e2e-197, brief, report, LOGmre
- 137303c5MainMenu marks the current page from the route (hybriel#197, server-rendered); current prop/item.current stay as fallback; tracker demo drops current; gate: SSR marker; docsmre
- 9325b403Re-vendor Hybriel to master 7f13a82f (hl:web batch 2: #190 #193 #197 #194 named regions); plugins whole, bin/hybriel static build (git-ignored)mre
- b31dc74dusage: calendar (theme 76f99f6-era ContentFirst, user menu, ☰ menu) and tracker (theme 76f99f6, modal + pagination current, own current marker until hybriel#197) rowsmre
- 8a3d5d40Mission 010: brief, report, LOG, STATUSmre
- a56abf1fSync components to components.hybriel 3794c59 (MdEditor real-key fixes); showcase real-key check on the md-editor pagemre
- 76f99f64E2E in lisbeth's Chrome for the menu's current page (mission 009): tests/e2e-menu-current.mjs, reportmre
- 159b1d53MainMenu/Sidebar: current page marked beyond colour, count badge, item current flag; gate 300/0 (mission 009)mre
- 0573eed3usage: notes + tickets on MdEditor (md-editor.js retired), gitoria on theme dbe3de7, tracker theme oldermre
- 78478f6eSync showcase to components.hybriel 1442e58: pick-mode page, comments attach, md-editor rows/files off; gates 285/0mre
- dbe3de79Display bugs from a real Chrome walk (mission 007): Settings page and in-shell doc reader instead of raw .md links, closed phone search hidden whatever a page says, /elements form rules scoped, three-pane danger contrast; display audit gate (132 -> 244 checks), walk + Settings e2e toolsmre
- 1875a051Theme: 44 px tap targets mobile first (layoutTap), 16 px fields, desktop denser only in @media 60rem; 390 px tap audit + gate checks (mission 006)mre
- 3d4f8e19Sync showcase to components.hybriel 9db927d: comments and files-upload pages, pagination onPage, md-editor readonly, gate 99 checksmre
- 64d635acmission brief 005mre
- 0d0fef25paths: projects moved into /media/STORAGE/projects/WorldAPI/mre