Commit Graph
2363 Commits
Author SHA1 Message Date
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 701a3b1fb8 Query collection distinct 2025-03-21 16:11:00 +01:00
Zef Hemel a773d320f6 Lua: support distinct queries 2025-03-21 16:11:00 +01:00
Zef Hemel e6aa89020a Lua: table.find 2025-03-21 16:11:00 +01:00
Marek S. ŁukasiewiczandGitHub bb91612b61 Implement table formatting in Space Lua (close #12) (#1307)
Aligns columns as described in issue #12. Preserves alignment specifiers
and takes them into consideration for column width (see also #847, #1293)
2025-03-21 16:10:36 +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
Zef Hemel ac5c0d676e Fix typecheck 2025-03-20 09:24:04 +01:00
stagandGitHub 66e4498159 Content-Type header in HTTP custom endpoint response handlers are now respected (#1300)
Before the commit, adding a Content-Type header in the reponse from the handler of a http:request:foobar event would be ignored and set to text/plain because of using ctx.text to return the request. ctx.text will set Content-Type to text/plain.

Now, if a Content-Type header is detected it will use a plain ctx.body response which does not alter Content-Type.
2025-03-20 09:19:53 +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 e37b9db29b Upgrade deno to 2.2.4 2025-03-18 18:33:08 +01:00
Zef Hemel 6361ba0443 Added git hook that does some sanity checking 2025-03-18 18:29:46 +01:00
Zef Hemel 6de6ea6efb Lint fmt 2025-03-18 18:23:25 +01:00
Zef Hemel 04605c8604 Lua automatic docs update prompt 2025-03-18 18:22:47 +01:00
Zef Hemel f4de6a4b85 Migrating core use of queryObjects to queryLuaObjects 2025-03-18 18:22:17 +01:00
Zef Hemel bafd2974e1 Lua API docs update 2025-03-18 18:20:49 +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
James DaltonandGitHub 95c0966f8e dates on versions (#1297) 2025-03-18 16:40:23 +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
Stan Ionitoiu-JanssenandGitHub d38e757cd6 fix(tables): only escape pipes outside SB context (#1292)
* fix(tables): only escape pipes outside SB context

Fixes #943

* fix(tables): detect command context in tables

Fixes #1016

* Added tests for parsing tables
2025-03-15 20:58:43 +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 fdf6a97f97 Lua: expose all template.* syscalls 2025-03-15 20:52:34 +01:00
Zef Hemel 64be2db120 Small fix 2025-03-14 21:50:06 +01:00
Zef Hemel 500304cd43 Remove yaml query function, too heavy weight 2025-03-14 17:27:24 +01:00
Zef Hemel ad2a0dca38 Remove plugmanager test, not testable this way anymore 2025-03-14 17:20:11 +01:00
Zef Hemel 346f3125e9 Reduce plugmanager bundles size by 800kb by not including all of CodeMirror :D 2025-03-14 17:18:20 +01:00
Zef Hemel dde532d1b6 Added silverbullet lua:repl command 2025-03-14 16:43:13 +01:00
Ohad LutzkyandGitHub cde2155ac3 Use writer to ensure the entire file is written (#1287)
Using file.write directly once doesn't guarantee the entire file is
written; see https://docs.deno.com/examples/writing_files/
2025-03-14 16:02:18 +01:00
Zef Hemel cf3a704d03 Small website tweaks 2025-03-14 16:00:21 +01:00
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +01:00
Zef Hemel c85fb17145 Improved Lua string library 2025-03-14 15:56:53 +01:00
Zef Hemel 934de0938d Lua: add Ctrl/Cmd-click navigation 2025-03-14 11:35:43 +01:00
Zef Hemel 418138f9c9 Lint fixes 2025-03-14 10:37:30 +01:00
Zef Hemel 98befe3a33 Lua widget event support 2025-03-14 10:36:41 +01:00
Zef Hemel f514ef1b53 Lua: support passing Lua function callbacks to native JS functions 2025-03-14 10:02:25 +01:00
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