Commit graph

3 commits

Author SHA1 Message Date
Jo-Philipp Wich
0141732f87 luci-lua-runtime: preload luci.ltn12
Some existing legacy code expects the luci.ltn12 namespace to be implicitly
available, even without requiring it beforehand.

Fixes: #6091
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-11 00:42:14 +01:00
Jo-Philipp Wich
18ee34def2 luci-lua-runtime: preload luci.sys
Some existing model code expects the luci.sys namespace to be implicitly
available, even without requiring it beforehand.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25 01:03:37 +02:00
Jo-Philipp Wich
673f38246a treewide: separate Lua runtime resources
Move classes required for Lua runtime support into a new `luci-lua-runtime`
package. Also replace the `luci.http` and `luci.util` classes in
`luci-lib-base` with stubbed versions interacting with the ucode based
runtime environment.

Finally merge `luci-base-ucode` into the remainders of `luci-base`.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25 01:03:37 +02:00
Renamed from modules/luci-base-ucode/luasrc/ucodebridge/luci/ucodebridge.lua (Browse further)