mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Release v1.5.0 (#3373)
update assets with latest fix Co-authored-by: cesnietor <cesar.nieto@min.io>
This commit is contained in:
18
CHANGELOG.md
18
CHANGELOG.md
@@ -2,6 +2,24 @@
|
||||
|
||||
# Changelog
|
||||
|
||||
## Release v1.5.0
|
||||
|
||||
Features:
|
||||
|
||||
- Added remove Tier functionality
|
||||
|
||||
Bug Fix:
|
||||
|
||||
- Fixed ILM rule tags not being shown
|
||||
- Fixed race condition Object Browser websocket
|
||||
- Fixed Encryption page crashing on empty response
|
||||
- Fixed Replication Delete Marker comparisons
|
||||
|
||||
Additional Changes:
|
||||
|
||||
- Use automatic URI encoding for APIs
|
||||
- Vulnerability updates
|
||||
|
||||
## Release v1.4.0
|
||||
|
||||
Features:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "./static/css/main.e60e4760.css",
|
||||
"main.js": "./static/js/main.77c2c9f2.js",
|
||||
"main.js": "./static/js/main.dd292f6d.js",
|
||||
"static/js/5301.2c626a41.chunk.js": "./static/js/5301.2c626a41.chunk.js",
|
||||
"static/js/9361.3fc638a6.chunk.js": "./static/js/9361.3fc638a6.chunk.js",
|
||||
"static/js/843.454ac75f.chunk.js": "./static/js/843.454ac75f.chunk.js",
|
||||
@@ -10,12 +10,12 @@
|
||||
"static/js/5711.9df9b4a2.chunk.js": "./static/js/5711.9df9b4a2.chunk.js",
|
||||
"static/js/8769.996efd0a.chunk.js": "./static/js/8769.996efd0a.chunk.js",
|
||||
"static/js/2033.bea44dd7.chunk.js": "./static/js/2033.bea44dd7.chunk.js",
|
||||
"static/js/8821.e7fb1c57.chunk.js": "./static/js/8821.e7fb1c57.chunk.js",
|
||||
"static/js/8311.d87242df.chunk.js": "./static/js/8311.d87242df.chunk.js",
|
||||
"static/js/9987.79508d87.chunk.js": "./static/js/9987.79508d87.chunk.js",
|
||||
"static/js/689.8272f409.chunk.js": "./static/js/689.8272f409.chunk.js",
|
||||
"static/js/6164.c2cd952a.chunk.js": "./static/js/6164.c2cd952a.chunk.js",
|
||||
"static/js/2372.97c7de62.chunk.js": "./static/js/2372.97c7de62.chunk.js",
|
||||
"static/js/1324.62d917da.chunk.js": "./static/js/1324.62d917da.chunk.js",
|
||||
"static/js/1324.cc645cb1.chunk.js": "./static/js/1324.cc645cb1.chunk.js",
|
||||
"static/js/5693.eb317771.chunk.js": "./static/js/5693.eb317771.chunk.js",
|
||||
"static/js/5872.62eb672b.chunk.js": "./static/js/5872.62eb672b.chunk.js",
|
||||
"static/js/6758.cf46c98c.chunk.js": "./static/js/6758.cf46c98c.chunk.js",
|
||||
@@ -27,8 +27,8 @@
|
||||
"static/js/9340.acfd036d.chunk.js": "./static/js/9340.acfd036d.chunk.js",
|
||||
"static/js/9269.dfec9438.chunk.js": "./static/js/9269.dfec9438.chunk.js",
|
||||
"static/js/6925.b3e208b0.chunk.js": "./static/js/6925.b3e208b0.chunk.js",
|
||||
"static/js/3527.30ec1659.chunk.js": "./static/js/3527.30ec1659.chunk.js",
|
||||
"static/js/8789.5dfcad74.chunk.js": "./static/js/8789.5dfcad74.chunk.js",
|
||||
"static/js/3527.b7757ae8.chunk.js": "./static/js/3527.b7757ae8.chunk.js",
|
||||
"static/js/8789.c1e4949f.chunk.js": "./static/js/8789.c1e4949f.chunk.js",
|
||||
"static/js/7485.64738b77.chunk.js": "./static/js/7485.64738b77.chunk.js",
|
||||
"static/js/7041.219c4d11.chunk.js": "./static/js/7041.219c4d11.chunk.js",
|
||||
"static/js/2138.7da0f275.chunk.js": "./static/js/2138.7da0f275.chunk.js",
|
||||
@@ -40,40 +40,40 @@
|
||||
"static/js/4103.926c44ef.chunk.js": "./static/js/4103.926c44ef.chunk.js",
|
||||
"static/js/1702.851e407f.chunk.js": "./static/js/1702.851e407f.chunk.js",
|
||||
"static/js/7601.4e033e78.chunk.js": "./static/js/7601.4e033e78.chunk.js",
|
||||
"static/js/2959.c4f178f1.chunk.js": "./static/js/2959.c4f178f1.chunk.js",
|
||||
"static/js/2959.f25a9ef1.chunk.js": "./static/js/2959.f25a9ef1.chunk.js",
|
||||
"static/js/9619.a756233f.chunk.js": "./static/js/9619.a756233f.chunk.js",
|
||||
"static/js/8017.d5b163f3.chunk.js": "./static/js/8017.d5b163f3.chunk.js",
|
||||
"static/js/3323.f86a698b.chunk.js": "./static/js/3323.f86a698b.chunk.js",
|
||||
"static/js/5128.96ab1387.chunk.js": "./static/js/5128.96ab1387.chunk.js",
|
||||
"static/js/6140.37801ce8.chunk.js": "./static/js/6140.37801ce8.chunk.js",
|
||||
"static/js/696.77a3fec7.chunk.js": "./static/js/696.77a3fec7.chunk.js",
|
||||
"static/js/2166.bb4ae347.chunk.js": "./static/js/2166.bb4ae347.chunk.js",
|
||||
"static/js/2166.a0f01e1a.chunk.js": "./static/js/2166.a0f01e1a.chunk.js",
|
||||
"static/js/7063.d62078ab.chunk.js": "./static/js/7063.d62078ab.chunk.js",
|
||||
"static/js/3061.2419f208.chunk.js": "./static/js/3061.2419f208.chunk.js",
|
||||
"static/js/5064.ccf271db.chunk.js": "./static/js/5064.ccf271db.chunk.js",
|
||||
"static/js/7643.41c0709d.chunk.js": "./static/js/7643.41c0709d.chunk.js",
|
||||
"static/js/985.f5122b3c.chunk.js": "./static/js/985.f5122b3c.chunk.js",
|
||||
"static/js/1370.adfc1682.chunk.js": "./static/js/1370.adfc1682.chunk.js",
|
||||
"static/js/8823.034b6a8d.chunk.js": "./static/js/8823.034b6a8d.chunk.js",
|
||||
"static/js/985.c802474d.chunk.js": "./static/js/985.c802474d.chunk.js",
|
||||
"static/js/1370.a3d466ac.chunk.js": "./static/js/1370.a3d466ac.chunk.js",
|
||||
"static/js/8823.5a005f09.chunk.js": "./static/js/8823.5a005f09.chunk.js",
|
||||
"static/js/24.1245bd95.chunk.js": "./static/js/24.1245bd95.chunk.js",
|
||||
"static/js/5851.9d7a7887.chunk.js": "./static/js/5851.9d7a7887.chunk.js",
|
||||
"static/js/4705.2270c966.chunk.js": "./static/js/4705.2270c966.chunk.js",
|
||||
"static/js/5851.9aeea951.chunk.js": "./static/js/5851.9aeea951.chunk.js",
|
||||
"static/js/4705.1a1c4cd3.chunk.js": "./static/js/4705.1a1c4cd3.chunk.js",
|
||||
"static/js/3654.877a48d3.chunk.js": "./static/js/3654.877a48d3.chunk.js",
|
||||
"static/js/960.494cc9da.chunk.js": "./static/js/960.494cc9da.chunk.js",
|
||||
"static/js/960.41c7b96c.chunk.js": "./static/js/960.41c7b96c.chunk.js",
|
||||
"static/js/8642.ab45092c.chunk.js": "./static/js/8642.ab45092c.chunk.js",
|
||||
"static/js/3329.89a09424.chunk.js": "./static/js/3329.89a09424.chunk.js",
|
||||
"static/js/2332.7e0aee28.chunk.js": "./static/js/2332.7e0aee28.chunk.js",
|
||||
"static/js/5941.4df5a08b.chunk.js": "./static/js/5941.4df5a08b.chunk.js",
|
||||
"static/js/5941.c85331e3.chunk.js": "./static/js/5941.c85331e3.chunk.js",
|
||||
"static/js/2704.fe33dd23.chunk.js": "./static/js/2704.fe33dd23.chunk.js",
|
||||
"static/js/7774.4d23a595.chunk.js": "./static/js/7774.4d23a595.chunk.js",
|
||||
"static/js/7774.32142847.chunk.js": "./static/js/7774.32142847.chunk.js",
|
||||
"static/js/3851.c5eaa08e.chunk.js": "./static/js/3851.c5eaa08e.chunk.js",
|
||||
"static/js/9965.e00429f9.chunk.js": "./static/js/9965.e00429f9.chunk.js",
|
||||
"static/js/6065.f30b3ff2.chunk.js": "./static/js/6065.f30b3ff2.chunk.js",
|
||||
"static/js/6065.e12fd403.chunk.js": "./static/js/6065.e12fd403.chunk.js",
|
||||
"static/js/12.ab9b7ed0.chunk.js": "./static/js/12.ab9b7ed0.chunk.js",
|
||||
"static/js/8010.8ce54818.chunk.js": "./static/js/8010.8ce54818.chunk.js",
|
||||
"static/js/2689.5e76c1cd.chunk.js": "./static/js/2689.5e76c1cd.chunk.js",
|
||||
"static/js/872.6f58df17.chunk.js": "./static/js/872.6f58df17.chunk.js",
|
||||
"static/js/4676.578844c1.chunk.js": "./static/js/4676.578844c1.chunk.js",
|
||||
"static/js/4676.8d6be1dd.chunk.js": "./static/js/4676.8d6be1dd.chunk.js",
|
||||
"static/js/8825.e5adf924.chunk.js": "./static/js/8825.e5adf924.chunk.js",
|
||||
"static/js/614.f6cdf349.chunk.js": "./static/js/614.f6cdf349.chunk.js",
|
||||
"static/js/502.0106f2a9.chunk.js": "./static/js/502.0106f2a9.chunk.js",
|
||||
@@ -95,7 +95,7 @@
|
||||
"static/js/6016.2a05d7e1.chunk.js": "./static/js/6016.2a05d7e1.chunk.js",
|
||||
"static/js/9652.3c40b533.chunk.js": "./static/js/9652.3c40b533.chunk.js",
|
||||
"static/js/1195.955963a0.chunk.js": "./static/js/1195.955963a0.chunk.js",
|
||||
"static/js/1011.13d372c8.chunk.js": "./static/js/1011.13d372c8.chunk.js",
|
||||
"static/js/1011.59fa8004.chunk.js": "./static/js/1011.59fa8004.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",
|
||||
@@ -119,7 +119,7 @@
|
||||
"static/media/placeholderimage.png": "./static/media/placeholderimage.077ea48bd1ef1f4a883f.png",
|
||||
"index.html": "./index.html",
|
||||
"main.e60e4760.css.map": "./static/css/main.e60e4760.css.map",
|
||||
"main.77c2c9f2.js.map": "./static/js/main.77c2c9f2.js.map",
|
||||
"main.dd292f6d.js.map": "./static/js/main.dd292f6d.js.map",
|
||||
"5301.2c626a41.chunk.js.map": "./static/js/5301.2c626a41.chunk.js.map",
|
||||
"9361.3fc638a6.chunk.js.map": "./static/js/9361.3fc638a6.chunk.js.map",
|
||||
"843.454ac75f.chunk.js.map": "./static/js/843.454ac75f.chunk.js.map",
|
||||
@@ -128,12 +128,12 @@
|
||||
"5711.9df9b4a2.chunk.js.map": "./static/js/5711.9df9b4a2.chunk.js.map",
|
||||
"8769.996efd0a.chunk.js.map": "./static/js/8769.996efd0a.chunk.js.map",
|
||||
"2033.bea44dd7.chunk.js.map": "./static/js/2033.bea44dd7.chunk.js.map",
|
||||
"8821.e7fb1c57.chunk.js.map": "./static/js/8821.e7fb1c57.chunk.js.map",
|
||||
"8311.d87242df.chunk.js.map": "./static/js/8311.d87242df.chunk.js.map",
|
||||
"9987.79508d87.chunk.js.map": "./static/js/9987.79508d87.chunk.js.map",
|
||||
"689.8272f409.chunk.js.map": "./static/js/689.8272f409.chunk.js.map",
|
||||
"6164.c2cd952a.chunk.js.map": "./static/js/6164.c2cd952a.chunk.js.map",
|
||||
"2372.97c7de62.chunk.js.map": "./static/js/2372.97c7de62.chunk.js.map",
|
||||
"1324.62d917da.chunk.js.map": "./static/js/1324.62d917da.chunk.js.map",
|
||||
"1324.cc645cb1.chunk.js.map": "./static/js/1324.cc645cb1.chunk.js.map",
|
||||
"5693.eb317771.chunk.js.map": "./static/js/5693.eb317771.chunk.js.map",
|
||||
"5872.62eb672b.chunk.js.map": "./static/js/5872.62eb672b.chunk.js.map",
|
||||
"6758.cf46c98c.chunk.js.map": "./static/js/6758.cf46c98c.chunk.js.map",
|
||||
@@ -145,8 +145,8 @@
|
||||
"9340.acfd036d.chunk.js.map": "./static/js/9340.acfd036d.chunk.js.map",
|
||||
"9269.dfec9438.chunk.js.map": "./static/js/9269.dfec9438.chunk.js.map",
|
||||
"6925.b3e208b0.chunk.js.map": "./static/js/6925.b3e208b0.chunk.js.map",
|
||||
"3527.30ec1659.chunk.js.map": "./static/js/3527.30ec1659.chunk.js.map",
|
||||
"8789.5dfcad74.chunk.js.map": "./static/js/8789.5dfcad74.chunk.js.map",
|
||||
"3527.b7757ae8.chunk.js.map": "./static/js/3527.b7757ae8.chunk.js.map",
|
||||
"8789.c1e4949f.chunk.js.map": "./static/js/8789.c1e4949f.chunk.js.map",
|
||||
"7485.64738b77.chunk.js.map": "./static/js/7485.64738b77.chunk.js.map",
|
||||
"7041.219c4d11.chunk.js.map": "./static/js/7041.219c4d11.chunk.js.map",
|
||||
"2138.7da0f275.chunk.js.map": "./static/js/2138.7da0f275.chunk.js.map",
|
||||
@@ -158,40 +158,40 @@
|
||||
"4103.926c44ef.chunk.js.map": "./static/js/4103.926c44ef.chunk.js.map",
|
||||
"1702.851e407f.chunk.js.map": "./static/js/1702.851e407f.chunk.js.map",
|
||||
"7601.4e033e78.chunk.js.map": "./static/js/7601.4e033e78.chunk.js.map",
|
||||
"2959.c4f178f1.chunk.js.map": "./static/js/2959.c4f178f1.chunk.js.map",
|
||||
"2959.f25a9ef1.chunk.js.map": "./static/js/2959.f25a9ef1.chunk.js.map",
|
||||
"9619.a756233f.chunk.js.map": "./static/js/9619.a756233f.chunk.js.map",
|
||||
"8017.d5b163f3.chunk.js.map": "./static/js/8017.d5b163f3.chunk.js.map",
|
||||
"3323.f86a698b.chunk.js.map": "./static/js/3323.f86a698b.chunk.js.map",
|
||||
"5128.96ab1387.chunk.js.map": "./static/js/5128.96ab1387.chunk.js.map",
|
||||
"6140.37801ce8.chunk.js.map": "./static/js/6140.37801ce8.chunk.js.map",
|
||||
"696.77a3fec7.chunk.js.map": "./static/js/696.77a3fec7.chunk.js.map",
|
||||
"2166.bb4ae347.chunk.js.map": "./static/js/2166.bb4ae347.chunk.js.map",
|
||||
"2166.a0f01e1a.chunk.js.map": "./static/js/2166.a0f01e1a.chunk.js.map",
|
||||
"7063.d62078ab.chunk.js.map": "./static/js/7063.d62078ab.chunk.js.map",
|
||||
"3061.2419f208.chunk.js.map": "./static/js/3061.2419f208.chunk.js.map",
|
||||
"5064.ccf271db.chunk.js.map": "./static/js/5064.ccf271db.chunk.js.map",
|
||||
"7643.41c0709d.chunk.js.map": "./static/js/7643.41c0709d.chunk.js.map",
|
||||
"985.f5122b3c.chunk.js.map": "./static/js/985.f5122b3c.chunk.js.map",
|
||||
"1370.adfc1682.chunk.js.map": "./static/js/1370.adfc1682.chunk.js.map",
|
||||
"8823.034b6a8d.chunk.js.map": "./static/js/8823.034b6a8d.chunk.js.map",
|
||||
"985.c802474d.chunk.js.map": "./static/js/985.c802474d.chunk.js.map",
|
||||
"1370.a3d466ac.chunk.js.map": "./static/js/1370.a3d466ac.chunk.js.map",
|
||||
"8823.5a005f09.chunk.js.map": "./static/js/8823.5a005f09.chunk.js.map",
|
||||
"24.1245bd95.chunk.js.map": "./static/js/24.1245bd95.chunk.js.map",
|
||||
"5851.9d7a7887.chunk.js.map": "./static/js/5851.9d7a7887.chunk.js.map",
|
||||
"4705.2270c966.chunk.js.map": "./static/js/4705.2270c966.chunk.js.map",
|
||||
"5851.9aeea951.chunk.js.map": "./static/js/5851.9aeea951.chunk.js.map",
|
||||
"4705.1a1c4cd3.chunk.js.map": "./static/js/4705.1a1c4cd3.chunk.js.map",
|
||||
"3654.877a48d3.chunk.js.map": "./static/js/3654.877a48d3.chunk.js.map",
|
||||
"960.494cc9da.chunk.js.map": "./static/js/960.494cc9da.chunk.js.map",
|
||||
"960.41c7b96c.chunk.js.map": "./static/js/960.41c7b96c.chunk.js.map",
|
||||
"8642.ab45092c.chunk.js.map": "./static/js/8642.ab45092c.chunk.js.map",
|
||||
"3329.89a09424.chunk.js.map": "./static/js/3329.89a09424.chunk.js.map",
|
||||
"2332.7e0aee28.chunk.js.map": "./static/js/2332.7e0aee28.chunk.js.map",
|
||||
"5941.4df5a08b.chunk.js.map": "./static/js/5941.4df5a08b.chunk.js.map",
|
||||
"5941.c85331e3.chunk.js.map": "./static/js/5941.c85331e3.chunk.js.map",
|
||||
"2704.fe33dd23.chunk.js.map": "./static/js/2704.fe33dd23.chunk.js.map",
|
||||
"7774.4d23a595.chunk.js.map": "./static/js/7774.4d23a595.chunk.js.map",
|
||||
"7774.32142847.chunk.js.map": "./static/js/7774.32142847.chunk.js.map",
|
||||
"3851.c5eaa08e.chunk.js.map": "./static/js/3851.c5eaa08e.chunk.js.map",
|
||||
"9965.e00429f9.chunk.js.map": "./static/js/9965.e00429f9.chunk.js.map",
|
||||
"6065.f30b3ff2.chunk.js.map": "./static/js/6065.f30b3ff2.chunk.js.map",
|
||||
"6065.e12fd403.chunk.js.map": "./static/js/6065.e12fd403.chunk.js.map",
|
||||
"12.ab9b7ed0.chunk.js.map": "./static/js/12.ab9b7ed0.chunk.js.map",
|
||||
"8010.8ce54818.chunk.js.map": "./static/js/8010.8ce54818.chunk.js.map",
|
||||
"2689.5e76c1cd.chunk.js.map": "./static/js/2689.5e76c1cd.chunk.js.map",
|
||||
"872.6f58df17.chunk.js.map": "./static/js/872.6f58df17.chunk.js.map",
|
||||
"4676.578844c1.chunk.js.map": "./static/js/4676.578844c1.chunk.js.map",
|
||||
"4676.8d6be1dd.chunk.js.map": "./static/js/4676.8d6be1dd.chunk.js.map",
|
||||
"8825.e5adf924.chunk.js.map": "./static/js/8825.e5adf924.chunk.js.map",
|
||||
"614.f6cdf349.chunk.js.map": "./static/js/614.f6cdf349.chunk.js.map",
|
||||
"502.0106f2a9.chunk.js.map": "./static/js/502.0106f2a9.chunk.js.map",
|
||||
@@ -213,10 +213,10 @@
|
||||
"6016.2a05d7e1.chunk.js.map": "./static/js/6016.2a05d7e1.chunk.js.map",
|
||||
"9652.3c40b533.chunk.js.map": "./static/js/9652.3c40b533.chunk.js.map",
|
||||
"1195.955963a0.chunk.js.map": "./static/js/1195.955963a0.chunk.js.map",
|
||||
"1011.13d372c8.chunk.js.map": "./static/js/1011.13d372c8.chunk.js.map"
|
||||
"1011.59fa8004.chunk.js.map": "./static/js/1011.59fa8004.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.e60e4760.css",
|
||||
"static/js/main.77c2c9f2.js"
|
||||
"static/js/main.dd292f6d.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.77c2c9f2.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.dd292f6d.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
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/1011.59fa8004.chunk.js
Normal file
2
web-app/build/static/js/1011.59fa8004.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/1011.59fa8004.chunk.js.map
Normal file
1
web-app/build/static/js/1011.59fa8004.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
2
web-app/build/static/js/1324.cc645cb1.chunk.js
Normal file
2
web-app/build/static/js/1324.cc645cb1.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/1324.cc645cb1.chunk.js.map
Normal file
1
web-app/build/static/js/1324.cc645cb1.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/1370.a3d466ac.chunk.js
Normal file
2
web-app/build/static/js/1370.a3d466ac.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/1370.a3d466ac.chunk.js.map
Normal file
1
web-app/build/static/js/1370.a3d466ac.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
2
web-app/build/static/js/2166.a0f01e1a.chunk.js
Normal file
2
web-app/build/static/js/2166.a0f01e1a.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2166.a0f01e1a.chunk.js.map
Normal file
1
web-app/build/static/js/2166.a0f01e1a.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
2
web-app/build/static/js/2959.f25a9ef1.chunk.js
Normal file
2
web-app/build/static/js/2959.f25a9ef1.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2959.f25a9ef1.chunk.js.map
Normal file
1
web-app/build/static/js/2959.f25a9ef1.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
2
web-app/build/static/js/3527.b7757ae8.chunk.js
Normal file
2
web-app/build/static/js/3527.b7757ae8.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/3527.b7757ae8.chunk.js.map
Normal file
1
web-app/build/static/js/3527.b7757ae8.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([[4676],{4676:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var l=n(65043),o=n(58661),s=n(89923),c=n(64159),i=n(20554),r=n(56629),a=n(53518),u=n(56483),p=n(70579);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedPolicy:d}=e;const f=(0,i.jL)(),[y,h]=(0,l.useState)(!1);if(!d)return null;return(0,p.jsx)(o.A,{title:"Delete Policy",confirmText:"Delete",isOpen:n,titleIcon:(0,p.jsx)(s.xWY,{}),isLoading:y,onConfirm:()=>{h(!0),r.F.policy.removePolicy((0,u.nf)(d)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();f((0,c.C9)((0,a.S)(n))),t(!1)})).finally((()=>h(!1)))},onClose:()=>t(!1),confirmationContent:(0,p.jsxs)(l.Fragment,{children:["Are you sure you want to delete policy ",(0,p.jsx)("br",{}),(0,p.jsx)("b",{children:d}),"?"]})})}}}]);
|
||||
//# sourceMappingURL=4676.578844c1.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/4676.578844c1.chunk.js","mappings":"uOAgCA,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,MAAK,gBACLC,YAAa,SACbC,OAAQX,EACRY,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWV,EACXW,UAtBoBC,KACtBX,GAAiB,GACjBY,EAAAA,EAAIC,OACDC,cAAaC,EAAAA,EAAAA,IAAgBnB,IAC7BoB,MAAMC,IACLvB,GAA2B,EAAK,IAEjCwB,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvBzB,GAAS0B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7C1B,GAA2B,EAAM,IAElC+B,SAAQ,IAAMzB,GAAiB,IAAO,EAWvC0B,QA/BYA,IAAMhC,GAA2B,GAgC7CiC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,2CAC+B5B,EAAAA,EAAAA,KAAA,UACvCA,EAAAA,EAAAA,KAAA,KAAA4B,SAAIlC,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\";\nimport { encodeURLString } from \"common/utils\";\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(encodeURLString(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","encodeURLString","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment","children"],"sourceRoot":""}
|
||||
2
web-app/build/static/js/4676.8d6be1dd.chunk.js
Normal file
2
web-app/build/static/js/4676.8d6be1dd.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"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(20554),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.8d6be1dd.chunk.js.map
|
||||
1
web-app/build/static/js/4676.8d6be1dd.chunk.js.map
Normal file
1
web-app/build/static/js/4676.8d6be1dd.chunk.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/4676.8d6be1dd.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,MAAK,gBACLC,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":""}
|
||||
2
web-app/build/static/js/4705.1a1c4cd3.chunk.js
Normal file
2
web-app/build/static/js/4705.1a1c4cd3.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4705],{42967:(e,l,t)=>{t.d(l,{A:()=>x});var s=t(65043),i=t(89923),n=t(8185),c=t(64681),o=t(64159),a=t(20554),r=t(62560),d=t(22166),u=t(56629),h=t(70579);const x=e=>{let{noTitle:l=!1}=e;const t=(0,a.jL)(),[x,p]=(0,s.useState)([]),[m,v]=(0,s.useState)(!1),[j,y]=(0,s.useState)(""),g=(0,d.d4)((e=>e.createUser.selectedPolicies)),b=(0,s.useCallback)((()=>{v(!0),u.F.policies.listPolicies().then((e=>{var l;const t=null!==(l=e.data.policies)&&void 0!==l?l:[];v(!1),p(t.sort(n.Hw))})).catch((e=>{v(!1),t((0,o.Dy)(e))}))}),[t]);(0,s.useEffect)((()=>{v(!0)}),[]),(0,s.useEffect)((()=>{m&&b()}),[m,b]);const f=x.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,{}),x.length>0?(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)(i.xA9,{item:!0,xs:12,className:"inputItem",children:(0,h.jsx)(c.A,{placeholder:"Start typing to search for a Policy",onChange:e=>{y(e)},value:j,label:l?"":"Assign Policies"})}),(0,h.jsx)(i.bQt,{columns:[{label:"Policy",elementKey:"name"}],onSelect:e=>{const l=e.target,s=l.value,i=l.checked;let n=[...g];i?n.push(s):n=n.filter((e=>e!==s)),n=n.filter((e=>""!==e)),t((0,r.Gy)(n))},selectedItems:g,isLoading:m,records:f,entityName:"Policies",idField:"name",customPaperHeight:"200px"})]}):(0,h.jsx)(i.azJ,{sx:{textAlign:"center",padding:"10px 0"},children:"No Policies Available"})]})}},74705:(e,l,t)=>{t.r(l),t.d(l,{default:()=>v});var s=t(65043),i=t(33097),n=t.n(i),c=t(22166),o=t(89923),a=t(64159),r=t(20554),d=t(77403),u=t(62560),h=t(94141),x=t(42967),p=t(20649),m=t(70579);const v=e=>{let{closeModalAndRefresh:l,selectedUser:t,selectedGroups:i,open:v}=e;const j=(0,r.jL)(),[y,g]=(0,s.useState)(!1),[b,f]=(0,s.useState)([]),[A,P]=(0,s.useState)([]),S=(0,c.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)&&p.A.invoke("GET","/api/v1/group/".concat(encodeURIComponent(i[0]))).then((e=>{const l=n()(e,"policy","");f(l.split(",")),P(l.split(",")),j((0,u.Gy)(l.split(",")))})).catch((e=>{j((0,a.Dy)(e)),g(!1)})));const e=n()(t,"policy",[]);f(e),P(e),j((0,u.Gy)(e))}}),[v,null===i||void 0===i?void 0:i.length,t]);const k=n()(t,"accessKey","");return(0,m.jsxs)(h.A,{onClose:()=>{l()},modalOpen:v,title:"Set Policies",children:[(0,m.jsxs)(o.Hbc,{withBorders:!1,containerPadding:!1,children:[(1===(null===i||void 0===i?void 0:i.length)||null!=t)&&(0,m.jsxs)(s.Fragment,{children:[(0,m.jsx)(o.EmB,{label:"Selected ".concat(null!==i?"Group":"User"),sx:{width:"100%"},children:null!==i?i[0]:k}),(0,m.jsx)(o.EmB,{label:"Current Policy",sx:{width:"100%"},children:b.join(", ")})]}),i&&(null===i||void 0===i?void 0:i.length)>1&&(0,m.jsx)(o.EmB,{label:"Selected Groups",sx:{width:"100%"},children:i.join(", ")}),(0,m.jsx)(o.xA9,{item:!0,xs:12,children:(0,m.jsx)(x.A,{selectedPolicy:A})})]}),(0,m.jsxs)(o.xA9,{item:!0,xs:12,sx:d.Uz.modalButtonBar,children:[(0,m.jsx)(o.$nd,{id:"reset",type:"button",variant:"regular",onClick:()=>{P(b),j((0,u.Gy)(b))},label:"Reset"}),(0,m.jsx)(o.$nd,{id:"save",type:"button",variant:"callAction",color:"primary",disabled:y,onClick:()=>{let e=null,s=null;null!==i?s=i:null!==t&&(e=[t.accessKey]||0),g(!0),p.A.invoke("PUT","/api/v1/set-policy-multi",{name:S,groups:s,users:e}).then((()=>{g(!1),l()})).catch((e=>{g(!1),j((0,a.Dy)(e))}))},label:"Save"})]}),y&&(0,m.jsx)(o.xA9,{item:!0,xs:12,children:(0,m.jsx)(o.z21,{})})]})}}}]);
|
||||
//# sourceMappingURL=4705.1a1c4cd3.chunk.js.map
|
||||
1
web-app/build/static/js/4705.1a1c4cd3.chunk.js.map
Normal file
1
web-app/build/static/js/4705.1a1c4cd3.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([[4705],{42967:(e,l,t)=>{t.d(l,{A:()=>x});var s=t(65043),i=t(89923),n=t(8185),c=t(64681),o=t(64159),a=t(20554),r=t(62560),d=t(22166),u=t(56629),h=t(70579);const x=e=>{let{noTitle:l=!1}=e;const t=(0,a.jL)(),[x,p]=(0,s.useState)([]),[m,v]=(0,s.useState)(!1),[j,y]=(0,s.useState)(""),g=(0,d.d4)((e=>e.createUser.selectedPolicies)),b=(0,s.useCallback)((()=>{v(!0),u.F.policies.listPolicies().then((e=>{var l;const t=null!==(l=e.data.policies)&&void 0!==l?l:[];v(!1),p(t.sort(n.Hw))})).catch((e=>{v(!1),t((0,o.Dy)(e))}))}),[t]);(0,s.useEffect)((()=>{v(!0)}),[]),(0,s.useEffect)((()=>{m&&b()}),[m,b]);const f=x.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,{}),x.length>0?(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)(i.xA9,{item:!0,xs:12,className:"inputItem",children:(0,h.jsx)(c.A,{placeholder:"Start typing to search for a Policy",onChange:e=>{y(e)},value:j,label:l?"":"Assign Policies"})}),(0,h.jsx)(i.bQt,{columns:[{label:"Policy",elementKey:"name"}],onSelect:e=>{const l=e.target,s=l.value,i=l.checked;let n=[...g];i?n.push(s):n=n.filter((e=>e!==s)),n=n.filter((e=>""!==e)),t((0,r.Gy)(n))},selectedItems:g,isLoading:m,records:f,entityName:"Policies",idField:"name",customPaperHeight:"200px"})]}):(0,h.jsx)(i.azJ,{sx:{textAlign:"center",padding:"10px 0"},children:"No Policies Available"})]})}},74705:(e,l,t)=>{t.r(l),t.d(l,{default:()=>j});var s=t(65043),i=t(33097),n=t.n(i),c=t(22166),o=t(89923),a=t(56483),r=t(64159),d=t(20554),u=t(77403),h=t(62560),x=t(94141),p=t(42967),m=t(20649),v=t(70579);const j=e=>{let{closeModalAndRefresh:l,selectedUser:t,selectedGroups:i,open:j}=e;const y=(0,d.jL)(),[g,b]=(0,s.useState)(!1),[f,A]=(0,s.useState)([]),[P,S]=(0,s.useState)([]),k=(0,c.d4)((e=>e.createUser.selectedPolicies));(0,s.useEffect)((()=>{if(j){if(1===(null===i||void 0===i?void 0:i.length))return void(1===(null===i||void 0===i?void 0:i.length)&&m.A.invoke("GET","/api/v1/group/".concat((0,a.nf)(i[0]))).then((e=>{const l=n()(e,"policy","");A(l.split(",")),S(l.split(",")),y((0,h.Gy)(l.split(",")))})).catch((e=>{y((0,r.Dy)(e)),b(!1)})));const e=n()(t,"policy",[]);A(e),S(e),y((0,h.Gy)(e))}}),[j,null===i||void 0===i?void 0:i.length,t]);const w=n()(t,"accessKey","");return(0,v.jsxs)(x.A,{onClose:()=>{l()},modalOpen:j,title:"Set Policies",children:[(0,v.jsxs)(o.Hbc,{withBorders:!1,containerPadding:!1,children:[(1===(null===i||void 0===i?void 0:i.length)||null!=t)&&(0,v.jsxs)(s.Fragment,{children:[(0,v.jsx)(o.EmB,{label:"Selected ".concat(null!==i?"Group":"User"),sx:{width:"100%"},children:null!==i?i[0]:w}),(0,v.jsx)(o.EmB,{label:"Current Policy",sx:{width:"100%"},children:f.join(", ")})]}),i&&(null===i||void 0===i?void 0:i.length)>1&&(0,v.jsx)(o.EmB,{label:"Selected Groups",sx:{width:"100%"},children:i.join(", ")}),(0,v.jsx)(o.xA9,{item:!0,xs:12,children:(0,v.jsx)(p.A,{selectedPolicy:P})})]}),(0,v.jsxs)(o.xA9,{item:!0,xs:12,sx:u.Uz.modalButtonBar,children:[(0,v.jsx)(o.$nd,{id:"reset",type:"button",variant:"regular",onClick:()=>{S(f),y((0,h.Gy)(f))},label:"Reset"}),(0,v.jsx)(o.$nd,{id:"save",type:"button",variant:"callAction",color:"primary",disabled:g,onClick:()=>{let e=null,s=null;null!==i?s=i:null!==t&&(e=[t.accessKey]||0),b(!0),m.A.invoke("PUT","/api/v1/set-policy-multi",{name:k,groups:s,users:e}).then((()=>{b(!1),l()})).catch((e=>{b(!1),y((0,r.Dy)(e))}))},label:"Save"})]}),g&&(0,v.jsx)(o.xA9,{item:!0,xs:12,children:(0,v.jsx)(o.z21,{})})]})}}}]);
|
||||
//# sourceMappingURL=4705.2270c966.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/5851.9aeea951.chunk.js
Normal file
2
web-app/build/static/js/5851.9aeea951.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"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(20554),c=n(58661),a=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)(c.A,{title:"Delete Group".concat(t.length>1?"s":""),confirmText:"Delete",isOpen:n,titleIcon:(0,u.jsx)(l.xWY,{}),isLoading:d,onConfirm:()=>{for(let e of t)f(!0),a.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.9aeea951.chunk.js.map
|
||||
1
web-app/build/static/js/5851.9aeea951.chunk.js.map
Normal file
1
web-app/build/static/js/5851.9aeea951.chunk.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/5851.9aeea951.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,MAAK,eAAAC,OAAiBf,EAAegB,OAAS,EAAI,IAAM,IACxDC,YAAa,SACbC,OAAQjB,EACRkB,WAAWR,EAAAA,EAAAA,KAACS,EAAAA,IAAiB,IAC7BC,UAAWhB,EACXiB,UA9BmBC,KACrB,IAAK,IAAIb,KAASV,EAChBM,GAAiB,GACjBkB,EAAAA,EAAId,MACDe,YAAYf,GACZgB,MAAMC,IACLzB,GAA2B,EAAK,IAEjC0B,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvB7B,GAAS8B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7C5B,GAA2B,EAAM,IAElCiC,SAAQ,IAAM7B,GAAiB,IACpC,EAiBE8B,QArCYA,IAAMlC,GAA2B,GAsC7CmC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAA3B,SAAA,CAAC,gDACsC,IACnB,IAA1BZ,EAAegB,OAAe,GAAKhB,EAAegB,OAAO,SACzDhB,EAAegB,OAAS,EAAI,KAAO,IACnCR,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","concat","length","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onDeleteGroups","api","removeGroup","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment"],"sourceRoot":""}
|
||||
@@ -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:()=>h});var o=n(65043),l=n(89923),s=n(56483),r=n(64159),c=n(20554),a=n(58661),i=n(56629),u=n(53518),p=n(70579);const h=e=>{let{selectedGroups:t,deleteOpen:n,closeDeleteModalAndRefresh:h}=e;const f=(0,c.jL)(),[d,g]=(0,o.useState)(!1);if(!t)return null;const j=t.map((e=>(0,p.jsx)("div",{children:(0,p.jsx)("b",{children:e})},e)));return(0,p.jsx)(a.A,{title:"Delete Group".concat(t.length>1?"s":""),confirmText:"Delete",isOpen:n,titleIcon:(0,p.jsx)(l.xWY,{}),isLoading:d,onConfirm:()=>{for(let e of t)g(!0),i.F.group.removeGroup((0,s.nf)(e)).then((e=>{h(!0)})).catch((async e=>{const t=await e.json();f((0,r.C9)((0,u.S)(t))),h(!1)})).finally((()=>g(!1)))},onClose:()=>h(!1),confirmationContent:(0,p.jsxs)(o.Fragment,{children:["Are you sure you want to delete the following"," ",1===t.length?"":t.length," group",t.length>1?"s?":"?",j]})})}}}]);
|
||||
//# sourceMappingURL=5851.9d7a7887.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/5851.9d7a7887.chunk.js","mappings":"wOAgCA,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,MAAK,eAAAC,OAAiBf,EAAegB,OAAS,EAAI,IAAM,IACxDC,YAAa,SACbC,OAAQjB,EACRkB,WAAWR,EAAAA,EAAAA,KAACS,EAAAA,IAAiB,IAC7BC,UAAWhB,EACXiB,UA9BmBC,KACrB,IAAK,IAAIb,KAASV,EAChBM,GAAiB,GACjBkB,EAAAA,EAAId,MACDe,aAAYC,EAAAA,EAAAA,IAAgBhB,IAC5BiB,MAAMC,IACL1B,GAA2B,EAAK,IAEjC2B,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvB9B,GAAS+B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7C7B,GAA2B,EAAM,IAElCkC,SAAQ,IAAM9B,GAAiB,IACpC,EAiBE+B,QArCYA,IAAMnC,GAA2B,GAsC7CoC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAA5B,SAAA,CAAC,gDACsC,IACnB,IAA1BZ,EAAegB,OAAe,GAAKhB,EAAegB,OAAO,SACzDhB,EAAegB,OAAS,EAAI,KAAO,IACnCR,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 { encodeURLString } from \"../../../common/utils\";\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(encodeURLString(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","concat","length","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onDeleteGroups","api","removeGroup","encodeURLString","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment"],"sourceRoot":""}
|
||||
@@ -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:()=>p});var n=t(65043),o=t(25448),r=t(58661),i=t(89923),l=t(64159),c=t(20554),a=t(77938),d=t(99161),u=t(22166),b=t(56629),h=t(56483),v=t(70579);const p=e=>{let{closeDeleteModalAndRefresh:s,deleteOpen:t,selectedBucket:p,selectedObjects:j,versioning:g}=e;const x=(0,c.jL)(),f=()=>s(!0),[m,C]=(0,o.A)(f,(e=>x((0,l.C9)(e)))),[y,O]=(0,n.useState)(!1),[_,k]=(0,n.useState)(!1),w=(0,u.d4)((e=>e.objectBrowser.retentionConfig)),T=(0,a._)([p],[d.OV.S3_BYPASS_GOVERNANCE_RETENTION])&&"governance"===(null===w||void 0===w?void 0:w.mode);if(!j)return null;const A="Enabled"===(null===g||void 0===g?void 0:g.status)||"Suspended"===(null===g||void 0===g?void 0:g.status);return(0,v.jsx)(r.A,{title:"Delete Objects",confirmText:"Delete",isOpen:t,titleIcon:(0,v.jsx)(i.xWY,{}),isLoading:m,onConfirm:()=>{let e=[];for(let s=0;s<j.length;s++)j[s].endsWith("/")?e.push({path:j[s],versionID:"",recursive:!0}):e.push({path:j[s],versionID:"",recursive:!1});if(e)if(1===j.length){const e=j[0];b.F.buckets.deleteObject(p,{prefix:(0,h.nf)(e),all_versions:y,bypass:_,recursive:e.endsWith("/")}).then(f).catch((e=>{x((0,l.C9)({errorMessage:"Could not delete object. ".concat(e.statusText,". ").concat(w?"Please check retention mode and if object is WORM protected.":""),detailedError:""}))}))}else C("POST","/api/v1/buckets/".concat(p,"/delete-objects?all_versions=").concat(y).concat(_?"&bypass=true":""),e)},onClose:()=>s(!1),confirmationContent:(0,v.jsxs)(n.Fragment,{children:["Are you sure you want to delete the selected ",j.length," ","objects?"," ",A&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)("br",{}),(0,v.jsx)("br",{}),(0,v.jsx)(i.dOG,{label:"Delete All Versions",indicatorLabels:["Yes","No"],checked:y,value:"delete_versions",id:"delete-versions",name:"delete-versions",onChange:e=>{O(!y)},description:""}),T&&y&&(0,v.jsx)(n.Fragment,{children:(0,v.jsx)("div",{style:{marginTop:10},children:(0,v.jsx)(i.dOG,{label:"Bypass Governance Mode",indicatorLabels:["Yes","No"],checked:_,value:"bypass_governance",id:"bypass_governance",name:"bypass_governance",onChange:e=>{k(!_)},description:""})})}),y&&(0,v.jsxs)(n.Fragment,{children:[(0,v.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,v.jsx)("br",{}),"This action is irreversible."]}),(0,v.jsx)("br",{}),"Are you sure you want to continue?"]})]})]})})}}}]);
|
||||
//# sourceMappingURL=5941.4df5a08b.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/5941.c85331e3.chunk.js
Normal file
2
web-app/build/static/js/5941.c85331e3.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"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),c=t(20554),a=t(77938),d=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,c.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,a._)([v],[d.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. ".concat(e.statusText,". ").concat(k?"Please check retention mode and if object is WORM protected.":""),detailedError:""}))}))}else m("POST","/api/v1/buckets/".concat(v,"/delete-objects?all_versions=").concat(C).concat(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.c85331e3.chunk.js.map
|
||||
1
web-app/build/static/js/5941.c85331e3.chunk.js.map
Normal file
1
web-app/build/static/js/5941.c85331e3.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/6065.e12fd403.chunk.js
Normal file
2
web-app/build/static/js/6065.e12fd403.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6065],{76065:(e,t,s)=>{s.r(t),s.d(t,{default:()=>S});var c=s(65043),n=s(22166),i=s(73216),a=s(89923),o=s(56629),r=s(53518),l=s(99161),d=s(77938),u=s(64159),m=s(39947),_=s(20554),h=s(70579);const S=()=>{const e=(0,_.jL)(),t=(0,i.Zp)(),s=(0,i.g)(),S=(0,n.d4)(m.Nx),[I,b]=(0,c.useState)("simple-tab-0"),[p,O]=(0,c.useState)(!0),[U,k]=(0,c.useState)([]),[A,E]=(0,c.useState)(!0),[C,L]=(0,c.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,c.useEffect)((()=>{S&&(E(!0),O(!0))}),[S,E,O]);const M=[{type:"view",disableButtonFunction:()=>!g,onClick:e=>{t("".concat(l.zZ.POLICIES,"/").concat(encodeURIComponent(e.name)))}}],T=[{type:"view",disableButtonFunction:()=>!f,onClick:e=>{t("".concat(l.zZ.USERS,"/").concat(encodeURIComponent(e)))}}];return(0,c.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,c.useEffect)((()=>{e((0,u.ph)("bucket_detail_access"))}),[]),(0,c.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)(c.Fragment,{children:[(0,h.jsx)(a._xt,{separator:!0,children:(0,h.jsx)(a.V7x,{content:(0,h.jsxs)(c.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.e12fd403.chunk.js.map
|
||||
1
web-app/build/static/js/6065.e12fd403.chunk.js.map
Normal file
1
web-app/build/static/js/6065.e12fd403.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:()=>I});var c=s(65043),i=s(22166),n=s(73216),a=s(89923),o=s(56629),r=s(53518),l=s(99161),d=s(77938),u=s(56483),m=s(64159),_=s(39947),h=s(20554),S=s(70579);const I=()=>{const e=(0,h.jL)(),t=(0,n.Zp)(),s=(0,n.g)(),I=(0,i.d4)(_.Nx),[b,p]=(0,c.useState)("simple-tab-0"),[O,k]=(0,c.useState)(!0),[A,E]=(0,c.useState)([]),[U,f]=(0,c.useState)(!0),[L,N]=(0,c.useState)([]),P=s.bucketName||"",x=(0,d._)(P,[l.OV.ADMIN_LIST_USER_POLICIES]),g=(0,d._)(P,[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS],!0),C=(0,d._)(l.Ms,[l.OV.ADMIN_GET_USER]),M=(0,d._)(l.Ms,[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS]);(0,c.useEffect)((()=>{I&&(f(!0),k(!0))}),[I,f,k]);const T=[{type:"view",disableButtonFunction:()=>!M,onClick:e=>{t("".concat(l.zZ.POLICIES,"/").concat((0,u.nf)(e.name)))}}],V=[{type:"view",disableButtonFunction:()=>!C,onClick:e=>{t("".concat(l.zZ.USERS,"/").concat((0,u.nf)(e)))}}];return(0,c.useEffect)((()=>{U&&(g?o.F.bucketUsers.listUsersWithAccessToBucket(P).then((e=>{N(e.data),f(!1)})).catch((t=>{e((0,m.C9)((0,r.S)(t))),f(!1)})):f(!1))}),[U,e,P,g]),(0,c.useEffect)((()=>{e((0,m.ph)("bucket_detail_access"))}),[]),(0,c.useEffect)((()=>{O&&(x?o.F.bucketPolicy.listPoliciesWithBucket(P).then((e=>{E(e.data.policies),k(!1)})).catch((t=>{e((0,m.C9)((0,r.S)(t))),k(!1)})):k(!1))}),[O,e,P,x]),(0,S.jsxs)(c.Fragment,{children:[(0,S.jsx)(a._xt,{separator:!0,children:(0,S.jsx)(a.V7x,{content:(0,S.jsxs)(c.Fragment,{children:["Understand which"," ",(0,S.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/linux/administration/identity-access-management/policy-based-access-control.html#",children:"Policies"})," ","and"," ",(0,S.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,S.jsx)(a.tUM,{currentTabOrPath:b,onTabClick:e=>{p(e)},horizontal:!0,options:[{tabConfig:{label:"Policies",id:"simple-tab-0"},content:(0,S.jsx)(d.R,{scopes:[l.OV.ADMIN_LIST_USER_POLICIES],resource:P,errorProps:{disabled:!0},children:A&&(0,S.jsx)(a.bQt,{noBackground:!0,itemActions:T,columns:[{label:"Name",elementKey:"name"}],isLoading:O,records:A,entityName:"Policies",idField:"name"})})},{tabConfig:{label:"Users",id:"simple-tab-1"},content:(0,S.jsx)(d.R,{scopes:[l.OV.ADMIN_GET_POLICY,l.OV.ADMIN_LIST_USERS,l.OV.ADMIN_LIST_GROUPS],resource:P,matchAll:!0,errorProps:{disabled:!0},children:(0,S.jsx)(a.bQt,{noBackground:!0,itemActions:V,columns:[{label:"User",elementKey:"accessKey"}],isLoading:U,records:L,entityName:"Users",idField:"accessKey"})})}]})]})}}}]);
|
||||
//# sourceMappingURL=6065.f30b3ff2.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/7774.32142847.chunk.js
Normal file
2
web-app/build/static/js/7774.32142847.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[7774],{97774:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var n=a(65043),r=a(73216),s=a(22166),o=a(89923),l=a(94141),i=a(77403),c=a(20554),d=a(64159),h=a(70579);const p=(0,s.Ng)((e=>{let{objectBrowser:t}=e;return{simplePath:t.simplePath}}))((e=>{let{modalOpen:t,folderName:a,bucketName:p,onClose:u,simplePath:m,limitedSubPath:f}=e;const x=(0,c.jL)(),w=(0,r.Zp)(),[b,j]=(0,n.useState)(""),[C,g]=(0,n.useState)(!1),[y,P]=(0,n.useState)(p),v=(0,s.d4)((e=>e.objectBrowser.records));(0,n.useEffect)((()=>{if(m){const e="".concat(p).concat(p.endsWith("/")||m.startsWith("/")?"":"/").concat(m);P(e)}}),[m,p]);const k=()=>{let e="/";m&&(e=m.endsWith("/")?m:"".concat(m,"/"));if(-1!==v.findIndex((t=>t.name===e+b)))return void x((0,d.Dy)({errorMessage:"Folder cannot have the same name as an existing file",detailedError:""}));const t=b.split("/").filter((e=>""!==e.trim())).join("/");"/"===e.slice(0,1)&&(e=e.slice(1));const a="/browser/".concat(encodeURIComponent(p),"/").concat(encodeURIComponent("".concat(e).concat(t,"/")));w(a),u()};(0,n.useEffect)((()=>{let e=!0;0===b.trim().length&&(e=!1),g(e)}),[b]);return(0,h.jsx)(n.Fragment,{children:(0,h.jsx)(l.A,{modalOpen:t,title:"Choose or create a new path",onClose:u,titleIcon:(0,h.jsx)(o.DGR,{}),children:(0,h.jsxs)(o.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,h.jsxs)(o.azJ,{className:"inputItem",sx:{display:"flex",gap:8},children:[(0,h.jsx)("strong",{children:"Current Path:"})," ",(0,h.jsx)("br",{}),(0,h.jsx)(o.azJ,{sx:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:14,textAlign:"left"},dir:"rtl",children:y})]}),(0,h.jsx)(o.cl_,{value:b,label:"New Folder Path",id:"folderPath",name:"folderPath",placeholder:"Enter the new Folder Path",onChange:e=>{j(e.target.value)},onKeyPress:e=>{"Enter"===e.code&&""!==b&&k()},required:!0,tooltip:f?"You may only have write access on a limited set of subpaths within this path. Please carefully review your User permissions to understand the paths to which you may write.":""}),(0,h.jsxs)(o.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,h.jsx)(o.$nd,{id:"clear",type:"button",color:"primary",variant:"regular",onClick:()=>{j("")},label:"Clear"}),(0,h.jsx)(o.$nd,{id:"create",type:"submit",variant:"callAction",disabled:!C,onClick:k,label:"Create"})]})]})})})}))}}]);
|
||||
//# sourceMappingURL=7774.32142847.chunk.js.map
|
||||
1
web-app/build/static/js/7774.32142847.chunk.js.map
Normal file
1
web-app/build/static/js/7774.32142847.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([[7774],{97774:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(65043),s=a(73216),n=a(22166),l=a(89923),o=a(94141),i=a(77403),c=a(56483),d=a(20554),h=a(64159),p=a(70579);const u=(0,n.Ng)((e=>{let{objectBrowser:t}=e;return{simplePath:t.simplePath}}))((e=>{let{modalOpen:t,folderName:a,bucketName:u,onClose:m,simplePath:f,limitedSubPath:x}=e;const w=(0,d.jL)(),b=(0,s.Zp)(),[j,g]=(0,r.useState)(""),[y,P]=(0,r.useState)(!1),[v,C]=(0,r.useState)(u),k=(0,n.d4)((e=>e.objectBrowser.records));(0,r.useEffect)((()=>{if(f){const e="".concat(u).concat(u.endsWith("/")||f.startsWith("/")?"":"/").concat(f);C(e)}}),[f,u]);const S=()=>{let e="/";f&&(e=f.endsWith("/")?f:"".concat(f,"/"));if(-1!==k.findIndex((t=>t.name===e+j)))return void w((0,h.Dy)({errorMessage:"Folder cannot have the same name as an existing file",detailedError:""}));const t=j.split("/").filter((e=>""!==e.trim())).join("/");"/"===e.slice(0,1)&&(e=e.slice(1));const a="/browser/".concat(u,"/").concat((0,c.nf)("".concat(e).concat(t,"/")));b(a),m()};(0,r.useEffect)((()=>{let e=!0;0===j.trim().length&&(e=!1),P(e)}),[j]);return(0,p.jsx)(r.Fragment,{children:(0,p.jsx)(o.A,{modalOpen:t,title:"Choose or create a new path",onClose:m,titleIcon:(0,p.jsx)(l.DGR,{}),children:(0,p.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,p.jsxs)(l.azJ,{className:"inputItem",sx:{display:"flex",gap:8},children:[(0,p.jsx)("strong",{children:"Current Path:"})," ",(0,p.jsx)("br",{}),(0,p.jsx)(l.azJ,{sx:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:14,textAlign:"left"},dir:"rtl",children:v})]}),(0,p.jsx)(l.cl_,{value:j,label:"New Folder Path",id:"folderPath",name:"folderPath",placeholder:"Enter the new Folder Path",onChange:e=>{g(e.target.value)},onKeyPress:e=>{"Enter"===e.code&&""!==j&&S()},required:!0,tooltip:x?"You may only have write access on a limited set of subpaths within this path. Please carefully review your User permissions to understand the paths to which you may write.":""}),(0,p.jsxs)(l.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,p.jsx)(l.$nd,{id:"clear",type:"button",color:"primary",variant:"regular",onClick:()=>{g("")},label:"Clear"}),(0,p.jsx)(l.$nd,{id:"create",type:"submit",variant:"callAction",disabled:!y,onClick:S,label:"Create"})]})]})})})}))}}]);
|
||||
//# sourceMappingURL=7774.4d23a595.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/8311.d87242df.chunk.js
Normal file
2
web-app/build/static/js/8311.d87242df.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/8311.d87242df.chunk.js.map
Normal file
1
web-app/build/static/js/8311.d87242df.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
2
web-app/build/static/js/8789.c1e4949f.chunk.js
Normal file
2
web-app/build/static/js/8789.c1e4949f.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/8789.c1e4949f.chunk.js.map
Normal file
1
web-app/build/static/js/8789.c1e4949f.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
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8823],{18823:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var c=n(65043),s=n(58661),o=n(89923),l=n(56483),r=n(64159),a=n(20554),i=n(56629),u=n(53518),d=n(70579);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedServiceAccount:p}=e;const f=(0,a.jL)(),[h,w]=(0,c.useState)(!1);if(!p)return null;return(0,d.jsx)(s.A,{title:"Delete Access Key",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(o.xWY,{}),isLoading:h,onConfirm:()=>{w(!0),i.F.serviceAccounts.deleteServiceAccount((0,l.nf)(p)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();f((0,r.C9)((0,u.S)(n))),t(!1)})).finally((()=>w(!1)))},onClose:()=>t(!1),confirmationContent:(0,d.jsxs)(c.Fragment,{children:["Are you sure you want to delete Access Key"," ",(0,d.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:p}),"?"]})})}}}]);
|
||||
//# sourceMappingURL=8823.034b6a8d.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/8823.034b6a8d.chunk.js","mappings":"wOAgCA,MAyDA,EAzD6BA,IAIM,IAJL,2BAC5BC,EAA0B,WAC1BC,EAAU,uBACVC,GAC2BH,EAC3B,MAAMI,GAAWC,EAAAA,EAAAA,OAGVC,EAAeC,IAAoBC,EAAAA,EAAAA,WAAkB,GAE5D,IAAKL,EACH,OAAO,KAkBT,OACEM,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,oBACLC,YAAa,SACbC,OAAQX,EACRY,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWV,EACXW,UAtBoBC,KACtBX,GAAiB,GACjBY,EAAAA,EAAIC,gBACDC,sBAAqBC,EAAAA,EAAAA,IAAgBnB,IACrCoB,MAAMC,IACLvB,GAA2B,EAAK,IAEjCwB,OAAMC,UACL,MAAMC,QAAaC,EAAIC,OACvBzB,GAAS0B,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeJ,KAC7C1B,GAA2B,EAAM,IAElC+B,SAAQ,IAAMzB,GAAiB,IAAO,EAWvC0B,QA/BYA,IAAMhC,GAA2B,GAgC7CiC,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,6CACmC,KAC3C5B,EAAAA,EAAAA,KAAA,KACE6B,MAAO,CACLC,SAAU,QACVC,WAAY,SACZC,SAAU,cACVJ,SAEDlC,IACC,QAIR,C","sources":["screens/Console/Account/DeleteServiceAccount.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 { encodeURLString } from \"../../../common/utils\";\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 IDeleteServiceAccountProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedServiceAccount: string | null;\n}\n\nconst DeleteServiceAccount = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedServiceAccount,\n}: IDeleteServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [loadingDelete, setLoadingDelete] = useState<boolean>(false);\n\n if (!selectedServiceAccount) {\n return null;\n }\n\n const onConfirmDelete = () => {\n setLoadingDelete(true);\n api.serviceAccounts\n .deleteServiceAccount(encodeURLString(selectedServiceAccount))\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 Access Key`}\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 Access Key{\" \"}\n <b\n style={{\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n }}\n >\n {selectedServiceAccount}\n </b>\n ?\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteServiceAccount;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedServiceAccount","dispatch","useAppDispatch","loadingDelete","setLoadingDelete","useState","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","api","serviceAccounts","deleteServiceAccount","encodeURLString","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment","children","style","maxWidth","whiteSpace","wordWrap"],"sourceRoot":""}
|
||||
2
web-app/build/static/js/8823.5a005f09.chunk.js
Normal file
2
web-app/build/static/js/8823.5a005f09.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8823],{18823:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var c=n(65043),s=n(58661),o=n(89923),l=n(64159),r=n(20554),a=n(56629),i=n(53518),u=n(70579);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedServiceAccount:d}=e;const p=(0,r.jL)(),[h,f]=(0,c.useState)(!1);if(!d)return null;return(0,u.jsx)(s.A,{title:"Delete Access Key",confirmText:"Delete",isOpen:n,titleIcon:(0,u.jsx)(o.xWY,{}),isLoading:h,onConfirm:()=>{f(!0),a.F.serviceAccounts.deleteServiceAccount(d).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();p((0,l.C9)((0,i.S)(n))),t(!1)})).finally((()=>f(!1)))},onClose:()=>t(!1),confirmationContent:(0,u.jsxs)(c.Fragment,{children:["Are you sure you want to delete Access Key"," ",(0,u.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:d}),"?"]})})}}}]);
|
||||
//# sourceMappingURL=8823.5a005f09.chunk.js.map
|
||||
1
web-app/build/static/js/8823.5a005f09.chunk.js.map
Normal file
1
web-app/build/static/js/8823.5a005f09.chunk.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/8823.5a005f09.chunk.js","mappings":"6NA+BA,MAyDA,EAzD6BA,IAIM,IAJL,2BAC5BC,EAA0B,WAC1BC,EAAU,uBACVC,GAC2BH,EAC3B,MAAMI,GAAWC,EAAAA,EAAAA,OAGVC,EAAeC,IAAoBC,EAAAA,EAAAA,WAAkB,GAE5D,IAAKL,EACH,OAAO,KAkBT,OACEM,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,oBACLC,YAAa,SACbC,OAAQX,EACRY,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWV,EACXW,UAtBoBC,KACtBX,GAAiB,GACjBY,EAAAA,EAAIC,gBACDC,qBAAqBlB,GACrBmB,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,6CACmC,KAC3C3B,EAAAA,EAAAA,KAAA,KACE4B,MAAO,CACLC,SAAU,QACVC,WAAY,SACZC,SAAU,cACVJ,SAEDjC,IACC,QAIR,C","sources":["screens/Console/Account/DeleteServiceAccount.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 IDeleteServiceAccountProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedServiceAccount: string | null;\n}\n\nconst DeleteServiceAccount = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedServiceAccount,\n}: IDeleteServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [loadingDelete, setLoadingDelete] = useState<boolean>(false);\n\n if (!selectedServiceAccount) {\n return null;\n }\n\n const onConfirmDelete = () => {\n setLoadingDelete(true);\n api.serviceAccounts\n .deleteServiceAccount(selectedServiceAccount)\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 Access Key`}\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 Access Key{\" \"}\n <b\n style={{\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n }}\n >\n {selectedServiceAccount}\n </b>\n ?\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteServiceAccount;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedServiceAccount","dispatch","useAppDispatch","loadingDelete","setLoadingDelete","useState","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","api","serviceAccounts","deleteServiceAccount","then","_","catch","async","err","res","json","setErrorSnackMessage","errorToHandler","finally","onClose","confirmationContent","_jsxs","Fragment","children","style","maxWidth","whiteSpace","wordWrap"],"sourceRoot":""}
|
||||
2
web-app/build/static/js/960.41c7b96c.chunk.js
Normal file
2
web-app/build/static/js/960.41c7b96c.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/960.41c7b96c.chunk.js.map
Normal file
1
web-app/build/static/js/960.41c7b96c.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
2
web-app/build/static/js/985.c802474d.chunk.js
Normal file
2
web-app/build/static/js/985.c802474d.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[985],{10985:(e,s,n)=>{n.r(s),n.d(s,{default:()=>f});var t=n(65043),i=n(89923),o=n(73216),c=n(77403),a=n(99161),r=n(77938),l=n(64159),d=n(20554),u=n(56629),h=n(64681),m=n(72237),p=n(6681),x=n(48793),A=n(55968),j=n(70579);const b=(0,m.A)(t.lazy((()=>n.e(4676).then(n.bind(n,4676))))),f=()=>{const e=(0,d.jL)(),s=(0,o.Zp)(),[n,m]=(0,t.useState)([]),[f,I]=(0,t.useState)(!1),[y,C]=(0,t.useState)(!1),[M,P]=(0,t.useState)(""),[_,v]=(0,t.useState)(""),O=(0,r._)(a.Ms,[a.OV.ADMIN_GET_POLICY]),S=(0,r._)(a.Ms,a.uA),E=(0,r._)(a.Ms,a.Bc),g=(0,r._)(a.Ms,a.nr),L=(0,r._)(a.Ms,a.yv);(0,t.useEffect)((()=>{k()}),[]),(0,t.useEffect)((()=>{f&&(E?u.F.policies.listPolicies().then((e=>{var s;const n=null!==(s=e.data.policies)&&void 0!==s?s:[];n.sort(((e,s)=>e.name>s.name?1:e.name<s.name?-1:0)),I(!1),m(n)})).catch((s=>{I(!1),e((0,l.C9)(s))})):I(!1))}),[f,I,m,e,E]);const k=()=>{I(!0)},w=[{type:"view",onClick:e=>{s("".concat(a.zZ.POLICIES,"/").concat(encodeURIComponent(e.name)))},disableButtonFunction:()=>!O},{type:"delete",onClick:e=>{C(!0),P(e)},sendOnlyId:!0,disableButtonFunction:()=>!S}],R=n.filter((e=>{var s;return null===(s=e.name)||void 0===s?void 0:s.includes(_)}));return(0,t.useEffect)((()=>{e((0,l.ph)("list_policies"))}),[]),(0,j.jsxs)(t.Fragment,{children:[y&&(0,j.jsx)(b,{deleteOpen:y,selectedPolicy:M,closeDeleteModalAndRefresh:e=>{C(!1),e&&k()}}),(0,j.jsx)(x.A,{label:"IAM Policies",actions:(0,j.jsx)(A.A,{})}),(0,j.jsx)(i.Mxu,{children:(0,j.jsxs)(i.xA9,{container:!0,children:[(0,j.jsxs)(i.xA9,{item:!0,xs:12,sx:c._0.actionsTray,children:[(0,j.jsx)(h.A,{onChange:v,placeholder:"Search Policies",value:_,sx:{maxWidth:380}}),(0,j.jsx)(r.R,{scopes:[a.OV.ADMIN_CREATE_POLICY],resource:a.Ms,errorProps:{disabled:!0},children:(0,j.jsx)(p.A,{tooltip:g?"":(0,a.vj)(a.nr,"create a Policy"),children:(0,j.jsx)(i.$nd,{id:"create-policy",label:"Create Policy",variant:"callAction",icon:(0,j.jsx)(i.REV,{}),onClick:()=>{s("".concat(a.zZ.POLICY_ADD))},disabled:!g})})})]}),(0,j.jsx)(i.xA9,{item:!0,xs:12,children:(0,j.jsx)(r.R,{scopes:[a.OV.ADMIN_LIST_USER_POLICIES],resource:a.Ms,errorProps:{disabled:!0},children:(0,j.jsx)(p.A,{tooltip:L?"":(0,a.vj)(a.yv,"view Policy details"),children:(0,j.jsx)(i.bQt,{itemActions:w,columns:[{label:"Name",elementKey:"name"}],isLoading:f,records:R,entityName:"Policies",idField:"name"})})})}),(0,j.jsx)(i.xA9,{item:!0,xs:12,sx:{marginTop:15},children:(0,j.jsx)(i.lVp,{title:"Learn more about IAM POLICIES",iconComponent:(0,j.jsx)(i.n$X,{}),help:(0,j.jsxs)(t.Fragment,{children:["MinIO uses Policy-Based Access Control (PBAC) to define the authorized actions and resources to which an authenticated user has access. Each policy describes one or more actions and conditions that outline the permissions of a user or group of users.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"MinIO PBAC is built for compatibility with AWS IAM policy syntax, structure, and behavior. The MinIO documentation makes a best-effort to cover IAM-specific behavior and functionality. Consider deferring to the IAM documentation for more complete documentation on AWS IAM-specific topics.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"You can learn more at our"," ",(0,j.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/identity-access-management.html?ref=con#access-management",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})})]})})]})}}}]);
|
||||
//# sourceMappingURL=985.c802474d.chunk.js.map
|
||||
1
web-app/build/static/js/985.c802474d.chunk.js.map
Normal file
1
web-app/build/static/js/985.c802474d.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([[985],{10985:(e,s,i)=>{i.r(s),i.d(s,{default:()=>I});var t=i(65043),n=i(89923),o=i(73216),c=i(77403),a=i(99161),r=i(77938),l=i(56483),d=i(64159),u=i(20554),h=i(56629),m=i(64681),x=i(72237),p=i(6681),A=i(48793),j=i(55968),b=i(70579);const f=(0,x.A)(t.lazy((()=>i.e(4676).then(i.bind(i,4676))))),I=()=>{const e=(0,u.jL)(),s=(0,o.Zp)(),[i,x]=(0,t.useState)([]),[I,y]=(0,t.useState)(!1),[M,C]=(0,t.useState)(!1),[P,_]=(0,t.useState)(""),[v,O]=(0,t.useState)(""),S=(0,r._)(a.Ms,[a.OV.ADMIN_GET_POLICY]),E=(0,r._)(a.Ms,a.uA),g=(0,r._)(a.Ms,a.Bc),L=(0,r._)(a.Ms,a.nr),k=(0,r._)(a.Ms,a.yv);(0,t.useEffect)((()=>{w()}),[]),(0,t.useEffect)((()=>{I&&(g?h.F.policies.listPolicies().then((e=>{var s;const i=null!==(s=e.data.policies)&&void 0!==s?s:[];i.sort(((e,s)=>e.name>s.name?1:e.name<s.name?-1:0)),y(!1),x(i)})).catch((s=>{y(!1),e((0,d.C9)(s))})):y(!1))}),[I,y,x,e,g]);const w=()=>{y(!0)},B=[{type:"view",onClick:e=>{s("".concat(a.zZ.POLICIES,"/").concat((0,l.nf)(e.name)))},disableButtonFunction:()=>!S},{type:"delete",onClick:e=>{C(!0),_(e)},sendOnlyId:!0,disableButtonFunction:()=>!E}],D=i.filter((e=>{var s;return null===(s=e.name)||void 0===s?void 0:s.includes(v)}));return(0,t.useEffect)((()=>{e((0,d.ph)("list_policies"))}),[]),(0,b.jsxs)(t.Fragment,{children:[M&&(0,b.jsx)(f,{deleteOpen:M,selectedPolicy:P,closeDeleteModalAndRefresh:e=>{C(!1),e&&w()}}),(0,b.jsx)(A.A,{label:"IAM Policies",actions:(0,b.jsx)(j.A,{})}),(0,b.jsx)(n.Mxu,{children:(0,b.jsxs)(n.xA9,{container:!0,children:[(0,b.jsxs)(n.xA9,{item:!0,xs:12,sx:c._0.actionsTray,children:[(0,b.jsx)(m.A,{onChange:O,placeholder:"Search Policies",value:v,sx:{maxWidth:380}}),(0,b.jsx)(r.R,{scopes:[a.OV.ADMIN_CREATE_POLICY],resource:a.Ms,errorProps:{disabled:!0},children:(0,b.jsx)(p.A,{tooltip:L?"":(0,a.vj)(a.nr,"create a Policy"),children:(0,b.jsx)(n.$nd,{id:"create-policy",label:"Create Policy",variant:"callAction",icon:(0,b.jsx)(n.REV,{}),onClick:()=>{s("".concat(a.zZ.POLICY_ADD))},disabled:!L})})})]}),(0,b.jsx)(n.xA9,{item:!0,xs:12,children:(0,b.jsx)(r.R,{scopes:[a.OV.ADMIN_LIST_USER_POLICIES],resource:a.Ms,errorProps:{disabled:!0},children:(0,b.jsx)(p.A,{tooltip:k?"":(0,a.vj)(a.yv,"view Policy details"),children:(0,b.jsx)(n.bQt,{itemActions:B,columns:[{label:"Name",elementKey:"name"}],isLoading:I,records:D,entityName:"Policies",idField:"name"})})})}),(0,b.jsx)(n.xA9,{item:!0,xs:12,sx:{marginTop:15},children:(0,b.jsx)(n.lVp,{title:"Learn more about IAM POLICIES",iconComponent:(0,b.jsx)(n.n$X,{}),help:(0,b.jsxs)(t.Fragment,{children:["MinIO uses Policy-Based Access Control (PBAC) to define the authorized actions and resources to which an authenticated user has access. Each policy describes one or more actions and conditions that outline the permissions of a user or group of users.",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),"MinIO PBAC is built for compatibility with AWS IAM policy syntax, structure, and behavior. The MinIO documentation makes a best-effort to cover IAM-specific behavior and functionality. Consider deferring to the IAM documentation for more complete documentation on AWS IAM-specific topics.",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),"You can learn more at our"," ",(0,b.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/identity-access-management.html?ref=con#access-management",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})})]})})]})}}}]);
|
||||
//# sourceMappingURL=985.f5122b3c.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/main.dd292f6d.js
Normal file
3
web-app/build/static/js/main.dd292f6d.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/main.dd292f6d.js.map
Normal file
1
web-app/build/static/js/main.dd292f6d.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1761,7 +1761,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
||||
: payloadFormatter(body),
|
||||
},
|
||||
).then(async (response) => {
|
||||
const r = response.clone() as HttpResponse<T, E>;
|
||||
const r = response as HttpResponse<T, E>;
|
||||
r.data = null as unknown as T;
|
||||
r.error = null as unknown as E;
|
||||
|
||||
@@ -4553,7 +4553,7 @@ export class Api<
|
||||
*/
|
||||
removeTier: (name: string, params: RequestParams = {}) =>
|
||||
this.request<void, ApiError>({
|
||||
path: `/admin/tiers/${name}/remove`,
|
||||
path: `/admin/tiers/${encodeURIComponent(name)}/remove`,
|
||||
method: "DELETE",
|
||||
secure: true,
|
||||
...params,
|
||||
|
||||
Reference in New Issue
Block a user