pulse-rb 1.2.24 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/windui.lua +8 -4
- package/dist/index.js +265 -221
- package/package.json +3 -2
- package/pulse/runtime.lua +154 -0
- package/templates/component_esp.ts +15 -0
- package/templates/component_fov.ts +17 -0
- package/templates/component_speed.ts +19 -0
- package/templates/gitignore +1 -1
- package/templates/layout.ts +20 -0
- package/templates/page_home.ts +8 -0
- package/adapters/linoria.lua +0 -233
- package/pulse/ui/linoria_settings.lua +0 -55
- package/templates/example_esp.rblua +0 -69
- package/templates/example_fov.rblua +0 -20
- package/templates/example_speed.rblua +0 -25
- package/templates/layout.rblua +0 -28
- package/templates/module.rblua +0 -32
- package/templates/page_home.rblua +0 -9
package/adapters/windui.lua
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
-- [adapters/windui.lua]
|
|
2
2
|
-- Wind UI adapter for Pulse components.
|
|
3
|
-
-- Injected by the compiler when ui_library = "windui" in layout.rblua.
|
|
4
|
-
-- Provides _UIAdapter, _PulseNotify, and Pulse.UI (dynamic element builder).
|
|
5
|
-
--
|
|
6
|
-
-- Activation: set ui_library = "windui" in src/ui/layout.rblua
|
|
7
3
|
-- Docs: footagesus.github.io/treehub-web/docs/windui
|
|
8
4
|
-- Version: 1.6.64-fix (pinned)
|
|
9
5
|
|
|
6
|
+
-- Executor loadstring() environments are sandboxed — _G is NOT shared between chunks.
|
|
7
|
+
-- The compiler passes the bundle table (_P) as an argument so we can propagate all
|
|
8
|
+
-- runtime globals into this chunk's own environment before any adapter code runs.
|
|
9
|
+
local _P = ...
|
|
10
|
+
if type(_P) == "table" then
|
|
11
|
+
for _k, _v in pairs(_P) do _G[_k] = _v end
|
|
12
|
+
end
|
|
13
|
+
|
|
10
14
|
local _WINDUI_URL = "https://github.com/Footagesus/WindUI/releases/download/1.6.64-fix/main.lua"
|
|
11
15
|
local _PULSE_LOGO = "https://pulse-rb.vercel.app/img/logo.svg"
|
|
12
16
|
|