Release v1.7.0 (#3418)

This commit is contained in:
Cesar N.
2024-08-02 16:20:47 -06:00
committed by GitHub
parent 7cc7b874d1
commit adfc96074f
37 changed files with 52 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
{
"files": {
"main.css": "./static/css/main.e60e4760.css",
"main.js": "./static/js/main.b9463185.js",
"main.js": "./static/js/main.41754270.js",
"static/js/5301.79001158.chunk.js": "./static/js/5301.79001158.chunk.js",
"static/js/9361.ce3b326c.chunk.js": "./static/js/9361.ce3b326c.chunk.js",
"static/js/843.791dd143.chunk.js": "./static/js/843.791dd143.chunk.js",
@@ -39,7 +39,7 @@
"static/js/5978.e6638d0b.chunk.js": "./static/js/5978.e6638d0b.chunk.js",
"static/js/4103.f42a2340.chunk.js": "./static/js/4103.f42a2340.chunk.js",
"static/js/1702.7a20d1f8.chunk.js": "./static/js/1702.7a20d1f8.chunk.js",
"static/js/7601.4e033e78.chunk.js": "./static/js/7601.4e033e78.chunk.js",
"static/js/7601.b9b33cda.chunk.js": "./static/js/7601.b9b33cda.chunk.js",
"static/js/7945.5cbf1d20.chunk.js": "./static/js/7945.5cbf1d20.chunk.js",
"static/js/9619.c5f43814.chunk.js": "./static/js/9619.c5f43814.chunk.js",
"static/js/8017.04f38735.chunk.js": "./static/js/8017.04f38735.chunk.js",
@@ -60,9 +60,8 @@
"static/js/4705.b1d28560.chunk.js": "./static/js/4705.b1d28560.chunk.js",
"static/js/8963.d2703f60.chunk.js": "./static/js/8963.d2703f60.chunk.js",
"static/js/960.fdc14172.chunk.js": "./static/js/960.fdc14172.chunk.js",
"static/js/8642.e13c61e6.chunk.js": "./static/js/8642.e13c61e6.chunk.js",
"static/js/8642.d29d2259.chunk.js": "./static/js/8642.d29d2259.chunk.js",
"static/js/3329.c25b9821.chunk.js": "./static/js/3329.c25b9821.chunk.js",
"static/js/2332.f3909952.chunk.js": "./static/js/2332.f3909952.chunk.js",
"static/js/5941.179188d6.chunk.js": "./static/js/5941.179188d6.chunk.js",
"static/js/2704.71ac23f9.chunk.js": "./static/js/2704.71ac23f9.chunk.js",
"static/js/7774.a47fade2.chunk.js": "./static/js/7774.a47fade2.chunk.js",
@@ -74,7 +73,6 @@
"static/js/2689.ba69c148.chunk.js": "./static/js/2689.ba69c148.chunk.js",
"static/js/872.a02ea93f.chunk.js": "./static/js/872.a02ea93f.chunk.js",
"static/js/4676.563616b8.chunk.js": "./static/js/4676.563616b8.chunk.js",
"static/js/8825.31f9162e.chunk.js": "./static/js/8825.31f9162e.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.3bc3931a.chunk.js": "./static/js/6799.3bc3931a.chunk.js",
@@ -119,7 +117,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.b9463185.js.map": "./static/js/main.b9463185.js.map",
"main.41754270.js.map": "./static/js/main.41754270.js.map",
"5301.79001158.chunk.js.map": "./static/js/5301.79001158.chunk.js.map",
"9361.ce3b326c.chunk.js.map": "./static/js/9361.ce3b326c.chunk.js.map",
"843.791dd143.chunk.js.map": "./static/js/843.791dd143.chunk.js.map",
@@ -157,7 +155,7 @@
"5978.e6638d0b.chunk.js.map": "./static/js/5978.e6638d0b.chunk.js.map",
"4103.f42a2340.chunk.js.map": "./static/js/4103.f42a2340.chunk.js.map",
"1702.7a20d1f8.chunk.js.map": "./static/js/1702.7a20d1f8.chunk.js.map",
"7601.4e033e78.chunk.js.map": "./static/js/7601.4e033e78.chunk.js.map",
"7601.b9b33cda.chunk.js.map": "./static/js/7601.b9b33cda.chunk.js.map",
"7945.5cbf1d20.chunk.js.map": "./static/js/7945.5cbf1d20.chunk.js.map",
"9619.c5f43814.chunk.js.map": "./static/js/9619.c5f43814.chunk.js.map",
"8017.04f38735.chunk.js.map": "./static/js/8017.04f38735.chunk.js.map",
@@ -178,9 +176,8 @@
"4705.b1d28560.chunk.js.map": "./static/js/4705.b1d28560.chunk.js.map",
"8963.d2703f60.chunk.js.map": "./static/js/8963.d2703f60.chunk.js.map",
"960.fdc14172.chunk.js.map": "./static/js/960.fdc14172.chunk.js.map",
"8642.e13c61e6.chunk.js.map": "./static/js/8642.e13c61e6.chunk.js.map",
"8642.d29d2259.chunk.js.map": "./static/js/8642.d29d2259.chunk.js.map",
"3329.c25b9821.chunk.js.map": "./static/js/3329.c25b9821.chunk.js.map",
"2332.f3909952.chunk.js.map": "./static/js/2332.f3909952.chunk.js.map",
"5941.179188d6.chunk.js.map": "./static/js/5941.179188d6.chunk.js.map",
"2704.71ac23f9.chunk.js.map": "./static/js/2704.71ac23f9.chunk.js.map",
"7774.a47fade2.chunk.js.map": "./static/js/7774.a47fade2.chunk.js.map",
@@ -192,7 +189,6 @@
"2689.ba69c148.chunk.js.map": "./static/js/2689.ba69c148.chunk.js.map",
"872.a02ea93f.chunk.js.map": "./static/js/872.a02ea93f.chunk.js.map",
"4676.563616b8.chunk.js.map": "./static/js/4676.563616b8.chunk.js.map",
"8825.31f9162e.chunk.js.map": "./static/js/8825.31f9162e.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.3bc3931a.chunk.js.map": "./static/js/6799.3bc3931a.chunk.js.map",
@@ -217,6 +213,6 @@
},
"entrypoints": [
"static/css/main.e60e4760.css",
"static/js/main.b9463185.js"
"static/js/main.41754270.js"
]
}

View File

@@ -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.b9463185.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.41754270.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>

View File

@@ -56796,7 +56796,7 @@ class WorkerMessageHandler {
infoRef: Q.trailer.getRaw("Info") || null,
info: e,
fileIds: Q.trailer.get("ID") || null,
startXRef: E ? h : Q.lastXRefStreamPos ?? h,
startXRef: E ? h : (Q.lastXRefStreamPos ?? h),
filename: s,
};
}

View File

@@ -1,2 +0,0 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2332],{32332:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j,emptyContent:()=>y});var a=n(65043),s=n(89923),l=n(73216),o=n(99161),r=n(64159),c=n(21383),i=n(77403),p=n(38375),x=n(48793),m=n(55968),d=n(56629),u=n(53518),h=n(70579);const y='{\n "bytes": ""\n}',j=()=>{const e=(0,c.jL)(),t=(0,l.Zp)(),[n,j]=(0,a.useState)(!1),[b,k]=(0,a.useState)(""),[f,C]=(0,a.useState)(y),S=""!==b.trim()&&-1===b.indexOf(" ");return(0,a.useEffect)((()=>{e((0,r.ph)("import_key"))}),[]),(0,h.jsx)(a.Fragment,{children:(0,h.jsxs)(s.xA9,{item:!0,xs:12,children:[(0,h.jsx)(x.A,{label:(0,h.jsx)(s.EGL,{onClick:()=>t(o.zZ.KMS_KEYS),label:"Keys"}),actions:(0,h.jsx)(m.A,{})}),(0,h.jsx)(s.Mxu,{children:(0,h.jsx)(s.Hbc,{title:"Import Key",icon:(0,h.jsx)(s.No_,{}),helpBox:(0,h.jsx)(p.A,{helpText:"Encryption Key",contents:["Import a cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,h.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:n=>{(n=>{j(!0),n.preventDefault();let a=JSON.parse(f);d.F.kms.kmsImportKey(b,a).then((e=>{t("".concat(o.zZ.KMS_KEYS))})).catch((async t=>{const n=await t.json();e((0,r.C9)((0,u.S)(n)))})).finally((()=>j(!1)))})(n)},children:[(0,h.jsx)(s.cl_,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:b,error:(e=>-1!==e.indexOf(" ")?"Key name cannot contain spaces":"")(b),onChange:e=>{k(e.target.value)}}),(0,h.jsx)(s.BYM,{label:"Set key Content",value:f,onChange:e=>{C(e)},editorHeight:"350px"}),(0,h.jsxs)(s.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,h.jsx)(s.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{k(""),C("")},label:"Clear"}),(0,h.jsx)(s.$nd,{id:"import-key",type:"submit",variant:"callAction",color:"primary",disabled:n||!S,label:"Import"})]})]})})})]})})}},38375:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(65043),s=n(89923),l=n(70579);const o=e=>{let{helpText:t,contents:n}=e;return(0,l.jsx)(s.lVp,{iconComponent:(0,l.jsx)(s.nag,{}),title:t,help:(0,l.jsx)(a.Fragment,{children:n.map((e=>(0,l.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:e})))})})}}}]);
//# sourceMappingURL=2332.f3909952.chunk.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[7601],{72237:(e,n,t)=>{t.d(n,{A:()=>a});var s=t(65043),l=t(70579);const a=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(t){return(0,l.jsx)(s.Suspense,{fallback:n,children:(0,l.jsx)(e,{...t})})}}},17601:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var s=t(65043),l=t(73216),a=t(72237),h=t(39808),p=t(70579);const j=(0,a.A)(s.lazy((()=>Promise.all([t.e(4581),t.e(960)]).then(t.bind(t,960))))),x=(0,a.A)(s.lazy((()=>t.e(8642).then(t.bind(t,8642))))),d=(0,a.A)(s.lazy((()=>t.e(3329).then(t.bind(t,53329))))),i=(0,a.A)(s.lazy((()=>t.e(2332).then(t.bind(t,32332))))),r=()=>(0,p.jsxs)(l.BV,{children:[(0,p.jsx)(l.qh,{path:"status",element:(0,p.jsx)(j,{})}),(0,p.jsx)(l.qh,{path:"keys",element:(0,p.jsx)(x,{})}),(0,p.jsx)(l.qh,{path:"add-key",element:(0,p.jsx)(d,{})}),(0,p.jsx)(l.qh,{path:"import-key",element:(0,p.jsx)(i,{})}),(0,p.jsx)(l.qh,{path:"*",element:(0,p.jsx)(h.A,{})})]})}}]);
//# sourceMappingURL=7601.4e033e78.chunk.js.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"static/js/7601.4e033e78.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,2GCTA,MAAMI,GAASC,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,yDACvCC,GAAWF,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,kCACzCE,GAASH,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCACvCG,GAAYJ,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAchD,EAZkBI,KAEdC,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAT,SAAA,EACLF,EAAAA,EAAAA,KAACY,EAAAA,GAAK,CAACC,KAAM,SAAUC,SAASd,EAAAA,EAAAA,KAACG,EAAM,OACvCH,EAAAA,EAAAA,KAACY,EAAAA,GAAK,CAACC,KAAM,OAAQC,SAASd,EAAAA,EAAAA,KAACM,EAAQ,OACvCN,EAAAA,EAAAA,KAACY,EAAAA,GAAK,CAACC,KAAM,UAAWC,SAASd,EAAAA,EAAAA,KAACO,EAAM,OACxCP,EAAAA,EAAAA,KAACY,EAAAA,GAAK,CAACC,KAAM,aAAcC,SAASd,EAAAA,EAAAA,KAACQ,EAAS,OAC9CR,EAAAA,EAAAA,KAACY,EAAAA,GAAK,CAACC,KAAM,IAAKC,SAASd,EAAAA,EAAAA,KAACe,EAAAA,EAAY,Q","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/KMS/KMSRoutes.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) 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 from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\nimport withSuspense from \"../Common/Components/withSuspense\";\nimport NotFoundPage from \"../../NotFoundPage\";\n\nconst Status = withSuspense(React.lazy(() => import(\"./Status\")));\nconst ListKeys = withSuspense(React.lazy(() => import(\"./ListKeys\")));\nconst AddKey = withSuspense(React.lazy(() => import(\"./AddKey\")));\nconst ImportKey = withSuspense(React.lazy(() => import(\"./ImportKey\")));\n\nconst KMSRoutes = () => {\n return (\n <Routes>\n <Route path={\"status\"} element={<Status />} />\n <Route path={\"keys\"} element={<ListKeys />} />\n <Route path={\"add-key\"} element={<AddKey />} />\n <Route path={\"import-key\"} element={<ImportKey />} />\n <Route path={\"*\"} element={<NotFoundPage />} />\n </Routes>\n );\n};\n\nexport default KMSRoutes;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","Status","withSuspense","React","ListKeys","AddKey","ImportKey","KMSRoutes","_jsxs","Routes","Route","path","element","NotFoundPage"],"sourceRoot":""}

View File

@@ -0,0 +1,2 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[7601],{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})})}}},17601:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(65043),l=s(73216),a=s(72237),h=s(39808),p=s(70579);const u=(0,a.A)(t.lazy((()=>Promise.all([s.e(4581),s.e(960)]).then(s.bind(s,960))))),d=(0,a.A)(t.lazy((()=>s.e(8642).then(s.bind(s,8642))))),j=(0,a.A)(t.lazy((()=>s.e(3329).then(s.bind(s,53329))))),r=()=>(0,p.jsxs)(l.BV,{children:[(0,p.jsx)(l.qh,{path:"status",element:(0,p.jsx)(u,{})}),(0,p.jsx)(l.qh,{path:"keys",element:(0,p.jsx)(d,{})}),(0,p.jsx)(l.qh,{path:"add-key",element:(0,p.jsx)(j,{})}),(0,p.jsx)(l.qh,{path:"*",element:(0,p.jsx)(h.A,{})})]})}}]);
//# sourceMappingURL=7601.b9b33cda.chunk.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"static/js/7601.b9b33cda.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,2GCTA,MAAMI,GAASC,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,yDACvCC,GAAWF,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,kCACzCE,GAASH,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAa7C,EAXkBG,KAEdC,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAR,SAAA,EACLF,EAAAA,EAAAA,KAACW,EAAAA,GAAK,CAACC,KAAM,SAAUC,SAASb,EAAAA,EAAAA,KAACG,EAAM,OACvCH,EAAAA,EAAAA,KAACW,EAAAA,GAAK,CAACC,KAAM,OAAQC,SAASb,EAAAA,EAAAA,KAACM,EAAQ,OACvCN,EAAAA,EAAAA,KAACW,EAAAA,GAAK,CAACC,KAAM,UAAWC,SAASb,EAAAA,EAAAA,KAACO,EAAM,OACxCP,EAAAA,EAAAA,KAACW,EAAAA,GAAK,CAACC,KAAM,IAAKC,SAASb,EAAAA,EAAAA,KAACc,EAAAA,EAAY,Q","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/KMS/KMSRoutes.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) 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 from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\nimport withSuspense from \"../Common/Components/withSuspense\";\nimport NotFoundPage from \"../../NotFoundPage\";\n\nconst Status = withSuspense(React.lazy(() => import(\"./Status\")));\nconst ListKeys = withSuspense(React.lazy(() => import(\"./ListKeys\")));\nconst AddKey = withSuspense(React.lazy(() => import(\"./AddKey\")));\n\nconst KMSRoutes = () => {\n return (\n <Routes>\n <Route path={\"status\"} element={<Status />} />\n <Route path={\"keys\"} element={<ListKeys />} />\n <Route path={\"add-key\"} element={<AddKey />} />\n <Route path={\"*\"} element={<NotFoundPage />} />\n </Routes>\n );\n};\n\nexport default KMSRoutes;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","Status","withSuspense","React","ListKeys","AddKey","KMSRoutes","_jsxs","Routes","Route","path","element","NotFoundPage"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8642],{8642:(e,s,r)=>{r.r(s),r.d(s,{default:()=>j});var t=r(65043),n=r(89923),a=r(73216),l=r(20649),c=r(77938),i=r(99161),o=r(21383),d=r(64159),x=r(64681),p=r(6681),u=r(48793),h=r(55968),K=r(70579);const j=()=>{const e=(0,o.jL)(),s=(0,a.Zp)(),[r,j]=(0,t.useState)(""),[S,f]=(0,t.useState)(!1),[_,m]=(0,t.useState)([]),y=(0,c._)(i.Ms,[i.OV.KMS_CREATE_KEY]),E=(0,c._)(i.Ms,[i.OV.KMS_LIST_KEYS]);(0,t.useEffect)((()=>{b()}),[]),(0,t.useEffect)((()=>{f(!0)}),[r]),(0,t.useEffect)((()=>{if(S)if(E){let s=""===r.trim()?"*":r.trim();l.A.invoke("GET","/api/v1/kms/keys?pattern=".concat(s)).then((e=>{f(!1),m(e.results)})).catch((s=>{f(!1),e((0,d.C9)(s))}))}else f(!1)}),[S,f,m,e,E,r]);const b=()=>{f(!0)};return(0,t.useEffect)((()=>{e((0,d.ph)("list_keys"))}),[e]),(0,K.jsxs)(t.Fragment,{children:[(0,K.jsx)(u.A,{label:"Key Management Service Keys",actions:(0,K.jsx)(h.A,{})}),(0,K.jsx)(n.Mxu,{children:(0,K.jsxs)(n.xA9,{container:!0,children:[(0,K.jsxs)(n.xA9,{item:!0,xs:12,sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,K.jsx)(c.R,{scopes:[i.OV.KMS_LIST_KEYS],resource:i.Ms,errorProps:{disabled:!0},children:(0,K.jsx)(x.A,{onChange:j,placeholder:"Search Keys with pattern",value:r})}),(0,K.jsx)(c.R,{scopes:[i.OV.KMS_LIST_KEYS],resource:i.Ms,errorProps:{disabled:!0},children:(0,K.jsx)(p.A,{tooltip:"Refresh",children:(0,K.jsx)(n.$nd,{id:"refresh-keys",variant:"regular",icon:(0,K.jsx)(n.fNY,{}),onClick:()=>f(!0)})})}),y?(0,K.jsx)(c.R,{scopes:[i.OV.KMS_CREATE_KEY],resource:i.Ms,errorProps:{disabled:!0},children:(0,K.jsx)(p.A,{tooltip:"Create Key",children:(0,K.jsx)(n.$nd,{id:"create-key",label:"Create Key",variant:"callAction",icon:(0,K.jsx)(n.REV,{}),onClick:()=>s(i.zZ.KMS_KEYS_ADD)})})}):null]}),(0,K.jsx)(n.xA9,{item:!0,xs:12,sx:{marginTop:"5px"},children:(0,K.jsx)(c.R,{scopes:[i.OV.KMS_LIST_KEYS],resource:i.Ms,errorProps:{disabled:!0},children:(0,K.jsx)(n.bQt,{columns:[{label:"Name",elementKey:"name"},{label:"Created By",elementKey:"createdBy"},{label:"Created At",elementKey:"createdAt"}],isLoading:S,records:_,entityName:"Keys",idField:"name"})})})]})})]})}}}]);
//# sourceMappingURL=8642.d29d2259.chunk.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8642],{8642:(e,s,t)=>{t.r(s),t.d(s,{default:()=>M});var r=t(65043),n=t(89923),l=t(73216),i=t(20649),a=t(77938),c=t(99161),o=t(21383),d=t(64159),x=t(72237),p=t(64681),u=t(6681),K=t(48793),_=t(55968),h=t(70579);const S=(0,x.A)(r.lazy((()=>t.e(8825).then(t.bind(t,88825))))),M=()=>{const e=(0,o.jL)(),s=(0,l.Zp)(),[t,x]=(0,r.useState)(""),[M,j]=(0,r.useState)(!1),[E,y]=(0,r.useState)(""),[m,f]=(0,r.useState)(!1),[A,b]=(0,r.useState)([]),k=(0,a._)(c.Ms,[c.OV.KMS_DELETE_KEY]),C=(0,a._)(c.Ms,[c.OV.KMS_CREATE_KEY]),O=(0,a._)(c.Ms,[c.OV.KMS_IMPORT_KEY]),R=(0,a._)(c.Ms,[c.OV.KMS_LIST_KEYS]);(0,r.useEffect)((()=>{Y()}),[]),(0,r.useEffect)((()=>{f(!0)}),[t]),(0,r.useEffect)((()=>{if(m)if(R){let s=""===t.trim()?"*":t.trim();i.A.invoke("GET","/api/v1/kms/keys?pattern=".concat(s)).then((e=>{f(!1),b(e.results)})).catch((s=>{f(!1),e((0,d.C9)(s))}))}else f(!1)}),[m,f,b,e,R,t]);const Y=()=>{f(!0)},T=e=>{j(!0),y(e)},I=[];return k&&I.push({type:"delete",onClick:T,sendOnlyId:!0,disableButtonFunction:()=>!k}),(0,r.useEffect)((()=>{e((0,d.ph)("list_keys"))}),[e]),(0,h.jsxs)(r.Fragment,{children:[M&&(0,h.jsx)(S,{deleteOpen:M,selectedItem:E,closeDeleteModalAndRefresh:e=>{j(!1),e&&Y()}}),(0,h.jsx)(K.A,{label:"Key Management Service Keys",actions:(0,h.jsx)(_.A,{})}),(0,h.jsx)(n.Mxu,{children:(0,h.jsxs)(n.xA9,{container:!0,children:[(0,h.jsxs)(n.xA9,{item:!0,xs:12,sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,h.jsx)(a.R,{scopes:[c.OV.KMS_LIST_KEYS],resource:c.Ms,errorProps:{disabled:!0},children:(0,h.jsx)(p.A,{onChange:x,placeholder:"Search Keys with pattern",value:t})}),(0,h.jsx)(a.R,{scopes:[c.OV.KMS_LIST_KEYS],resource:c.Ms,errorProps:{disabled:!0},children:(0,h.jsx)(u.A,{tooltip:"Refresh",children:(0,h.jsx)(n.$nd,{id:"refresh-keys",variant:"regular",icon:(0,h.jsx)(n.fNY,{}),onClick:()=>f(!0)})})}),O?(0,h.jsx)(a.R,{scopes:[c.OV.KMS_IMPORT_KEY],resource:c.Ms,errorProps:{disabled:!0},children:(0,h.jsx)(u.A,{tooltip:"Import Key",children:(0,h.jsx)(n.$nd,{id:"import-key",variant:"regular",icon:(0,h.jsx)(n.JMY,{}),onClick:()=>{s(c.zZ.KMS_KEYS_IMPORT)}})})}):null,C?(0,h.jsx)(a.R,{scopes:[c.OV.KMS_CREATE_KEY],resource:c.Ms,errorProps:{disabled:!0},children:(0,h.jsx)(u.A,{tooltip:"Create Key",children:(0,h.jsx)(n.$nd,{id:"create-key",label:"Create Key",variant:"callAction",icon:(0,h.jsx)(n.REV,{}),onClick:()=>s(c.zZ.KMS_KEYS_ADD)})})}):null]}),(0,h.jsx)(n.xA9,{item:!0,xs:12,sx:{marginTop:"5px"},children:(0,h.jsx)(a.R,{scopes:[c.OV.KMS_LIST_KEYS],resource:c.Ms,errorProps:{disabled:!0},children:(0,h.jsx)(n.bQt,{itemActions:I,columns:[{label:"Name",elementKey:"name"},{label:"Created By",elementKey:"createdBy"},{label:"Created At",elementKey:"createdAt"}],isLoading:m,records:A,entityName:"Keys",idField:"name"})})})]})})]})}}}]);
//# sourceMappingURL=8642.e13c61e6.chunk.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8825],{88825:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(65043),s=n(89923),l=n(64159),i=n(21383),r=n(58661),o=n(56629),c=n(53518),d=n(70579);const h=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedItem:h}=e;const p=(0,i.jL)(),[x,u]=(0,a.useState)(!1),[m,y]=(0,a.useState)("");if(!h)return null;return(0,d.jsx)(r.A,{title:"Delete Key",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(s.xWY,{}),isLoading:x,onConfirm:()=>{u(!0),o.F.kms.kmsDeleteKey(h).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();p((0,l.C9)((0,c.S)(n))),t(!1)})).finally((()=>u(!1)))},onClose:()=>t(!1),confirmButtonProps:{disabled:m!==h||x},confirmationContent:(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)(s.xA9,{item:!0,xs:12,children:(0,d.jsx)(s.Wei,{variant:"error",title:"WARNING",message:"Please note that this is a dangerous operation. Once a key has been deleted all data that has been encrypted with it cannot be decrypted anymore, and therefore, is lost.",sx:{margin:"15px 0"}})}),"To continue please type ",(0,d.jsx)("b",{children:h})," in the box.",(0,d.jsx)(s.xA9,{item:!0,xs:12,children:(0,d.jsx)(s.cl_,{id:"retype-key",name:"retype-key",onChange:e=>{y(e.target.value)},onPaste:e=>e.preventDefault(),label:"",value:m})})]})})}}}]);
//# sourceMappingURL=8825.31f9162e.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

View File

@@ -85,7 +85,7 @@
*/
/**
* @remix-run/router v1.17.1
* @remix-run/router v1.18.0
*
* Copyright (c) Remix Software Inc.
*
@@ -96,7 +96,7 @@
*/
/**
* React Router DOM v6.24.1
* React Router DOM v6.25.1
*
* Copyright (c) Remix Software Inc.
*
@@ -107,7 +107,7 @@
*/
/**
* React Router v6.24.1
* React Router v6.25.1
*
* Copyright (c) Remix Software Inc.
*

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

View File

@@ -1601,9 +1601,9 @@ export class HttpClient<SecurityDataType = unknown> {
input !== null && typeof input !== "string"
? JSON.stringify(input)
: input,
[ContentType.FormData]: (input: FormData) =>
(Array.from(input.keys()) || []).reduce((formData, key) => {
const property = input.get(key);
[ContentType.FormData]: (input: any) =>
Object.keys(input || {}).reduce((formData, key) => {
const property = input[key];
formData.append(
key,
property instanceof Blob