fix calendar: table params for Lua functions + remove duplicate header

- CalendarPluginPage.svelte: removed <h2>pluginName — pageLabel</h2> (AppHeader already shows title)
- main.lua: all API functions now accept a single table parameter:
  - get_events(params) — reads params.start_date or params.start
  - get_event(params) — reads params.id
  - update_event(params) — reads params.id + mutable fields
  - delete_event(params) — reads params.id
  - get_expanded_events(params), get_calendar_events(params) — same
  - get_events_day(params) — reads params.date
  - create_event(opts) — already worked, no change
- Backward compatible: get_events accepts both start/start_date and end/end_date keys
This commit is contained in:
2026-06-08 11:18:28 +08:00
parent b1d1defebe
commit fddbd3a98a
7 changed files with 38 additions and 32 deletions
+2 -2
View File
@@ -19,8 +19,8 @@
background: #13131f;
}
</style>
<script type="module" crossorigin src="/assets/main-CMk8guXZ.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-BecQca8b.css">
<script type="module" crossorigin src="/assets/main-Ch0NvF0Q.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-BdKe9T_7.css">
</head>
<body>
<div id="app"></div>