Files
Memoh/apps/web/package.json
T
Acbox defddc2257 feat(web): structured schedule create/edit UI
Replace the read-only schedule list with a form-driven builder so users
never hand-edit cron patterns. A canonical ScheduleFormState feeds two
inverse pure functions (toCron / fromCron) that guarantee round-trip
equivalence, so new and edit flows share the exact same UI state shape
even though the DB stores only the pattern. Unrecognised patterns (AI-
generated ranges/steps, descriptors, 6-field seconds cron) fall back
losslessly to an advanced mode instead of being silently rewritten.

The dialog adds live previews (human-readable via cronstrue, next 3
trigger times via cron-parser evaluated in the bot timezone) and row
actions for edit / enable-toggle / delete.
2026-04-23 19:36:25 +08:00

70 lines
1.8 KiB
JSON

{
"name": "@memohai/web",
"private": true,
"version": "0.7.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"start": "vite preview"
},
"dependencies": {
"@memohai/icon": "workspace:*",
"@memohai/sdk": "workspace:*",
"@memohai/ui": "workspace:*",
"@pinia/colada": "^0.21.1",
"@shikijs/transformers": "^4.0.1",
"@tailwindcss/vite": "^4.2.2",
"@tanstack/vue-table": "^8.21.3",
"@vee-validate/zod": "^4.15.1",
"@vueuse/core": "^14.1.0",
"@vueuse/integrations": "^14.2.1",
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-serialize": "^0.14.0",
"@xterm/xterm": "^6.0.0",
"animate.css": "^4.1.1",
"cron-parser": "^5.5.0",
"cronstrue": "^3.14.0",
"dotenv": "^17.2.3",
"echarts": "^6.0.0",
"katex": "^0.16.28",
"lucide-vue-next": "^0.562.0",
"markstream-vue": "0.0.7-beta.2",
"mermaid": "^11.12.2",
"modern-css-reset": "^1.4.0",
"moment": "^2.30.1",
"monaco-editor": "^0.52.2",
"pinia": "^3.0.4",
"pinia-plugin-persistedstate": "^4.7.1",
"qrcode": "^1.5.4",
"shiki": "^3.21.0",
"sortablejs": "^1.15.7",
"stream-markdown": "^0.0.13",
"stream-monaco": "^0.0.18",
"tailwindcss": "^4.2.2",
"tw-animate-css": "^1.4.0",
"vee-validate": "^4.15.1",
"vue": "^3.5.24",
"vue-echarts": "^8.0.1",
"vue-i18n": "^11.2.8",
"vue-router": "^4.6.4",
"vue-sonner": "^2.0.9",
"zod": "^4.3.5"
},
"optionalDependencies": {
"@tauri-apps/api": "^2"
},
"devDependencies": {
"@memohai/config": "workspace:*",
"@types/moment": "^2.13.0",
"@types/node": "^24.10.1",
"@types/qrcode": "^1.5.6",
"@types/sortablejs": "^1.15.9",
"@vitejs/plugin-vue": "^6.0.5",
"@vue/tsconfig": "^0.8.1",
"typescript": "~5.9.3",
"vite": "^8.0.1",
"vue-tsc": "^3.1.4"
}
}