Commit Graph
1974 Commits
Author SHA1 Message Date
Zef Hemel def7bf6a2f Hono dependency upgrade 2025-03-14 10:02:25 +01:00
Zef Hemel 977f87864d Dependency bumps 2025-03-14 10:02:25 +01:00
Zef Hemel 2e6a2a3adf Dependency bumps 2025-03-14 10:02:25 +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 29076afe95 Fix lint issues 2025-03-13 09:21:03 +01:00
Zef Hemel a56ef0b897 Add system.serverSyscall syscall 2025-03-13 09:10:37 +01:00
Zef Hemel 808fdd13c0 Restrict sending CORS headers to non-dangerous HTTP methods 2025-03-13 09:10:20 +01:00
Stan Ionitoiu-JanssenandGitHub a8ceee869b Fixes #1086 - search returns -1 if no match is found (#1288) 2025-03-12 18:10:23 +01:00
Zef Hemel 217e84acd1 Claude docs 2025-03-11 12:11:31 +01:00
Zef Hemel 1881fa8af9 Lua: work to make more table APIs work with native JS arrays 2025-03-10 17:31:02 +01:00
Zef Hemel 7ff0d17ba1 Fixes #1285 2025-03-10 16:24:06 +01:00
Zef Hemel 242ae73078 Lua: fix some subtle Lua-isms 2025-03-09 15:37:38 +01:00
Zef Hemel 29c2781c11 lint fix 2025-03-08 20:55:30 +01:00
Zef Hemel 3b3e6991bc Lua: string.format implementation 2025-03-08 20:54:43 +01:00
Zef Hemel 2274b5874d Fixes #1280 2025-03-08 18:37:32 +01:00
Zef Hemel 64feb6e608 parentNodes added to page:click event 2025-03-08 18:35:08 +01:00
Zef Hemel 62346e719a Add pandoc and texlive to docker image 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 922e4bfe49 Lua: fixed subtle issue where singlular expression statements wouldn't await finishing 2025-03-08 10:17:10 +01:00
Zef Hemel 7c68501696 Fix page creation 2025-03-07 21:09:49 +01:00
Zef Hemel e58859db43 Bump Deno version and include pandoc in the Docker image 2025-03-07 21:03:32 +01:00
Zef Hemel 9ed61e791d Re-enable shell APIs from Lua 2025-03-07 21:03:15 +01:00
Zef Hemel 7f666e7481 Add confirmation before deleting document 2025-03-07 20:59:46 +01:00
MrMugameandGitHub 81d3732dd2 Update currentPath on file change (#1282) 2025-03-07 20:31:42 +01:00
Zef Hemel f2dd104063 Fix indexing edge case 2025-03-07 16:41:14 +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 7e706754f4 Enable client file listing for plugs 2025-03-07 16:04:36 +01:00
Zef Hemel d33db399c8 Auto complete and lint fixes 2025-03-07 15:13:47 +01:00
Zef Hemel a339800e75 Set SB_INDEX_PAGE for silverbullet.md 2025-03-07 15:10:24 +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 b29d8245b2 Completion fixes 2025-03-07 13:13:45 +01:00
Zef Hemel 30617a9ee7 Disable emoji completion in code blocks 2025-03-07 13:13:14 +01:00
Zef Hemel e56ff4ab07 Disable spell check on coding languages 2025-03-07 13:12:31 +01:00
Zef Hemel 549b73c37d Lua: optimize returns to no longer leverage exception throwing in the common case 2025-03-07 12:42:12 +01:00
Zef Hemel fbe145e75b deno task fmt 2025-03-07 12:18:14 +01:00
Zef Hemel e96a220e1a Meta page completion fix 2025-03-07 11:54:22 +01:00
Zef Hemel fe7dcb65c4 All tags starting with #meta are now considered meta pages 2025-03-07 11:47:40 +01:00
Zef Hemel 1807d7b572 Fix navigating to new pages being broken 2025-03-07 11:40:20 +01:00
Zef Hemel d5842a039e Indexing tweaks 2025-03-07 11:27:20 +01:00
Zef Hemel a17a9df40e Remove indexPage from default SETTINGS 2025-03-07 11:16:27 +01:00
Zef Hemel f0ed003066 Moved spaceIgnore to be a environment variable as well 2025-03-07 11:12:49 +01:00
Zef Hemel 037d319a2f Lua date useful library 2025-03-07 11:11:28 +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
Zef Hemel af93da7c43 Authentication page layout improvements 2025-03-07 09:09:32 +01:00
Zef Hemel 0acd600222 Fix lint 2025-03-06 16:17:12 +01:00
Zef Hemel 605a586ca8 Reduce race condition on individual file sync and slow connection 2025-03-06 16:14:44 +01:00
Zef Hemel 4c58719bde Fix having to reload 3x before new client files are properly loaded 2025-03-06 15:37:43 +01:00
Zef Hemel 1975b867ee deno task fmt 2025-03-06 15:14:53 +01:00