Commit Graph
618 Commits
Author SHA1 Message Date
Zef Hemel 63db06a8c6 Fixed recently opened page tracking, fixed deletion of page when using dynamic index page 2025-04-17 14:44:38 +02:00
Zef Hemel 487f6b7c9b Add stdLibPrefix constant and update SyncService logic
- Introduced a new `stdLibPrefix` constant in `constants.ts` for standard library paths.
- Updated the import statement in `sync_service.ts` to include `stdLibPrefix`.
- Modified the logic in `SyncService` to check for both `plugPrefix` and `stdLibPrefix` when validating names.
2025-04-15 09:58:24 +02:00
Zef Hemel e1a6643d9a Website documentation work 2025-04-06 21:49:15 +02:00
Zef Hemel 50d26619e8 Put back space.*attachment syscalls for backwards compatibility 2025-04-06 20:41:00 +02:00
Zef Hemel f991a25a5a Add page existence check and improve cursor placeholder handling
- Introduced `pageExists` function in `space.ts` to verify if a page exists in the space.
- Enhanced cursor placeholder handling in `editor.ts` to prevent errors when the placeholder is not found, ensuring smoother text manipulation.
2025-04-06 08:59:22 +02:00
Zef Hemel a7719bdf3a Improve service worker config fetching logic
- Added caching mechanism for client configuration to enhance performance and reliability.
- Implemented a timeout for fetching fresh config, falling back to cached config in case of errors or timeouts.
- Updated error handling to ensure proper responses when fetching fails, including returning a 404 status when no config is available.
2025-04-05 20:35:07 +02:00
Zef Hemel b62cef6d92 Add tag definition and registration to ScriptEnvironment
- Introduced a new `TagDef` type to define tags with optional schema and metatable.
- Added `registerTag` method in `ScriptEnvironment` to register tags.
- Updated `indexSyscalls` to handle tag registration and enrich query results with tag metadata.
- Modified `queryLua` and `DataStore` to support an optional enricher function for enhanced data processing.
2025-04-04 16:56:27 +02:00
Zef Hemel ed35a9d390 Bringing back the hamburger menu on mobile by default 2025-03-30 20:42:46 +02:00
Zef Hemel be86e53398 Implement new slash commands and enhance editor functionality
- Added slash commands for inserting today's, yesterday's, and tomorrow's dates.
- Introduced new admonition commands for notes and warnings.
- Implemented a table command for quick table insertion.
- Enhanced the `insertAtCursor` function to support a cursor placeholder option.
- Updated `getSelection` to return the selected text along with cursor positions.
- Added a new widget function to display linked tasks in the editor.
2025-03-30 13:03:57 +02:00
Zef Hemel f429e1f7b2 Attempt to address /.config auth issues 2025-03-29 19:20:11 +01:00
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 45b767fd3c Lua widgets: html can now also be a DOM node
Encoding some more space lua priorities and documenting them
2025-03-28 17:38:32 +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
512c85bbcb Add support for application/xml content type in lua http.request (#1320)
Co-authored-by: Long Hoang Nguyen <roman_nguyen@gatech.edu>
2025-03-27 19:11:56 +01:00
Zef Hemel 96f299bf8a Shell streaming support (Lua) 2025-03-27 17:04:15 +01:00
MrMugameandZef Hemel d3e79ea4a7 Catch event in capturing phase instead of bubbling phase (#1315)
This is should be the default behaviour as silverbullet keybinds should always have priority over keybinds implemented by document editors
2025-03-26 19:43:00 +01:00
Zef Hemel 706588cd56 Bringing in config and config docs 2025-03-26 17:46:35 +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 4616cb19e2 Fix logout & clean command 2025-03-24 19:50:48 +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 4191fa5d4b Port https://github.com/silverbulletmd/silverbullet/pull/1310 2025-03-23 15:58:34 +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
Stan Ionitoiu-JanssenandZef Hemel 6b2390badf fix(menu): Move sync progress wrapper outside of actions menu (#1309) 2025-03-22 20:47:37 +01:00
Zef Hemel 55be05031c Markdown widget removal 2025-03-22 08:40:26 +01:00
Zef Hemel 63f7314256 index.tag simplification 2025-03-22 07:53:24 +01:00
Zef Hemel ac5a839ea8 Moving some endpoints 2025-03-22 07:32:27 +01:00
Zef Hemel da9e11f0f0 Fixes #1306 2025-03-21 19:45:26 +01:00
Zef Hemel 672bd97b6e More cleaning 2025-03-21 17:38:43 +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 1284d15a8b Remove command buttons 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
Stan Ionitoiu-JanssenandGitHub 5bf33eca30 fix(menu): only hide expander button and show button on (small) desktop (#1303) 2025-03-21 16:04:44 +01:00
Zef Hemel 67a29dd83d Fix filtering with metadata 2025-03-20 15:59:01 +01:00
Zef Hemel 196c593d34 Fix new page creation 2025-03-20 15:00:55 +01:00
MrMugameandGitHub f3b0c358fd Don't spread page meta in navigator (#1301)
This fixes a bug where page attributes could overwrite internal
variables leading to unwanted behaviour
2025-03-20 09:11:23 +01:00
Zef Hemel 6de6ea6efb Lint fmt 2025-03-18 18:23:25 +01:00
Zef Hemel f4de6a4b85 Migrating core use of queryObjects to queryLuaObjects 2025-03-18 18:22:17 +01:00
Stan Ionitoiu-JanssenandGitHub 67b612149b feat(menu): Make menu responsive (#1298)
* feat(menu): Make menu responsive
* feat(menu): make vertical menu opt-out by specifying custom CSS classes
* feat(menu): Add option to style the menu as a bottom-bar on mobile
* fix(settings): rename values for mobileMenuStyle
2025-03-18 18:04:30 +01:00
Stan Ionitoiu-JanssenandGitHub 79b57b8d9b fix(quote): prevent extra indent when first word is not an admonition (#1295)
Fixes #792
2025-03-17 18:54:20 +01:00
Zef Hemel 0812ba8287 Added some convenience editor syscalls 2025-03-16 15:53:00 +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 e93bff7fe4 Disable lua directive rendering on any page starting with "meta/template" 2025-03-15 20:57:22 +01:00
Zef Hemel 64be2db120 Small fix 2025-03-14 21:50:06 +01:00