Commit Graph
72 Commits
Author SHA1 Message Date
wushenghuaandCodex 5798229af3 fix: make client updates activate reliably
Co-Authored-By: Codex <noreply@anthropic.com>
2026-08-12 16:52:16 +08:00
wushenghuaandCodex 7928ebf4f2 feat: complete Plainleaf Chinese branding
CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s
Replace visible SilverBullet branding, localize the primary login and editor surfaces, and seed new spaces with a Chinese home page while preserving Markdown file names and command IDs.

Co-Authored-By: Codex <noreply@anthropic.com>
2026-08-12 14:55:58 +08:00
Zef Hemel e34d6edb3c fix: avoid duplicate text when a page is edited externally in sync mode 2026-08-09 16:07:14 +02:00
Zef Hemel d36b8f61b7 Subscribe to /.events for push-based external change detection 2026-08-05 11:00:21 +02:00
Zef Hemel b4294f9c3c Remove CLI's "get" command 2026-07-16 14:15:49 +02:00
Zef Hemel 75ca3b9c39 Migrate Lua code complete and code navigation to typescript 2026-07-16 12:06:59 +02:00
Zef Hemel 28f1f8af16 Long overdue "make fmt" sorry about this one 2026-07-14 15:58:15 +02:00
Zef Hemel 769927f1f8 Hide RW commands in RO mode 2026-06-25 13:47:23 +02:00
Zef Hemel ec04bc6818 Fix: clicking a link always sends you to the top of the page (or wherever the ref points), not restoring previous scroll/selection state 2026-06-19 15:47:25 +02:00
Zef HemelandGitHub 91e76d0c78 Rust backend/CLI replacement (previously Go) (#2010)
* Rust backend: initial setup and space primitives implementation + tests

* Rust: initial basic server setup

* Rust server: auth layer

* Rust: added specific auth layers

* Rust: shell and proxy endpoints

* Rust: SSR and Prometheus metrics

* Rust: runtime API

* Rust: basic working silverbullet binary server

* Rust: fix client file caching

* Rust: in dev mode, update version number dynamically

* Rust: build-rs Makefile target

* Rust: auth and start of 'sb' CLI

* Rust: headless Chrome runtime runner

* Rust: basic e2e tests for Rust build

* Rust: docker builds

* Rust: forgot to commit silverbullet-bin code

* Rust: cross compile and chrome driver fixes

* Rust: waiting for ready status fixes

* Rust: sb-CLI port

* Rust: use native build toolchain

* Rust: fix build chain

* Rust: edge release builds

* Rust: FreeBSD and armv7 builds

* Rust: edge-upgrade from edge-rust release

* Rust: fix FreeBSD build

* Rust: fix FreeBSD build

* Rust: get rid of Go code

* refactor: rename library crates to server- prefix convention

* Rust: refactoring, moving crypto around

* Rust: more refactoring

* Runtime: internal renaming

* Fix: cursor placement after paste on Webkit browsers

* Tweak how version numbers are generated and consumed

* Cleanup CI situation

* Fix CI

* Fix e2e

* ci: website image uses :edge channel (was :v2) post-merge

* Rust: restore manifest.json endpoint

* Rust: ready to merge
2026-06-16 08:40:41 +02:00
Zef Hemel 342686b2fc Fix: indexing when SW is disabled 2026-06-10 15:27:54 +02:00
Zef Hemel a4f738815f Lua: add AST pretty-printer and align parse/print naming 2026-05-31 13:50:31 +02:00
Zef Hemel 3e064e2ddd Fix: support $ref transclusions 2026-05-23 17:50:06 +02:00
Zef Hemel 370bd33619 Fix: forced rebuild index handling
And also bumps index version to force reindex (due to 'relation' introduction and 'link' elimination)
2026-05-22 15:56:00 +02:00
Zef Hemel 3d6c297feb Fixes #1985
Cursor movements around widgets were kind of broken, this should fix it
2026-05-18 10:03:12 +02:00
Zef Hemel 4e47809d86 runtime-api: SB objects handler 2026-05-14 16:44:44 +02:00
Zef Hemel 8a3addf743 Fix: widget order loading and e2e tests 2026-05-14 08:44:44 +02:00
Zef Hemel 946cf6d1db Fix e2e tests 2026-05-14 08:08:07 +02:00
Zef Hemel 2cabdb5f59 Fix: prefix rendering in queries on page load
Bonus: show a spinner while wigets are not ready to render yet.
2026-05-13 16:41:12 +02:00
Zef Hemel be0e1c60ca Add anchor resolving through space.readRef 2026-04-30 19:35:24 +02:00
Zef Hemel 563b20eece Security: set auth cookie security flags 2026-04-24 16:06:27 +02:00
Zef Hemel 453139780b Fix: initial sync handling 2026-04-13 07:59:16 +02:00
Zef Hemel bb1fa6d8be Fix object index update 2026-04-01 07:59:01 +02:00
Zef Hemel c9434a02f1 Hide offline and abort errors as flash notifications 2026-03-25 15:37:53 +01:00
Zef Hemel c04d7c332f First pass at "Remote API" (see docs)
Note: this is highly experimental and will likely change in the future.
2026-03-17 09:57:08 +01:00
Matouš Jan FialkaandGitHub a01b91b707 Resove merge conflict (#1884)
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-03-13 16:30:17 +01:00
Zef Hemel 2dd2c9b929 Fix "No such header #boot" errors in PWA mode 2026-03-12 15:08:38 +01:00
Zef HemelandGitHub 3df11ccf3d Implements custom markdown syntax extensions (EXPERIMENTAL) (#1881)
Alternative implemention of #1727
2026-03-12 13:40:20 +01:00
Zef Hemel a080ee3b15 Optimize bundle size + chunked builds + JIT loading
* Replaced AJV with other JSON schema library
* Turndown and Vim mode (very large) now only loaded when used
* Chunked builds with ESBuild
2026-03-11 10:04:13 +01:00
Zef Hemel ec40aa0838 Add action buttons to flashNotification
Used by upgrade notification
2026-03-10 16:07:25 +01:00
Zef Hemel fd1a81b8d8 Client refactor: move UI related APIs to editor_ui.ts 2026-03-10 12:42:26 +01:00
Zef Hemel 6d33d3d8ac Refactor: extract page/document manager into separate class 2026-03-10 12:33:34 +01:00
Zef Hemel cb9f954bc7 Refactor: extract widget cache from Client class 2026-03-10 12:17:02 +01:00
Zef Hemel 822997fd5e Client available upgrade notification
If the server is updated, but the client doesn't match the server
version, a notification will appear instructing the user to reload.
2026-03-10 12:05:33 +01:00
Zef Hemel 799e27a9b4 Enable biome based formatter and reformat 2026-03-10 09:38:59 +01:00
Zef Hemel cce5b669f6 Merge branch 'main' into to-node 2026-03-10 08:57:58 +01:00
Zef Hemel a5c9227499 deno fmt 2026-03-08 16:11:29 +01:00
Zef Hemel 0452910b0b Fixes #1777 2026-03-08 16:00:18 +01:00
Zef Hemel bbcd9ac6aa Introduce new noFloatingPromises lint rule and fix violiations 2026-03-08 15:49:45 +01:00
Zef Hemel 947edf52c8 Remove redundant type argument 2026-03-06 13:59:37 +01:00
Zef Hemel dbf275d75b Introduce biome as linter with lint fixes 2026-03-06 08:05:13 +01:00
Zef Hemel 99bbb37ff0 Fix make check 2026-02-15 08:35:06 +01:00
rktjmpandGitHub 8754b685ba Ensure command keybindings work reliably in any vim-mode (#1821)
When the vim extension is enabled and in "normal" mode, some default
bindings collide with Silverbullets commands (eg: `ctrl-p` - Share,
`ctrl-o` - Open Document, `ctrl-e` - Export, `ctrl-g h` - Home). These
vim bindings are not always functional (they may appear to do nothing
depending on vims state). This gives the impression that Silverbullet is
bugged and wont trigger commands. In "insert" mode, most bindings are
passed through correctly with some exceptions (eg: `ctrl-o`).

By splitting the command keybindings into their own keymap extension and
loading it before the vim extension, we can ensure Silverbullet commands
always trigger.

This does mean some vim bindings are overshadowed, but if a binding
triggers a Silverbullet command, its generally obvious that *something*
happened and the user should be able to recognise why the vim binding
failed and then rebind the command or vim mapping.
2026-02-06 16:12:02 +01:00
Zef Hemel 502b636aef Fixes #1815: Changes how index status is tracked
- New check for full indexing completion
- Renamed `hasInitialIndexCompleted` to `hasFullIndexCompleted` for clarity.
- Removed file:initial event (no longer required and not documented for public consumption)

Hopefully doesn't introduce new regressions. Needs testing time "in the field".
2026-02-05 11:20:11 +01:00
Zef Hemel 3d1e569bd2 Refactor page metadata access in Client class
- Introduced `currentPageMeta` method to encapsulate access to the current page's metadata.
- Updated references to page metadata throughout the codebase to use the new method, improving code readability and maintainability.
- Adjusted related components in the UI and linting logic to utilize the new method for consistency.
2026-02-03 15:57:34 +01:00
Zef Hemel 9057702557 Merge Client: Clean into Client: Wipe and remove Client: Clean
Client: Wipe now also deletes redundant other databases.

Related to #1798
2026-02-03 09:48:01 +01:00
Zef Hemel c41552f938 Slight document detection code refactor 2026-01-29 14:30:11 +01:00
Zef Hemel 10241e8be4 Add actual Lua code body for LuaDirectives to parent nodes for
completion events
2026-01-27 16:19:48 +01:00
Zef Hemel c25a073e81 WIP 2026-01-20 13:48:15 +01:00
Zef Hemel 9eaecaa324 Fixes #1769 2026-01-15 11:26:58 +01:00