Commit Graph
2535 Commits
Author SHA1 Message Date
Zef Hemel a7597454bd Fixes #1651 2025-10-29 09:46:20 +01:00
Zef Hemel 4c8dc704b7 Support embedded widgets and markdown with dom.* API 2025-10-29 09:30:48 +01:00
Zef Hemel dbe80bed8c Nicer error in case of empty Lua expression n directive 2025-10-29 08:56:08 +01:00
Zef Hemel 496ac5c69d Fix exception in code completion caused by tags table 2025-10-29 08:55:58 +01:00
Mihai MaruseacandGitHub 8fdbc48f6d Make the link to the site point to real site. (#1655) 2025-10-29 06:04:40 +01:00
Zef Hemel 0c5d4b73be Prometheus metrics support 2025-10-27 17:21:50 +01:00
Zef Hemel 6ccff6c9b0 Rudamentary Prometheus metrics support 2025-10-27 17:21:12 +01:00
Zef Hemel 1838cc4eb1 Encryption auth redirect 2025-10-23 09:18:51 +02:00
Zef Hemel 18bea2e113 Client: Clean command 2025-10-23 09:03:57 +02:00
Zef HemelandGitHub 272f293ddb Optional client encryption (#1640)
Implements #1268
2025-10-22 15:35:37 +02:00
Matouš Jan FialkaandGitHub cd6f4e9c58 Space Lua: Align .. (concatenation) operator (#1648)
* Make fallback accept only strings and numbers (as per standard Lua).

* Remove `luaToString` from the fallback. It fits well presentation
  purposes but is too complicated for strict semantic checking in the
  evaluator and also wrongly coersed non-string and non-number value.
  It may also return a promise but we require synchronous error path.

* Concatenating `nil` now throws "attempt to concatenate nil value" as
  per standard Lua.

* Other types throw "attempt to concatenate a non-string or non-number"
  which is simplified message diverting from standard Lua which throws
  typed error but we do not strictly need that for Space Lua (and can be
  easily added anytime in the future).

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-22 10:41:26 +02:00
Matouš Jan FialkaandGitHub 4b9829c59c Space Lua: Add rawget and rawequal functions (#1647)
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-21 13:41:36 +02:00
Matouš Jan FialkaandGitHub 9292ae4b74 Space Lua: Align length features with standard Lua (#1637)
* Align `#` operator and `__len` metamethod with Lua and add `rawlen` function

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-21 09:55:38 +02:00
Zef Hemel 0e4141e22e Ensure level is actually a number in TOC widget
New Lua interpreter is more strict about comparing strings and numbers.
2025-10-20 19:51:43 +02:00
Zef Hemel 82800ad9bc No longer supress errors coming from event handlers 2025-10-20 19:50:55 +02:00
Zef Hemel abe2f6b909 Refactoring some server side stuff 2025-10-20 19:15:51 +02:00
Matouš Jan FialkaandGitHub b363bd7e59 Fix serious truthiness evaluation flaws. (#1644)
In Lua, only the last expression in an argument list preserves multiple
results and all earlier expressions yield exactly one value (their first).

For example:

```
f(a(), b(), c())
```

where

```
a -> (1,2)
b -> (3,4)
c -> (5,6)
```

becomes

```
f(1, 3, 5, 6)
```

which matches Lua behaviour (tested in version 5.4).

Changes:

* Function argument lists keep multiple results only from the last
  argument.

* Fixes failing truthiness tests (`true and ret_one_two()`).

Sidenote: the `truthiness_test.lua` was not called at all because of
my obvious copy/paste typo (the `arithmetical_test.lua` was called twice
instead; now fixed too and both test suites pass ok).
2025-10-20 17:34:45 +02:00
Matt NodurfthandGitHub b7870f36e7 Keybindings - Update disable key bindings documentation (#1641) 2025-10-17 07:43:41 +02:00
Mihai MaruseacandGitHub c706e8e673 Fix build broken after #1634 (#1642) 2025-10-17 06:01:17 +02:00
Mihai MaruseacandGitHub 9a39d20213 Handle atomic updates for the binary file. (#1634) 2025-10-16 22:36:22 +02:00
Matouš Jan FialkaandGitHub 27339c98f6 Space Lua: Align arithmetic model with standard Lua (#1611)
* Align Space Lua arithmetic model with standard Lua
* Add missing __unm and __bnot metamethods
- add new basic tests
- add helper for negative tests
* Add comments for ASCII numeric constants

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-16 08:41:47 +02:00
Matouš Jan FialkaandGitHub cb4f392c05 Add huge constant and type() function to the math API (#1632)
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-16 08:27:56 +02:00
Matouš Jan FialkaandGitHub aa1e61b646 Space Lua: Add load function (#1631)
* Add `load` Lua builtin

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-16 08:19:37 +02:00
onespacemanandGitHub c797273028 Expose codemirror's toggleComment command (#1635) 2025-10-16 08:18:46 +02:00
Matouš Jan FialkaandGitHub 0856e3fda2 Space Lua: Fix truthiness semantic deviation (#1630)
* Space Lua: Fix truthiness semantic deviation

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-15 09:15:44 +02:00
Andy CostanzaandGitHub 97c8e20c7d feat: add Vimeo embed widget (#1616) 2025-10-13 13:28:51 +02:00
Andy CostanzaandGitHub 397922954e feat: add Peertube embed widget (#1612) 2025-10-13 08:25:39 +02:00
numanandGitHub afebdcf64c fix: bottom search bar dark mode styles (#1614) 2025-10-11 20:12:11 +02:00
Ohad LutzkyandGitHub 2ba095a181 Add autolinks to documentation (#1609) 2025-10-10 17:52:38 +02:00
Zef Hemel 3fa9c82add Fixes #1598
Lua: Implements %u in os.date()
2025-10-10 09:11:14 +02:00
Zef Hemel 5c4c71df8e Fixes #1608
Status code is now passed via x-proxy-status-code header
2025-10-10 08:51:24 +02:00
MrMugameandGitHub 00af994d69 Fix navigation for Autolinks and clean up code (#1607) 2025-10-10 08:42:25 +02:00
Zef Hemel 458bdb515c Minor documentation tweaks + added additional Youtube video. 2025-10-09 20:34:24 +02:00
e45ac0c2ab Fix docker build by fixing Go installation when TARGETARCH is unset (#1606)
Co-authored-by: Casey Grzecka <caseyg@accuglassproducts.com>
2025-10-09 20:10:00 +02:00
Zef Hemel aaaee4299a 2.1.9 2025-10-09 15:56:41 +02:00
Zef Hemel 5f64d7c143 Fix only supporting a single virtualPage 2025-10-09 15:56:16 +02:00
Zef Hemel 17e838883b 2.1.8 2025-10-09 09:59:43 +02:00
Zef Hemel 91d356000a Reimplement full-text search command/virtual page in Lua 2025-10-09 09:45:17 +02:00
Zef Hemel 18e78e5006 Lua: fix key deletion in tables 2025-10-09 09:19:58 +02:00
Cole StowellandGitHub 34b143f5db fix: include config in syscalls (#1601) 2025-10-08 21:26:50 +02:00
Zef Hemel d3892aea39 Update build instructions in README 2025-10-08 10:18:24 +02:00
Zef Hemel ba73fd24cb Content type setting on .proxy 2025-10-08 09:01:47 +02:00
Zef Hemel 83aa5bc349 Fix in content type handling of http.request 2025-10-08 08:59:28 +02:00
Oleksandr KuvshynovandGitHub 42dc543be1 silverbullet: fix circular recent page deletion (#1599) 2025-10-07 21:01:44 +02:00
Zef Hemel 5c4fb64c24 Ref render documentation 2025-10-07 16:46:27 +02:00
Zef Hemel c8fe66c3ac Changelog and new videos in manual 2025-10-07 16:41:55 +02:00
Zef Hemel 3be377ceef Virtual Page API 2025-10-07 16:38:57 +02:00
Zef Hemel b126320c5a Better readOnly checking, making sure that tag pages are never saved,
for instance
2025-10-07 14:33:54 +02:00
Zef Hemel 869f4c6dd3 Remove duplicate appearance of items on the tag page 2025-10-07 13:21:24 +02:00
Zef Hemel f9527c8238 Lua: allow passing in a number to tonumber 2025-10-07 09:07:12 +02:00