Commit Graph
162 Commits
Author SHA1 Message Date
Zef Hemel 4d2299df41 Enhance page list caching logic in Client class
- Introduced checks for initial sync completion before updating the page list cache.
- Updated logic to fetch pages based on sync status and index plug availability.
- Added tagging for meta pages starting with "Library/" during direct fetch.
- Initialized empty tags array for file metadata in fileMetaToPageMeta function.
2025-03-29 15:48:49 +01:00
Zef Hemel 64e537732b Debug: Reset Client is now called System: Wipe Client
Merged two datastores into one (for both state and files), this will trigger a resync on upgrade
2025-03-28 12:17:17 +01:00
Zef Hemel 9c3c4a9098 Fix not detecting changes regression, plus cleanup 2025-03-26 10:27:13 +01:00
Zef Hemel 254d6e6379 Ripped out use of Deno KV and other unstable features 2025-03-24 20:21:17 +01:00
Zef Hemel 130b5b179a config.* syscalls 2025-03-24 17:44:09 +01:00
Zef Hemel 0bc5cb7356 Library/Std moved to top level, now bundled in same way as plugs 2025-03-24 17:08:04 +01:00
Zef Hemel e003e926d2 Progress 2025-03-23 15:56:02 +01:00
Zef Hemel c157e979f0 WIP 2025-03-23 12:48:25 +01:00
Zef Hemel 6e551cd245 Lua: cron:secondPassed event 2025-03-21 17:38:25 +01:00
Zef Hemel d73d9b155f Further work 2025-03-21 16:12:10 +01:00
Zef Hemel dbfc5995f3 More thorough removal of federation 2025-03-21 16:12:10 +01:00
Zef Hemel e7dc879722 More progress 2025-03-21 16:12:10 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel d50ddc2357 First very rough pass of cleanup 2025-03-21 16:12:07 +01:00
Zef Hemel f4de6a4b85 Migrating core use of queryObjects to queryLuaObjects 2025-03-18 18:22:17 +01:00
Zef Hemel 29570a3760 Allow for custom widgets through hooks:renderBottomWidgets and hooks:renderTopWidgets 2025-03-16 14:35:59 +01:00
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +01:00
MrMugameandGitHub d3cc3e0d48 Add image viewer (#1289)
* Fix legacy support for navigation

* Fixes timing issue with document editors

If silverbullet was directly loaded into a document editor it would set
the darkmode after loading the editor, causing a wrong value to be
passed

* Add basic `image-viewer`

This add adds a basic image viewer using the panzoom library from Timmy
Willison

* Svgs somehow don't accept 100% width

* Make `internal` a property of a message

* Add `editor.sendMessage` syscall

* Update forgotten internal syscall

* Add small info command to image-viewer

* Change indent to two spaces

* Move zoom in button to the right

* Switch rotation direction

* Display mime type instead of file extension
2025-03-14 09:42:23 +01:00
Zef Hemel 6dfc342594 Fix crash on sync mode first load after update, no longer wait for space scripts to load before starting editor 2025-03-14 09:33:17 +01:00
Zef Hemel 64feb6e608 parentNodes added to page:click event 2025-03-08 18:35:08 +01:00
MrMugameandGitHub 51b0fcd819 Combine reload functions in client (#1283) 2025-03-08 17:17:29 +01:00
Zef Hemel 7c68501696 Fix page creation 2025-03-07 21:09:49 +01:00
Zef Hemel e6884d965a Lint issues 2025-03-07 16:05:59 +01:00
Zef Hemel 3e0cfcc48a Don't double filter file lists based on spaceIgnore 2025-03-07 16:04:52 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
Zef Hemel 1dc1103b2a Moved indexPage configuration to SB_INDEX_PAGE env variable instead
Added /.config endpoint to more dynamically influence the configuration
2025-03-07 10:56:45 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
Mufeed AliandGitHub c37a2ae0ed fix(editorState): Reset undo history after editor init (#1267) 2025-03-02 15:16:24 +01:00
MrMugameandGitHub a6af94b9e3 Remove editor.setText syscall from client (#1263) 2025-02-25 20:02:59 +01:00
Zef Hemel 280fa2cd3c Deno upgrade, lint related fixes 2025-02-25 18:05:58 +01:00
Zef Hemel 5cc7b47d6a Fix lint 2025-02-22 12:21:07 +01:00
MrMugameandGitHub 606077b98a Uses the correct function map for index navigation (#1257) 2025-02-22 12:19:03 +01:00
Mufeed AliandGitHub c27c83bc44 poc: Add indentMultiplier configuration for customizable indentation in editor (#1212) 2025-02-01 14:35:22 +01:00
Zef Hemel ccf86a648b Fix RO mode on initial sync 2025-01-30 15:54:34 +01:00
Zef Hemel 548bcfd239 Fix Lua stdlib issues in Sync mode 2025-01-30 14:43:30 +01:00
Zef Hemel 236b2a7fdd Lua: tweaks and fixes 2025-01-25 08:29:11 +01:00
Zef Hemel fce78a22f8 More Lua template work 2025-01-22 20:26:37 +01:00
Zef Hemel d72983bde5 Fix read only mode 2025-01-20 23:28:14 +01:00
Zef Hemel 4b6cd183a8 Dependency bumps 2024-10-11 16:59:06 +02:00
Zef Hemel 64e398fd90 deno fmt 2024-10-11 15:34:27 +02:00
Zef Hemel 6a30284bab Migration to Deno 2.0 2024-10-10 12:52:28 +02:00
Zef Hemel 28f3e454b6 Slightly different way of addressing #1085
saving files after local update with setTexrt
2024-09-24 17:34:46 +02:00
Zef HemelandGitHub 80f9c14b96 Change how attribute indexing and completion works (#1061)
* Creation of separate aspring-page objects for pages linked to, but not created
* Show "No results" instead of broken markdown table for no query results
* Show schema validation errors
* Deno upgrade
* Adds config support to plugs (see examples)
* Moves all builtin schemas to plug config
* Adds core plug just for builtin schemas
* Changes how attributes are indexed and completed, now attempts to derive a JSON schema for ad hoc attributes
2024-08-24 12:35:09 +02:00
Zef Hemel efc5fa6b2c Fix RO mode 2024-08-22 14:24:40 +02:00
jcgurangoandGitHub eea8326220 Use setText instead of replacing entire editor state (#1056)
* Fix diffAndPrepareChanges
* Use setText instead of replacing editor state
* Isolate editor.setText transaction
2024-08-21 21:36:50 +02:00
Zef Hemel b8081d970c Fixes #1049 centralizes page URL encoding and decoding 2024-08-20 09:38:56 +02:00
Zef Hemel 225443aef1 Fixes #984 adds Page: Rename Linked Page command 2024-08-18 15:24:18 +02:00
Zef Hemel 074aa323c2 Initial schema implementation #104 2024-08-15 16:39:06 +02:00
Zef HemelandGitHub 6b69449d05 More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00
Zef Hemel ea6e4ce079 Emit config:loaded event 2024-08-03 20:59:53 +02:00