Commit Graph

114 Commits (51fc5952bcc4e36533fc7f5523bd09e043f3ffc6)

Author SHA1 Message Date
Peter Weston 83646eba37
recognise tel: uri scheme as a non-local path (#1139) 2024-11-02 22:34:26 +01:00
Zef Hemel 64c98678bc Adjust import for tagRegex 2024-10-20 12:40:43 +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 5c8332a109 Cleaning some dependencies 2024-10-11 15:52:37 +02:00
Zef Hemel 6c71862641 Lua: multi-line string literals 2024-10-07 09:08:36 +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 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 aa712ed8f4 More work on Lua 2024-09-27 09:11:06 +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 600e3ce48b lint fix 2024-08-20 09:41:28 +02:00
Zef Hemel b8081d970c Fixes #1049 centralizes page URL encoding and decoding 2024-08-20 09:38:56 +02:00
Zef Hemel 9dd589fcfe lint fix 2024-08-18 13:09:06 +02:00
Zef Hemel 8b811f11c9 Test fixes 2024-08-18 13:08:52 +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 cafd001214 Added a ton of JS Doc 2024-08-07 13:27:25 +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
Zef Hemel 51f756ec60 Fallback for readSetting for old SB versions 2024-08-05 16:34:48 +02:00
Zef Hemel 102e6d10eb Fix deepObjectMerge edge cases 2024-08-03 14:09:12 +02:00
Zef Hemel 76dadb58b3 Another edge case 2024-08-03 11:58:50 +02:00
Zef Hemel c512f253cb Fix deepEqual edge case 2024-08-03 11:54:32 +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
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 835e9e3b3e Fixes #779 2024-07-23 17:23:30 +02:00
Zef Hemel 6286e4a8ed Fixes #953 support decimals in query expressions 2024-07-17 20:34:52 +02:00
Zef Hemel 11967b82a6
Meta links (#954)
Add carret page link support (for meta pages)
2024-07-17 17:03:25 +02:00
Zef Hemel f3a84e35c0 Cleaned up path file extension checking and handling conflicting copies 2024-07-13 13:51:49 +02:00
Семён Новиков 7e39bcfc6c Quick and dirty fix for the ".conflicted." pages navigation issue
This will allow user to Ctrl-K to conflicted page, but refreshing the
page still gives 404.
2024-07-13 13:37:32 +02:00
Zef Hemel 21b04a17fe Fixes #922 2024-07-09 09:32:57 +02:00
Zef Hemel d6d06abe64 Support strings as regular expressions 2024-07-07 12:10:35 +02:00
Zef Hemel a0ac6e66f9 Support regular expressions that are strings in the query language 2024-07-07 10:55:31 +02:00
Zef Hemel ae2d636e80 Force space reindex on upgrade to incorporate new indexing features 2024-07-07 10:35:17 +02:00
Tomas 9ea4b1c463
Follow-up for parsing YAML dates (#921) 2024-07-06 21:52:03 +02:00
Zef Hemel 2eb7e25854 Parse YAML dates into strings 2024-07-06 15:07:40 +02:00
Semyon Novikov 09e7f1f906
Fix up validatePageName routine (#912)
* Fix up validatePageName routine

File extensions can contain numbers too.
My main motivation was to enable myself hosting `woff2` files right from
my space, like I do for `ttf` files.

Also added some tests.

* Fix up typo and add more numeric samples

* Add missing semicolons

(sorry, I'm not really js/ts programmer)

* Make linter happy
2024-07-03 07:50:26 +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 0e2553839c
Strip Markdown in TOC (#887) 2024-06-12 20:05:29 +02:00
onespaceman 1f949158e9
Index []() style links (#827) 2024-05-27 20:33:41 +02:00
Justyn Shull 331d526f52
Fix frontmatter indexing error when a tag is a number (#830)
* Fix indexing error by always treating frontmatter tags as strings

* Only try escaping html in actual strings
2024-03-26 21:04:34 +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 ce5186c7c2 Whoops, forgot to commit this before 2024-02-29 15:25:28 +01:00
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Zef Hemel de2d1089d4
New space script APIs (#761)
New space script APIs: registerEventListener and registerAttributeExtractor
2024-02-27 20:05:12 +01:00
Zef Hemel 7de987fd56 Use backtick syntax to support identifiers in expression language, see examples 2024-02-24 12:59:27 +01:00
Marek S. Łukasiewicz cf010b5ef2
Add unary minus to Expression Language (#732) 2024-02-21 07:28:59 +00:00
Zef Hemel 60d3199d64
Giant code reorganization (#690)
Code restructure
2024-02-08 21:00:45 +01:00