Files
menu/package.json
T
tanshu 58ecfa0dc3 Publish menus from the browser instead of scp
The admin signs in with the shared password, creates a Menu Set, drops photos
into it (shrunk in the browser first), reorders Pages by dragging or with
up/down buttons, previews the Draft exactly as customers would see it, and
publishes it over the previous set. Restore and delete close the loop. Mutations
need a session, a same-origin request and a CSRF token derived from the session;
a Draft's media is served only to a session holder.
2026-09-22 21:22:26 +05:30

29 lines
657 B
JSON

{
"name": "menu-admin",
"version": "0.1.0",
"private": true,
"type": "module",
"engines": {
"node": ">=24"
},
"scripts": {
"start": "node src/server.ts",
"dev": "SECURE_COOKIES=false node --watch src/server.ts",
"seed": "node scripts/seed-dev.ts",
"typecheck": "tsc --noEmit",
"test": "node --test test/*.test.ts"
},
"dependencies": {
"@fastify/cookie": "^11.1.2",
"@fastify/formbody": "^9.0.0",
"@fastify/multipart": "^10.1.2",
"@fastify/static": "^10.1.4",
"fastify": "^5.12.5",
"sharp": "^0.35.4"
},
"devDependencies": {
"@types/node": "^26.6.2",
"typescript": "^7.0.2"
}
}