notes
All repositories: gitoria
2.2 KB
// icons.hl — THE ICONS, one source for every component and app: `Icon { name = "link" }` is an inline SVG (24 x 24 box, drawn with// stroke = currentColor, so it takes the colour of the text around it; aria-hidden — the button or link that holds it carries the// label and title). A component that needs icons imports this file by path (`import Icon from '../icons/icons.hl'`); Hybriel// includes an imported module once per app however many components import it (mission F4: measured, reports/F4-icons.md).// Names: bold italic code link heading ul ol block undo redo file close. An unknown name draws an empty box. A new icon is one more// entry in `shapes` (a single path `d`; circles and rectangles written as arcs).// Size: 1.25em square by default; the host sizes it with `icon-svg svg` / its own rule, or `size = "1.5em"`.String name = ''String size = '1.25em'Hybrid shapes = {bold = 'M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z'italic = 'M19 4h-9M14 20H5M15 4L9 20'code = 'M8 7l-5 5 5 5M16 7l5 5-5 5'link = 'M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'heading = 'M6 4v16M18 4v16M6 12h12'ul = 'M9 6h11M9 12h11M9 18h11M3.3 6a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 18a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0'ol = 'M10 6h10M10 12h10M10 18h10M4 4.5h1.5V9M3.5 9h3M3.5 14.5c.5-.8 2.8-.9 2.8.6 0 1.1-2.8 2.2-2.8 3.4h3'block = 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM8 10l-2 2 2 2M16 10l2 2-2 2'undo = 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3'redo = 'M15 14l5-5-5-5M20 9H10a6 6 0 0 0 0 12h3'close = 'M6 6l12 12M18 6L6 18'file = 'M21 12.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.7 3.7 0 0 1 5.2 5.2l-9 9a1.8 1.8 0 0 1-2.6-2.6l8.2-8.2'}String shape = shapes[name] == null ? '' : shapes[name]Style {'icon-svg' { display = 'inline-flex' flex = 'none' lineHeight = '0' pointerEvents = 'none' }'icon-svg svg' { fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }}View {iconSvg {svg { viewBox = "0 0 24 24" width = size height = size 'aria-hidden' = "true" focusable = "false"path { d = shape }}}}
Branches
Latest commits
- ba1e73f8notes: a sent edit is done once the server's version is not older, so a second writer's text shows in the first tab; gate: two writers both waysmre
- c69ef9ebsync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
- 2eb783f5sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
- 4dd46dadsync-components: copy icons/icons.hl + README (F4); testsmre
- c92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmre
- 0516b4ccmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
- 38cc11ecmd-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
- 3e7e79f5reports/H1-hydrate.mdmre
- d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mre
- 1f3198b6tests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
- 39cf9fdfre-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
- db07aa84tests: short-id-switch ports from env (NOTES_SWITCH_IDENT_PORT/_PORT), defaults unchangedmre
- ef9f9feere-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
- 5485467cdocker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 86ea4a85deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- edeab20fnotes mission 015: mission, report, LOG, STATUSmre
- 542a0383notes mission 015: e2e-chrome E2E_HOST (own cookie jar in the shared Chrome)mre
- 8b30f510notes mission 015: main-menu from layouts 0bcc629, current = true kept (route marks only /), server-HTML marker checksmre
- 84b574c4notes mission 015: re-vendor plugins from hybriel f9614007 (incl. web, #117)mre
- 447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre