verstak/contrib/plugins/calendar
mirivlad f769daa617 fix(plugins): JSON-serialize CallFunctionJSON return values + backward compat Lua args
Root cause: CallFunctionJSON used .String() on Lua return values, which
for tables produces 'table: 0x...' — not valid JSON. Frontend does
JSON.parse() on the result and silently caught the parse error.

Fix:
- runtime.go: convert Lua return value to JSON via luaValueToGo +
  json.Marshal so tables become proper JSON arrays/objects
- main.lua: add backward compat in get_events() and update_event()
  to accept both positional args (start, end) and table params
- CalendarPluginPage.svelte: show errors in UI instead of silent catch;
  restructure template to always show iframe + error overlay
2026-06-08 11:31:18 +08:00
..
migrations feat: плагин-система Lua + Calendar reference plugin 2026-06-07 14:59:46 +08:00
panels feat: plugin install/uninstall lifecycle + UI buttons 2026-06-07 15:28:37 +08:00
scripts feat: плагин-система Lua + Calendar reference plugin 2026-06-07 14:59:46 +08:00
main.lua fix(plugins): JSON-serialize CallFunctionJSON return values + backward compat Lua args 2026-06-08 11:31:18 +08:00
plugin.json feat: plugin install/uninstall lifecycle + UI buttons 2026-06-07 15:28:37 +08:00
test_calendar.lua feat: плагин-система Lua + Calendar reference plugin 2026-06-07 14:59:46 +08:00