| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | cli: pager for reading output (-P/--pager, --no-pager, config pager, $PAGER ↵ | Lukasz Kasprzak | 2026-07-24 | 3 | -1/+38 |
| | | | | | fallback); v0.3.0 | ||||
| * | tradlit: offline caching + read; update pre-caches traditional; --clean ↵ | Lukasz Kasprzak | 2026-07-24 | 1 | -1/+1 |
| | | | | | prunes it; v0.2.0 | ||||
| * | cli-ui,web: real flag parsing for lectio-ui/lectio-web (accept useful flags, ↵ | Lukasz Kasprzak | 2026-07-23 | 1 | -0/+24 |
| | | | | | reject unknown, -h/-v) | ||||
| * | i18n: ui_language config (default en) for UI chrome across cli/tui/web; ↵ | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+58 |
| | | | | | version labels localised | ||||
| * | config,web: web_versions — which version checkboxes start toggled on in ↵ | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+11 |
| | | | | | lectio-web | ||||
| * | config: parts.new preset to false (uncomment=hide); drop dead ↵ | Lukasz Kasprzak | 2026-07-23 | 1 | -21/+12 |
| | | | | | parts.traditional; clarify web_theme/web_display are the web defaults | ||||
| * | web: remove deus_vult theme; add global monospace toggle (web_mono config + ↵ | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+6 |
| | | | | | top-bar 'mono') | ||||
| * | web: default lectio-web to port 1099 with free-port fallback | Lukasz Kasprzak | 2026-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | chooseListener(port) factors the listen logic out of Run: port==0 now tries defaultWebPort (1099) first and only falls back to an OS-picked free port if 1099 is taken; a non-zero port is still bound exactly, surfacing its bind error as before. config.Default() keeps WebPort: 0 unchanged (0 still means "auto"). Adds TestChooseListener, robust to sandboxes that can't bind 1099 or :0 (t.Skip instead of failing). Also folds the ?ref= whitespace trim into renderLookup itself so GET / and GET /lookup treat a whitespace-only ref identically (previously only lookupHandler trimmed it). | ||||
| * | web: horizontal/vertical/interlinear display modes + web_display config | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+65 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a display-layout option to lectio-web alongside the existing colour themes: - config: WebDisplay field (toml web_display), default "horizontal", normalized on load via the new exported config.NormalizeDisplay (unknown -> "horizontal", same lenient style as the other web_* fields). - render: extracts the citation/ToEnglishRef resolution shared by GatherVersion into an unexported resolveRef helper (GatherVersion's signature/behavior unchanged) and adds GatherVerses(version, sec, lectionary) returning raw bible.Verse structs plus a versified flag, for column/interlinear alignment. - web/render: RenderReadings gains a display parameter. "horizontal" is the original stacked layout, byte-for-byte the same code path as before. "vertical" reuses the same per-version column data in a .display-vertical/.vcol grid (the CLI compare view, browser-side). "interlinear" maps versions through render.OfflineVersions' pl->wuj substitution (pl has no verse numbers), gathers GatherVerses per version, and interleaves them by chapter:verse into .ilverse/.illine blocks (ordered union of keys, first versified version's order first). - server: adds a display <select> to the top bar wired into the existing #controls HTMX form; a resolveQuery(cfg, r) helper replaces the duplicated date/lectionary/all/versions(+now display) resolution in indexHandler and readingsHandler. - fold-in from the B2 review: indexHandler now populates indexData.Lookup via a shared renderLookup(ref, versions) helper (also used by lookupHandler), so a bookmarked "/?ref=...&v=..." link shows its lookup result instead of an empty pane. - base.css: layout-only rules for the two new modes (no colours; themes stay colour-only). go test ./..., go vet ./..., gofmt clean; go build ./cmd/lectio-web ok. | ||||
| * | config: add web_theme/web_port fields | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+31 |
| | | | | | | | | | | | | | Add WebTheme (default: "transfiguration") and WebPort (default: 0) to Config for the upcoming lectio-web binary. WebTheme resolves theme names (built-in or user files) later in internal/web; WebPort 0 means auto-pick a free port. - Updated Config struct with new fields - Set defaults in Default() - Updated embedded seed config.toml with documentation - Added TDD tests: TestWebDefaults and TestWebLoadsFromSeed - Existing tests (TestLoadSeeds, TestLoadOverride) still pass | ||||
| * | config: TOML load + seed | Lukasz Kasprzak | 2026-07-23 | 3 | -0/+246 |
