Zef Hemel
bf8646d89d
Biting the bullet: exposing the JS window object to Lua
...
- Added a convenience function for creating HTML widgets, streamlining widget creation.
- Enhanced the key retrieval logic in the pairs function to ensure it captures prototype keys correctly.
- Exposed the global window object in the jsApi for better access to DOM functions.
2025-03-31 15:51:02 +02:00
Zef Hemel
26a72ea8df
Remove share functionality and related components, replaced with import and export infrastructure
...
- Deleted the `share` plug, including its associated files and YAML configuration.
- Removed references to share options and commands from the codebase.
- Cleaned up unused event listeners and functions related to sharing content.
2025-03-30 16:09:45 +02:00
Zef Hemel
453cb912d9
Refactor Lua built-in functions for improved type handling
...
- Updated `ipairsFunction` and `pairsFunction` to accept both `LuaTable` and array types, enhancing flexibility.
- Modified `eachFunction` to support arrays, ensuring consistent behavior across different data structures.
- Added type checks and adjusted key retrieval logic for better compatibility with JavaScript objects.
2025-03-30 15:03:57 +02:00
Zef Hemel
242ae73078
Lua: fix some subtle Lua-isms
2025-03-09 15:37:38 +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
Zef Hemel
105908204b
Fixes #1253
...
More accurate type classification and eager evaluation of left "and" operand.
2025-02-22 21:28:00 +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
4f707e498c
Lua: Reject setting metatable to a nil value
2025-02-06 08:36:28 +01:00
Zef Hemel
517cfb209a
Lua: Reimplement template and config in Space Lua, distributed with Library/Std
2025-01-20 23:29:06 +01:00
Zef Hemel
41d5743673
Load .lua files with dofile
2025-01-19 16:23:08 +01:00
Zef Hemel
6078452a6c
Breaking Lua API changes:
...
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag
Updated in the docs
2025-01-19 14:32:11 +01:00
Zef Hemel
6d42423e8d
Lua fixes
2025-01-17 18:32:13 +01:00
Zef Hemel
66433d27cc
Lua math library
2025-01-17 10:40:47 +01:00
Zef Hemel
34e50ae74d
Linter fixes
2025-01-16 15:35:56 +01:00
Zef Hemel
55f5a465c8
Lua query fixes
2025-01-16 15:33:18 +01:00
Zef Hemel
fe9e3c6eda
Expose globals in root of Lua scripts
2025-01-16 09:27:11 +01:00
Zef Hemel
5604f6d8c2
Lua: tweaks and docs
2025-01-14 20:26:47 +01:00
Zef Hemel and GitHub
61f82869e9
Lua integrated query work ( #1205 )
...
* Lua query embeddings
2025-01-12 16:54:04 +01:00
Zef Hemel
15ad6f3129
Lua: language fixes, and new space_lua APIs
2025-01-09 18:22:12 +01:00
Zef Hemel
86f31e3a00
Lua: experimental string interpolation
2025-01-09 11:45:15 +01:00
Zef Hemel
b6f1977cec
Lua runtime fixes
2025-01-09 10:27:41 +01:00
Zef Hemel
c2fea2d25b
Lua work
2025-01-08 17:09:09 +01:00
Zef Hemel
8acb112e4e
Lua stack frame refactor
2024-10-20 15:06:23 +02:00
Zef Hemel
64e398fd90
deno fmt
2024-10-11 15:34:27 +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
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
3cf7b72ebb
First integration of Lua into the core (via space-lua code blocks)
2024-10-03 17:55:51 +02:00