Initial dashboard work (auth flow)

This commit is contained in:
Dragory 2019-05-26 00:13:42 +03:00
parent d54897acdd
commit 5a91d36953
18 changed files with 3808 additions and 31 deletions

View file

@ -5,39 +5,43 @@
"private": true,
"scripts": {
"test": "jest src",
"start-dev": "ts-node src/index.ts",
"start-watch": "nodemon",
"start-bot-dev": "ts-node src/index.ts",
"start-bot-watch": "nodemon --config nodemon-bot.json",
"start-bot-prod": "cross-env NODE_ENV=production node dist/index.js",
"format": "prettier --write \"./**/*.ts\"",
"typeorm": "ts-node ./node_modules/typeorm/cli.js",
"build": "rimraf dist && tsc",
"start-prod": "cross-env NODE_ENV=production node dist/index.js",
"migrate": "npm run typeorm -- migration:run"
"build-dashboard-frontend": "rimraf dist-frontend && parcel build src/dashboard/frontend/index.html --out-dir dist-frontend",
"start-dashboard-frontend-dev": "parcel src/dashboard/frontend/index.html",
"start-dashboard-api-dev": "ts-node src/dashboard/server/index.ts",
"start-dashboard-api-watch": "nodemon --config nodemon-dashboard-api.json",
"start-dashboard-api": "cross-env NODE_ENV=production node dist/dashboard/server/index.js",
"migrate": "npm run typeorm -- migration:run",
"migrate-rollback": "npm run typeorm -- migration:revert"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/lodash.at": "^4.6.3",
"@types/moment-timezone": "^0.5.6",
"ajv": "^6.7.0",
"cross-env": "^5.2.0",
"dotenv": "^4.0.0",
"emoji-regex": "^7.0.1",
"eris": "github:abalabahaha/eris#dev",
"escape-string-regexp": "^1.0.5",
"express": "^4.17.0",
"humanize-duration": "^3.15.0",
"js-yaml": "^3.13.1",
"knub": "^20.1.0",
"last-commit-log": "^2.1.0",
"lodash.at": "^4.6.0",
"lodash.chunk": "^4.2.0",
"lodash.clonedeep": "^4.5.0",
"lodash.difference": "^4.5.0",
"lodash.has": "^4.5.2",
"lodash.intersection": "^4.4.0",
"lodash.isequal": "^4.5.0",
"lodash.pick": "^4.4.0",
"moment-timezone": "^0.5.21",
"mysql": "^2.16.0",
"passport": "^0.4.0",
"passport-custom": "^1.0.5",
"passport-oauth2": "^1.5.0",
"reflect-metadata": "^0.1.12",
"tlds": "^1.203.1",
"tmp": "0.0.33",
@ -50,14 +54,20 @@
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/preset-typescript": "^7.3.3",
"@types/express": "^4.16.1",
"@types/jest": "^24.0.11",
"@types/lodash.at": "^4.6.3",
"@types/moment-timezone": "^0.5.6",
"@types/node": "^10.12.0",
"@types/passport": "^1.0.0",
"@types/passport-oauth2": "^1.4.8",
"@types/tmp": "0.0.33",
"babel-jest": "^24.5.0",
"husky": "^1.3.1",
"jest": "^24.7.1",
"lint-staged": "^8.1.5",
"nodemon": "^1.17.5",
"parcel-bundler": "^1.12.3",
"prettier": "^1.16.4",
"rimraf": "^2.6.2",
"tslint": "^5.13.1",