mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Fixed small issues & removed warnings in console (#711)
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.a19f3d53.chunk.css",
|
||||
"main.js": "/static/js/main.66e4f7d3.chunk.js",
|
||||
"main.js.map": "/static/js/main.66e4f7d3.chunk.js.map",
|
||||
"main.js": "/static/js/main.a976a091.chunk.js",
|
||||
"main.js.map": "/static/js/main.a976a091.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.f48e99e5.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.f48e99e5.js.map",
|
||||
"static/css/2.32daf8f7.chunk.css": "/static/css/2.32daf8f7.chunk.css",
|
||||
"static/js/2.f9fdac36.chunk.js": "/static/js/2.f9fdac36.chunk.js",
|
||||
"static/js/2.f9fdac36.chunk.js.map": "/static/js/2.f9fdac36.chunk.js.map",
|
||||
"static/js/2.c85b0c46.chunk.js": "/static/js/2.c85b0c46.chunk.js",
|
||||
"static/js/2.c85b0c46.chunk.js.map": "/static/js/2.c85b0c46.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"static/css/2.32daf8f7.chunk.css.map": "/static/css/2.32daf8f7.chunk.css.map",
|
||||
"static/css/main.a19f3d53.chunk.css.map": "/static/css/main.a19f3d53.chunk.css.map",
|
||||
"static/js/2.f9fdac36.chunk.js.LICENSE.txt": "/static/js/2.f9fdac36.chunk.js.LICENSE.txt",
|
||||
"static/js/2.c85b0c46.chunk.js.LICENSE.txt": "/static/js/2.c85b0c46.chunk.js.LICENSE.txt",
|
||||
"static/media/minio_console_logo.0837460e.svg": "/static/media/minio_console_logo.0837460e.svg",
|
||||
"static/media/minio_operator_logo.1312b7c9.svg": "/static/media/minio_operator_logo.1312b7c9.svg"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/runtime-main.f48e99e5.js",
|
||||
"static/css/2.32daf8f7.chunk.css",
|
||||
"static/js/2.f9fdac36.chunk.js",
|
||||
"static/js/2.c85b0c46.chunk.js",
|
||||
"static/css/main.a19f3d53.chunk.css",
|
||||
"static/js/main.66e4f7d3.chunk.js"
|
||||
"static/js/main.a976a091.chunk.js"
|
||||
]
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MinIO Console"/><link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="manifest" href="/manifest.json"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#3a4e54"/><title>MinIO Console</title><link href="/static/css/2.32daf8f7.chunk.css" rel="stylesheet"><link href="/static/css/main.a19f3d53.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonpportal-ui"]=this["webpackJsonpportal-ui"]||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/static/js/2.f9fdac36.chunk.js"></script><script src="/static/js/main.66e4f7d3.chunk.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MinIO Console"/><link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700;900&display=swap" rel="stylesheet"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="manifest" href="/manifest.json"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#3a4e54"/><title>MinIO Console</title><link href="/static/css/2.32daf8f7.chunk.css" rel="stylesheet"><link href="/static/css/main.a19f3d53.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonpportal-ui"]=this["webpackJsonpportal-ui"]||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/static/js/2.c85b0c46.chunk.js"></script><script src="/static/js/main.a976a091.chunk.js"></script></body></html>
|
||||
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
portal-ui/build/static/js/main.a976a091.chunk.js
Normal file
2
portal-ui/build/static/js/main.a976a091.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
portal-ui/build/static/js/main.a976a091.chunk.js.map
Normal file
1
portal-ui/build/static/js/main.a976a091.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -238,12 +238,13 @@ const AddBucket = ({
|
||||
quotaSize,
|
||||
quotaUnit,
|
||||
quotaEnabled,
|
||||
retentionEnabled,
|
||||
addBucketRetention,
|
||||
addBucketRetentionMode,
|
||||
addBucketRetentionUnit,
|
||||
addBucketRetentionValidity,
|
||||
retentionValidity,
|
||||
versioningEnabled,
|
||||
enableObjectLocking,
|
||||
]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -195,9 +195,6 @@ const ListObjects = ({
|
||||
const [selectedObject, setSelectedObject] = useState<string>("");
|
||||
const [selectedBucket, setSelectedBucket] = useState<string>("");
|
||||
const [filterObjects, setFilterObjects] = useState<string>("");
|
||||
const [loadingPromise, setLoadingPromise] = useState<Promise<any> | null>(
|
||||
null
|
||||
);
|
||||
const [loadingStartTime, setLoadingStartTime] = useState<number>(0);
|
||||
const [loadingMessage, setLoadingMessage] = useState<React.ReactNode>(
|
||||
defLoading
|
||||
@@ -269,7 +266,7 @@ const ListObjects = ({
|
||||
setLoadingStartTime(currentTimestamp);
|
||||
setLoadingMessage(defLoading);
|
||||
|
||||
let p = api
|
||||
api
|
||||
.invoke("GET", `/api/v1/buckets/${bucketName}/objects${extraPath}`)
|
||||
.then((res: BucketObjectsList) => {
|
||||
setSelectedBucket(bucketName);
|
||||
@@ -302,7 +299,6 @@ const ListObjects = ({
|
||||
setLoading(false);
|
||||
setErrorSnackMessage(err);
|
||||
});
|
||||
setLoadingPromise(p);
|
||||
}
|
||||
}, [loading, match, setLastAsFile, setErrorSnackMessage]);
|
||||
|
||||
|
||||
@@ -278,6 +278,9 @@ const ViewBucket = ({
|
||||
const [lifecycleRecords, setLifecycleRecords] = useState<LifeCycleItem[]>([]);
|
||||
const [addLifecycleOpen, setAddLifecycleOpen] = useState<boolean>(false);
|
||||
|
||||
const bucketName = match.params["bucketName"];
|
||||
const ilmEnabled = session.features?.indexOf("ilm") > -1;
|
||||
|
||||
// check the permissions for creating bucket
|
||||
useEffect(() => {
|
||||
if (loadingPerms) {
|
||||
@@ -329,10 +332,7 @@ const ViewBucket = ({
|
||||
setErrorSnackMessage(err);
|
||||
});
|
||||
}
|
||||
}, [loadingPerms, setErrorSnackMessage]);
|
||||
|
||||
const bucketName = match.params["bucketName"];
|
||||
const ilmEnabled = session.features?.indexOf("ilm") > -1;
|
||||
}, [bucketName, loadingPerms, setErrorSnackMessage]);
|
||||
|
||||
useEffect(() => {
|
||||
if (loadingEvents) {
|
||||
@@ -378,7 +378,12 @@ const ViewBucket = ({
|
||||
setLoadingLocking(false);
|
||||
});
|
||||
}
|
||||
}, [loadingObjectLocking, setErrorSnackMessage, bucketName]);
|
||||
}, [
|
||||
loadingObjectLocking,
|
||||
setErrorSnackMessage,
|
||||
bucketName,
|
||||
loadingVersioning,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (loadingReplication) {
|
||||
@@ -832,7 +837,9 @@ const ViewBucket = ({
|
||||
aria-label="access"
|
||||
size="small"
|
||||
className={classes.propertiesIcon}
|
||||
onClick={setBucketVersioning}
|
||||
onClick={() => {
|
||||
setAccessPolicyScreenOpen(true);
|
||||
}}
|
||||
>
|
||||
<PencilIcon active={true} />
|
||||
</IconButton>
|
||||
@@ -881,9 +888,7 @@ const ViewBucket = ({
|
||||
aria-label="retention"
|
||||
size="small"
|
||||
className={classes.propertiesIcon}
|
||||
onClick={() => {
|
||||
setAccessPolicyScreenOpen(true);
|
||||
}}
|
||||
onClick={setBucketVersioning}
|
||||
>
|
||||
<PencilIcon active={true} />
|
||||
</IconButton>
|
||||
|
||||
@@ -25,7 +25,6 @@ import {
|
||||
modalBasic,
|
||||
settingsCommon,
|
||||
} from "../../Common/FormComponents/common/styleLibrary";
|
||||
import SelectWrapper from "../../Common/FormComponents/SelectWrapper/SelectWrapper";
|
||||
import InputBoxWrapper from "../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper";
|
||||
import FileSelector from "../../Common/FormComponents/FileSelector/FileSelector";
|
||||
|
||||
|
||||
@@ -39,8 +39,6 @@ import SlideOptions from "../../Common/SlideOptions/SlideOptions";
|
||||
import BackSettingsIcon from "../../../../icons/BackSettingsIcon";
|
||||
import AddTierConfiguration from "./AddTierConfiguration";
|
||||
import UpdateTierCredentiasModal from "./UpdateTierCredentiasModal";
|
||||
import SelectWrapper from "../../Common/FormComponents/SelectWrapper/SelectWrapper";
|
||||
import ClockType from "@material-ui/pickers/constants/ClockType";
|
||||
|
||||
interface IListTiersConfig {
|
||||
classes: any;
|
||||
|
||||
@@ -151,7 +151,7 @@ const BrowseBuckets = ({
|
||||
setErrorSnackMessage(err);
|
||||
});
|
||||
}
|
||||
}, [loadingPerms, setErrorSnackMessage]);
|
||||
}, [loadingPerms]);
|
||||
|
||||
useEffect(() => {
|
||||
resetRoutesList(true);
|
||||
|
||||
@@ -30,7 +30,7 @@ import { generatePoolName } from "../../../../common/utils";
|
||||
import GenericWizard from "../../Common/GenericWizard/GenericWizard";
|
||||
import { IWizardElement } from "../../Common/GenericWizard/types";
|
||||
import { NewServiceAccount } from "../../Common/CredentialsPrompt/types";
|
||||
import { IAffinityModel, ITenantCreator } from "../../../../common/types";
|
||||
import { ITenantCreator } from "../../../../common/types";
|
||||
import { KeyPair } from "../ListTenants/utils";
|
||||
|
||||
import { setModalErrorSnackMessage } from "../../../../actions";
|
||||
@@ -38,7 +38,7 @@ import { getDefaultAffinity, getNodeSelector } from "../TenantDetails/utils";
|
||||
import CredentialsPrompt from "../../Common/CredentialsPrompt/CredentialsPrompt";
|
||||
import NameTenant from "./Steps/NameTenant";
|
||||
import { AppState } from "../../../../store";
|
||||
import { ICertificatesItems, IFieldStore, ILabelKeyPair } from "../types";
|
||||
import { ICertificatesItems, IFieldStore } from "../types";
|
||||
import { updateAddField } from "../actions";
|
||||
import Configure from "./Steps/Configure";
|
||||
import IdentityProvider from "./Steps/IdentityProvider";
|
||||
|
||||
@@ -229,6 +229,7 @@ const Configure = ({
|
||||
}, [
|
||||
logSearchSelectedStorageClass,
|
||||
prometheusSelectedStorageClass,
|
||||
selectedStorageClass,
|
||||
storageClasses,
|
||||
updateField,
|
||||
]);
|
||||
|
||||
@@ -226,9 +226,9 @@ const IdentityProvider = ({
|
||||
]);
|
||||
let inputs = null;
|
||||
if (idpSelection === "Built-in") {
|
||||
inputs = accessKeys.map((element, index) => {
|
||||
inputs = accessKeys.map((_, index) => {
|
||||
return (
|
||||
<Fragment>
|
||||
<Fragment key={`identityField-${index.toString()}`}>
|
||||
<div className={classes.shortened}>
|
||||
<InputBoxWrapper
|
||||
id={`accesskey-${index.toString()}`}
|
||||
|
||||
@@ -115,7 +115,7 @@ const DeleteTenant = ({
|
||||
onClick={removeRecord}
|
||||
color="secondary"
|
||||
autoFocus
|
||||
disabled={retypeTenant === ""}
|
||||
disabled={retypeTenant !== selectedTenant.name}
|
||||
>
|
||||
Delete
|
||||
</Button>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
import { IAffinityModel } from "../../../../common/types";
|
||||
import { ILabelKeyPair } from "../types";
|
||||
|
||||
export const getDefaultAffinity = (tenantName: string, poolName: string) => {
|
||||
const defaultAffinity: IAffinityModel = {
|
||||
|
||||
@@ -48,7 +48,7 @@ const LoginCallback: FC<RouteComponentProps> = ({ location }) => {
|
||||
});
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}
|
||||
}, []);
|
||||
}, [location.search]);
|
||||
return error !== "" || errorDescription !== "" ? (
|
||||
<div>
|
||||
<h2>IDP Error:</h2>
|
||||
|
||||
Reference in New Issue
Block a user