Commit Graph

58 Commits

Author SHA1 Message Date
yves-biener 9559aa974d mod: remove stack reference of unnecessary intermediate Container 2026-01-17 22:51:50 +01:00
yves-biener 1f93e24a37 fix: free Document only if allocated otherwise treat as static
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m10s
2026-01-17 21:42:00 +01:00
yves-biener 0ec9839cc7 mod: bump zlog dependency 2026-01-17 21:41:43 +01:00
yves-biener 9ae9dcfce2 mod(nav): button automatically resizes as necessary 2026-01-17 21:39:51 +01:00
yves-biener db8485d88e lint: correct formatting
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 59s
2026-01-17 13:27:57 +01:00
yves-biener 8199a23566 ref: move Model manipulation logic in own Element *website*
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 47s
This way no `Element` that is only there for rendering requires
any internal state.
2026-01-17 13:25:26 +01:00
yves-biener 83d83c17fa mod: make Element's for rendering stateless
The elements derive their corresponding content to render from
the `Model` without any local state.
2026-01-17 13:11:26 +01:00
yves-biener 1b4c1bbab8 mod(ci): update release process to also include spell-checking 2026-01-17 12:42:09 +01:00
yves-biener 361623d0f1 doc: remove warning about required zig version
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 54s
2026-01-17 12:31:23 +01:00
yves-biener 6bf4c98d44 mod(ci): adapt to use zig latest release version
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m13s
2026-01-17 12:28:29 +01:00
yves-biener bfdaf82626 mod: bump zterm dependency with required code adaptations
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m16s
2026-01-17 12:26:36 +01:00
yves-biener b4836b8d2b mod: bump to version 0.0.4
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 55s
Release Zig Application / Release zig project (release) Successful in 1m36s
0.0.4
2025-11-08 12:54:20 +01:00
yves-biener 5ee2c6662e feat: invalid page for unavailable resources
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m46s
Accessing resources which are not available, the invalid page will be
rendered instead. The original attempt for access will be logged.
2025-11-08 12:50:25 +01:00
yves-biener 28afdc0ff9 mod: bump to version 0.0.3
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 55s
Release Zig Application / Release zig project (release) Successful in 1m35s
0.0.3
2025-11-05 22:12:27 +01:00
yves-biener b228c69ae5 mod: bump zterm dependency
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m7s
2025-11-05 22:10:48 +01:00
yves-biener 489d958ac5 mod: bump zterm dependency; respect scrollbar in calculated size requirement for content
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m19s
2025-11-05 18:47:59 +01:00
yves-biener f197416b43 feat: accept argument for path to open
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m14s
2025-11-02 21:34:11 +01:00
yves-biener c599bc55c7 mod: bump zterm dependency; show no background for content scrollbar 2025-11-02 21:33:30 +01:00
yves-biener c5d674ac5c mod: include timestamps for logging 2025-11-02 21:31:56 +01:00
yves-biener ba15f4e93f mod: bump zlog dependency
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m14s
2025-11-02 13:21:01 +01:00
yves-biener a877ac3e7d feat(content): routing to provided .blog paths
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m7s
This is a starting point to dynamically loading `markdown` files as blog
entries. With this change the *doc/about.md* and *doc/blog.md* files
are no longer builded into the executable and instead read from the
filesystem during runtime (along with the new test file *doc/test.md*).
2025-11-01 22:36:48 +01:00
yves-biener e4c3f69821 mod: remove dead code
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 53s
2025-11-01 17:43:03 +01:00
yves-biener 55861114dc feat(content): parse document preemble
Zig Project Action / Lint, Spell-check and test zig project (push) Has been cancelled
Show title stored in preemble of markdown file if available.
2025-11-01 17:41:33 +01:00
yves-biener 74bf941820 feat(content): scrollable contents; bump zterm dependency
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m23s
With functional increments in `zterm`'s `Scrollable` `Element`, an
implementation (such as `Content`) can provide a size hint for the
minimal required size to dynamically change its dimensions for the
scrollable `Container` in the `Scrollable` `Element`.
2025-11-01 14:44:05 +01:00
yves-biener 8ac6c16289 mod: bump zterm dependency; add zlog dependency
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m22s
`zlog` is used to log messages to the log file that is also used by
`serve` by default, making it a single source for all the log messages.
2025-11-01 00:18:44 +01:00
yves-biener 8602db4d43 mod: bump version to 0.0.2
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 54s
Release Zig Application / Release zig project (release) Successful in 1m18s
0.0.2
2025-10-30 16:31:56 +01:00
yves-biener 5acca12abf feat: rework header; add footer; padding for content
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m37s
Release Zig Application / Release zig project (release) Has been cancelled
2025-10-30 16:28:49 +01:00
yves-biener c07cfd5f3d add: MIT license; bump version to 0.0.1
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 57s
Release Zig Application / Release zig project (release) Successful in 1m9s
0.0.1
2025-10-29 16:34:47 +01:00
yves-biener bf0d068b4b feat: embedded content incl. rendering; simple layout with nav-bar
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m1s
2025-10-29 16:30:09 +01:00
yves-biener dd859dfaa1 doc: remove unnecessary contents 2025-10-29 16:29:35 +01:00
yves-biener 5227a33d0a mod: bump zig to master version; bump zterm dependency
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m0s
Release Zig Application / Release zig project (release) Successful in 1m27s
Use progress example for initial tui-website test application.
0.0.0
2025-10-28 19:57:10 +01:00
yves-biener dd6b381bbc bump to 0.14.dev
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 52s
2024-11-19 23:36:32 +01:00
yves-biener 31ff39f5cd build: check step
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 42s
2024-11-19 22:03:35 +01:00
yves-biener 4f3fa1e1b0 remove unused dependencies
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 43s
2024-11-16 18:36:10 +01:00
yves-biener 0bcdc72674 mod(zterm): update dependency and use alignment for top container's text widgets
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 49s
2024-11-16 18:23:41 +01:00
yves-biener 36a4e16535 mod: update zterm dependency and adjust layout
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 49s
2024-11-15 22:24:41 +01:00
yves-biener 9515def4fb Replace vaxis with zterm (#1)
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 32s
Vaxis sadly cannot be used for applications which want to serve their contents via ssh to the (remote) user.

Instead I wrote my own tui library [zterm](https://gitea.yves-biener.de/yves-biener/zterm), which this tui application now uses. This will serve two purposes:
1. implement the tui application and be servable through ssh (see [wish-serve](https://gitea.yves-biener.de/yves-biener/wish-serve))
2. serve as documentation and showcase of an example application for **zterm**

Reviewed-on: #1
2024-11-13 19:52:55 +01:00
yves-biener c62fc6fb43 WIP: transformations
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m38s
2024-11-01 20:46:27 +01:00
yves-biener aff062f144 mod(node2buffer): improve flow for list_items
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 29s
2024-10-27 19:28:32 +01:00
yves-biener 5d913f58e2 feat(node2buffer): support lists (not nested yet); fix block representation (remove unnecessary linebreak)
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m37s
2024-10-27 18:43:27 +01:00
yves-biener b91918e2e6 mod(node2buffer): adjust colors for blocks
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 30s
2024-10-19 16:51:11 +02:00
yves-biener 4b3ca918b5 mod(node2buffer): correct handling of code's and ``block``'s entries
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 33s
2024-10-19 16:40:33 +02:00
yves-biener a148e9e680 doc: remove cleared todo comment 2024-10-19 16:40:21 +02:00
yves-biener 002f4f4310 add(node2buffer): convert raw and code blocks with leading line numbers 2024-10-19 16:12:31 +02:00
yves-biener 03a4b571d3 mod: adjust layout and style of widgets and header links 2024-10-19 16:11:08 +02:00
yves-biener 49caf89287 mod(node2buffer): correctly display and link hyper links
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 31s
2024-10-17 16:54:38 +02:00
yves-biener d876936ff7 add(Header): social links: github and mail links 2024-10-17 16:34:37 +02:00
yves-biener b1257fd490 mod: simplify minor implementation details
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 30s
Add scroll length detection, and link transformation with highlighting.
2024-10-15 16:04:06 +02:00
yves-biener a3d0b7af9a mod(node2buffer): add styling to parsed contents
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 29s
2024-10-13 16:39:51 +02:00
yves-biener a01619911d add(zmd): parse markdown file contents and display the parsed contents
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 44s
Not everything can be parsed and displayed correctly yet, however this
will the default file format to use for adding page contents (i.e.
normal pages, blog entries, etc.)
2024-10-13 12:57:44 +02:00