mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Release v2.0.0 (#3526)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## Release v2.0.0
|
||||
|
||||
Community version is going back to be an object browser only.
|
||||
|
||||
Bug Fix:
|
||||
|
||||
- Fixed Dependencies vulnerabilities
|
||||
|
||||
Deprecations:
|
||||
|
||||
- Deprecated support of accounts & policies management, this can be managed by using mc admin commands. Please refer to the [MinIO Console User Management page](https://min.io/docs/minio/kubernetes/upstream/administration/identity-access-management/minio-user-management.html#id1) for more information.
|
||||
- Deprecated support of bucket management, this can be managed by using mc commands. Please refer to the [MinIO Client](https://min.io/docs/minio/linux/reference/minio-mc.html) for more information.
|
||||
- Deprecated support of configuration management, this can be managed by using mc admin config commands. Please refer to the [MinIO Client](https://min.io/docs/minio/linux/reference/minio-mc.html) for more information.
|
||||
|
||||
|
||||
## Release v1.7.6
|
||||
|
||||
Bug Fix:
|
||||
|
||||
6
Makefile
6
Makefile
@@ -57,10 +57,14 @@ clean-swagger:
|
||||
swagger-console:
|
||||
@echo "Generating swagger server code from yaml"
|
||||
@swagger generate server -A console --main-package=management --server-package=api --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
|
||||
@echo "Ensure basic install"
|
||||
@(cd web-app; yarn; cd ..)
|
||||
@echo "Generating typescript api"
|
||||
@npx swagger-typescript-api -p ./swagger.yml -o ./web-app/src/api -n consoleApi.ts --custom-config generator.config.js
|
||||
@make swagger-typescript-api path="../swagger.yml" output="./src/api" name="consoleApi.ts"
|
||||
@git restore api/server.go
|
||||
|
||||
swagger-typescript-api:
|
||||
@(cd web-app; yarn swagger-typescript-api -p $(path) -o $(output) -n $(name) --custom-config ../generator.config.js; cd ..)
|
||||
|
||||
assets:
|
||||
@(if [ -f "${NVM_DIR}/nvm.sh" ]; then \. "${NVM_DIR}/nvm.sh" && nvm install && nvm use && npm install -g yarn ; fi &&\
|
||||
|
||||
@@ -1,82 +1,17 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "./static/css/main.e60e4760.css",
|
||||
"main.js": "./static/js/main.45669c2e.js",
|
||||
"static/js/5301.79001158.chunk.js": "./static/js/5301.79001158.chunk.js",
|
||||
"static/js/9361.f4bfeb22.chunk.js": "./static/js/9361.f4bfeb22.chunk.js",
|
||||
"static/js/5711.6f5b125a.chunk.js": "./static/js/5711.6f5b125a.chunk.js",
|
||||
"static/js/8769.731be02d.chunk.js": "./static/js/8769.731be02d.chunk.js",
|
||||
"static/js/2033.a048316b.chunk.js": "./static/js/2033.a048316b.chunk.js",
|
||||
"static/js/6164.89e6e237.chunk.js": "./static/js/6164.89e6e237.chunk.js",
|
||||
"static/js/2372.6b4933ca.chunk.js": "./static/js/2372.6b4933ca.chunk.js",
|
||||
"static/js/1324.b4c459ae.chunk.js": "./static/js/1324.b4c459ae.chunk.js",
|
||||
"static/js/5872.deed6239.chunk.js": "./static/js/5872.deed6239.chunk.js",
|
||||
"static/js/755.3e336243.chunk.js": "./static/js/755.3e336243.chunk.js",
|
||||
"static/js/8715.08b2d38b.chunk.js": "./static/js/8715.08b2d38b.chunk.js",
|
||||
"static/js/7880.5e820de1.chunk.js": "./static/js/7880.5e820de1.chunk.js",
|
||||
"static/js/2209.3b0ca7fa.chunk.js": "./static/js/2209.3b0ca7fa.chunk.js",
|
||||
"static/js/7435.279d39d5.chunk.js": "./static/js/7435.279d39d5.chunk.js",
|
||||
"static/js/2491.b81bd18c.chunk.js": "./static/js/2491.b81bd18c.chunk.js",
|
||||
"static/js/9269.80d85085.chunk.js": "./static/js/9269.80d85085.chunk.js",
|
||||
"static/js/6925.c3c29d15.chunk.js": "./static/js/6925.c3c29d15.chunk.js",
|
||||
"static/js/3527.0fc04358.chunk.js": "./static/js/3527.0fc04358.chunk.js",
|
||||
"static/js/8789.02b80e81.chunk.js": "./static/js/8789.02b80e81.chunk.js",
|
||||
"static/js/7485.bf57295d.chunk.js": "./static/js/7485.bf57295d.chunk.js",
|
||||
"static/js/7041.58cb8aa5.chunk.js": "./static/js/7041.58cb8aa5.chunk.js",
|
||||
"static/js/2138.a8c39913.chunk.js": "./static/js/2138.a8c39913.chunk.js",
|
||||
"static/js/5699.7bb3293b.chunk.js": "./static/js/5699.7bb3293b.chunk.js",
|
||||
"static/js/5153.a670aac5.chunk.js": "./static/js/5153.a670aac5.chunk.js",
|
||||
"static/js/7052.e339a487.chunk.js": "./static/js/7052.e339a487.chunk.js",
|
||||
"static/js/144.a307e795.chunk.js": "./static/js/144.a307e795.chunk.js",
|
||||
"static/js/7601.74b87c2f.chunk.js": "./static/js/7601.74b87c2f.chunk.js",
|
||||
"static/js/182.6e133743.chunk.js": "./static/js/182.6e133743.chunk.js",
|
||||
"static/js/8017.9cff1006.chunk.js": "./static/js/8017.9cff1006.chunk.js",
|
||||
"static/js/3323.8de9a2da.chunk.js": "./static/js/3323.8de9a2da.chunk.js",
|
||||
"static/js/5128.a4f856c7.chunk.js": "./static/js/5128.a4f856c7.chunk.js",
|
||||
"static/js/6140.ff277d79.chunk.js": "./static/js/6140.ff277d79.chunk.js",
|
||||
"static/js/3298.bc647bb4.chunk.js": "./static/js/3298.bc647bb4.chunk.js",
|
||||
"static/js/7643.d3ef8c65.chunk.js": "./static/js/7643.d3ef8c65.chunk.js",
|
||||
"static/js/9619.7478aab8.chunk.js": "./static/js/9619.7478aab8.chunk.js",
|
||||
"static/js/985.46ebf89c.chunk.js": "./static/js/985.46ebf89c.chunk.js",
|
||||
"static/js/1370.7d88b85a.chunk.js": "./static/js/1370.7d88b85a.chunk.js",
|
||||
"static/js/8823.bc273dec.chunk.js": "./static/js/8823.bc273dec.chunk.js",
|
||||
"static/js/24.e576918a.chunk.js": "./static/js/24.e576918a.chunk.js",
|
||||
"static/js/5851.9e5683a6.chunk.js": "./static/js/5851.9e5683a6.chunk.js",
|
||||
"static/js/4705.1fa96caf.chunk.js": "./static/js/4705.1fa96caf.chunk.js",
|
||||
"static/js/8963.d2703f60.chunk.js": "./static/js/8963.d2703f60.chunk.js",
|
||||
"static/js/960.8c1c0677.chunk.js": "./static/js/960.8c1c0677.chunk.js",
|
||||
"static/js/8642.6ba87ff0.chunk.js": "./static/js/8642.6ba87ff0.chunk.js",
|
||||
"static/js/3329.df273360.chunk.js": "./static/js/3329.df273360.chunk.js",
|
||||
"static/js/5941.59ff87cc.chunk.js": "./static/js/5941.59ff87cc.chunk.js",
|
||||
"static/js/2704.1285a8c1.chunk.js": "./static/js/2704.1285a8c1.chunk.js",
|
||||
"static/js/7774.a3ae398a.chunk.js": "./static/js/7774.a3ae398a.chunk.js",
|
||||
"static/js/3851.ee2f94b6.chunk.js": "./static/js/3851.ee2f94b6.chunk.js",
|
||||
"static/js/9965.bf313381.chunk.js": "./static/js/9965.bf313381.chunk.js",
|
||||
"static/js/6065.740f3e17.chunk.js": "./static/js/6065.740f3e17.chunk.js",
|
||||
"static/js/12.fcd89e94.chunk.js": "./static/js/12.fcd89e94.chunk.js",
|
||||
"static/js/8010.f3d6885a.chunk.js": "./static/js/8010.f3d6885a.chunk.js",
|
||||
"static/js/2689.2888d029.chunk.js": "./static/js/2689.2888d029.chunk.js",
|
||||
"static/js/4676.563616b8.chunk.js": "./static/js/4676.563616b8.chunk.js",
|
||||
"static/js/614.29e0d9dd.chunk.js": "./static/js/614.29e0d9dd.chunk.js",
|
||||
"static/js/502.b83faa7c.chunk.js": "./static/js/502.b83faa7c.chunk.js",
|
||||
"static/js/6799.c970e1e8.chunk.js": "./static/js/6799.c970e1e8.chunk.js",
|
||||
"static/js/7659.9554f8f3.chunk.js": "./static/js/7659.9554f8f3.chunk.js",
|
||||
"static/js/7515.3c5e861f.chunk.js": "./static/js/7515.3c5e861f.chunk.js",
|
||||
"static/js/6654.bfc29bf7.chunk.js": "./static/js/6654.bfc29bf7.chunk.js",
|
||||
"static/js/5311.33b9cf56.chunk.js": "./static/js/5311.33b9cf56.chunk.js",
|
||||
"static/js/5809.a7e08101.chunk.js": "./static/js/5809.a7e08101.chunk.js",
|
||||
"static/js/7264.272579ce.chunk.js": "./static/js/7264.272579ce.chunk.js",
|
||||
"static/js/4172.d98e6099.chunk.js": "./static/js/4172.d98e6099.chunk.js",
|
||||
"static/js/6108.84010ebc.chunk.js": "./static/js/6108.84010ebc.chunk.js",
|
||||
"static/js/9714.cf260d8c.chunk.js": "./static/js/9714.cf260d8c.chunk.js",
|
||||
"static/js/459.8799175b.chunk.js": "./static/js/459.8799175b.chunk.js",
|
||||
"static/js/8152.51d0ef4b.chunk.js": "./static/js/8152.51d0ef4b.chunk.js",
|
||||
"static/js/1303.6fa13ab4.chunk.js": "./static/js/1303.6fa13ab4.chunk.js",
|
||||
"static/js/5079.a17a3c13.chunk.js": "./static/js/5079.a17a3c13.chunk.js",
|
||||
"static/js/5200.12ba336c.chunk.js": "./static/js/5200.12ba336c.chunk.js",
|
||||
"static/js/5067.2702d94c.chunk.js": "./static/js/5067.2702d94c.chunk.js",
|
||||
"static/js/8104.047c0527.chunk.js": "./static/js/8104.047c0527.chunk.js",
|
||||
"static/js/1011.75fdf45e.chunk.js": "./static/js/1011.75fdf45e.chunk.js",
|
||||
"main.js": "./static/js/main.758e24eb.js",
|
||||
"static/js/6.304df09b.chunk.js": "./static/js/6.304df09b.chunk.js",
|
||||
"static/js/258.1442e3bb.chunk.js": "./static/js/258.1442e3bb.chunk.js",
|
||||
"static/js/755.769f8547.chunk.js": "./static/js/755.769f8547.chunk.js",
|
||||
"static/js/153.0edba926.chunk.js": "./static/js/153.0edba926.chunk.js",
|
||||
"static/js/88.435ad87d.chunk.js": "./static/js/88.435ad87d.chunk.js",
|
||||
"static/js/941.97a59715.chunk.js": "./static/js/941.97a59715.chunk.js",
|
||||
"static/js/704.08d49eab.chunk.js": "./static/js/704.08d49eab.chunk.js",
|
||||
"static/js/774.6415c182.chunk.js": "./static/js/774.6415c182.chunk.js",
|
||||
"static/js/868.84f9ff08.chunk.js": "./static/js/868.84f9ff08.chunk.js",
|
||||
"static/js/368.b04989d2.chunk.js": "./static/js/368.b04989d2.chunk.js",
|
||||
"static/media/videoBG.mp4": "./static/media/videoBG.17363418b3c2246a0e27.mp4",
|
||||
"static/media/loginAnimationPoster.png": "./static/media/loginAnimationPoster.9aa924bfe619e71d5d29.png",
|
||||
"static/media/Inter-BoldItalic.woff": "./static/media/Inter-BoldItalic.b376885042f6c961a541.woff",
|
||||
@@ -100,85 +35,20 @@
|
||||
"static/media/placeholderimage.png": "./static/media/placeholderimage.077ea48bd1ef1f4a883f.png",
|
||||
"index.html": "./index.html",
|
||||
"main.e60e4760.css.map": "./static/css/main.e60e4760.css.map",
|
||||
"main.45669c2e.js.map": "./static/js/main.45669c2e.js.map",
|
||||
"5301.79001158.chunk.js.map": "./static/js/5301.79001158.chunk.js.map",
|
||||
"9361.f4bfeb22.chunk.js.map": "./static/js/9361.f4bfeb22.chunk.js.map",
|
||||
"5711.6f5b125a.chunk.js.map": "./static/js/5711.6f5b125a.chunk.js.map",
|
||||
"8769.731be02d.chunk.js.map": "./static/js/8769.731be02d.chunk.js.map",
|
||||
"2033.a048316b.chunk.js.map": "./static/js/2033.a048316b.chunk.js.map",
|
||||
"6164.89e6e237.chunk.js.map": "./static/js/6164.89e6e237.chunk.js.map",
|
||||
"2372.6b4933ca.chunk.js.map": "./static/js/2372.6b4933ca.chunk.js.map",
|
||||
"1324.b4c459ae.chunk.js.map": "./static/js/1324.b4c459ae.chunk.js.map",
|
||||
"5872.deed6239.chunk.js.map": "./static/js/5872.deed6239.chunk.js.map",
|
||||
"755.3e336243.chunk.js.map": "./static/js/755.3e336243.chunk.js.map",
|
||||
"8715.08b2d38b.chunk.js.map": "./static/js/8715.08b2d38b.chunk.js.map",
|
||||
"7880.5e820de1.chunk.js.map": "./static/js/7880.5e820de1.chunk.js.map",
|
||||
"2209.3b0ca7fa.chunk.js.map": "./static/js/2209.3b0ca7fa.chunk.js.map",
|
||||
"7435.279d39d5.chunk.js.map": "./static/js/7435.279d39d5.chunk.js.map",
|
||||
"2491.b81bd18c.chunk.js.map": "./static/js/2491.b81bd18c.chunk.js.map",
|
||||
"9269.80d85085.chunk.js.map": "./static/js/9269.80d85085.chunk.js.map",
|
||||
"6925.c3c29d15.chunk.js.map": "./static/js/6925.c3c29d15.chunk.js.map",
|
||||
"3527.0fc04358.chunk.js.map": "./static/js/3527.0fc04358.chunk.js.map",
|
||||
"8789.02b80e81.chunk.js.map": "./static/js/8789.02b80e81.chunk.js.map",
|
||||
"7485.bf57295d.chunk.js.map": "./static/js/7485.bf57295d.chunk.js.map",
|
||||
"7041.58cb8aa5.chunk.js.map": "./static/js/7041.58cb8aa5.chunk.js.map",
|
||||
"2138.a8c39913.chunk.js.map": "./static/js/2138.a8c39913.chunk.js.map",
|
||||
"5699.7bb3293b.chunk.js.map": "./static/js/5699.7bb3293b.chunk.js.map",
|
||||
"5153.a670aac5.chunk.js.map": "./static/js/5153.a670aac5.chunk.js.map",
|
||||
"7052.e339a487.chunk.js.map": "./static/js/7052.e339a487.chunk.js.map",
|
||||
"144.a307e795.chunk.js.map": "./static/js/144.a307e795.chunk.js.map",
|
||||
"7601.74b87c2f.chunk.js.map": "./static/js/7601.74b87c2f.chunk.js.map",
|
||||
"182.6e133743.chunk.js.map": "./static/js/182.6e133743.chunk.js.map",
|
||||
"8017.9cff1006.chunk.js.map": "./static/js/8017.9cff1006.chunk.js.map",
|
||||
"3323.8de9a2da.chunk.js.map": "./static/js/3323.8de9a2da.chunk.js.map",
|
||||
"5128.a4f856c7.chunk.js.map": "./static/js/5128.a4f856c7.chunk.js.map",
|
||||
"6140.ff277d79.chunk.js.map": "./static/js/6140.ff277d79.chunk.js.map",
|
||||
"3298.bc647bb4.chunk.js.map": "./static/js/3298.bc647bb4.chunk.js.map",
|
||||
"7643.d3ef8c65.chunk.js.map": "./static/js/7643.d3ef8c65.chunk.js.map",
|
||||
"9619.7478aab8.chunk.js.map": "./static/js/9619.7478aab8.chunk.js.map",
|
||||
"985.46ebf89c.chunk.js.map": "./static/js/985.46ebf89c.chunk.js.map",
|
||||
"1370.7d88b85a.chunk.js.map": "./static/js/1370.7d88b85a.chunk.js.map",
|
||||
"8823.bc273dec.chunk.js.map": "./static/js/8823.bc273dec.chunk.js.map",
|
||||
"24.e576918a.chunk.js.map": "./static/js/24.e576918a.chunk.js.map",
|
||||
"5851.9e5683a6.chunk.js.map": "./static/js/5851.9e5683a6.chunk.js.map",
|
||||
"4705.1fa96caf.chunk.js.map": "./static/js/4705.1fa96caf.chunk.js.map",
|
||||
"8963.d2703f60.chunk.js.map": "./static/js/8963.d2703f60.chunk.js.map",
|
||||
"960.8c1c0677.chunk.js.map": "./static/js/960.8c1c0677.chunk.js.map",
|
||||
"8642.6ba87ff0.chunk.js.map": "./static/js/8642.6ba87ff0.chunk.js.map",
|
||||
"3329.df273360.chunk.js.map": "./static/js/3329.df273360.chunk.js.map",
|
||||
"5941.59ff87cc.chunk.js.map": "./static/js/5941.59ff87cc.chunk.js.map",
|
||||
"2704.1285a8c1.chunk.js.map": "./static/js/2704.1285a8c1.chunk.js.map",
|
||||
"7774.a3ae398a.chunk.js.map": "./static/js/7774.a3ae398a.chunk.js.map",
|
||||
"3851.ee2f94b6.chunk.js.map": "./static/js/3851.ee2f94b6.chunk.js.map",
|
||||
"9965.bf313381.chunk.js.map": "./static/js/9965.bf313381.chunk.js.map",
|
||||
"6065.740f3e17.chunk.js.map": "./static/js/6065.740f3e17.chunk.js.map",
|
||||
"12.fcd89e94.chunk.js.map": "./static/js/12.fcd89e94.chunk.js.map",
|
||||
"8010.f3d6885a.chunk.js.map": "./static/js/8010.f3d6885a.chunk.js.map",
|
||||
"2689.2888d029.chunk.js.map": "./static/js/2689.2888d029.chunk.js.map",
|
||||
"4676.563616b8.chunk.js.map": "./static/js/4676.563616b8.chunk.js.map",
|
||||
"614.29e0d9dd.chunk.js.map": "./static/js/614.29e0d9dd.chunk.js.map",
|
||||
"502.b83faa7c.chunk.js.map": "./static/js/502.b83faa7c.chunk.js.map",
|
||||
"6799.c970e1e8.chunk.js.map": "./static/js/6799.c970e1e8.chunk.js.map",
|
||||
"7659.9554f8f3.chunk.js.map": "./static/js/7659.9554f8f3.chunk.js.map",
|
||||
"7515.3c5e861f.chunk.js.map": "./static/js/7515.3c5e861f.chunk.js.map",
|
||||
"6654.bfc29bf7.chunk.js.map": "./static/js/6654.bfc29bf7.chunk.js.map",
|
||||
"5311.33b9cf56.chunk.js.map": "./static/js/5311.33b9cf56.chunk.js.map",
|
||||
"5809.a7e08101.chunk.js.map": "./static/js/5809.a7e08101.chunk.js.map",
|
||||
"7264.272579ce.chunk.js.map": "./static/js/7264.272579ce.chunk.js.map",
|
||||
"4172.d98e6099.chunk.js.map": "./static/js/4172.d98e6099.chunk.js.map",
|
||||
"6108.84010ebc.chunk.js.map": "./static/js/6108.84010ebc.chunk.js.map",
|
||||
"9714.cf260d8c.chunk.js.map": "./static/js/9714.cf260d8c.chunk.js.map",
|
||||
"459.8799175b.chunk.js.map": "./static/js/459.8799175b.chunk.js.map",
|
||||
"8152.51d0ef4b.chunk.js.map": "./static/js/8152.51d0ef4b.chunk.js.map",
|
||||
"1303.6fa13ab4.chunk.js.map": "./static/js/1303.6fa13ab4.chunk.js.map",
|
||||
"5079.a17a3c13.chunk.js.map": "./static/js/5079.a17a3c13.chunk.js.map",
|
||||
"5200.12ba336c.chunk.js.map": "./static/js/5200.12ba336c.chunk.js.map",
|
||||
"5067.2702d94c.chunk.js.map": "./static/js/5067.2702d94c.chunk.js.map",
|
||||
"8104.047c0527.chunk.js.map": "./static/js/8104.047c0527.chunk.js.map",
|
||||
"1011.75fdf45e.chunk.js.map": "./static/js/1011.75fdf45e.chunk.js.map"
|
||||
"main.758e24eb.js.map": "./static/js/main.758e24eb.js.map",
|
||||
"6.304df09b.chunk.js.map": "./static/js/6.304df09b.chunk.js.map",
|
||||
"258.1442e3bb.chunk.js.map": "./static/js/258.1442e3bb.chunk.js.map",
|
||||
"755.769f8547.chunk.js.map": "./static/js/755.769f8547.chunk.js.map",
|
||||
"153.0edba926.chunk.js.map": "./static/js/153.0edba926.chunk.js.map",
|
||||
"88.435ad87d.chunk.js.map": "./static/js/88.435ad87d.chunk.js.map",
|
||||
"941.97a59715.chunk.js.map": "./static/js/941.97a59715.chunk.js.map",
|
||||
"704.08d49eab.chunk.js.map": "./static/js/704.08d49eab.chunk.js.map",
|
||||
"774.6415c182.chunk.js.map": "./static/js/774.6415c182.chunk.js.map",
|
||||
"868.84f9ff08.chunk.js.map": "./static/js/868.84f9ff08.chunk.js.map",
|
||||
"368.b04989d2.chunk.js.map": "./static/js/368.b04989d2.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.e60e4760.css",
|
||||
"static/js/main.45669c2e.js"
|
||||
"static/js/main.758e24eb.js"
|
||||
]
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="/"/><meta content="width=device-width,initial-scale=1" name="viewport"/><meta content="#081C42" media="(prefers-color-scheme: light)" name="theme-color"/><meta content="#081C42" media="(prefers-color-scheme: dark)" name="theme-color"/><meta content="MinIO Console" name="description"/><meta name="minio-license" content="agpl"/><link href="./styles/root-styles.css" rel="stylesheet"/><link href="./apple-icon-180x180.png" rel="apple-touch-icon" sizes="180x180"/><link href="./favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/><link href="./favicon-96x96.png" rel="icon" sizes="96x96" type="image/png"/><link href="./favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/><link href="./manifest.json" rel="manifest"/><link color="#3a4e54" href="./safari-pinned-tab.svg" rel="mask-icon"/><title>MinIO Console</title><script defer="defer" src="./static/js/main.45669c2e.js"></script><link href="./static/css/main.e60e4760.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div id="preload"><img src="./images/background.svg"/> <img src="./images/background-wave-orig2.svg"/></div><div id="loader-block"><img src="./Loader.svg"/></div></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="/"/><meta content="width=device-width,initial-scale=1" name="viewport"/><meta content="#081C42" media="(prefers-color-scheme: light)" name="theme-color"/><meta content="#081C42" media="(prefers-color-scheme: dark)" name="theme-color"/><meta content="MinIO Console" name="description"/><meta name="minio-license" content="agpl"/><link href="./styles/root-styles.css" rel="stylesheet"/><link href="./apple-icon-180x180.png" rel="apple-touch-icon" sizes="180x180"/><link href="./favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/><link href="./favicon-96x96.png" rel="icon" sizes="96x96" type="image/png"/><link href="./favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/><link href="./manifest.json" rel="manifest"/><link color="#3a4e54" href="./safari-pinned-tab.svg" rel="mask-icon"/><title>MinIO Console</title><script defer="defer" src="./static/js/main.758e24eb.js"></script><link href="./static/css/main.e60e4760.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div id="preload"><img src="./images/background.svg"/> <img src="./images/background-wave-orig2.svg"/></div><div id="loader-block"><img src="./Loader.svg"/></div></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"static/css/main.e60e4760.css","mappings":"AAwBA,oCACE,eAAgB,CAChB,wBAIF,CACA,kEAFE,kBAAmB,CAFnB,YAAa,CACb,kBAOF,CAEA,8CACE,oBAAqB,CACrB,cAAe,CAGf,eAAgB,CADhB,sBAAuB,CADvB,kBAGF,CAEA,2EAEE,iBAAkB,CAClB,WACF,CACA,oCACE,sBAAuB,CACvB,kBACF,CAEA,uGAEE,gBACF,CACA,+CACE,cACF,CAEA,sDAEE,kBAAmB,CADnB,YAEF,CACA,6CAIE,iBAAkB,CAHlB,aAAc,CACd,UAAW,CACX,SAEF,CCxEA,KAGE,kCAAmC,CACnC,iCAAkC,CAFlC,4BAAgC,CADhC,QAIF,CAEA,KACE,uEAEF,CAGA,0LAIE,uBAAwB,CACxB,QACF,CAGA,iEAEE,yBACF","sources":["../node_modules/react-virtualized/source/styles.css","index.css"],"sourcesContent":["/* Collection default theme */\n\n.ReactVirtualized__Collection {\n}\n\n.ReactVirtualized__Collection__innerScrollContainer {\n}\n\n/* Grid default theme */\n\n.ReactVirtualized__Grid {\n}\n\n.ReactVirtualized__Grid__innerScrollContainer {\n}\n\n/* Table default theme */\n\n.ReactVirtualized__Table {\n}\n\n.ReactVirtualized__Table__Grid {\n}\n\n.ReactVirtualized__Table__headerRow {\n font-weight: 700;\n text-transform: uppercase;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ReactVirtualized__Table__row {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.ReactVirtualized__Table__headerTruncatedText {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.ReactVirtualized__Table__headerColumn,\n.ReactVirtualized__Table__rowColumn {\n margin-right: 10px;\n min-width: 0px;\n}\n.ReactVirtualized__Table__rowColumn {\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ReactVirtualized__Table__headerColumn:first-of-type,\n.ReactVirtualized__Table__rowColumn:first-of-type {\n margin-left: 10px;\n}\n.ReactVirtualized__Table__sortableHeaderColumn {\n cursor: pointer;\n}\n\n.ReactVirtualized__Table__sortableHeaderIconContainer {\n display: flex;\n align-items: center;\n}\n.ReactVirtualized__Table__sortableHeaderIcon {\n flex: 0 0 24px;\n height: 1em;\n width: 1em;\n fill: currentColor;\n}\n\n/* List default theme */\n\n.ReactVirtualized__List {\n}\n","body {\n margin: 0;\n font-family: \"Inter\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\n monospace;\n}\n\n/* Chrome, Safari, Edge, Opera */\ninput.removeArrows::-webkit-outer-spin-button,\ninput.removeArrows::-webkit-inner-spin-button,\n.removeArrows input::-webkit-outer-spin-button,\n.removeArrows input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\ninput.removeArrows[type=\"number\"],\n.removeArrows input[type=\"number\"] {\n -moz-appearance: textfield;\n}\n"],"names":[],"sourceRoot":""}
|
||||
{"version":3,"file":"static/css/main.e60e4760.css","mappings":"AAwBA,oCACE,eAAgB,CAChB,wBAIF,CACA,kEAFE,kBAAmB,CAFnB,YAAa,CACb,kBAOF,CAEA,8CACE,oBAAqB,CACrB,cAAe,CAGf,eAAgB,CADhB,sBAAuB,CADvB,kBAGF,CAEA,2EAEE,iBAAkB,CAClB,WACF,CACA,oCACE,sBAAuB,CACvB,kBACF,CAEA,uGAEE,gBACF,CACA,+CACE,cACF,CAEA,sDAEE,kBAAmB,CADnB,YAEF,CACA,6CAIE,iBAAkB,CAHlB,aAAc,CACd,UAAW,CACX,SAEF,CCxEA,KAGE,kCAAmC,CACnC,iCAAkC,CAFlC,4BAAgC,CADhC,QAIF,CAEA,KACE,uEAEF,CAGA,0LAIE,uBAAwB,CACxB,QACF,CAGA,iEAEE,yBACF","sources":["../node_modules/react-virtualized/source/styles.css","index.css"],"sourcesContent":["/* Collection default theme */\n\n.ReactVirtualized__Collection {\n}\n\n.ReactVirtualized__Collection__innerScrollContainer {\n}\n\n/* Grid default theme */\n\n.ReactVirtualized__Grid {\n}\n\n.ReactVirtualized__Grid__innerScrollContainer {\n}\n\n/* Table default theme */\n\n.ReactVirtualized__Table {\n}\n\n.ReactVirtualized__Table__Grid {\n}\n\n.ReactVirtualized__Table__headerRow {\n font-weight: 700;\n text-transform: uppercase;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ReactVirtualized__Table__row {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.ReactVirtualized__Table__headerTruncatedText {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.ReactVirtualized__Table__headerColumn,\n.ReactVirtualized__Table__rowColumn {\n margin-right: 10px;\n min-width: 0px;\n}\n.ReactVirtualized__Table__rowColumn {\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ReactVirtualized__Table__headerColumn:first-of-type,\n.ReactVirtualized__Table__rowColumn:first-of-type {\n margin-left: 10px;\n}\n.ReactVirtualized__Table__sortableHeaderColumn {\n cursor: pointer;\n}\n\n.ReactVirtualized__Table__sortableHeaderIconContainer {\n display: flex;\n align-items: center;\n}\n.ReactVirtualized__Table__sortableHeaderIcon {\n flex: 0 0 24px;\n height: 1em;\n width: 1em;\n fill: currentColor;\n}\n\n/* List default theme */\n\n.ReactVirtualized__List {\n}\n","body {\n margin: 0;\n font-family: \"Inter\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family:\n source-code-pro, Menlo, Monaco, Consolas, \"Courier New\", monospace;\n}\n\n/* Chrome, Safari, Edge, Opera */\ninput.removeArrows::-webkit-outer-spin-button,\ninput.removeArrows::-webkit-inner-spin-button,\n.removeArrows input::-webkit-outer-spin-button,\n.removeArrows input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\ninput.removeArrows[type=\"number\"],\n.removeArrows input[type=\"number\"] {\n -moz-appearance: textfield;\n}\n"],"names":[],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1303],{1303:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var n=a(65043),l=a(89923),r=a(77403),s=a(94141),o=a(64159),i=a(21383),d=a(56629),c=a(53518),u=a(70579);const g=e=>{let{modalOpen:t,currentTags:a,onCloseAndUpdate:g,bucketName:m}=e;const p=(0,i.jL)(),[b,h]=(0,n.useState)(""),[x,w]=(0,n.useState)(""),[j,C]=(0,n.useState)(!1);return(0,u.jsx)(s.A,{modalOpen:t,title:"Add New Tag ",onClose:()=>{g(!1)},titleIcon:(0,u.jsx)(l.b_$,{}),children:(0,u.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsxs)(l.azJ,{sx:{marginBottom:15},children:[(0,u.jsx)("strong",{children:"Bucket"}),": ",m]}),(0,u.jsx)(l.cl_,{value:b,label:"New Tag Key",id:"newTagKey",name:"newTagKey",placeholder:"Enter New Tag Key",onChange:e=>{h(e.target.value)}}),(0,u.jsx)(l.cl_,{value:x,label:"New Tag Label",id:"newTagLabel",name:"newTagLabel",placeholder:"Enter New Tag Label",onChange:e=>{w(e.target.value)}}),(0,u.jsxs)(l.xA9,{item:!0,xs:12,sx:r.Uz.modalButtonBar,children:[(0,u.jsx)(l.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{w(""),h("")},label:"Clear"}),(0,u.jsx)(l.$nd,{id:"save-add-bucket-tag",type:"submit",variant:"callAction",color:"primary",disabled:""===x.trim()||""===b.trim()||j,onClick:()=>{C(!0);const e={};e[b]=x;const t={...a,...e};d.F.buckets.putBucketTags(m,{tags:t}).then((()=>{C(!1),g(!0)})).catch((e=>{p((0,o.Dy)((0,c.S)(e.error))),C(!1)}))},label:"Save"})]})]})})}},94141:(e,t,a)=>{a.d(t,{A:()=>c});var n=a(65043),l=a(22166),r=a(89923),s=a(21383),o=a(64159),i=a(49555),d=a(70579);const c=e=>{let{onClose:t,modalOpen:a,title:c,children:u,wideLimit:g=!0,titleIcon:m=null,iconColor:p="default",sx:b}=e;const h=(0,s.jL)(),[x,w]=(0,n.useState)(!1),j=(0,l.d4)((e=>e.system.modalSnackBar));(0,n.useEffect)((()=>{h((0,o.h0)(""))}),[h]),(0,n.useEffect)((()=>{if(j){if(""===j.message)return void w(!1);"error"!==j.type&&w(!0)}}),[j]);let C="";return j&&(C=j.detailedErrorMsg,(""===C||C&&C.length<5)&&(C=j.message)),(0,d.jsxs)(r.ngX,{onClose:t,open:a,title:c,titleIcon:m,widthLimit:g,sx:b,iconColor:p,children:[(0,d.jsx)(i.A,{isModal:!0}),(0,d.jsx)(r.qb_,{onClose:()=>{w(!1),h((0,o.h0)(""))},open:x,message:C,mode:"inline",variant:"error"===j.type?"error":"default",autoHideDuration:"error"===j.type?10:5,condensed:!0}),u]})}}}]);
|
||||
//# sourceMappingURL=1303.6fa13ab4.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/153.0edba926.chunk.js
Normal file
2
web-app/build/static/js/153.0edba926.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[153],{5153:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=n(5043),r=n(9923),a=n(6969),l=n(4574),i=n(3097),s=n.n(i),c=n(579);const p=e=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"min-icon",fill:"currentcolor",...e,children:(0,c.jsx)("polygon",{points:"8.5 16.5 21.5 3.6 23.4 5.5 8.5 20.4 .6 12.5 2.5 10.5 8.5 16.5"})}),d=l.Ay.div((e=>{let{theme:t}=e;return{display:"grid",gridTemplateColumns:"repeat(3, minmax(350px, 400px))",justifyContent:"flex-start",marginTop:30,marginLeft:30,"& > div":{borderBottom:`${s()(t,"borderColor","#EAEAEA")} 1px solid`,padding:"25px 40px",justifyContent:"center","&.openSource":{borderRight:"#002562 2px solid",borderLeft:"#002562 2px solid",position:"relative","&.first:before":{content:"' '",width:"calc(100% + 4px)",height:16,display:"block",backgroundColor:"#001F55",position:"absolute",top:-14,left:-2,border:"#002562 2px solid",borderBottom:0,borderTopLeftRadius:12,borderTopRightRadius:12},"&.last":{paddingBottom:30,"&:after":{content:"' '",width:"calc(100% + 4px)",height:16,display:"block",position:"absolute",bottom:-14,left:-2,border:"#002562 2px solid",borderTop:0,borderBottomLeftRadius:12,borderBottomRightRadius:12}}},"&.feature-information":{textAlign:"center"},"&.feature-label":{paddingLeft:5},"&.noBorderBottom":{borderBottom:0}},"& .planName":{fontWeight:600,fontSize:32,marginBottom:24,textAlign:"center",marginTop:8},"& .planIcon":{height:100,display:"flex",alignItems:"flex-start",justifyContent:"center","& svg":{height:80},"&.commercial":{"& svg":{height:70}}},"& .planDescription":{display:"flex",justifyContent:"center"}}})),m=()=>{const e=(e,t,n)=>{let o=e;return(0,c.jsx)(r.$nd,{id:`license-action-${e}`,variant:n,sx:{marginTop:"12px",width:"80%",height:"55px"},onClick:e=>{e.preventDefault(),window.open(`${o}?ref=con`,"_blank")},label:t})},t=e=>e?(0,c.jsxs)(o.Fragment,{children:[e.content,e.isCheck&&(0,c.jsx)(p,{style:{width:16,height:16}})]}):(0,c.jsx)(o.Fragment,{});return(0,c.jsx)(o.Fragment,{children:(0,c.jsxs)(d,{children:[[null,...a.qZ].map(((e,t)=>(0,c.jsx)(r.azJ,{className:""+(1===t?"openSource first":""),children:null!==e&&(0,c.jsxs)(r.azJ,{children:[(0,c.jsx)(r.azJ,{className:"planName",children:e.planName}),(0,c.jsx)(r.azJ,{className:"planIcon "+("commercial"===e.planType?"commercial":""),children:null===e||void 0===e?void 0:e.planIcon}),(0,c.jsx)(r.azJ,{className:"planDescription",children:null===e||void 0===e?void 0:e.planDescription})]})}))),a.c_.map(((e,n)=>{const l=n===a.c_.length-1?"noBorderBottom":"";return(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)(r.azJ,{className:`feature-label ${l}`,children:e.featureLabel}),(0,c.jsx)(r.azJ,{className:`feature-information openSource ${l}`,children:t(e.featurePlans.openSource||null)}),(0,c.jsx)(r.azJ,{className:`feature-information ${l}`,children:t(e.featurePlans.eosPlus||null)})]})})),[null,...a.qZ].map(((t,n)=>(0,c.jsx)(r.azJ,{className:(1===n?"openSource last":"")+" noBorderBottom",sx:{display:"flex",justifyContent:"center"},children:t&&e("https://min.io/signup","commercial"===t.planType?"Upgrade":"Join Slack","commercial"===t.planType?"callAction":"regular")})))]})})};var u=n(8793),x=n(4159),h=n(3635);const f=()=>{const e=(0,h.j)();return(0,o.useEffect)((()=>{e((0,x.ph)("license"))}),[]),(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)(u.A,{label:"MinIO License and Support Plan"}),(0,c.jsx)(r.Mxu,{children:(0,c.jsx)(m,{})})]})}}}]);
|
||||
//# sourceMappingURL=153.0edba926.chunk.js.map
|
||||
1
web-app/build/static/js/153.0edba926.chunk.js.map
Normal file
1
web-app/build/static/js/153.0edba926.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2209],{72237:(e,n,s)=>{s.d(n,{A:()=>a});var t=s(65043),l=s(70579);const a=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(s){return(0,l.jsx)(t.Suspense,{fallback:n,children:(0,l.jsx)(e,{...s})})}}},12209:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(65043),l=s(73216),a=s(39808),h=s(72237),c=s(70579);const p=(0,h.A)(t.lazy((()=>s.e(985).then(s.bind(s,10985))))),u=(0,h.A)(t.lazy((()=>s.e(1370).then(s.bind(s,81370))))),r=()=>(0,c.jsxs)(l.BV,{children:[(0,c.jsx)(l.qh,{path:"/",element:(0,c.jsx)(p,{})}),(0,c.jsx)(l.qh,{path:":policyName",element:(0,c.jsx)(u,{})}),(0,c.jsx)(l.qh,{element:(0,c.jsx)(a.A,{})})]})}}]);
|
||||
//# sourceMappingURL=2209.3b0ca7fa.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/2209.3b0ca7fa.chunk.js","mappings":"8IAiCA,QAfA,SACEA,GAEC,IADDC,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KAUtC,OARA,SAA+BG,GAC7B,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAACN,SAAUA,EAASO,UAC3BF,EAAAA,EAAAA,KAACN,EAAgB,IAAMK,KAG7B,CAGF,C,2GCtBA,MAAMI,GAAeC,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,kCAC7CC,GAAgBF,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAYpD,EAViBE,KAEbC,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAP,SAAA,EACLF,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAM,IAAKC,SAASZ,EAAAA,EAAAA,KAACG,EAAY,OACxCH,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAM,cAAeC,SAASZ,EAAAA,EAAAA,KAACM,EAAa,OACnDN,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACE,SAASZ,EAAAA,EAAAA,KAACa,EAAAA,EAAY,Q","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/Policies/Policies.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense<P extends string | number | object>(\n WrappedComponent: ComponentType<P>,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n <Suspense fallback={fallback}>\n <WrappedComponent {...(props as any)} />\n </Suspense>\n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\nimport NotFoundPage from \"../../NotFoundPage\";\nimport withSuspense from \"../Common/Components/withSuspense\";\n\nconst ListPolicies = withSuspense(React.lazy(() => import(\"./ListPolicies\")));\nconst PolicyDetails = withSuspense(React.lazy(() => import(\"./PolicyDetails\")));\n\nconst Policies = () => {\n return (\n <Routes>\n <Route path={\"/\"} element={<ListPolicies />} />\n <Route path={`:policyName`} element={<PolicyDetails />} />\n <Route element={<NotFoundPage />} />\n </Routes>\n );\n};\n\nexport default Policies;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","ListPolicies","withSuspense","React","PolicyDetails","Policies","_jsxs","Routes","Route","path","element","NotFoundPage"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[24],{60024:(e,s,t)=>{t.r(s),t.d(s,{default:()=>h});var r=t(65043),l=t(89923),a=t(77403),n=t(20649),o=t(13109),d=t(94141),i=t(64159),c=t(21383),u=t(70579);const h=e=>{let{open:s,checkedUsers:t,closeModalAndRefresh:h}=e;const p=(0,c.jL)(),[x,j]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1),[m,f]=(0,r.useState)([]);(0,r.useEffect)((()=>{x&&(m.length>0?n.A.invoke("PUT","/api/v1/users-groups-bulk",{groups:m,users:t}).then((()=>{j(!1),g(!0)})).catch((e=>{j(!1),p((0,i.Dy)(e))})):(j(!1),p((0,i.Dy)({errorMessage:"You need to select at least one group to assign",detailedError:""}))))}),[x,j,h,m,t,p]);return(0,u.jsx)(d.A,{modalOpen:s,onClose:()=>{h(b)},title:b?"The selected users were added to the following groups.":"Add Users to Group",titleIcon:(0,u.jsx)(l.WC,{}),children:b?(0,u.jsx)(r.Fragment,{children:(0,u.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,sx:{margin:"30px 0"},children:[(0,u.jsx)(l.EmB,{label:"Groups",sx:{width:"100%"},children:m.join(", ")}),(0,u.jsxs)(l.EmB,{label:"Users",sx:{width:"100%"},children:[" ",t.join(", ")," "]})]})}):(0,u.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:e=>{e.preventDefault(),j(!0)},children:[(0,u.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(l.EmB,{label:"Selected Users",sx:{width:"100%"},children:t.join(", ")}),(0,u.jsx)(o.A,{selectedGroups:m,setSelectedGroups:f})]}),(0,u.jsxs)(l.xA9,{item:!0,xs:12,sx:a.Uz.modalButtonBar,children:[(0,u.jsx)(l.$nd,{id:"clear-bulk-add-group",type:"button",variant:"regular",color:"primary",onClick:()=>{f([])},label:"Clear"}),(0,u.jsx)(l.$nd,{id:"save-add-group",type:"submit",variant:"callAction",disabled:x||m.length<1,label:"Save"})]}),x&&(0,u.jsx)(l.xA9,{item:!0,xs:12,children:(0,u.jsx)(l.z21,{})})]})})}}}]);
|
||||
//# sourceMappingURL=24.e576918a.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/258.1442e3bb.chunk.js
Normal file
2
web-app/build/static/js/258.1442e3bb.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/258.1442e3bb.chunk.js.map
Normal file
1
web-app/build/static/js/258.1442e3bb.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2689],{62689:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var i=n(65043),l=n(22166),s=n(73216),r=n(89923),c=n(20649),a=n(77938),o=n(99161),d=n(64159),u=n(39947),p=n(21383),h=n(6681),b=n(72237),x=n(70579);const m=(0,b.A)(i.lazy((()=>n.e(9714).then(n.bind(n,79714))))),A=(0,b.A)(i.lazy((()=>n.e(459).then(n.bind(n,10459))))),R=(0,b.A)(i.lazy((()=>n.e(8152).then(n.bind(n,28152))))),_=()=>{const e=(0,p.jL)(),t=(0,s.g)(),n=(0,l.d4)(u.Nx),[b,_]=(0,i.useState)(!0),[j,O]=(0,i.useState)([]),[I,S]=(0,i.useState)(!1),[T,k]=(0,i.useState)(!1),[g,N]=(0,i.useState)(!1),[C,f]=(0,i.useState)(""),[y,P]=(0,i.useState)([]),[E,v]=(0,i.useState)(!1),F=t.bucketName||"",V=(0,a._)(F,[o.OV.S3_GET_REPLICATION_CONFIGURATION,o.OV.S3_GET_ACTIONS]);(0,i.useEffect)((()=>{e((0,d.ph)("bucket_detail_replication"))}),[]),(0,i.useEffect)((()=>{n&&_(!0)}),[n,_]),(0,i.useEffect)((()=>{b&&(V?c.A.invoke("GET",`/api/v1/buckets/${F}/replication`).then((e=>{const t=e.rules?e.rules:[];t.sort(((e,t)=>e.priority-t.priority)),O(t),_(!1)})).catch((t=>{e((0,d.C9)(t)),_(!1)})):_(!1))}),[b,e,F,V]);const w=function(){k(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},U=(0,s.Zp)(),G=[{type:"delete",onClick:e=>{f(e.id),v(!1),S(!0)}},{type:"view",onClick:e=>{f(e.id),U(`/buckets/edit-replication?bucketName=${F}&ruleID=${e.id}`)},disableButtonFunction:!(0,a._)(F,[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],!0)}];return(0,x.jsxs)(i.Fragment,{children:[T&&(0,x.jsx)(A,{closeModalAndRefresh:()=>{w(!1),_(!0)},open:T,bucketName:F,setReplicationRules:j}),I&&(0,x.jsx)(R,{deleteOpen:I,selectedBucket:F,closeDeleteModalAndRefresh:e=>{S(!1),e&&_(!0)},ruleToDelete:C,rulesToDelete:y,remainingRules:j.length,allSelected:j.length>0&&y.length===j.length,deleteSelectedRules:E}),g&&(0,x.jsx)(m,{closeModalAndRefresh:e=>{N(!1),e&&_(!0)},open:g,bucketName:F,ruleID:C}),(0,x.jsx)(r._xt,{separator:!0,sx:{marginBottom:15},actions:(0,x.jsxs)(r.azJ,{style:{display:"flex",gap:10},children:[(0,x.jsx)(a.R,{scopes:[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],resource:F,matchAll:!0,errorProps:{disabled:!0},children:(0,x.jsx)(h.A,{tooltip:"Remove Selected Replication Rules",children:(0,x.jsx)(r.$nd,{id:"remove-bucket-replication-rule",onClick:()=>{f("selectedRules"),v(!0),S(!0)},label:"Remove Selected Rules",icon:(0,x.jsx)(r.ucK,{}),color:"secondary",disabled:0===y.length||0===j.length,variant:"secondary"})})}),(0,x.jsx)(a.R,{scopes:[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],resource:F,matchAll:!0,errorProps:{disabled:!0},children:(0,x.jsx)(h.A,{tooltip:"Add Replication Rule",children:(0,x.jsx)(r.$nd,{id:"add-bucket-replication-rule",onClick:()=>{U(o.zZ.BUCKETS_ADD_REPLICATION+`?bucketName=${F}&nextPriority=${j.length+1}`)},label:"Add Replication Rule",icon:(0,x.jsx)(r.REV,{}),variant:"callAction"})})})]}),children:(0,x.jsx)(r.V7x,{content:(0,x.jsxs)(i.Fragment,{children:["MinIO"," ",(0,x.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/kubernetes/upstream/administration/bucket-replication.html",children:"server-side bucket replication"})," ","is an automatic bucket-level configuration that synchronizes objects between a source and destination bucket."]}),placement:"right",children:"Replication"})}),(0,x.jsxs)(r.xA9,{container:!0,children:[(0,x.jsx)(r.xA9,{item:!0,xs:12,children:(0,x.jsx)(a.R,{scopes:[o.OV.S3_GET_REPLICATION_CONFIGURATION,o.OV.S3_GET_ACTIONS],resource:F,errorProps:{disabled:!0},children:(0,x.jsx)(r.bQt,{itemActions:G,columns:[{label:"Priority",elementKey:"priority",width:55,contentTextAlign:"center"},{label:"Destination",elementKey:"destination",renderFunction:e=>(0,x.jsx)(i.Fragment,{children:e.bucket.replace("arn:aws:s3:::","")})},{label:"Prefix",elementKey:"prefix",width:200},{label:"Tags",elementKey:"tags",renderFunction:e=>(0,x.jsx)(i.Fragment,{children:e&&""!==e.tags?"Yes":"No"}),width:60},{label:"Status",elementKey:"status",width:100}],isLoading:b,records:j,entityName:"Replication Rules",idField:"id",customPaperHeight:"400px",textSelectable:!0,selectedItems:y,onSelect:e=>(e=>{const t=e.target,n=t.value,i=t.checked;let l=[...y];return i?l.push(n):l=l.filter((e=>e!==n)),P(l),l})(e),onSelectAll:()=>{y.length!==j.length?P(j.map((e=>e.id))):P([])}})})}),(0,x.jsxs)(r.xA9,{item:!0,xs:12,children:[(0,x.jsx)("br",{}),(0,x.jsx)(r.lVp,{title:"Replication",iconComponent:(0,x.jsx)(r.brV,{}),help:(0,x.jsxs)(i.Fragment,{children:["MinIO supports server-side and client-side replication of objects between source and destination buckets.",(0,x.jsx)("br",{}),(0,x.jsx)("br",{}),"You can learn more at our"," ",(0,x.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/bucket-replication.html?ref=con",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})]})]})]})}}}]);
|
||||
//# sourceMappingURL=2689.2888d029.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2704],{32704:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(65043),s=a(24241),d=a(89923),l=a(22166),o=a(94141),r=a(21383),i=a(6035),c=a(77403),u=a(70579);const w=e=>{let{closeModalAndRefresh:t,open:a,bucketName:w}=e;const b=(0,r.jL)(),h=(0,l.d4)((e=>e.objectBrowser.rewind.rewindEnabled)),x=(0,l.d4)((e=>e.objectBrowser.rewind.dateToRewind)),[j,p]=(0,n.useState)(!1),[S,m]=(0,n.useState)(!0),[k,f]=(0,n.useState)(s.c9.fromJSDate(new Date));(0,n.useEffect)((()=>{h&&(m(!0),f(s.c9.fromISO(x||s.c9.now().toISO()||"")))}),[h,x]);return(0,u.jsx)(o.A,{modalOpen:a,onClose:()=>{t()},title:`Rewind - ${w}`,children:(0,u.jsxs)(d.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(d.e8j,{value:k,onChange:e=>e?f(e):null,id:"rewind-selector",label:"Rewind to",timeFormat:"24h",secondsSelector:!1,disabled:!S}),h&&(0,u.jsx)(d.dOG,{value:"status",id:"status",name:"status",checked:S,onChange:e=>{m(e.target.checked)},label:"Current Status",indicatorLabels:["Enabled","Disabled"]}),(0,u.jsx)(d.xA9,{item:!0,xs:12,sx:c.Uz.modalButtonBar,children:(0,u.jsx)(d.$nd,{type:"button",variant:"callAction",disabled:j||!k&&S,onClick:()=>{!S&&h?b((0,i.rS)()):(p(!0),b((0,i.v8)({state:!0,bucket:w,dateRewind:k.toISO()}))),b((0,i.Yw)(!0)),t()},id:"rewind-apply-button",label:!S&&h?"Show Current Data":"Show Rewind Data"})}),j&&(0,u.jsx)(d.xA9,{item:!0,xs:12,children:(0,u.jsx)(d.z21,{})})]})})}}}]);
|
||||
//# sourceMappingURL=2704.1285a8c1.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3323],{43323:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var l=a(65043),s=a(89923),n=a(70579);const r=e=>{let{onChange:t}=e;const[a,r]=(0,l.useState)(!1),[u,o]=(0,l.useState)(""),[c,d]=(0,l.useState)(""),[i,m]=(0,l.useState)(""),[g,h]=(0,l.useState)(""),[p,b]=(0,l.useState)(""),[v,x]=(0,l.useState)(""),[j,f]=(0,l.useState)(""),[S,k]=(0,l.useState)("namespace"),[C,_]=(0,l.useState)(""),[w,E]=(0,l.useState)(""),[y,B]=(0,l.useState)(""),q=(0,l.useCallback)((()=>`${p}:${v}@tcp(${c}:${g})/${i}`),[p,v,c,g,i]);(0,l.useEffect)((()=>{if(""!==u){t([{key:"dsn_string",value:u},{key:"table",value:j},{key:"format",value:S},{key:"queue_dir",value:C},{key:"queue_limit",value:w},{key:"comment",value:y}])}}),[u,j,S,C,w,y,t]),(0,l.useEffect)((()=>{const e=q();o(e)}),[p,i,v,g,c,o,q]);return(0,n.jsxs)(s.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,n.jsx)(s.dOG,{label:"Enter DNS String",checked:a,id:"checkedB",name:"checkedB",onChange:e=>{if(e.target.checked){const e=q();o(e)}else{const e=(e=>{let t=new Map;const a=/(.*?):(.*?)@tcp\((.*?):(.*?)\)\/(.*?)$/gm;let l;for(;null!==(l=a.exec(e));)l.index===a.lastIndex&&a.lastIndex++,t.set("user",l[1]),t.set("password",l[2]),t.set("host",l[3]),t.set("port",l[4]),t.set("dbname",l[5]);return t})(u);d(e.get("host")?e.get("host")+"":""),h(e.get("port")?e.get("port")+"":""),m(e.get("dbname")?e.get("dbname")+"":""),b(e.get("user")?e.get("user")+"":""),x(e.get("password")?e.get("password")+"":"")}r(e.target.checked)},value:"dnsString"}),a?(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(s.azJ,{className:"inputItem",children:(0,n.jsx)(s.cl_,{id:"dsn-string",name:"dsn_string",label:"DSN String",value:u,onChange:e=>{o(e.target.value)}})})}):(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(s.azJ,{children:(0,n.jsxs)(s.azJ,{withBorders:!0,useBackground:!0,sx:{overflowY:"auto",height:170,marginBottom:12},children:[(0,n.jsx)(s.cl_,{id:"host",name:"host",label:"",placeholder:"Enter Host",value:c,onChange:e=>{d(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"db-name",name:"db-name",label:"",placeholder:"Enter DB Name",value:i,onChange:e=>{m(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"port",name:"port",label:"",placeholder:"Enter Port",value:g,onChange:e=>{h(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"user",name:"user",label:"",placeholder:"Enter User",value:p,onChange:e=>{b(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"password",name:"password",label:"",placeholder:"Enter Password",type:"password",value:v,onChange:e=>{x(e.target.value)}})]})}),(0,n.jsx)(s.xA9,{item:!0,xs:12,sx:{margin:"12px 0"},children:(0,n.jsx)(s.EmB,{label:"Connection String",multiLine:!0,children:u})})]}),(0,n.jsx)(s.cl_,{id:"table",name:"table",label:"Table",placeholder:"Enter Table Name",value:j,tooltip:"DB table name to store/update events, table is auto-created",onChange:e=>{f(e.target.value)}}),(0,n.jsx)(s.z6M,{currentValue:S,id:"format",name:"format",label:"Format",onChange:e=>{k(e.target.value)},tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",selectorOptions:[{label:"Namespace",value:"namespace"},{label:"Access",value:"access"}]}),(0,n.jsx)(s.cl_,{id:"queue-dir",name:"queue_dir",label:"Queue Dir",placeholder:"Enter Queue Dir",value:C,tooltip:"Staging directory for undelivered messages e.g. '/home/events'",onChange:e=>{_(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"queue-limit",name:"queue_limit",label:"Queue Limit",placeholder:"Enter Queue Limit",type:"number",value:w,tooltip:"Maximum limit for undelivered messages, defaults to '10000'",onChange:e=>{E(e.target.value)}}),(0,n.jsx)(s.hFj,{id:"comment",name:"comment",label:"Comment",placeholder:"Enter custom notes if any",value:y,onChange:e=>{B(e.target.value)}})]})}}}]);
|
||||
//# sourceMappingURL=3323.8de9a2da.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3329],{53329:(e,n,t)=>{t.r(n),t.d(n,{default:()=>y});var a=t(65043),s=t(89923),r=t(73216),l=t(99161),c=t(21383),i=t(77403),o=t(38375),x=t(56629),d=t(64159),p=t(53518),j=t(70579);const h=()=>{const e=(0,c.jL)(),n=(0,r.Zp)(),[t,h]=(0,a.useState)(""),[m,u]=(0,a.useState)(!1),y=""!==t.trim()&&-1===t.indexOf(" ");return(0,j.jsx)(s.Mxu,{children:(0,j.jsx)(s.Hbc,{title:"Create Key",icon:(0,j.jsx)(s.No_,{}),helpBox:(0,j.jsx)(o.A,{helpText:"Encryption Key",contents:["Create a new cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,j.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:a=>{a.preventDefault(),u(!0),x.F.kms.kmsCreateKey({key:t}).then((e=>{n(`${l.zZ.KMS_KEYS}`)})).catch((async n=>{const t=await n.json();e((0,d.C9)((0,p.S)(t)))})).finally((()=>u(!1)))},children:(0,j.jsxs)(s.xA9,{container:!0,children:[(0,j.jsx)(s.xA9,{item:!0,xs:12,children:(0,j.jsx)(s.cl_,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:t,error:(e=>-1!==e.indexOf(" ")?"Key name cannot contain spaces":"")(t),onChange:e=>{h(e.target.value)}})}),(0,j.jsxs)(s.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,j.jsx)(s.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{h("")},label:"Clear"}),(0,j.jsx)(s.$nd,{id:"save-key",type:"submit",variant:"callAction",color:"primary",disabled:m||!y,label:"Save"})]})]})})})})};var m=t(48793),u=t(88617);const y=()=>{const e=(0,c.jL)(),n=(0,r.Zp)();return(0,a.useEffect)((()=>{e((0,d.ph)("add_key"))}),[]),(0,j.jsx)(a.Fragment,{children:(0,j.jsxs)(s.xA9,{item:!0,xs:12,children:[(0,j.jsx)(m.A,{label:(0,j.jsx)(s.EGL,{label:"Keys",onClick:()=>n(l.zZ.KMS_KEYS)}),actions:(0,j.jsx)(u.A,{})}),(0,j.jsx)(h,{})]})})}},38375:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(65043),s=t(89923),r=t(70579);const l=e=>{let{helpText:n,contents:t}=e;return(0,r.jsx)(s.lVp,{iconComponent:(0,r.jsx)(s.nag,{}),title:n,help:(0,r.jsx)(a.Fragment,{children:t.map((e=>(0,r.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:e})))})})}}}]);
|
||||
//# sourceMappingURL=3329.df273360.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
web-app/build/static/js/368.b04989d2.chunk.js
Normal file
3
web-app/build/static/js/368.b04989d2.chunk.js
Normal file
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in this page
|
||||
*
|
||||
* Copyright 2023 Mozilla Foundation
|
||||
* Copyright 2024 Mozilla Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
1
web-app/build/static/js/368.b04989d2.chunk.js.map
Normal file
1
web-app/build/static/js/368.b04989d2.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3851],{3851:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var s=n(65043),c=n(89923),l=n(64159),o=n(21383),r=n(25448),u=n(58661),a=n(70579);const i=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:i}=e;const d=(0,o.jL)(),[p,b]=(0,r.A)((()=>t(!0)),(e=>d((0,l.C9)(e))));if(!i)return null;return(0,a.jsx)(u.A,{title:"Delete Bucket",confirmText:"Delete",isOpen:n,titleIcon:(0,a.jsx)(c.xWY,{}),isLoading:p,onConfirm:()=>{b("DELETE",`/api/v1/buckets/${i}`,{name:i})},onClose:()=>t(!1),confirmationContent:(0,a.jsxs)(s.Fragment,{children:["Are you sure you want to delete bucket ",(0,a.jsx)("b",{children:i}),"? ",(0,a.jsx)("br",{}),"A bucket can only be deleted if it's empty."]})})}},25448:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(65043),c=n(20649);const l=(e,t)=>{const[n,l]=(0,s.useState)(!1);return[n,(n,s,o,r)=>{l(!0),c.A.invoke(n,s,o,r).then((t=>{l(!1),e(t)})).catch((e=>{l(!1),t(e)}))}]}}}]);
|
||||
//# sourceMappingURL=3851.ee2f94b6.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4172],{4172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var s=n(65043),r=n(33097),u=n.n(r),c=n(25448),i=n(58661),l=n(89923),o=n(64159),a=n(21383),f=n(70579);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:r,bucketEvent:d}=e;const p=(0,a.jL)(),[v,x]=(0,c.A)((()=>t(!0)),(e=>p((0,o.C9)(e))));if(!r)return null;return(0,f.jsx)(i.A,{title:"Delete Event",confirmText:"Delete",isOpen:n,titleIcon:(0,f.jsx)(l.xWY,{}),isLoading:v,onConfirm:()=>{if(null===d)return;const e=u()(d,"events",[]),t=u()(d,"prefix",""),n=u()(d,"suffix",""),s=e.reduce(((e,t)=>e.includes(t)?e:[...e,t]),[]);x("DELETE",`/api/v1/buckets/${r}/events/${d.arn}`,{events:s,prefix:t,suffix:n})},onClose:()=>t(!1),confirmationContent:(0,f.jsx)(s.Fragment,{children:"Are you sure you want to delete this event?"})})}},25448:(e,t,n)=>{n.d(t,{A:()=>u});var s=n(65043),r=n(20649);const u=(e,t)=>{const[n,u]=(0,s.useState)(!1);return[n,(n,s,c,i)=>{u(!0),r.A.invoke(n,s,c,i).then((t=>{u(!1),e(t)})).catch((e=>{u(!1),t(e)}))}]}}}]);
|
||||
//# sourceMappingURL=4172.d98e6099.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4676],{4676:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var l=n(65043),o=n(58661),s=n(89923),c=n(64159),i=n(21383),r=n(56629),a=n(53518),u=n(70579);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedPolicy:p}=e;const d=(0,i.jL)(),[f,y]=(0,l.useState)(!1);if(!p)return null;return(0,u.jsx)(o.A,{title:"Delete Policy",confirmText:"Delete",isOpen:n,titleIcon:(0,u.jsx)(s.xWY,{}),isLoading:f,onConfirm:()=>{y(!0),r.F.policy.removePolicy(p).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();d((0,c.C9)((0,a.S)(n))),t(!1)})).finally((()=>y(!1)))},onClose:()=>t(!1),confirmationContent:(0,u.jsxs)(l.Fragment,{children:["Are you sure you want to delete policy ",(0,u.jsx)("br",{}),(0,u.jsx)("b",{children:p}),"?"]})})}}}]);
|
||||
//# sourceMappingURL=4676.563616b8.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/4676.563616b8.chunk.js","mappings":"4NA+BA,MAgDA,EAhDqBA,IAIM,IAJL,2BACpBC,EAA0B,WAC1BC,EAAU,eACVC,GACmBH,EACnB,MAAMI,GAAWC,EAAAA,EAAAA,OAGVC,EAAeC,IAAoBC,EAAAA,EAAAA,WAAkB,GAE5D,IAAKL,EACH,OAAO,KAkBT,OACEM,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAO,gBACPC,YAAa,SACbC,OAAQX,EACRY,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWV,EACXW,UAtBoBC,KACtBX,GAAiB,GACjBY,EAAAA,EAAIC,OACDC,aAAalB,GACbmB,MAAMC,IACLtB,GAA2B,EAAK,IAEjCuB,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvBxB,GAASyB,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7CzB,GAA2B,EAAM,IAElC8B,SAAQ,IAAMxB,GAAiB,IAAO,EAWvCyB,QA/BYA,IAAM/B,GAA2B,GAgC7CgC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,2CAC+B3B,EAAAA,EAAAA,KAAA,UACvCA,EAAAA,EAAAA,KAAA,KAAA2B,SAAIjC,IAAmB,QAG3B,C","sources":["screens/Console/Policies/DeletePolicy.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment, useState } from \"react\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\nimport { api } from \"api\";\nimport { ApiError, HttpResponse } from \"api/consoleApi\";\nimport { errorToHandler } from \"api/errors\";\n\ninterface IDeletePolicyProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedPolicy: string;\n}\n\nconst DeletePolicy = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedPolicy,\n}: IDeletePolicyProps) => {\n const dispatch = useAppDispatch();\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [loadingDelete, setLoadingDelete] = useState<boolean>(false);\n\n if (!selectedPolicy) {\n return null;\n }\n\n const onConfirmDelete = () => {\n setLoadingDelete(true);\n api.policy\n .removePolicy(selectedPolicy)\n .then((_) => {\n closeDeleteModalAndRefresh(true);\n })\n .catch(async (res: HttpResponse<void, ApiError>) => {\n const err = (await res.json()) as ApiError;\n dispatch(setErrorSnackMessage(errorToHandler(err)));\n closeDeleteModalAndRefresh(false);\n })\n .finally(() => setLoadingDelete(false));\n };\n\n return (\n <ConfirmDialog\n title={`Delete Policy`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={loadingDelete}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>\n Are you sure you want to delete policy <br />\n <b>{selectedPolicy}</b>?\n </Fragment>\n }\n />\n );\n};\n\nexport default DeletePolicy;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedPolicy","dispatch","useAppDispatch","loadingDelete","setLoadingDelete","useState","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","api","policy","removePolicy","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment","children"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4705],{94141:(e,t,l)=>{l.d(t,{A:()=>d});var s=l(65043),i=l(22166),n=l(89923),o=l(21383),c=l(64159),r=l(49555),a=l(70579);const d=e=>{let{onClose:t,modalOpen:l,title:d,children:u,wideLimit:h=!0,titleIcon:p=null,iconColor:x="default",sx:m}=e;const v=(0,o.jL)(),[j,g]=(0,s.useState)(!1),y=(0,i.d4)((e=>e.system.modalSnackBar));(0,s.useEffect)((()=>{v((0,c.h0)(""))}),[v]),(0,s.useEffect)((()=>{if(y){if(""===y.message)return void g(!1);"error"!==y.type&&g(!0)}}),[y]);let f="";return y&&(f=y.detailedErrorMsg,(""===f||f&&f.length<5)&&(f=y.message)),(0,a.jsxs)(n.ngX,{onClose:t,open:l,title:d,titleIcon:p,widthLimit:h,sx:m,iconColor:x,children:[(0,a.jsx)(r.A,{isModal:!0}),(0,a.jsx)(n.qb_,{onClose:()=>{g(!1),v((0,c.h0)(""))},open:j,message:f,mode:"inline",variant:"error"===y.type?"error":"default",autoHideDuration:"error"===y.type?10:5,condensed:!0}),u]})}},42967:(e,t,l)=>{l.d(t,{A:()=>p});var s=l(65043),i=l(89923),n=l(8185),o=l(64681),c=l(64159),r=l(21383),a=l(62560),d=l(22166),u=l(56629),h=l(70579);const p=e=>{let{noTitle:t=!1}=e;const l=(0,r.jL)(),[p,x]=(0,s.useState)([]),[m,v]=(0,s.useState)(!1),[j,g]=(0,s.useState)(""),y=(0,d.d4)((e=>e.createUser.selectedPolicies)),f=(0,s.useCallback)((()=>{v(!0),u.F.policies.listPolicies().then((e=>{var t;const l=null!==(t=e.data.policies)&&void 0!==t?t:[];v(!1),x(l.sort(n.Hw))})).catch((e=>{v(!1),l((0,c.Dy)(e))}))}),[l]);(0,s.useEffect)((()=>{v(!0)}),[]),(0,s.useEffect)((()=>{m&&f()}),[m,f]);const b=p.filter((e=>e.name.includes(j)));return(0,h.jsxs)(i.xA9,{item:!0,xs:12,className:"inputItem",children:[m&&(0,h.jsx)(i.z21,{}),p.length>0?(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)(i.xA9,{item:!0,xs:12,className:"inputItem",children:(0,h.jsx)(o.A,{placeholder:"Start typing to search for a Policy",onChange:e=>{g(e)},value:j,label:t?"":"Assign Policies"})}),(0,h.jsx)(i.bQt,{columns:[{label:"Policy",elementKey:"name"}],onSelect:e=>{const t=e.target,s=t.value,i=t.checked;let n=[...y];i?n.push(s):n=n.filter((e=>e!==s)),n=n.filter((e=>""!==e)),l((0,a.Gy)(n))},selectedItems:y,isLoading:m,records:b,entityName:"Policies",idField:"name",customPaperHeight:"200px"})]}):(0,h.jsx)(i.azJ,{sx:{textAlign:"center",padding:"10px 0"},children:"No Policies Available"})]})}},74705:(e,t,l)=>{l.r(t),l.d(t,{default:()=>v});var s=l(65043),i=l(33097),n=l.n(i),o=l(22166),c=l(89923),r=l(64159),a=l(21383),d=l(77403),u=l(62560),h=l(94141),p=l(42967),x=l(20649),m=l(70579);const v=e=>{let{closeModalAndRefresh:t,selectedUser:l,selectedGroups:i,open:v}=e;const j=(0,a.jL)(),[g,y]=(0,s.useState)(!1),[f,b]=(0,s.useState)([]),[A,C]=(0,s.useState)([]),P=(0,o.d4)((e=>e.createUser.selectedPolicies));(0,s.useEffect)((()=>{if(v){if(1===(null===i||void 0===i?void 0:i.length))return void(1===(null===i||void 0===i?void 0:i.length)&&x.A.invoke("GET",`/api/v1/group/${encodeURIComponent(i[0])}`).then((e=>{const t=n()(e,"policy","");b(t.split(",")),C(t.split(",")),j((0,u.Gy)(t.split(",")))})).catch((e=>{j((0,r.Dy)(e)),y(!1)})));const e=n()(l,"policy",[]);b(e),C(e),j((0,u.Gy)(e))}}),[v,null===i||void 0===i?void 0:i.length,l]);const S=n()(l,"accessKey","");return(0,m.jsxs)(h.A,{onClose:()=>{t()},modalOpen:v,title:"Set Policies",children:[(0,m.jsxs)(c.Hbc,{withBorders:!1,containerPadding:!1,children:[(1===(null===i||void 0===i?void 0:i.length)||null!=l)&&(0,m.jsxs)(s.Fragment,{children:[(0,m.jsx)(c.EmB,{label:"Selected "+(null!==i?"Group":"User"),sx:{width:"100%"},children:null!==i?i[0]:S}),(0,m.jsx)(c.EmB,{label:"Current Policy",sx:{width:"100%"},children:f.join(", ")})]}),i&&(null===i||void 0===i?void 0:i.length)>1&&(0,m.jsx)(c.EmB,{label:"Selected Groups",sx:{width:"100%"},children:i.join(", ")}),(0,m.jsx)(c.xA9,{item:!0,xs:12,children:(0,m.jsx)(p.A,{selectedPolicy:A})})]}),(0,m.jsxs)(c.xA9,{item:!0,xs:12,sx:d.Uz.modalButtonBar,children:[(0,m.jsx)(c.$nd,{id:"reset",type:"button",variant:"regular",onClick:()=>{C(f),j((0,u.Gy)(f))},label:"Reset"}),(0,m.jsx)(c.$nd,{id:"save",type:"button",variant:"callAction",color:"primary",disabled:g,onClick:()=>{let e=null,s=null;null!==i?s=i:(e=[" "],null!==l&&(e=[l.accessKey])),y(!0),x.A.invoke("PUT","/api/v1/set-policy-multi",{name:P,groups:s,users:e}).then((()=>{y(!1),t()})).catch((e=>{y(!1),j((0,r.Dy)(e))}))},label:"Save"})]}),g&&(0,m.jsx)(c.xA9,{item:!0,xs:12,children:(0,m.jsx)(c.z21,{})})]})}}}]);
|
||||
//# sourceMappingURL=4705.1fa96caf.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[502],{70502:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(65043),o=n(89923),l=n(64159),c=n(21383),r=n(56629),u=n(53518),a=n(58661),i=n(70579);const p=e=>{let{onClose:t,modalOpen:n,bucket:p,toDelete:f}=e;const h=(0,c.jL)(),[d,k]=(0,s.useState)(!1);return(0,i.jsx)(a.A,{title:"Delete Anonymous Access Rule",confirmText:"Delete",isOpen:n,isLoading:d,onConfirm:()=>{k(!0);let e={prefix:f};r.F.bucket.deleteAccessRuleWithBucket(p,e).then((()=>{t()})).catch((e=>{h((0,l.C9)((0,u.S)(e.error))),t()})).finally((()=>k(!1)))},titleIcon:(0,i.jsx)(o.xWY,{}),onClose:t,confirmationContent:(0,i.jsx)(s.Fragment,{children:"Are you sure you want to delete this access rule?"})})}}}]);
|
||||
//# sourceMappingURL=502.b83faa7c.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/502.b83faa7c.chunk.js","mappings":"4NAgCA,MA0CA,EA1CyBA,IAKC,IALA,QACxBC,EAAO,UACPC,EAAS,OACTC,EAAM,SACNC,GACkBJ,EAClB,MAAMK,GAAWC,EAAAA,EAAAA,OAEVC,EAAyBC,IAC9BC,EAAAA,EAAAA,WAAkB,GAiBpB,OACEC,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAO,+BACPC,YAAa,SACbC,OAAQZ,EACRa,UAAWR,EACXS,UArBoBC,KACtBT,GAA2B,GAC3B,IAAIU,EAAyB,CAAEC,OAAQf,GACvCgB,EAAAA,EAAIjB,OACDkB,2BAA2BlB,EAAQe,GACnCI,MAAK,KACJrB,GAAS,IAEVsB,OAAOC,IACNnB,GAASoB,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeF,EAAIG,SACjD1B,GAAS,IAEV2B,SAAQ,IAAMpB,GAA2B,IAAO,EAUjDqB,WAAWnB,EAAAA,EAAAA,KAACoB,EAAAA,IAAiB,IAC7B7B,QAASA,EACT8B,qBACErB,EAAAA,EAAAA,KAACsB,EAAAA,SAAQ,CAAAC,SAAC,uDAEZ,C","sources":["screens/Console/Buckets/BucketDetails/DeleteAccessRule.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment, useState } from \"react\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { api } from \"api\";\nimport { ApiError, HttpResponse, PrefixWrapper } from \"api/consoleApi\";\nimport { errorToHandler } from \"api/errors\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteAccessRule {\n modalOpen: boolean;\n onClose: () => any;\n bucket: string;\n toDelete: string;\n}\n\nconst DeleteAccessRule = ({\n onClose,\n modalOpen,\n bucket,\n toDelete,\n}: IDeleteAccessRule) => {\n const dispatch = useAppDispatch();\n\n const [loadingDeleteAccessRule, setLoadingDeleteAccessRule] =\n useState<boolean>(false);\n\n const onConfirmDelete = () => {\n setLoadingDeleteAccessRule(true);\n let wrapper: PrefixWrapper = { prefix: toDelete };\n api.bucket\n .deleteAccessRuleWithBucket(bucket, wrapper)\n .then(() => {\n onClose();\n })\n .catch((res: HttpResponse<boolean, ApiError>) => {\n dispatch(setErrorSnackMessage(errorToHandler(res.error)));\n onClose();\n })\n .finally(() => setLoadingDeleteAccessRule(false));\n };\n\n return (\n <ConfirmDialog\n title={`Delete Anonymous Access Rule`}\n confirmText={\"Delete\"}\n isOpen={modalOpen}\n isLoading={loadingDeleteAccessRule}\n onConfirm={onConfirmDelete}\n titleIcon={<ConfirmDeleteIcon />}\n onClose={onClose}\n confirmationContent={\n <Fragment>Are you sure you want to delete this access rule?</Fragment>\n }\n />\n );\n};\n\nexport default DeleteAccessRule;\n"],"names":["_ref","onClose","modalOpen","bucket","toDelete","dispatch","useAppDispatch","loadingDeleteAccessRule","setLoadingDeleteAccessRule","useState","_jsx","ConfirmDialog","title","confirmText","isOpen","isLoading","onConfirm","onConfirmDelete","wrapper","prefix","api","deleteAccessRuleWithBucket","then","catch","res","setErrorSnackMessage","errorToHandler","error","finally","titleIcon","ConfirmDeleteIcon","confirmationContent","Fragment","children"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5079],{55079:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var s=n(65043),a=n(25448),r=n(58661),o=n(89923),l=n(64159),c=n(21383),i=n(70579);const d=e=>{let{deleteOpen:t,currentTags:n,selectedTag:d,onCloseAndUpdate:u,bucketName:p}=e;const b=(0,c.jL)(),[g,h]=d,[w,f]=(0,a.A)((()=>u(!0)),(e=>b((0,l.C9)(e))));if(!d)return null;return(0,i.jsx)(r.A,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,i.jsx)(o.xWY,{}),isLoading:w,onConfirm:()=>{const e={...n};delete e[g],f("PUT",`/api/v1/buckets/${p}/tags`,{tags:e})},onClose:()=>u(!1),confirmationContent:(0,i.jsxs)(s.Fragment,{children:["Are you sure you want to delete the tag"," ",(0,i.jsxs)("b",{style:{maxWidth:200,whiteSpace:"normal",wordWrap:"break-word"},children:[g," : ",h]})," ","?"]})})}}}]);
|
||||
//# sourceMappingURL=5079.a17a3c13.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/5079.a17a3c13.chunk.js","mappings":"kNAgCA,MA0DA,EA1D6BA,IAMC,IANA,WAC5BC,EAAU,YACVC,EAAW,YACXC,EAAW,iBACXC,EAAgB,WAChBC,GACsBL,EACtB,MAAMM,GAAWC,EAAAA,EAAAA,OACVC,EAAQC,GAAYN,GAOpBO,EAAeC,IAAmBC,EAAAA,EAAAA,IALpBC,IAAMT,GAAiB,KACxBU,GAClBR,GAASS,EAAAA,EAAAA,IAAqBD,MAKhC,IAAKX,EACH,OAAO,KAYT,OACEa,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAO,aACPC,YAAa,SACbC,OAAQnB,EACRoB,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWb,EACXc,UAhBoBC,KACtB,MAAMC,EAAc,IAAKxB,UAClBwB,EAAYlB,GAEnBG,EAAgB,MAAO,mBAAmBN,SAAmB,CAC3DsB,KAAMD,GACN,EAWAE,QAzBYA,IAAMxB,GAAiB,GA0BnCyB,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,0CACgC,KACxCF,EAAAA,EAAAA,MAAA,KACEG,MAAO,CACLC,SAAU,IACVC,WAAY,SACZC,SAAU,cACVJ,SAAA,CAEDxB,EAAO,MAAIC,KACT,IAAI,QAIb,C","sources":["screens/Console/Buckets/BucketDetails/DeleteBucketTagModal.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment } from \"react\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IDeleteBucketTagModal {\n deleteOpen: boolean;\n currentTags: any;\n bucketName: string;\n selectedTag: string[];\n onCloseAndUpdate: (refresh: boolean) => void;\n}\n\nconst DeleteBucketTagModal = ({\n deleteOpen,\n currentTags,\n selectedTag,\n onCloseAndUpdate,\n bucketName,\n}: IDeleteBucketTagModal) => {\n const dispatch = useAppDispatch();\n const [tagKey, tagLabel] = selectedTag;\n\n const onDelSuccess = () => onCloseAndUpdate(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => onCloseAndUpdate(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedTag) {\n return null;\n }\n\n const onConfirmDelete = () => {\n const cleanObject = { ...currentTags };\n delete cleanObject[tagKey];\n\n invokeDeleteApi(\"PUT\", `/api/v1/buckets/${bucketName}/tags`, {\n tags: cleanObject,\n });\n };\n\n return (\n <ConfirmDialog\n title={`Delete Tag`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>\n Are you sure you want to delete the tag{\" \"}\n <b\n style={{\n maxWidth: 200,\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n }}\n >\n {tagKey} : {tagLabel}\n </b>{\" \"}\n ?\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteBucketTagModal;\n"],"names":["_ref","deleteOpen","currentTags","selectedTag","onCloseAndUpdate","bucketName","dispatch","useAppDispatch","tagKey","tagLabel","deleteLoading","invokeDeleteApi","useApi","onDelSuccess","err","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","cleanObject","tags","onClose","confirmationContent","_jsxs","Fragment","children","style","maxWidth","whiteSpace","wordWrap"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5128],{12848:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(65043),a=n(33097),o=n.n(a),s=n(89923),i=n(70579);const r=e=>{let{elements:t,name:n,label:a,tooltip:r="",commonPlaceholder:c="",onChange:d,withBorder:h=!1}=e;const[u,m]=(0,l.useState)([""]),f=(0,l.createRef)();(0,l.useEffect)((()=>{if(1===u.length&&""===u[0]&&t&&""!==t){const e=t.split(",");e.push(""),m(e)}}),[t,u]),(0,l.useEffect)((()=>{if(u.length>1){const e=f.current;e&&e.scrollIntoView(!1)}}),[u,f]);const p=(0,l.useCallback)((e=>{d(e)}),[d]),x=(0,l.useRef)(!0);(0,l.useEffect)((()=>{if(x.current)return void(x.current=!1);const e=u.filter((e=>""!==e.trim())).join(",");p(e)}),[u]);const v=e=>{e.persist();let t=[...u];const n=o()(e.target,"dataset.index","0");t[parseInt(n)]=e.target.value,m(t)},g=u.map(((e,t)=>(0,i.jsx)(s.cl_,{id:`${n}-${t.toString()}`,label:"",name:`${n}-${t.toString()}`,value:u[t],onChange:v,index:t,placeholder:c,overlayIcon:t===u.length-1?(0,i.jsx)(s.REV,{}):null,overlayAction:()=>{(e=>{if(""!==e[e.length-1].trim()){const t=[...e];t.push(""),m(t)}})(u)}},`csv-multi-${n}-${t.toString()}`)));return(0,i.jsx)(l.Fragment,{children:(0,i.jsxs)(s.azJ,{sx:{display:"flex"},className:"inputItem",children:[(0,i.jsxs)(s.l1Y,{sx:{alignItems:"flex-start"},children:[(0,i.jsx)("span",{children:a}),""!==r&&(0,i.jsx)(s.azJ,{sx:{marginLeft:5,display:"flex",alignItems:"center","& .min-icon":{width:13}},children:(0,i.jsx)(s.m_M,{tooltip:r,placement:"top",children:(0,i.jsx)(s.azJ,{className:r,children:(0,i.jsx)(s.NTw,{})})})})]}),(0,i.jsxs)(s.azJ,{withBorders:h,sx:{width:"100%",overflowY:"auto",height:150,position:"relative"},children:[g,(0,i.jsx)("div",{ref:f})]})]})})}},5128:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var l=n(65043),a=n(89923),o=n(12848),s=n(70579);const i=(e,t,n)=>{let l="on|off"===t?"off":"";if(n.length>0){const t=n.find((t=>t.key===e));t&&(l=t.value||"")}return l},r=e=>{let{onChange:t,fields:n,defaultVals:r,overrideEnv:c}=e;const[d,h]=(0,l.useState)([]),u=n||[],m=r||[];(0,l.useEffect)((()=>{const e=n.map((e=>({key:e.name,value:i(e.name,e.type,m)})));h(e)}),[n,r]),(0,l.useEffect)((()=>{t(d)}),[d]);const f=(e,t,n)=>{const l=[...d];t=t.trim(),l[n]={key:e,value:t},h(l)},p=(e,t)=>{const n=d[t];if(n){const t=null===c||void 0===c?void 0:c[`${n.key}`];if(t)return(0,s.jsx)(a.EmB,{label:e.label,actionButton:(0,s.jsx)(a.xA9,{item:!0,sx:{display:"flex",justifyContent:"flex-end",paddingRight:"10px"},children:(0,s.jsx)(a.m_M,{tooltip:`This value is set from the ${t.overrideEnv} environment variable`,placement:"left",children:(0,s.jsx)(a.D0K,{style:{width:20}})})}),sx:{width:"100%"},children:t.value})}switch(e.type){case"on|off":const l=n?n.value:"off";return(0,s.jsx)(a.dOG,{onChange:n=>{const l=n.target.checked?"on":"off";f(e.name,l,t)},id:e.name,name:e.name,label:e.label,value:"switch_on",tooltip:e.tooltip,checked:"on"===l});case"csv":return(0,s.jsx)(o.A,{elements:n?n.value:"",label:e.label,name:e.name,onChange:n=>{let l="";l=Array.isArray(n)?n.join(","):n,f(e.name,l,t)},tooltip:e.tooltip,commonPlaceholder:e.placeholder,withBorder:!0});case"comment":return(0,s.jsx)(a.hFj,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:n?n.value:"",onChange:n=>f(e.name,n.target.value,t),placeholder:e.placeholder});default:return(0,s.jsx)(a.cl_,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:n?n.value:"",onChange:n=>f(e.name,n.target.value,t),placeholder:e.placeholder})}};return(0,s.jsx)(a.Hbc,{withBorders:!1,containerPadding:!1,children:u.map(((e,t)=>(0,s.jsx)(l.Fragment,{children:p(e,t)},e.name)))})}}}]);
|
||||
//# sourceMappingURL=5128.a4f856c7.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5301],{55301:(e,t,o)=>{o.r(t),o.d(t,{default:()=>i});var a=o(65043),c=o(73216),s=o(21383),n=o(56483),r=o(64159),l=o(46537),p=o(20649),u=o(20685),g=o(70579);const i=()=>{const e=(0,s.jL)(),t=(0,c.Zp)();return(0,a.useEffect)((()=>{const o=()=>{e((0,r.WQ)(!1)),e({type:"socket/OBDisconnect"}),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),e((0,l.wD)()),(0,n.q7)(),t("/login"),window.location.reload()};(()=>{const e=localStorage.getItem("auth-state");p.A.invoke("POST","/api/v1/logout",{state:e}).then(o).catch((e=>{console.error(e),o()}))})()}),[e,t]),(0,g.jsx)(u.A,{})}}}]);
|
||||
//# sourceMappingURL=5301.79001158.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/5301.79001158.chunk.js","mappings":"wOA0BA,MAgCA,EAhCmBA,KACjB,MAAMC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MA2BjB,OA1BAC,EAAAA,EAAAA,YAAU,KACR,MAAMC,EAAgBA,KACpBL,GAASM,EAAAA,EAAAA,KAAW,IAEpBN,EAAS,CAAEO,KAAM,wBACjBC,aAAaC,QAAQ,eAAgB,IACrCD,aAAaC,QAAQ,gBAAiB,IACtCT,GAASU,EAAAA,EAAAA,QACTC,EAAAA,EAAAA,MAEAT,EAAS,UACTU,OAAOC,SAASC,QAAQ,EAGXC,MACb,MAAMC,EAAQR,aAAaS,QAAQ,cACnCC,EAAAA,EACGC,OAAO,OAAQ,iBAAkB,CAAEH,UACnCI,KAAKf,GACLgB,OAAOC,IACNC,QAAQC,MAAMF,GACdjB,GAAe,GACf,EAENU,EAAQ,GACP,CAACf,EAAUE,KACPuB,EAAAA,EAAAA,KAACC,EAAAA,EAAgB,GAAG,C","sources":["screens/LogoutPage/LogoutPage.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { useEffect } from \"react\";\nimport { useNavigate } from \"react-router-dom\";\nimport { useAppDispatch } from \"../../store\";\nimport { ErrorResponseHandler } from \"../../common/types\";\nimport { clearSession } from \"../../common/utils\";\nimport { userLogged } from \"../../systemSlice\";\nimport { resetSession } from \"../Console/consoleSlice\";\nimport api from \"../../common/api\";\nimport LoadingComponent from \"../../common/LoadingComponent\";\n\nconst LogoutPage = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n useEffect(() => {\n const deleteSession = () => {\n dispatch(userLogged(false));\n // Disconnect OB Websocket\n dispatch({ type: \"socket/OBDisconnect\" });\n localStorage.setItem(\"userLoggedIn\", \"\");\n localStorage.setItem(\"redirect-path\", \"\");\n dispatch(resetSession());\n clearSession();\n\n navigate(\"/login\");\n window.location.reload(); //reset-all redux states etc. by force reloading.\n };\n\n const logout = () => {\n const state = localStorage.getItem(\"auth-state\");\n api\n .invoke(\"POST\", `/api/v1/logout`, { state })\n .then(deleteSession)\n .catch((err: ErrorResponseHandler) => {\n console.error(err);\n deleteSession();\n });\n };\n logout();\n }, [dispatch, navigate]);\n return <LoadingComponent />;\n};\n\nexport default LogoutPage;\n"],"names":["LogoutPage","dispatch","useAppDispatch","navigate","useNavigate","useEffect","deleteSession","userLogged","type","localStorage","setItem","resetSession","clearSession","window","location","reload","logout","state","getItem","api","invoke","then","catch","err","console","error","_jsx","LoadingComponent"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5311],{5311:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var l=n(65043),s=n(89923),i=n(56629),a=n(53518),r=n(64159),o=n(21383),c=n(12848),d=n(77403),u=n(70579);const x=e=>{let{closeVersioningModalAndRefresh:t,modalOpen:n,selectedBucket:x,versioningInfo:h={},objectLockingEnabled:g}=e;const p=(0,o.jL)(),[f,m]=(0,l.useState)(!1),[b,j]=(0,l.useState)("Enabled"===(null===h||void 0===h?void 0:h.status)),[v,k]=(0,l.useState)(!(null===h||void 0===h||!h.excludeFolders)),[w,C]=(0,l.useState)((e=>{const t=null===e||void 0===e?void 0:e.excludedPrefixes;return t?t.map((e=>e.prefix)).join(","):""})(h));return(0,u.jsx)(s.ngX,{onClose:()=>t(!1),open:n,title:"Versioning on Bucket",children:(0,u.jsxs)(s.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(s.dOG,{id:"activateVersioning",label:"Versioning Status",checked:b,onChange:e=>{j(e.target.checked)},indicatorLabels:["Enabled","Disabled"]}),b&&!g&&(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(s.dOG,{id:"excludeFolders",label:"Exclude Folders",checked:v,onChange:e=>{k(e.target.checked)},indicatorLabels:["Enabled","Disabled"]}),(0,u.jsx)(c.A,{elements:w,label:"Excluded Prefixes",name:"excludedPrefixes",onChange:e=>{let t="";t=Array.isArray(e)?e.join(","):e,C(t)},withBorder:!0})]}),(0,u.jsxs)(s.azJ,{sx:d.Uz.modalButtonBar,children:[(0,u.jsx)(s.$nd,{id:"clear",type:"button",variant:"regular",color:"primary",onClick:()=>{C(""),k(!1),j(!1)},label:"Clear"}),(0,u.jsx)(s.$nd,{type:"submit",variant:"callAction",onClick:()=>{f||(m(!0),i.F.buckets.setBucketVersioning(x,{enabled:b,excludeFolders:!!b&&v,excludePrefixes:b?w.split(",").filter((e=>""!==e.trim())):[]}).then((()=>{m(!1),t(!0)})).catch((e=>{m(!1),p((0,r.C9)((0,a.S)(e.error)))})))},id:"saveTag",label:"Save"})]})]})})}},12848:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(65043),s=n(33097),i=n.n(s),a=n(89923),r=n(70579);const o=e=>{let{elements:t,name:n,label:s,tooltip:o="",commonPlaceholder:c="",onChange:d,withBorder:u=!1}=e;const[x,h]=(0,l.useState)([""]),g=(0,l.createRef)();(0,l.useEffect)((()=>{if(1===x.length&&""===x[0]&&t&&""!==t){const e=t.split(",");e.push(""),h(e)}}),[t,x]),(0,l.useEffect)((()=>{if(x.length>1){const e=g.current;e&&e.scrollIntoView(!1)}}),[x,g]);const p=(0,l.useCallback)((e=>{d(e)}),[d]),f=(0,l.useRef)(!0);(0,l.useEffect)((()=>{if(f.current)return void(f.current=!1);const e=x.filter((e=>""!==e.trim())).join(",");p(e)}),[x]);const m=e=>{e.persist();let t=[...x];const n=i()(e.target,"dataset.index","0");t[parseInt(n)]=e.target.value,h(t)},b=x.map(((e,t)=>(0,r.jsx)(a.cl_,{id:`${n}-${t.toString()}`,label:"",name:`${n}-${t.toString()}`,value:x[t],onChange:m,index:t,placeholder:c,overlayIcon:t===x.length-1?(0,r.jsx)(a.REV,{}):null,overlayAction:()=>{(e=>{if(""!==e[e.length-1].trim()){const t=[...e];t.push(""),h(t)}})(x)}},`csv-multi-${n}-${t.toString()}`)));return(0,r.jsx)(l.Fragment,{children:(0,r.jsxs)(a.azJ,{sx:{display:"flex"},className:"inputItem",children:[(0,r.jsxs)(a.l1Y,{sx:{alignItems:"flex-start"},children:[(0,r.jsx)("span",{children:s}),""!==o&&(0,r.jsx)(a.azJ,{sx:{marginLeft:5,display:"flex",alignItems:"center","& .min-icon":{width:13}},children:(0,r.jsx)(a.m_M,{tooltip:o,placement:"top",children:(0,r.jsx)(a.azJ,{className:o,children:(0,r.jsx)(a.NTw,{})})})})]}),(0,r.jsxs)(a.azJ,{withBorders:u,sx:{width:"100%",overflowY:"auto",height:150,position:"relative"},children:[b,(0,r.jsx)("div",{ref:g})]})]})})}}}]);
|
||||
//# sourceMappingURL=5311.33b9cf56.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5711],{72237:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(65043),a=s(70579);const l=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(s){return(0,a.jsx)(t.Suspense,{fallback:n,children:(0,a.jsx)(e,{...s})})}}},5711:(e,n,s)=>{s.r(n),s.d(n,{default:()=>p});var t=s(65043),a=s(72237),l=s(48793),c=s(88617),r=s(64159),u=s(21383),i=s(70579);const o=(0,a.A)(t.lazy((()=>s.e(8017).then(s.bind(s,38017))))),p=()=>{const e=(0,u.jL)();return(0,t.useEffect)((()=>{e((0,r.ph)("event_destinations"))}),[]),(0,i.jsxs)(t.Fragment,{children:[(0,i.jsx)(l.A,{label:"Event Destinations",actions:(0,i.jsx)(c.A,{})}),(0,i.jsx)(o,{})]})}}}]);
|
||||
//# sourceMappingURL=5711.6f5b125a.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/5711.6f5b125a.chunk.js","mappings":"8IAiCA,QAfA,SACEA,GAEC,IADDC,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KAUtC,OARA,SAA+BG,GAC7B,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAACN,SAAUA,EAASO,UAC3BF,EAAAA,EAAAA,KAACN,EAAgB,IAAMK,KAG7B,CAGF,C,gICPA,MAAMI,GAA4BC,EAAAA,EAAAA,GAChCC,EAAAA,MAAW,IAAM,mCAiBnB,EAd0BC,KACxB,MAAMC,GAAWC,EAAAA,EAAAA,MAKjB,OAJAC,EAAAA,EAAAA,YAAU,KACRF,GAASG,EAAAA,EAAAA,IAAY,sBAAsB,GAE1C,KAEDC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAV,SAAA,EACPF,EAAAA,EAAAA,KAACa,EAAAA,EAAiB,CAACC,MAAM,qBAAqBC,SAASf,EAAAA,EAAAA,KAACgB,EAAAA,EAAQ,OAChEhB,EAAAA,EAAAA,KAACG,EAAyB,MACjB,C","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/EventDestinations/EventDestinations.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense<P extends string | number | object>(\n WrappedComponent: ComponentType<P>,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n <Suspense fallback={fallback}>\n <WrappedComponent {...(props as any)} />\n </Suspense>\n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment, useEffect } from \"react\";\n\nimport withSuspense from \"../Common/Components/withSuspense\";\nimport PageHeaderWrapper from \"../Common/PageHeaderWrapper/PageHeaderWrapper\";\nimport HelpMenu from \"../HelpMenu\";\nimport { setHelpName } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\nconst ListNotificationEndpoints = withSuspense(\n React.lazy(() => import(\"./ListEventDestinations\")),\n);\n\nconst EventDestinations = () => {\n const dispatch = useAppDispatch();\n useEffect(() => {\n dispatch(setHelpName(\"event_destinations\"));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (\n <Fragment>\n <PageHeaderWrapper label=\"Event Destinations\" actions={<HelpMenu />} />\n <ListNotificationEndpoints />\n </Fragment>\n );\n};\n\nexport default EventDestinations;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","ListNotificationEndpoints","withSuspense","React","EventDestinations","dispatch","useAppDispatch","useEffect","setHelpName","_jsxs","Fragment","PageHeaderWrapper","label","actions","HelpMenu"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5809],{5809:(e,l,s)=>{s.r(l),s.d(l,{default:()=>v});var t=s(65043),a=s(33097),n=s.n(a),r=s(89923),d=s(99161),i=s(77938),o=s(64159),c=s(21383),u=s(25448),p=s(72237),x=s(70579);const T=(0,p.A)(t.lazy((()=>s.e(1303).then(s.bind(s,1303))))),h=(0,p.A)(t.lazy((()=>s.e(5079).then(s.bind(s,55079))))),v=e=>{let{bucketName:l}=e;const s=(0,c.jL)(),[a,p]=(0,t.useState)(null),[v,_]=(0,t.useState)(!1),[A,S]=(0,t.useState)([]),[b,j]=(0,t.useState)(["",""]),[O,C]=(0,t.useState)(!1),[g,k]=(0,u.A)((e=>{if(e&&null!=(null===e||void 0===e?void 0:e.details)){var l,s;if(e.details.tags)return p(null===e||void 0===e||null===(l=e.details)||void 0===l?void 0:l.tags),void S(Object.keys(null===e||void 0===e||null===(s=e.details)||void 0===s?void 0:s.tags));p([]),S([])}}),(e=>{s((0,o.C9)(e))})),G=()=>{k("GET",`/api/v1/buckets/${l}`)};return(0,t.useEffect)((()=>{G()}),[l]),(0,x.jsxs)(r.azJ,{children:[g?(0,x.jsx)(r.aHM,{style:{width:16,height:16}}):null,(0,x.jsx)(i.R,{scopes:[d.OV.S3_GET_BUCKET_TAGGING,d.OV.S3_GET_ACTIONS],resource:l,children:(0,x.jsx)(r.azJ,{sx:{display:"flex",flexFlow:"column",marginTop:5},children:(0,x.jsxs)(r.azJ,{sx:{display:"flex",gap:8,flexWrap:"wrap"},children:[A&&A.map(((e,s)=>{const t=n()(a,`${e}`,"");return""!==t?(0,x.jsx)(i.R,{scopes:[d.OV.S3_PUT_BUCKET_TAGGING,d.OV.S3_PUT_ACTIONS],resource:l,matchAll:!0,errorProps:{deleteIcon:null,onDelete:null},children:(0,x.jsx)(r.vwO,{label:`${e} : ${t}`,id:`tag-${e}-${t}`,onDelete:()=>{((e,l)=>{j([e,l]),C(!0)})(e,t)}})},`chip-${s}`):null})),(0,x.jsx)(i.R,{scopes:[d.OV.S3_PUT_BUCKET_TAGGING,d.OV.S3_PUT_ACTIONS],resource:l,errorProps:{disabled:!0,onClick:null},children:(0,x.jsx)(r.vwO,{label:"Add tag",icon:(0,x.jsx)(r.REV,{}),id:"create-tag",variant:"outlined",onClick:()=>{_(!0)},sx:{cursor:"pointer",maxWidth:90}})})]})})}),v&&(0,x.jsx)(T,{modalOpen:v,currentTags:a,bucketName:l,onCloseAndUpdate:e=>{_(!1),e&&G()}}),O&&(0,x.jsx)(h,{deleteOpen:O,currentTags:a,bucketName:l,onCloseAndUpdate:e=>{C(!1),e&&G()},selectedTag:b})]})}},25448:(e,l,s)=>{s.d(l,{A:()=>n});var t=s(65043),a=s(20649);const n=(e,l)=>{const[s,n]=(0,t.useState)(!1);return[s,(s,t,r,d)=>{n(!0),a.A.invoke(s,t,r,d).then((l=>{n(!1),e(l)})).catch((e=>{n(!1),l(e)}))}]}}}]);
|
||||
//# sourceMappingURL=5809.a7e08101.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5851],{85851:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var o=n(65043),l=n(89923),s=n(64159),r=n(21383),a=n(58661),c=n(56629),i=n(53518),u=n(70579);const p=e=>{let{selectedGroups:t,deleteOpen:n,closeDeleteModalAndRefresh:p}=e;const h=(0,r.jL)(),[d,f]=(0,o.useState)(!1);if(!t)return null;const g=t.map((e=>(0,u.jsx)("div",{children:(0,u.jsx)("b",{children:e})},e)));return(0,u.jsx)(a.A,{title:"Delete Group"+(t.length>1?"s":""),confirmText:"Delete",isOpen:n,titleIcon:(0,u.jsx)(l.xWY,{}),isLoading:d,onConfirm:()=>{for(let e of t)f(!0),c.F.group.removeGroup(e).then((e=>{p(!0)})).catch((async e=>{const t=await e.json();h((0,s.C9)((0,i.S)(t))),p(!1)})).finally((()=>f(!1)))},onClose:()=>p(!1),confirmationContent:(0,u.jsxs)(o.Fragment,{children:["Are you sure you want to delete the following"," ",1===t.length?"":t.length," group",t.length>1?"s?":"?",g]})})}}}]);
|
||||
//# sourceMappingURL=5851.9e5683a6.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/5851.9e5683a6.chunk.js","mappings":"6NA+BA,MAwDA,EAxDoBA,IAIC,IAJA,eACnBC,EAAc,WACdC,EAAU,2BACVC,GACaH,EACb,MAAMI,GAAWC,EAAAA,EAAAA,OAEVC,EAAeC,IAAoBC,EAAAA,EAAAA,WAAkB,GAE5D,IAAKP,EACH,OAAO,KAET,MAiBMQ,EAAeR,EAAeS,KAAKC,IACvCC,EAAAA,EAAAA,KAAA,OAAAC,UACED,EAAAA,EAAAA,KAAA,KAAAC,SAAIF,KADIA,KAKZ,OACEC,EAAAA,EAAAA,KAACE,EAAAA,EAAa,CACZC,MAAO,gBAAed,EAAee,OAAS,EAAI,IAAM,IACxDC,YAAa,SACbC,OAAQhB,EACRiB,WAAWP,EAAAA,EAAAA,KAACQ,EAAAA,IAAiB,IAC7BC,UAAWf,EACXgB,UA9BmBC,KACrB,IAAK,IAAIZ,KAASV,EAChBM,GAAiB,GACjBiB,EAAAA,EAAIb,MACDc,YAAYd,GACZe,MAAMC,IACLxB,GAA2B,EAAK,IAEjCyB,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvB5B,GAAS6B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7C3B,GAA2B,EAAM,IAElCgC,SAAQ,IAAM5B,GAAiB,IACpC,EAiBE6B,QArCYA,IAAMjC,GAA2B,GAsC7CkC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAA1B,SAAA,CAAC,gDACsC,IACnB,IAA1BZ,EAAee,OAAe,GAAKf,EAAee,OAAO,SACzDf,EAAee,OAAS,EAAI,KAAO,IACnCP,MAGL,C","sources":["screens/Console/Groups/DeleteGroup.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment, useState } from \"react\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { api } from \"api\";\nimport { errorToHandler } from \"api/errors\";\nimport { ApiError, HttpResponse } from \"api/consoleApi\";\n\ninterface IDeleteGroup {\n selectedGroups: string[];\n deleteOpen: boolean;\n closeDeleteModalAndRefresh: any;\n}\n\nconst DeleteGroup = ({\n selectedGroups,\n deleteOpen,\n closeDeleteModalAndRefresh,\n}: IDeleteGroup) => {\n const dispatch = useAppDispatch();\n const onClose = () => closeDeleteModalAndRefresh(false);\n const [loadingDelete, setLoadingDelete] = useState<boolean>(false);\n\n if (!selectedGroups) {\n return null;\n }\n const onDeleteGroups = () => {\n for (let group of selectedGroups) {\n setLoadingDelete(true);\n api.group\n .removeGroup(group)\n .then((_) => {\n closeDeleteModalAndRefresh(true);\n })\n .catch(async (res: HttpResponse<void, ApiError>) => {\n const err = (await res.json()) as ApiError;\n dispatch(setErrorSnackMessage(errorToHandler(err)));\n closeDeleteModalAndRefresh(false);\n })\n .finally(() => setLoadingDelete(false));\n }\n };\n\n const renderGroups = selectedGroups.map((group) => (\n <div key={group}>\n <b>{group}</b>\n </div>\n ));\n\n return (\n <ConfirmDialog\n title={`Delete Group${selectedGroups.length > 1 ? \"s\" : \"\"}`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={loadingDelete}\n onConfirm={onDeleteGroups}\n onClose={onClose}\n confirmationContent={\n <Fragment>\n Are you sure you want to delete the following{\" \"}\n {selectedGroups.length === 1 ? \"\" : selectedGroups.length} group\n {selectedGroups.length > 1 ? \"s?\" : \"?\"}\n {renderGroups}\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteGroup;\n"],"names":["_ref","selectedGroups","deleteOpen","closeDeleteModalAndRefresh","dispatch","useAppDispatch","loadingDelete","setLoadingDelete","useState","renderGroups","map","group","_jsx","children","ConfirmDialog","title","length","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onDeleteGroups","api","removeGroup","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5941],{65941:(e,s,t)=>{t.r(s),t.d(s,{default:()=>v});var n=t(65043),o=t(25448),r=t(58661),i=t(89923),l=t(64159),a=t(21383),d=t(77938),c=t(99161),u=t(22166),b=t(56629),h=t(70579);const v=e=>{let{closeDeleteModalAndRefresh:s,deleteOpen:t,selectedBucket:v,selectedObjects:p,versioning:j}=e;const g=(0,a.jL)(),x=()=>s(!0),[f,m]=(0,o.A)(x,(e=>g((0,l.C9)(e)))),[C,y]=(0,n.useState)(!1),[O,_]=(0,n.useState)(!1),k=(0,u.d4)((e=>e.objectBrowser.retentionConfig)),w=(0,d._)([v],[c.OV.S3_BYPASS_GOVERNANCE_RETENTION])&&"governance"===(null===k||void 0===k?void 0:k.mode);if(!p)return null;const T="Enabled"===(null===j||void 0===j?void 0:j.status)||"Suspended"===(null===j||void 0===j?void 0:j.status);return(0,h.jsx)(r.A,{title:"Delete Objects",confirmText:"Delete",isOpen:t,titleIcon:(0,h.jsx)(i.xWY,{}),isLoading:f,onConfirm:()=>{let e=[];for(let s=0;s<p.length;s++)p[s].endsWith("/")?e.push({path:p[s],versionID:"",recursive:!0}):e.push({path:p[s],versionID:"",recursive:!1});if(e)if(1===p.length){const e=p[0];b.F.buckets.deleteObject(v,{prefix:e,all_versions:C,bypass:O,recursive:e.endsWith("/")}).then(x).catch((e=>{g((0,l.C9)({errorMessage:`Could not delete object. ${e.statusText}. ${k?"Please check retention mode and if object is WORM protected.":""}`,detailedError:""}))}))}else m("POST",`/api/v1/buckets/${v}/delete-objects?all_versions=${C}${O?"&bypass=true":""}`,e)},onClose:()=>s(!1),confirmationContent:(0,h.jsxs)(n.Fragment,{children:["Are you sure you want to delete the selected ",p.length," ","objects?"," ",T&&(0,h.jsxs)(n.Fragment,{children:[(0,h.jsx)("br",{}),(0,h.jsx)("br",{}),(0,h.jsx)(i.dOG,{label:"Delete All Versions",indicatorLabels:["Yes","No"],checked:C,value:"delete_versions",id:"delete-versions",name:"delete-versions",onChange:e=>{y(!C)},description:""}),w&&C&&(0,h.jsx)(n.Fragment,{children:(0,h.jsx)("div",{style:{marginTop:10},children:(0,h.jsx)(i.dOG,{label:"Bypass Governance Mode",indicatorLabels:["Yes","No"],checked:O,value:"bypass_governance",id:"bypass_governance",name:"bypass_governance",onChange:e=>{_(!O)},description:""})})}),C&&(0,h.jsxs)(n.Fragment,{children:[(0,h.jsxs)("div",{style:{marginTop:10,border:"#c83b51 1px solid",borderRadius:3,padding:5,backgroundColor:"#c83b5120",color:"#c83b51"},children:["This will remove the objects as well as all of their versions, ",(0,h.jsx)("br",{}),"This action is irreversible."]}),(0,h.jsx)("br",{}),"Are you sure you want to continue?"]})]})]})})}}}]);
|
||||
//# sourceMappingURL=5941.59ff87cc.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/6.304df09b.chunk.js
Normal file
2
web-app/build/static/js/6.304df09b.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6],{649:(t,e,o)=>{"use strict";o.d(e,{A:()=>l});var n=o(6797),r=o.n(n),s=o(3097),a=o.n(s),i=o(6483),c=o(4710);const l=new class{invoke(t,e,o,n){let s=e;"/"===s[0]&&(s=s.slice(1));let a=r()(t,s);if(n)for(let r in n)a.set(r,n[r]);return a.send(o).then((t=>t.body)).catch((t=>401===t.status&&localStorage.getItem("userLoggedIn")&&!s.includes("api/v1/login")?("/"!==window.location.pathname&&localStorage.setItem("redirect-path",window.location.pathname),(0,i.q7)(),void(window.location.href=`${c.p}login`)):this.onError(t)))}onError(t){if(t.status){const e=a()(t.response,"body.message",`Error ${t.status.toString()}`);let o=a()(t.response,"body.detailedMessage","");e===o&&(o="");const n={errorMessage:e.charAt(0).toUpperCase()+e.slice(1),detailedError:o.charAt(0).toUpperCase()+o.slice(1),statusCode:t.status};return Promise.reject(n)}(0,i.q7)(),window.location.href=`${c.p}login`}}},6483:(t,e,o)=>{"use strict";o.d(e,{K7:()=>d,Tw:()=>g,eQ:()=>f,nO:()=>c,oK:()=>p,q7:()=>h,qO:()=>l,qf:()=>$});var n=o(9816),r=o(3097),s=o.n(r);const a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=["Ki","Mi","Gi","Ti","Pi","Ei"],c=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=parseInt(t,10)||0;return l(o,e)},l=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;for(;t>=1024&&++o;)t/=1024;const n=["B",...i];return t.toFixed(1)+" "+(e?n[o]:a[o])},u=t=>{document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},h=()=>{n.Ay.removeItem("token"),n.Ay.removeItem("auth-state"),u("token"),u("idp-refresh-token")},d=t=>{const e=Math.floor(t/86400),o=Math.floor(t%86400/3600),n=Math.floor(t%3600/60),r=t%60,s=[];return e>0&&s.push(`${e} day${1!==e?"s":""}`),o>0&&s.push(`${o} hour${1!==o?"s":""}`),n>0&&s.push(`${n} minute${1!==n?"s":""}`),r>0&&s.push(`${r} second${1!==r?"s":""}`),s.join(" and ")},f=function(t){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"s"){case"ns":t=Math.floor(1e-9*t);break;case"ms":t=Math.floor(.001*t)}const e=Math.floor(t/86400);t-=3600*e*24;const o=Math.floor(t/3600);t-=3600*o;const n=Math.floor(t/60);if(t-=60*n,e>365){const t=e/365;return`${t} year${1===Math.floor(t)?"":"s"}`}if(e>30){const t=Math.floor(e/30),o=e-30*t;return`${t} month${1===Math.floor(t)?"":"s"} ${o>0?`${o} day${o>1?"s":""}`:""}`}if(e>=7&&e<=30){const t=Math.floor(e/7);return`${Math.floor(t)} week${1===t?"":"s"}`}return e>=1&&e<=6?`${e} day${e>1?"s":""}`:`${o>=1?`${o} hour${o>1?"s":""}`:""} ${n>=1&&0===o?`${n} minute${n>1?"s":""}`:""} ${t>=1&&0===n&&0===o?`${t} second${t>1?"s":""}`:""}`},p=()=>{const t=s()(window.navigator,"platform","undefined");return t||"undefined"},$=t=>t.split("\u202e").join("<\ufffd202e>"),g=t=>{try{return decodeURIComponent(t)}catch(e){return t}}},5301:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>d});var n=o(5043),r=o(3216),s=o(3635),a=o(6483),i=o(4159),c=o(6537),l=o(649),u=o(685),h=o(579);const d=()=>{const t=(0,s.j)(),e=(0,r.Zp)();return(0,n.useEffect)((()=>{const o=()=>{t((0,i.WQ)(!1)),t({type:"socket/OBDisconnect"}),localStorage.setItem("userLoggedIn",""),localStorage.setItem("redirect-path",""),t((0,c.wD)()),(0,a.q7)(),e("/login"),window.location.reload()};(()=>{const t=localStorage.getItem("auth-state");l.A.invoke("POST","/api/v1/logout",{state:t}).then(o).catch((t=>{console.error(t),o()}))})()}),[t,e]),(0,h.jsx)(u.A,{})}},2634:()=>{}}]);
|
||||
//# sourceMappingURL=6.304df09b.chunk.js.map
|
||||
1
web-app/build/static/js/6.304df09b.chunk.js.map
Normal file
1
web-app/build/static/js/6.304df09b.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6065],{76065:(e,t,s)=>{s.r(t),s.d(t,{default:()=>S});var i=s(65043),n=s(22166),c=s(73216),a=s(89923),o=s(56629),r=s(53518),l=s(99161),d=s(77938),u=s(64159),m=s(39947),_=s(21383),h=s(70579);const S=()=>{const e=(0,_.jL)(),t=(0,c.Zp)(),s=(0,c.g)(),S=(0,n.d4)(m.Nx),[I,b]=(0,i.useState)("simple-tab-0"),[p,O]=(0,i.useState)(!0),[U,k]=(0,i.useState)([]),[A,E]=(0,i.useState)(!0),[C,L]=(0,i.useState)([]),N=s.bucketName||"",P=(0,d._)(N,[l.OV.ADMIN_LIST_USER_POLICIES]),x=(0,d._)(N,[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS],!0),f=(0,d._)(l.Ms,[l.OV.ADMIN_GET_USER]),g=(0,d._)(l.Ms,[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS]);(0,i.useEffect)((()=>{S&&(E(!0),O(!0))}),[S,E,O]);const M=[{type:"view",disableButtonFunction:()=>!g,onClick:e=>{t(`${l.zZ.POLICIES}/${encodeURIComponent(e.name)}`)}}],T=[{type:"view",disableButtonFunction:()=>!f,onClick:e=>{t(`${l.zZ.USERS}/${encodeURIComponent(e)}`)}}];return(0,i.useEffect)((()=>{A&&(x?o.F.bucketUsers.listUsersWithAccessToBucket(N).then((e=>{L(e.data),E(!1)})).catch((t=>{e((0,u.C9)((0,r.S)(t))),E(!1)})):E(!1))}),[A,e,N,x]),(0,i.useEffect)((()=>{e((0,u.ph)("bucket_detail_access"))}),[]),(0,i.useEffect)((()=>{p&&(P?o.F.bucketPolicy.listPoliciesWithBucket(N).then((e=>{k(e.data.policies),O(!1)})).catch((t=>{e((0,u.C9)((0,r.S)(t))),O(!1)})):O(!1))}),[p,e,N,P]),(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(a._xt,{separator:!0,children:(0,h.jsx)(a.V7x,{content:(0,h.jsxs)(i.Fragment,{children:["Understand which"," ",(0,h.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/linux/administration/identity-access-management/policy-based-access-control.html#",children:"Policies"})," ","and"," ",(0,h.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/linux/administration/identity-access-management/minio-user-management.html",children:"Users"})," ","are authorized to access this Bucket."]}),placement:"right",children:"Access Audit"})}),(0,h.jsx)(a.tUM,{currentTabOrPath:I,onTabClick:e=>{b(e)},horizontal:!0,options:[{tabConfig:{label:"Policies",id:"simple-tab-0"},content:(0,h.jsx)(d.R,{scopes:[l.OV.ADMIN_LIST_USER_POLICIES],resource:N,errorProps:{disabled:!0},children:U&&(0,h.jsx)(a.bQt,{noBackground:!0,itemActions:M,columns:[{label:"Name",elementKey:"name"}],isLoading:p,records:U,entityName:"Policies",idField:"name"})})},{tabConfig:{label:"Users",id:"simple-tab-1"},content:(0,h.jsx)(d.R,{scopes:[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS],resource:N,matchAll:!0,errorProps:{disabled:!0},children:(0,h.jsx)(a.bQt,{noBackground:!0,itemActions:T,columns:[{label:"User",elementKey:"accessKey"}],isLoading:A,records:C,entityName:"Users",idField:"accessKey"})})}]})]})}}}]);
|
||||
//# sourceMappingURL=6065.740f3e17.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6108],{66108:(e,t,l)=>{l.r(t),l.d(t,{default:()=>x});var a=l(65043),s=l(89923),n=l(64159),i=l(21383),o=l(56629),r=l(85330),c=l(94141),d=l(77403),u=l(70579);const x=e=>{let{open:t,selectedBucket:l,closeModalAndRefresh:x}=e;const m=(0,i.jL)(),[h,f]=(0,a.useState)(!1),[p,b]=(0,a.useState)(""),[j,v]=(0,a.useState)(""),[g,A]=(0,a.useState)(""),[C,S]=(0,a.useState)([]),[k,E]=(0,a.useState)([]),y=(0,a.useCallback)((()=>{f(!0),o.F.admin.arnList().then((e=>{null!==e.data.arns&&E(e.data.arns),f(!1)})).catch((e=>{f(!1),m((0,n.Dy)(e))}))}),[m]);(0,a.useEffect)((()=>{y()}),[y]);const w=[{label:"PUT - Object Uploaded",value:r.Wj.Put},{label:"GET - Object accessed",value:r.Wj.Get},{label:"DELETE - Object Deleted",value:r.Wj.Delete},{label:"REPLICA - Object Replicated",value:r.Wj.Replica},{label:"ILM - Object Transitioned",value:r.Wj.Ilm},{label:"SCANNER - Object has too many versions / Prefixes has too many sub-folders",value:r.Wj.Scanner}],R=null===k||void 0===k?void 0:k.map((e=>({label:e,value:e})));return(0,u.jsx)(c.A,{modalOpen:t,onClose:()=>{x()},title:"Subscribe To Bucket Events",titleIcon:(0,u.jsx)(s.VDx,{}),children:(0,u.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:e=>{e.preventDefault(),h||(f(!0),o.F.buckets.createBucketEvent(l,{configuration:{arn:g,events:C,prefix:p,suffix:j},ignoreExisting:!0}).then((()=>{f(!1),x()})).catch((e=>{f(!1),m((0,n.Dy)(e))})))},children:(0,u.jsxs)(s.xA9,{container:!0,children:[(0,u.jsxs)(s.xA9,{item:!0,xs:12,sx:d.a_.formScrollable,children:[(0,u.jsx)(s.xA9,{item:!0,xs:12,sx:{...d.h$.formFieldRow,"& div div .MuiOutlinedInput-root":{padding:0}},children:(0,u.jsx)(s.jT8,{onChange:e=>{A(e)},id:"select-access-policy",name:"select-access-policy",label:"ARN",value:g,options:R||[],helpTip:(0,u.jsx)(a.Fragment,{children:(0,u.jsx)("a",{target:"blank",href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html",children:"Amazon Resource Name"})})})}),(0,u.jsx)(s.xA9,{item:!0,xs:12,sx:d.h$.formFieldRow,children:(0,u.jsx)(s.cl_,{id:"prefix-input",name:"prefix-input",label:"Prefix",value:p,onChange:e=>{b(e.target.value)}})}),(0,u.jsx)(s.xA9,{item:!0,xs:12,sx:d.h$.formFieldRow,children:(0,u.jsx)(s.cl_,{id:"suffix-input",name:"suffix-input",label:"Suffix",value:j,onChange:e=>{v(e.target.value)}})}),(0,u.jsx)(s.xA9,{item:!0,xs:12,sx:d.h$.formFieldRow,children:(0,u.jsx)(s.bQt,{columns:[{label:"Event",elementKey:"label"}],idField:"value",records:w,onSelect:e=>{const t=e.target,l=t.value,a=t.checked;let s=[...C];a?s.push(l):s=s.filter((e=>e!==l)),S(s)},selectedItems:C,noBackground:!0,customPaperHeight:"260px"})})]}),(0,u.jsxs)(s.xA9,{item:!0,xs:12,sx:d.Uz.modalButtonBar,children:[(0,u.jsx)(s.$nd,{id:"cancel-add-event",type:"button",variant:"regular",disabled:h,onClick:()=>{x()},label:"Cancel"}),(0,u.jsx)(s.$nd,{id:"save-event",type:"submit",variant:"callAction",disabled:h||""===g||0===C.length,label:"Save"})]})]})})})}},94141:(e,t,l)=>{l.d(t,{A:()=>d});var a=l(65043),s=l(22166),n=l(89923),i=l(21383),o=l(64159),r=l(49555),c=l(70579);const d=e=>{let{onClose:t,modalOpen:l,title:d,children:u,wideLimit:x=!0,titleIcon:m=null,iconColor:h="default",sx:f}=e;const p=(0,i.jL)(),[b,j]=(0,a.useState)(!1),v=(0,s.d4)((e=>e.system.modalSnackBar));(0,a.useEffect)((()=>{p((0,o.h0)(""))}),[p]),(0,a.useEffect)((()=>{if(v){if(""===v.message)return void j(!1);"error"!==v.type&&j(!0)}}),[v]);let g="";return v&&(g=v.detailedErrorMsg,(""===g||g&&g.length<5)&&(g=v.message)),(0,c.jsxs)(n.ngX,{onClose:t,open:l,title:d,titleIcon:m,widthLimit:x,sx:f,iconColor:h,children:[(0,c.jsx)(r.A,{isModal:!0}),(0,c.jsx)(n.qb_,{onClose:()=>{j(!1),p((0,o.h0)(""))},open:b,message:g,mode:"inline",variant:"error"===v.type?"error":"default",autoHideDuration:"error"===v.type?10:5,condensed:!0}),u]})}}}]);
|
||||
//# sourceMappingURL=6108.84010ebc.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[614],{30614:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var a=l(65043),s=l(94141),r=l(89923),n=l(56629),o=l(53518),i=l(77403),c=l(64159),d=l(21383),u=l(70579);const p=e=>{let{modalOpen:t,onClose:l,bucket:p,prefilledRoute:h}=e;const f=(0,d.jL)(),[x,b]=(0,a.useState)(""),[m,y]=(0,a.useState)("readonly");(0,a.useEffect)((()=>{h&&b(h)}),[h]);return(0,u.jsx)(s.A,{modalOpen:t,title:"Add Anonymous Access Rule",onClose:l,titleIcon:(0,u.jsx)(r.No_,{}),children:(0,u.jsxs)(r.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(r.cl_,{value:x,label:"Prefix",id:"prefix",name:"prefix",placeholder:"Enter Prefix",onChange:e=>{b(e.target.value)},tooltip:"Enter '/' to apply the rule to all prefixes and objects at the bucket root. Do not include the wildcard asterisk '*' as part of the prefix *unless* it is an explicit part of the prefix name. The Console automatically appends an asterisk to the appropriate sections of the resulting IAM policy."}),(0,u.jsx)(r.l6P,{id:"access",name:"Access",onChange:e=>{y(e)},label:"Access",value:m,options:[{label:"readonly",value:"readonly"},{label:"writeonly",value:"writeonly"},{label:"readwrite",value:"readwrite"}],disabled:!1,helpTip:(0,u.jsx)(a.Fragment,{children:"Select the desired level of access available to unauthenticated Users"}),helpTipPlacement:"right"}),(0,u.jsxs)(r.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,u.jsx)(r.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{b(""),y("readonly")},label:"Clear"}),(0,u.jsx)(r.$nd,{id:"add-access-save",type:"submit",variant:"callAction",disabled:""===x.trim(),onClick:()=>{n.F.bucket.setAccessRuleWithBucket(p,{prefix:x,access:m}).then((e=>{f((0,c.Hk)("Access Rule added successfully")),l()})).catch((e=>{f((0,c.C9)((0,o.S)(e.error))),l()}))},label:"Save"})]})]})})}},94141:(e,t,l)=>{l.d(t,{A:()=>d});var a=l(65043),s=l(22166),r=l(89923),n=l(21383),o=l(64159),i=l(49555),c=l(70579);const d=e=>{let{onClose:t,modalOpen:l,title:d,children:u,wideLimit:p=!0,titleIcon:h=null,iconColor:f="default",sx:x}=e;const b=(0,n.jL)(),[m,y]=(0,a.useState)(!1),v=(0,s.d4)((e=>e.system.modalSnackBar));(0,a.useEffect)((()=>{b((0,o.h0)(""))}),[b]),(0,a.useEffect)((()=>{if(v){if(""===v.message)return void y(!1);"error"!==v.type&&y(!0)}}),[v]);let C="";return v&&(C=v.detailedErrorMsg,(""===C||C&&C.length<5)&&(C=v.message)),(0,c.jsxs)(r.ngX,{onClose:t,open:l,title:d,titleIcon:h,widthLimit:p,sx:x,iconColor:f,children:[(0,c.jsx)(i.A,{isModal:!0}),(0,c.jsx)(r.qb_,{onClose:()=>{y(!1),b((0,o.h0)(""))},open:m,message:C,mode:"inline",variant:"error"===v.type?"error":"default",autoHideDuration:"error"===v.type?10:5,condensed:!0}),u]})}}}]);
|
||||
//# sourceMappingURL=614.29e0d9dd.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6140],{13759:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var l=t(65043),n=t(89923),s=t(70579);const r=e=>{let{onChange:a}=e;const[t,r]=(0,l.useState)(!1),[o,u]=(0,l.useState)(""),[i,c]=(0,l.useState)(""),[d,m]=(0,l.useState)(""),[g,h]=(0,l.useState)(""),[b,p]=(0,l.useState)(""),[v,f]=(0,l.useState)(""),[x,j]=(0,l.useState)(" "),[C,S]=(0,l.useState)(""),[w,y]=(0,l.useState)("namespace"),[_,k]=(0,l.useState)(""),[E,$]=(0,l.useState)(""),[q,B]=(0,l.useState)(""),D=(0,l.useCallback)((()=>{let e="";return""!==i&&(e=`${e} host=${i}`),""!==d&&(e=`${e} dbname=${d}`),""!==b&&(e=`${e} user=${b}`),""!==v&&(e=`${e} password=${v}`),""!==g&&(e=`${e} port=${g}`)," "!==x&&(e=`${e} sslmode=${x}`),e=`${e} `,e.trim()}),[i,d,b,v,g,x]);return(0,l.useEffect)((()=>{if(""!==o){a([{key:"connection_string",value:o},{key:"table",value:C},{key:"format",value:w},{key:"queue_dir",value:_},{key:"queue_limit",value:E},{key:"comment",value:q}])}}),[o,C,w,_,E,q,a]),(0,l.useEffect)((()=>{const e=D();u(e)}),[b,d,v,g,x,i,u,D]),(0,l.useEffect)((()=>{if(t){const e=D();return void u(e)}const e=((e,a)=>{let t=[];for(const s of a){const a=e.indexOf(s+"=");-1!==a&&t.push(a)}t.sort(((e,a)=>e-a));let l=new Map,n=new Array(t.length);for(let s=0;s<t.length;s++){const a=s+1;a<t.length?n[s]=e.slice(t[s],t[a]):n[s]=e.slice(t[s])}for(let s of n){if(void 0===s)continue;const e=s.slice(0,s.indexOf("=")),a=s.slice(s.indexOf("=")+1).trim();l.set(e,a)}return l})(o,["host","port","dbname","user","password","sslmode"]);c(e.get("host")?e.get("host")+"":""),h(e.get("port")?e.get("port")+"":""),m(e.get("dbname")?e.get("dbname")+"":""),p(e.get("user")?e.get("user")+"":""),f(e.get("password")?e.get("password")+"":""),j(e.get("sslmode")?e.get("sslmode")+"":" ")}),[t]),(0,s.jsxs)(n.Hbc,{containerPadding:!1,withBorders:!1,children:[(0,s.jsx)(n.dOG,{label:"Manually Configure String",checked:t,id:"manualString",name:"manualString",onChange:e=>{r(e.target.checked)},value:"manualString"}),t?(0,s.jsx)(l.Fragment,{children:(0,s.jsx)(n.cl_,{id:"connection-string",name:"connection_string",label:"Connection String",value:o,onChange:e=>{u(e.target.value)}})}):(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(n.xA9,{item:!0,xs:12,children:(0,s.jsxs)(n.azJ,{withBorders:!0,useBackground:!0,sx:{overflowY:"auto",height:170,marginBottom:12},children:[(0,s.jsx)(n.cl_,{id:"host",name:"host",label:"",placeholder:"Enter Host",value:i,onChange:e=>{c(e.target.value)}}),(0,s.jsx)(n.cl_,{id:"db-name",name:"db-name",label:"",placeholder:"Enter DB Name",value:d,onChange:e=>{m(e.target.value)}}),(0,s.jsx)(n.cl_,{id:"port",name:"port",label:"",placeholder:"Enter Port",value:g,onChange:e=>{h(e.target.value)}}),(0,s.jsx)(n.l6P,{value:x,label:"",id:"sslmode",name:"sslmode",onChange:e=>{e&&j(e+"")},options:[{label:"Enter SSL Mode",value:" "},{label:"Require",value:"require"},{label:"Disable",value:"disable"},{label:"Verify CA",value:"verify-ca"},{label:"Verify Full",value:"verify-full"}]}),(0,s.jsx)(n.cl_,{id:"user",name:"user",label:"",placeholder:"Enter User",value:b,onChange:e=>{p(e.target.value)}}),(0,s.jsx)(n.cl_,{id:"password",name:"password",label:"",type:"password",placeholder:"Enter Password",value:v,onChange:e=>{f(e.target.value)}})]})}),(0,s.jsx)(n.EmB,{label:"Connection String",multiLine:!0,children:o})]}),(0,s.jsx)(n.cl_,{id:"table",name:"table",label:"Table",placeholder:"Enter Table Name",value:C,tooltip:"DB table name to store/update events, table is auto-created",onChange:e=>{S(e.target.value)}}),(0,s.jsx)(n.z6M,{currentValue:w,id:"format",name:"format",label:"Format",onChange:e=>{y(e.target.value)},tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",selectorOptions:[{label:"Namespace",value:"namespace"},{label:"Access",value:"access"}]}),(0,s.jsx)(n.cl_,{id:"queue-dir",name:"queue_dir",label:"Queue Dir",placeholder:"Enter Queue Directory",value:_,tooltip:"Staging directory for undelivered messages e.g. '/home/events'",onChange:e=>{k(e.target.value)}}),(0,s.jsx)(n.cl_,{id:"queue-limit",name:"queue_limit",label:"Queue Limit",placeholder:"Enter Queue Limit",type:"number",value:E,tooltip:"Maximum limit for undelivered messages, defaults to '10000'",onChange:e=>{$(e.target.value)}}),(0,s.jsx)(n.hFj,{id:"comment",name:"comment",label:"Comment",placeholder:"Enter custom notes if any",value:q,onChange:e=>{B(e.target.value)}})]})}}}]);
|
||||
//# sourceMappingURL=6140.ff277d79.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user