Skip to content

Commit 28eb878

Browse files
authored
Set Bucket Quota on Creation (#308)
Introces the capability to set bucket quota on bucket creation and adds the API to set the bucket on it's own
1 parent fcf5d5c commit 28eb878

30 files changed

+2490
-447
lines changed

models/make_bucket_request.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/set_bucket_quota.go

Lines changed: 137 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

portal-ui/bindata_assetfs.go

Lines changed: 121 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

portal-ui/config-overrides.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const rewireReactHotLoader = require('react-app-rewire-hot-loader');
2+
3+
/* config-overrides.js */
4+
module.exports = function override(config, env) {
5+
if (env === 'development') {
6+
config.resolve.alias['react-dom'] = '@hot-loader/react-dom';
7+
}
8+
config = rewireReactHotLoader(config, env);
9+
return config;
10+
};

portal-ui/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dependencies": {
66
"@babel/helper-create-regexp-features-plugin": "^7.7.4",
77
"@babel/plugin-transform-react-jsx-development": "^7.9.0",
8+
"@hot-loader/react-dom": "^16.9.0",
89
"@material-ui/core": "^4.9.12",
910
"@material-ui/icons": "^4.9.1",
1011
"@types/history": "^4.7.3",
@@ -29,9 +30,13 @@
2930
"moment": "^2.24.0",
3031
"npm": "^6.14.4",
3132
"react": "^16.13.1",
33+
"react-app-rewire-hot-loader": "^2.0.1",
34+
"react-app-rewired": "^2.1.6",
35+
"react-async-hook": "^3.6.1",
3236
"react-chartjs-2": "^2.9.0",
3337
"react-codemirror2": "^7.1.0",
3438
"react-dom": "^16.12.0",
39+
"react-hot-loader": "^4.13.0",
3540
"react-moment": "^0.9.7",
3641
"react-redux": "^7.1.3",
3742
"react-router-dom": "^5.1.2",
@@ -42,10 +47,11 @@
4247
"superagent": "^5.1.0",
4348
"typeface-roboto": "^0.0.75",
4449
"typescript": "3.6.4",
50+
"use-debounce": "^5.0.1",
4551
"websocket": "^1.0.31"
4652
},
4753
"scripts": {
48-
"start": "PORT=5000 react-scripts start",
54+
"start": "PORT=5000 react-app-rewired start",
4955
"build": "react-scripts build",
5056
"test": "react-scripts test",
5157
"eject": "react-scripts eject"

portal-ui/src/Routes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { connect } from "react-redux";
2525
import { AppState } from "./store";
2626
import { userLoggedIn } from "./actions";
2727
import LoginCallback from "./screens/LoginPage/LoginCallback";
28+
import { hot } from "react-hot-loader/root";
2829

2930
const isLoggedIn = () => {
3031
return (
@@ -75,4 +76,4 @@ class Routes extends React.Component<RoutesProps> {
7576
}
7677
}
7778

78-
export default connector(Routes);
79+
export default hot(connector(Routes));

0 commit comments

Comments
 (0)