Final parity push (web-tier only): - REST API write + token auth: POST /api/tokens (issue a personal_access_token for the session user), Bearer auth via src/lib/api-auth.ts, POST /api/articles/[slug]/comment, GET/DELETE /api/me/tokens, full tickets API (/api/tickets +[id] +[id]/reply), radio current-dj/points/points-leaderboard/ embed-config + POST shouts, and a real-time /api/radio/stream (SSE). 31 public API routes total. - Pages: /draw-badge (buy a custom profile badge → credits + RCON), /me dashboard (stats + online friends + referral claim). Wired into the nav. - HTML sanitisation (sanitize-html) — the HTMLPurifier equivalent — applied to writeable boxes + article bodies before dangerouslySetInnerHTML. - "Dusk" dark theme preset + a default-dark site option honoured by the no-flash boot script. Verified live (prod, amx_test): token issue → Bearer endpoint 200, no-token 401; /api/me/tokens lists it; current-dj/leaderboard JSON; /me + /draw-badge 200; reverted the test user + tokens. tsc 0, vitest 49/49, next build 0.
62 lines
1.5 KiB
JSON
62 lines
1.5 KiB
JSON
{
|
|
"name": "atomcms-next",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"packageManager": "[email protected]",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"prisma:generate": "prisma generate",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"db:migrate": "tsx scripts/apply-migrations.ts",
|
|
"db:migrate:status": "tsx scripts/apply-migrations.ts --status",
|
|
"jobs:worker": "tsx scripts/jobs-worker.ts"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/adapter-mariadb": "^7.8.0",
|
|
"@prisma/client": "^7.8.0",
|
|
"bcryptjs": "^3.0.2",
|
|
"croner": "^10.0.1",
|
|
"hash-wasm": "^4.12.0",
|
|
"next": "^16.2.9",
|
|
"next-auth": "5.0.0-beta.31",
|
|
"next-intl": "^4.13.0",
|
|
"nodemailer": "^6.9.0",
|
|
"otplib": "^12.0.1",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"sanitize-html": "^2.17.5",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/forms": "^0.5.11",
|
|
"@tailwindcss/postcss": "^4.3.1",
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@types/node": "^22.10.0",
|
|
"@types/nodemailer": "^6.4.0",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@types/sanitize-html": "^2.16.1",
|
|
"dotenv": "^16.4.0",
|
|
"postcss": "^8.5.15",
|
|
"prisma": "^7.8.0",
|
|
"tailwindcss": "^4.3.1",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^2.1.0"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild",
|
|
"prisma",
|
|
"@prisma/client",
|
|
"@prisma/engines"
|
|
]
|
|
}
|
|
}
|