Files
jellyseerr/package.json
sct 190a8831c7 User Context (#51)
* feat(frontend): user Context / useUser hook

Adds a UserContext to wrap the app and load/cache the user when the website renders. Also adds the
useUser hook to pull in user data anywhere its needed on the site. This commit also adds redirection
to the login page for users who are not signed in

* fix(frontend): use process.env.PORT for user request on server side (defaults to 3000)

* docs(frontend): added documentation/notes for how the user context/login works
2020-09-05 13:16:26 +09:00

98 lines
2.7 KiB
JSON

{
"name": "overseerr",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "nodemon -e ts --watch server -e .json,.ts,.yml -x ts-node --files --project server/tsconfig.json server/index.ts",
"build:server": "tsc --project server/tsconfig.json",
"build:next": "next build",
"build": "yarn build:next && yarn build:server",
"lint": "eslint \"./server/**/*.{ts,tsx}\" \"./src/**/*.{ts,tsx}\"",
"start": "NODE_ENV=production node dist/index.js"
},
"dependencies": {
"@tailwindcss/ui": "^0.5.0",
"axios": "^0.20.0",
"body-parser": "^1.19.0",
"bowser": "^2.10.0",
"connect-typeorm": "^1.1.4",
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"express-openapi-validator": "^3.16.11",
"express-session": "^1.17.1",
"next": "9.5.3",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-transition-group": "^4.4.1",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.0.0",
"swagger-ui-express": "^4.1.4",
"swr": "^0.3.2",
"typeorm": "^0.2.25",
"yamljs": "^0.3.0"
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@types/body-parser": "^1.19.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.8",
"@types/express-session": "^1.17.0",
"@types/node": "^14.6.3",
"@types/react": "^16.9.49",
"@types/react-transition-group": "^4.4.0",
"@types/swagger-ui-express": "^4.1.2",
"@types/yamljs": "^0.2.31",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^3.10.1",
"commitizen": "^4.2.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"husky": "^4.2.5",
"lint-staged": "^10.3.0",
"nodemon": "^2.0.4",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.1",
"tailwindcss": "^1.7.6",
"ts-node": "^9.0.0",
"typescript": "^4.0.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"commit-msg": "[[ -n $HUSKY_BYPASS ]] || commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"**/*.{ts,tsx,js}": [
"prettier --write",
"eslint",
"git add"
],
"**/*.{json,md}": [
"prettier --write",
"git add"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
}
}