Web client refinement (#16)

* fix(files/handler): add base64 decode for content

* fix(singleuser): pick user name from jwt token and encode content

* fix(singleuser): add public path check, abstract user info from token

* fix(singleuser): update singleuser client

* fix(server): fix test and enable auth by default

* feat(client/web): add web client

* fix(client/web): refine css styles

* fix(client/web): refine styles

* fix(client/web): refine styles, add test and fix bugs

* test(client/web): add web client tests

* fix(client/web): refactor client interface and enhance the robustness

* chore(client/web): ignore js bundles

* test(files): call sync before check

Co-authored-by: Jia He <jiah@nvidia.com>
This commit is contained in:
Hexxa 2020-12-16 23:39:26 +08:00 committed by GitHub
parent 0265baf1b1
commit ba6a5373d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 9192 additions and 158 deletions

View file

@ -0,0 +1,83 @@
{
"name": "web",
"version": "0.2.0",
"description": "web client for quickshare",
"main": "",
"scripts": {
"build": "webpack --config webpack.app.prod.js",
"build:watch": "webpack --config webpack.app.prod.js --watch",
"build:dev": "webpack --config webpack.app.dev.js --watch",
"build:admin": "webpack --config webpack.admin.prod.js",
"build:admin:watch": "webpack --config webpack.admin.prod.js --watch",
"build:admin:dev": "webpack --config webpack.admin.dev.js --watch",
"build:task": "webpack --config webpack.task.prod.js",
"build:task:watch": "webpack --config webpack.task.prod.js --watch",
"build:task:dev": "webpack --config webpack.task.dev.js --watch",
"e2e": "jest -c jest.e2e.config.js",
"e2e:watch": "jest --watch -c jest.e2e.config.js",
"test": "jest test",
"test:watch": "jest test --watch",
"copy": "cp -r ../../static ../../../dockers/nginx/"
},
"author": "hexxa",
"license": "LGPL-3.0",
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"@types/assert": "^1.4.2",
"@types/deep-diff": "^1.0.0",
"@types/jest": "^24.0.12",
"assert": "^2.0.0",
"css-loader": "^2.1.1",
"deep-diff": "^1.0.2",
"html-webpack-plugin": "^4.0.0-beta.5",
"jest": "^24.8.0",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.3.0",
"ts-jest": "^24.0.2",
"ts-loader": "^6.0.0",
"ts-node": "^8.2.0",
"tslint": "^5.16.0",
"typescript": "^3.4.3",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^5.0.0-rc.6",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.0",
"webpack-merge": "^4.2.1"
},
"dependencies": {
"@types/axios": "^0.14.0",
"@types/immutable": "^3.8.7",
"@types/react": "^16.8.13",
"@types/react-copy-to-clipboard": "^4.2.6",
"@types/react-dom": "^16.8.4",
"@types/react-svg": "^5.0.0",
"@types/throttle-debounce": "^1.1.1",
"axios": "^0.18.0",
"filesize": "^6.1.0",
"immutable": "^4.0.0-rc.12",
"react": "^16.8.6",
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.8.6",
"react-svg": "^8.0.6",
"throttle-debounce": "^2.1.0"
},
"jest": {
"testMatch": [
"**/src/**/__test__/**/*.test.ts",
"**/src/**/__test__/**/*.test.tsx"
],
"transform": {
"\\.(ts|tsx)$": "ts-jest"
},
"verbose": true,
"moduleFileExtensions": [
"ts",
"tsx",
"js"
]
},
"autoBump": {}
}