Files
cxyz/package.json
nsrb 704394169a Add authentication feature with session management
- Implemented authentication logic in src/server/auth.js, including session token creation and verification.
- Integrated authentication routes for login, logout, and user session retrieval in the Fastify server.
- Updated docker-compose.yml to include optional authentication environment variables.
- Added @fastify/cookie dependency for cookie management in package.json and package-lock.json.
- Enhanced the frontend with login form and session handling in App.svelte, including UI updates for authenticated states.
- Styled authentication components in app.css for better user experience.
2026-08-03 07:50:00 +07:00

47 lines
1.4 KiB
JSON

{
"name": "cxyz",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"web": "node src/server/index.js",
"dev:web": "vite --config web/vite.config.mjs",
"build:web": "vite build --config web/vite.config.mjs",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"docs": "jsdoc -c jsdoc.conf.json",
"mangaread:fetch": "node src/mangareadFetchChapters.js",
"manhwasusu:fetch": "node src/manhwasusu/fetchChapters.cli.js",
"manhwasusu:chapter-cbz": "node src/manhwasusu/downloadChapterCbz.js",
"manhwasusu:chapters-cbz": "node src/manhwasusu/downloadChaptersQueue.js",
"mangaread:chapter-cbz": "node src/downloadChapterCbz.js",
"mangaread:chapters-cbz": "node src/downloadChaptersQueue.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@fastify/cookie": "^11.1.2",
"@fastify/static": "^10.1.2",
"@picocss/pico": "^2.1.1",
"adm-zip": "^0.5.17",
"axios": "^1.16.1",
"better-sqlite3": "^13.0.2",
"fastify": "^5.11.0",
"node-cron": "^4.6.0",
"node-html-parser": "^7.1.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@sveltejs/vite-plugin-svelte": "^7.2.0",
"eslint": "^10.4.0",
"eslint-plugin-jsdoc": "^62.9.0",
"globals": "^17.6.0",
"jsdoc": "^4.0.5",
"svelte": "^5.56.8",
"vite": "^8.2.0"
}
}