Commit Graph
202 Commits
Author SHA1 Message Date
Zef Hemel e1a6643d9a Website documentation work 2025-04-06 21:49:15 +02: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 c157e979f0 WIP 2025-03-23 12:48:25 +01:00
Zef Hemel 55be05031c Markdown widget removal 2025-03-22 08:40:26 +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 d50ddc2357 First very rough pass of cleanup 2025-03-21 16:12:07 +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
Zef Hemel 6307ce4242 Lua widget revamp 2025-03-14 15:58:01 +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 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 7ff0d17ba1 Fixes #1285 2025-03-10 16:24:06 +01:00
Zef Hemel 64feb6e608 parentNodes added to page:click event 2025-03-08 18:35:08 +01:00
Zef Hemel d33db399c8 Auto complete and lint fixes 2025-03-07 15:13:47 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
MrMugameandGitHub f553c62950 Fix spell checking for code blocks and inline code (#1244) 2025-02-22 12:06:01 +01:00
Zef Hemel 9d3b9a8a22 Reduce code duplication 2025-02-13 20:11:08 +01:00
Zef Hemel cf81594b02 Fixes #1236 2025-02-13 20:11:08 +01:00
Zef Hemel 7abb096382 Lua: better handle nil, null and undefined values for Lua directives 2025-02-10 20:30:37 +01:00
Zef Hemel 5eb2405823 Fixes #1234 2025-02-09 17:57:59 +01:00
Zef Hemel 8f29cef717 Disable rendering widgets on federated pages (security) 2025-02-08 20:38:41 +01:00
Zef Hemel 772fe82e3a Fix lint error 2025-02-08 16:52:24 +01:00
Zef Hemel 9317d143b3 Fixes #1231 2025-02-08 16:51:31 +01:00
Zef Hemel e1c997616c Support ${lua expression} in templates 2025-02-06 11:58:27 +01:00
Zef Hemel a169406d37 Lua: huge API breaking change: converted all snake_case APIs to camelCase 2025-02-06 10:04:45 +01:00
Zef Hemel fce78a22f8 More Lua template work 2025-01-22 20:26:37 +01:00
Zef Hemel bf6a34f82c Lua Integrated Query 2025-01-13 20:25:39 +01:00
Zef Hemel 86f31e3a00 Lua: experimental string interpolation 2025-01-09 11:45:15 +01:00
Zef Hemel c2fea2d25b Lua work 2025-01-08 17:09:09 +01:00
Marek S. ŁukasiewiczandGitHub 1508f6bcbf Correctly extract hashtag content in links and Page Picker filter (fix #1196) (#1199) 2025-01-07 19:57:46 +01:00
István SzekeresandGitHub fdd3d1b650 Fix encoding of inline content (#1186)
Inline content with the file containing e.g. a `:` cannot be displayed
as the file name is set as the img src, and the browser treats the part
before the : as the protocol, instead of as a file name.

This change encodes the file name so `:` becomes `%3A`, fixing the
issue.

Fixes #1182.
2025-01-07 19:56:45 +01:00
TR StaakeandGitHub 2020e85a6f Update how tags are rendered to allow for custom styling (#1179)
* Updated how tags are rendered to allow for custom styling via space-styles

* Wrapped the existing span for a tag with an anchor element <a> to
improve ux for screen readers
* Added data-tag-name attribute to tags so that given a tag `#my-tag` it
will have the attribute `data-tag-name="my-tag"` added to the new `<a>`
element wrapper allowing for end users to target tags for styling with a
css selector such as `.sb-hashtag[data-tag-name="my-tag"]{...}`

* Updated Docs
2024-12-14 09:57:46 +01:00
Zef Hemel 8acb112e4e Lua stack frame refactor 2024-10-20 15:06:23 +02:00
Marek S. ŁukasiewiczandGitHub f37cf23ba7 Space config for smart quotes (close #1114) (#1121) 2024-10-17 22:34:47 +02:00
Zef Hemel 5765540a3a Widget: alt-click to move cursor into widget 2024-10-16 20:50:38 +02:00
Zef Hemel 2842183568 Lua widgets: support inline for HTML widgets 2024-10-15 16:58:39 +02:00
Zef Hemel 6ec6f0cd6d First Lua docs 2024-10-14 20:59:10 +02:00
Zef Hemel c1a20af981 Lua: widgets 2024-10-13 15:14:22 +02:00
Zef Hemel 6a30284bab Migration to Deno 2.0 2024-10-10 12:52:28 +02:00
Zef Hemel 899c2556cb Lua: more fixes and work on stdlib 2024-10-08 19:53:09 +02:00
Zef Hemel f74bab0aca Lua: inline directives improvements 2024-10-07 19:17:12 +02:00
Zef Hemel 6c71862641 Lua: multi-line string literals 2024-10-07 09:08:36 +02:00
Zef Hemel 41a856636a Lint 2024-10-05 15:38:28 +02:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
Zef Hemel 0c4838e45c Fix copy code edge case 2024-08-20 10:52:08 +02:00