Commit Graph

344 Commits (1e30517955b0f1ac2d6336e884ce6b8c6008e155)

Author SHA1 Message Date
Zef Hemel 8acb112e4e Lua stack frame refactor 2024-10-20 15:06:23 +02:00
Marek S. Łukasiewicz 010e2b23f4
Allow tags to start with a number and be escaped with angle brackets (#1116)
Includes tests and Markdown/Hashtags page for website. Closes #1072
2024-10-20 12:39:58 +02:00
Zef Hemel 413855c180 More Space Lua docs, and slight API tweaks 2024-10-15 21:20:50 +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 5c8332a109 Cleaning some dependencies 2024-10-11 15:52:37 +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 3319c7f21c More lua progress: JS Interop 2024-10-09 20:35:11 +02:00
Zef Hemel 899c2556cb Lua: more fixes and work on stdlib 2024-10-08 19:53:09 +02:00
Zef Hemel 6c71862641 Lua: multi-line string literals 2024-10-07 09:08:36 +02:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
Zef Hemel 2c08cb1821 More lua features (some metatable support) and tests 2024-10-04 17:15:50 +02:00
Zef Hemel 69c1da3dfb [Lua] Property access and function call fixes 2024-10-03 18:52:44 +02:00
Zef Hemel b2ff858f1d Support empty Lua strings 2024-10-03 18:40:06 +02:00
Zef Hemel 3cf7b72ebb First integration of Lua into the core (via space-lua code blocks) 2024-10-03 17:55:51 +02:00
Zef Hemel c0a248daba deno fmt 2024-09-30 12:50:54 +02:00
Zef Hemel a5c4bcc43b Lua AST refactor 2024-09-29 15:09:13 +02:00
MrMugame f7cfe328b8
Fixes #1101 (#1102)
* Make all keywords use @specialize

* Rebuild the grammar

* Making it work in the later parsers
2024-09-29 13:26:44 +02:00
Zef Hemel cdcce0d828 Lua work 2024-09-27 17:09:25 +02:00
Zef Hemel aa712ed8f4 More work on Lua 2024-09-27 09:11:06 +02:00
Zef Hemel 4eae0c975b Another attempt at better supporting auth proxies 2024-09-25 17:06:43 +02:00
Zef Hemel cb88eae885 Attempt to fix auth proxies by making redirects manual #1028 2024-09-25 13:25:15 +02:00
Zef Hemel 362b590ba3 Some more Lua progress 2024-09-24 10:15:22 +02:00
Zef Hemel 9d43c9a11d Fix lint issues 2024-09-12 21:53:37 +02:00
Zef Hemel 4c87d3eb9e Evaluator start 2024-09-12 17:01:54 +02:00
Zef Hemel 00501690cf Parser complete 2024-09-12 13:40:43 +02:00
Zef Hemel 8725655b9d WIP lua 2024-09-11 21:19:41 +02:00
Zef Hemel f7fe7cadbc Revert "Attempt to fix auth proxies by making redirects manual #1028"
This reverts commit d6fb5e0c29.
2024-09-11 21:18:27 +02:00
Abin Simon b41297e437
Add nix language syntax highlight (#1081) 2024-09-09 19:27:02 +02:00
Zef Hemel d6fb5e0c29 Attempt to fix auth proxies by making redirects manual #1028 2024-09-09 18:36:54 +02:00
Zef Hemel 409b0df328 More robustness on lack of space config 2024-09-09 18:35:44 +02:00
Zef Hemel ea5adebbbd 0.9.4 2024-09-04 19:34:12 +02:00
Zef Hemel e6f010faad Revert back SETTINGS to use yaml for now 2024-09-04 19:19:40 +02:00
Zef Hemel d9efb32bb4 Make sure query.renderQuery is run in the right environment 2024-08-31 12:08:14 +02:00
Zef Hemel 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 b1c46a17cf Redoing item and task indexing 2024-08-21 21:31:07 +02:00
Zef Hemel b8081d970c Fixes #1049 centralizes page URL encoding and decoding 2024-08-20 09:38:56 +02:00
Zef Hemel 3ac21498f3 Fixes #680 all times and dates are now local (to the environment) 2024-08-18 13:04:51 +02:00
Zef Hemel 6ef9dc8b99 Attempt to fix or at least help debug #1028 2024-08-18 12:45:33 +02:00
Zef Hemel cf054fa186 Should fix #1019 and #1035 2024-08-18 10:39:04 +02:00
Zef Hemel 074aa323c2 Initial schema implementation #104 2024-08-15 16:39:06 +02:00
jcgurango 9b88a8d694
Expose render parse tree (#1032) 2024-08-15 11:45:46 +02:00
Zef Hemel b7c56a8379 Fix some things with transclusions, and added a renderWidgets page decoration 2024-08-12 20:12:28 +02:00
Zef Hemel e29352556b Expose syscalls in space script via globals (no more syscall calls) 2024-08-07 11:09:56 +02:00
Zef Hemel 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
Justyn Shull 280fe2bec8
Add an in-memory cache of the file list for disk spaces (#1012)
Add an in-memory cache of the file list for disk spaces
2024-08-04 11:28:55 +02:00
Justyn Shull 4af100b7b7
Add simple /ping endpoint instead of /index.json, change default fetch timeout to 30s (#1017) 2024-08-04 08:24:38 +02:00
Zef Hemel ea6e4ce079 Emit config:loaded event 2024-08-03 20:59:53 +02:00
Zef Hemel 49f52e42d0 Fixes #1014 2024-08-03 20:46:34 +02:00
Zef Hemel 47f504f2ce deno fmt 2024-08-02 17:14:40 +02:00
Zef Hemel 64b6d9e2df
Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +02:00
Zef Hemel c111f72e09 Lint error removal 2024-07-30 17:33:33 +02:00
Zef Hemel 9f353f7de1 More JSR dependency moves 2024-07-30 17:24:17 +02:00
Zef Hemel 64e116f75e lint cleanup 2024-07-30 15:17:34 +02:00
Zef Hemel 75471fa86b
Object decorators (#995)
Implemented objectDecorators to replace pageDecorations in SETTINGS
2024-07-29 21:21:16 +02:00
Marek S. Łukasiewicz a0f3f7ef41
Support linking to and moving to line number in pages (#988)
Support linking to and moving to line number in pages
2024-07-28 20:31:37 +02:00
Zef Hemel 0ad47987f5 Added http:request event enabling custom http endpoints 2024-07-26 19:12:10 +02:00
Zef Hemel 161cd004a7 Cleaning e2e encryption stuff 2024-07-25 20:29:13 +02:00
Justyn Shull 1d8dfb964a
Add system.invokeFunctionOnServer syscall to force proxying syscalls to server (#974) 2024-07-24 11:26:12 +02:00
Zef Hemel b188750e03 Fix tests 2024-07-23 14:56:07 +02:00
Zef Hemel 731e246264 Fixes #967 2024-07-23 14:53:36 +02:00
Ross 121ecb328a
Added a timeout for fetch (#965)
Added a timeout for fetch
2024-07-22 17:36:02 +02:00
Bo Jeanes b1dcbc3454
Add Ruby syntax support (#966)
* Add Ruby syntax support
2024-07-22 17:33:50 +02:00
Zef Hemel 6286e4a8ed Fixes #953 support decimals in query expressions 2024-07-17 20:34:52 +02:00
Zef Hemel 663f1523f1 Renamed 'source' to 'import' for Libraries 2024-07-16 15:48:49 +02:00
Zef Hemel 25d14031c9
Fixes #926
Libraries have been rethought, see associated documentation.
2024-07-11 20:36:26 +02:00
Zef Hemel 3e94389c1e Fix missed events 2024-07-10 11:32:07 +02:00
Zef Hemel c7f5645075 Fixes #927 2024-07-10 08:50:54 +02:00
Zef Hemel fb21377bef
Transclosure support for pages (#925)
Transclusion implementation
2024-07-09 09:22:08 +02:00
Zef Hemel d6f0f61d30 Rebrand Template Picker to Meta Picker
As well as associated documentation changes
2024-07-07 12:12:05 +02:00
Zef Hemel ae2d636e80 Force space reindex on upgrade to incorporate new indexing features 2024-07-07 10:35:17 +02:00
Zef Hemel 2eb7e25854 Parse YAML dates into strings 2024-07-06 15:07:40 +02:00
MrMugame 9ed493aa00
Makes the behaviour of logic expressions consistent in all cases (#898)
* Returned the value of a logic expression in all cases

* Remove legacy call syntax

* Correct test

* Remove old call syntax from docs/library

* Corrected docs for call syntax

* Add null coalescing operator
2024-07-02 19:12:40 +02:00
MrMugame 513b9ef441
Recreate file list on every call of pageExists() (#900) 2024-06-24 06:21:57 +02:00
Zef Hemel ad067e08e7 Fixed some issues with attachment indexing and sync mode 2024-06-13 12:01:40 +02:00
Zef Hemel 78be20c24f Fix regression where the index would no longer be cleared in sync mode 2024-06-13 11:46:52 +02:00
MrMugame 442133ea2b
Add subscript and superscript (#879)
* Added superscript and subscript to markdown

* Added docs for Superscript and subscript

* Remove leftover brace
2024-06-07 08:21:16 +02:00
MrMugame 99aaae23f1
Added erlang support (#878) 2024-06-05 12:23:12 +02:00
MrMugame 63e3821646
Fixed greedy parsing of settings block (#876) 2024-06-04 20:27:10 +02:00
onespaceman cbd4814493
Fix attachment indexing (#873) 2024-05-30 19:55:35 +02:00
onespaceman 1f949158e9
Index []() style links (#827) 2024-05-27 20:33:41 +02:00
Florent 827b08c21f
Support size for images (#833)
* Support size for images

* Also support dimensions while rendering markdown

* Parser - ImageWithSize: Comment regexp with examples
2024-05-19 11:05:48 +02:00
Daniel Michel 5798a39289
Add the Intl DateTimeFormat polyfill for space scripts without overwriting other Intl classes (#836) 2024-04-02 19:26:06 +02:00
Thomas Michelat e280dfee4a
Adds an option in SETTINGS to change the maximum size of file you can upload to your space. (#832) 2024-03-27 21:21:12 +01:00
Florent 5a6d7ecae1
Fix space on end of page name creates two pages, one shadowed #615 (#817) 2024-03-23 20:02:16 +01:00
Maks 8a3782e946
improve dependency management (#770)
* use import_map.json instead of per-file import

* remove test_deps.ts in favor of import_map

* remove common/deps.ts in favor of import_map

* use import_map instead of server/deps.ts

* make all plug-api files usable without an import_map

* make all lib files usable without an import_map

* remove web/deps.ts in favor of import_map

* fix plug build

* remove plug-api/deps.ts in favor of lib/deps.ts

* fix server deps bundled in client deps
2024-03-16 15:29:24 +01:00
Zef Hemel ca5b6803eb More reload fix attempts 2024-03-14 13:02:34 +01:00
Zef Hemel 2800185893 More race condition fixes 2024-03-13 19:48:43 +01:00
Zef Hemel 56954dbc3b More race condition avoiding event trigger code 2024-03-13 08:35:38 +01:00
Zef Hemel 221e9e859c Potential fox to file reload race condition 2024-03-12 16:33:38 +01:00
Zef Hemel 61a2611002 Hopefully addresses #804 2024-03-11 21:02:14 +01:00
Zef Hemel 0959a37a83 Optimize sync slightly 2024-03-11 20:56:29 +01:00
Zef Hemel 9d5b12e9cc Tweaking MQ parameters trying to address #798 2024-03-10 12:35:06 +01:00
onespaceman 95ae722a50
Implement space-style (#796)
* Implement space-style
* Add reloading styles to System: Reload

---------

Co-authored-by: Zef Hemel <zef@zef.me>
2024-03-09 12:26:58 +01:00
Zef Hemel adf7d2e785 Don't hide real error message during event dispatch 2024-03-04 20:22:09 +01:00
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Zef Hemel ff9b39cb5e Emit warning when double registering a space script function 2024-02-28 10:54:47 +01:00
Zef Hemel 0940eb1d15 Ensure reindex with space function indexers 2024-02-28 10:54:31 +01:00
Zef Hemel 16d1d3265b Better error message when invoking function that doesn't exist 2024-02-28 10:54:03 +01:00