Compare commits

...

14 Commits

Author SHA1 Message Date
Alex
44f2fc67a3 Release v0.21.3 (#2458)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
2022-11-15 12:16:09 -08:00
Anis Elleuch
ec1ba16ef7 prom: Fix leak when a call fails with the prometheus endpoint (#2456) 2022-11-15 12:09:58 -06:00
Prakash Senthil Vel
7a5724591a fix crash in ui for empty log entries (#2457) 2022-11-15 12:09:42 -06:00
Alex
9f433bc359 Release v0.21.3 (#2455)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
2022-11-15 07:52:33 -08:00
Javier Adriel
1d45a174ac Add deprecated message in Audit logs section (#2437) 2022-11-14 13:06:55 -06:00
Alex
80cee32031 Fixed Table Action buttons roundness (#2451)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
2022-11-14 12:58:01 -06:00
Prakash Senthil Vel
437cfd0b8e fix broken chart axis data for date time formatting (#2452) 2022-11-14 11:56:17 -06:00
jinapurapu
dc4dae6ddb Added formatting to required permssions in permissionTooltipHelper (#2447) 2022-11-14 09:48:06 -06:00
Alex
2f578010a0 New Menu Adjustments (#2450) 2022-11-13 10:23:55 -08:00
Prakash Senthil Vel
e7ec3fe61f fix sub path resource matching in list objects (#2444)
fixes #https://github.com/minio/console/issues/2400 

Used the policy to validate the fix.

```json

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::sam-card"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::sam-card/*"
            ]
        },
        {
            "Effect": "Deny",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::sam-card/aa/*"
            ]
        }
    ]
}

```
2022-11-10 11:27:40 -08:00
dilverse
7b389fc323 Add erasure info support (#2446)
Make it easier for user to see backend properties like backend-type,
Standard storage class Parity and Reduced Redundancy storage class
Parity
Co-authored-by: Prakash Senthil Vel <23444145+prakashsvmx@users.noreply.github.com>
2022-11-10 09:24:39 -08:00
Daniel Valdivia
86361b630e Tweak some icons to inherit color (#2445)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
2022-11-09 11:05:39 -06:00
Lenin Alevski
c57df87bc3 Add yarn audit check on github actions (#2441)
Checks for known security issues with the installed packages

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
2022-11-08 19:20:47 -08:00
Lenin Alevski
cbbf3c5a53 selective version resolution for load-utils in react-scripts (#2442)
Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
2022-11-08 13:03:50 -08:00
281 changed files with 1185 additions and 853 deletions

View File

@@ -284,7 +284,7 @@ jobs:
semgrep --config semgrep.yaml $(pwd)/portal-ui --error
no-warnings-and-make-assets:
name: "React Code Has No Warnings & is Prettified, then Make Assets"
name: "React Code Has No Vulnerabilities, Warnings & is Prettified, then Make Assets"
runs-on: ubuntu-latest
strategy:
matrix:
@@ -333,6 +333,11 @@ jobs:
restore-keys: |
${{ runner.os }}-assets-
- name: Checks for known security issues with the installed packages
working-directory: ./portal-ui
continue-on-error: false
run: |
yarn audit
- name: Install Dependencies
working-directory: ./portal-ui
continue-on-error: false
@@ -1695,193 +1700,193 @@ jobs:
with:
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-2 --skip-js-errors -c 3'
all-operator-tests-4:
name: Operator UI Tests Part 4
needs:
- lint-job
- no-warnings-and-make-assets
- reuse-golang-dependencies
- vulnerable-dependencies-checks
- semgrep-static-code-analysis
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ 1.18.x ]
os: [ ubuntu-latest ]
steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
# all-operator-tests-4:
# name: Operator UI Tests Part 4
# needs:
# - lint-job
# - no-warnings-and-make-assets
# - reuse-golang-dependencies
# - vulnerable-dependencies-checks
# - semgrep-static-code-analysis
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# go-version: [ 1.18.x ]
# os: [ ubuntu-latest ]
# steps:
# - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go-version }}
# id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# To build operator image, we need to clone the repository first
- name: clone https://github.com/minio/operator
uses: actions/checkout@master
with:
# # To build operator image, we need to clone the repository first
# - name: clone https://github.com/minio/operator
# uses: actions/checkout@master
# with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: minio/operator
# # Repository name with owner. For example, actions/checkout
# # Default: ${{ github.repository }}
# repository: minio/operator
# Relative path under $GITHUB_WORKSPACE to place the repository
# To have two repositories under the same test
path: 'operator_repository'
# # Relative path under $GITHUB_WORKSPACE to place the repository
# # To have two repositories under the same test
# path: 'operator_repository'
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
# - name: Read .nvmrc
# id: node_version
# run: echo ::set-output name=NVMRC::$(cat .nvmrc)
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}
# - uses: actions/setup-node@v2
# with:
# node-version: ${{ env.NVMRC }}
- uses: actions/cache@v3
name: Go Mod Cache
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ github.run_id }}
# - uses: actions/cache@v3
# name: Go Mod Cache
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ github.run_id }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
name: Yarn Cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
./portal-ui/node_modules/
key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# - uses: actions/cache@v3
# id: yarn-cache
# name: Yarn Cache
# with:
# path: |
# ${{ steps.yarn-cache-dir-path.outputs.dir }}
# ./portal-ui/node_modules/
# key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-assets-
# - uses: actions/cache@v3
# id: assets-cache
# name: Assets Cache
# with:
# path: |
# ./portal-ui/build/
# key: ${{ runner.os }}-assets-${{ github.run_id }}
# restore-keys: |
# ${{ runner.os }}-assets-
- name: Build Console on ${{ matrix.os }}
env:
GO111MODULE: on
GOOS: linux
run: |
make console
# - name: Build Console on ${{ matrix.os }}
# env:
# GO111MODULE: on
# GOOS: linux
# run: |
# make console
# Runs a set of commands using the runners shell
- name: Start Kind for Operator UI
run: |
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
# # Runs a set of commands using the runners shell
# - name: Start Kind for Operator UI
# run: |
# "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
- name: Run TestCafe Tests
uses: DevExpress/testcafe-action@latest
with:
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3'
# - name: Run TestCafe Tests
# uses: DevExpress/testcafe-action@latest
# with:
# args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3'
all-operator-tests-5:
name: Operator UI Tests Part 5
needs:
- lint-job
- no-warnings-and-make-assets
- reuse-golang-dependencies
- vulnerable-dependencies-checks
- semgrep-static-code-analysis
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ 1.18.x ]
os: [ ubuntu-latest ]
steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
# all-operator-tests-5:
# name: Operator UI Tests Part 5
# needs:
# - lint-job
# - no-warnings-and-make-assets
# - reuse-golang-dependencies
# - vulnerable-dependencies-checks
# - semgrep-static-code-analysis
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# go-version: [ 1.18.x ]
# os: [ ubuntu-latest ]
# steps:
# - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go-version }}
# id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# To build operator image, we need to clone the repository first
- name: clone https://github.com/minio/operator
uses: actions/checkout@master
with:
# # To build operator image, we need to clone the repository first
# - name: clone https://github.com/minio/operator
# uses: actions/checkout@master
# with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: minio/operator
# # Repository name with owner. For example, actions/checkout
# # Default: ${{ github.repository }}
# repository: minio/operator
# Relative path under $GITHUB_WORKSPACE to place the repository
# To have two repositories under the same test
path: 'operator_repository'
# # Relative path under $GITHUB_WORKSPACE to place the repository
# # To have two repositories under the same test
# path: 'operator_repository'
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
# - name: Read .nvmrc
# id: node_version
# run: echo ::set-output name=NVMRC::$(cat .nvmrc)
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}
# - uses: actions/setup-node@v2
# with:
# node-version: ${{ env.NVMRC }}
- uses: actions/cache@v3
name: Go Mod Cache
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ github.run_id }}
# - uses: actions/cache@v3
# name: Go Mod Cache
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ github.run_id }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
name: Yarn Cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
./portal-ui/node_modules/
key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# - uses: actions/cache@v3
# id: yarn-cache
# name: Yarn Cache
# with:
# path: |
# ${{ steps.yarn-cache-dir-path.outputs.dir }}
# ./portal-ui/node_modules/
# key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
- uses: actions/cache@v3
id: assets-cache
name: Assets Cache
with:
path: |
./portal-ui/build/
key: ${{ runner.os }}-assets-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-assets-
# - uses: actions/cache@v3
# id: assets-cache
# name: Assets Cache
# with:
# path: |
# ./portal-ui/build/
# key: ${{ runner.os }}-assets-${{ github.run_id }}
# restore-keys: |
# ${{ runner.os }}-assets-
- name: Build Console on ${{ matrix.os }}
env:
GO111MODULE: on
GOOS: linux
run: |
make console
# - name: Build Console on ${{ matrix.os }}
# env:
# GO111MODULE: on
# GOOS: linux
# run: |
# make console
# Runs a set of commands using the runners shell
- name: Start Kind for Operator UI
run: |
"${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
# # Runs a set of commands using the runners shell
# - name: Start Kind for Operator UI
# run: |
# "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh"
- name: Run TestCafe Tests
uses: DevExpress/testcafe-action@latest
with:
args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3'
# - name: Run TestCafe Tests
# uses: DevExpress/testcafe-action@latest
# with:
# args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3'
compile-job:
name: Compiles on Go ${{ matrix.go-version }} and ${{ matrix.os }}

View File

@@ -15,7 +15,7 @@ spec:
serviceAccountName: console-sa
containers:
- name: console
image: 'minio/console:v0.21.2'
image: 'minio/console:v0.21.3'
imagePullPolicy: "IfNotPresent"
env:
- name: CONSOLE_OPERATOR_MODE

View File

@@ -32,7 +32,7 @@ spec:
spec:
containers:
- name: console
image: 'minio/console:v0.21.2'
image: 'minio/console:v0.21.3'
imagePullPolicy: "IfNotPresent"
env:
- name: CONSOLE_MINIO_SERVER

View File

@@ -42,6 +42,9 @@ type AdminInfoResponse struct {
// Enum: [not configured available unavailable]
AdvancedMetricsStatus string `json:"advancedMetricsStatus,omitempty"`
// backend
Backend *BackendProperties `json:"backend,omitempty"`
// buckets
Buckets int64 `json:"buckets,omitempty"`
@@ -66,6 +69,10 @@ func (m *AdminInfoResponse) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateBackend(formats); err != nil {
res = append(res, err)
}
if err := m.validateServers(formats); err != nil {
res = append(res, err)
}
@@ -125,6 +132,25 @@ func (m *AdminInfoResponse) validateAdvancedMetricsStatus(formats strfmt.Registr
return nil
}
func (m *AdminInfoResponse) validateBackend(formats strfmt.Registry) error {
if swag.IsZero(m.Backend) { // not required
return nil
}
if m.Backend != nil {
if err := m.Backend.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("backend")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("backend")
}
return err
}
}
return nil
}
func (m *AdminInfoResponse) validateServers(formats strfmt.Registry) error {
if swag.IsZero(m.Servers) { // not required
return nil
@@ -181,6 +207,10 @@ func (m *AdminInfoResponse) validateWidgets(formats strfmt.Registry) error {
func (m *AdminInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateBackend(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateServers(ctx, formats); err != nil {
res = append(res, err)
}
@@ -195,6 +225,22 @@ func (m *AdminInfoResponse) ContextValidate(ctx context.Context, formats strfmt.
return nil
}
func (m *AdminInfoResponse) contextValidateBackend(ctx context.Context, formats strfmt.Registry) error {
if m.Backend != nil {
if err := m.Backend.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("backend")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("backend")
}
return err
}
}
return nil
}
func (m *AdminInfoResponse) contextValidateServers(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Servers); i++ {

View File

@@ -0,0 +1,73 @@
// Code generated by go-swagger; DO NOT EDIT.
// This file is part of MinIO Console Server
// Copyright (c) 2022 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// 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/>.
//
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// BackendProperties backend properties
//
// swagger:model BackendProperties
type BackendProperties struct {
// backend type
BackendType string `json:"backendType,omitempty"`
// rr s c parity
RrSCParity int64 `json:"rrSCParity,omitempty"`
// standard s c parity
StandardSCParity int64 `json:"standardSCParity,omitempty"`
}
// Validate validates this backend properties
func (m *BackendProperties) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this backend properties based on context it is used
func (m *BackendProperties) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *BackendProperties) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *BackendProperties) UnmarshalBinary(b []byte) error {
var res BackendProperties
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@@ -1,129 +1,129 @@
{
"files": {
"main.css": "./static/css/main.b20a708b.css",
"main.js": "./static/js/main.3a920b67.js",
"main.js": "./static/js/main.1a0cef1f.js",
"static/js/1260.5248e62a.chunk.js": "./static/js/1260.5248e62a.chunk.js",
"static/js/6914.8c73a010.chunk.js": "./static/js/6914.8c73a010.chunk.js",
"static/js/4209.6cbd9842.chunk.js": "./static/js/4209.6cbd9842.chunk.js",
"static/js/1829.c686ac0f.chunk.js": "./static/js/1829.c686ac0f.chunk.js",
"static/js/5857.432b0de4.chunk.js": "./static/js/5857.432b0de4.chunk.js",
"static/js/5088.40235e2d.chunk.js": "./static/js/5088.40235e2d.chunk.js",
"static/js/4209.227aa3b5.chunk.js": "./static/js/4209.227aa3b5.chunk.js",
"static/js/1829.be0f91b9.chunk.js": "./static/js/1829.be0f91b9.chunk.js",
"static/js/4455.237b7d46.chunk.js": "./static/js/4455.237b7d46.chunk.js",
"static/js/5088.db1a3894.chunk.js": "./static/js/5088.db1a3894.chunk.js",
"static/js/5140.29fde8ff.chunk.js": "./static/js/5140.29fde8ff.chunk.js",
"static/js/852.8313f23d.chunk.js": "./static/js/852.8313f23d.chunk.js",
"static/css/7588.9cb5f34b.chunk.css": "./static/css/7588.9cb5f34b.chunk.css",
"static/js/7588.aa5c4850.chunk.js": "./static/js/7588.aa5c4850.chunk.js",
"static/js/7588.120d7676.chunk.js": "./static/js/7588.120d7676.chunk.js",
"static/js/3176.59846ccd.chunk.js": "./static/js/3176.59846ccd.chunk.js",
"static/js/6137.a74f25a3.chunk.js": "./static/js/6137.a74f25a3.chunk.js",
"static/js/7045.73a51a5c.chunk.js": "./static/js/7045.73a51a5c.chunk.js",
"static/js/7092.f9d41c38.chunk.js": "./static/js/7092.f9d41c38.chunk.js",
"static/js/2338.0ee15506.chunk.js": "./static/js/2338.0ee15506.chunk.js",
"static/js/4335.8ab82b9c.chunk.js": "./static/js/4335.8ab82b9c.chunk.js",
"static/js/6604.45252fd1.chunk.js": "./static/js/6604.45252fd1.chunk.js",
"static/js/6763.d7ead4a5.chunk.js": "./static/js/6763.d7ead4a5.chunk.js",
"static/js/3543.cae2b3f6.chunk.js": "./static/js/3543.cae2b3f6.chunk.js",
"static/js/4061.d59413d5.chunk.js": "./static/js/4061.d59413d5.chunk.js",
"static/js/7092.016f352b.chunk.js": "./static/js/7092.016f352b.chunk.js",
"static/js/2338.9785d021.chunk.js": "./static/js/2338.9785d021.chunk.js",
"static/js/4335.5864f94d.chunk.js": "./static/js/4335.5864f94d.chunk.js",
"static/js/6604.fbd73f8f.chunk.js": "./static/js/6604.fbd73f8f.chunk.js",
"static/js/6763.88842a51.chunk.js": "./static/js/6763.88842a51.chunk.js",
"static/js/3543.f1a85590.chunk.js": "./static/js/3543.f1a85590.chunk.js",
"static/js/4061.d4b9a89f.chunk.js": "./static/js/4061.d4b9a89f.chunk.js",
"static/js/5112.65587729.chunk.js": "./static/js/5112.65587729.chunk.js",
"static/js/9611.dc6938ca.chunk.js": "./static/js/9611.dc6938ca.chunk.js",
"static/js/2637.2f96b150.chunk.js": "./static/js/2637.2f96b150.chunk.js",
"static/js/2637.a78c67b6.chunk.js": "./static/js/2637.a78c67b6.chunk.js",
"static/css/5503.9cb5f34b.chunk.css": "./static/css/5503.9cb5f34b.chunk.css",
"static/js/5503.863b708f.chunk.js": "./static/js/5503.863b708f.chunk.js",
"static/js/5926.ef852b88.chunk.js": "./static/js/5926.ef852b88.chunk.js",
"static/js/701.ab5785ea.chunk.js": "./static/js/701.ab5785ea.chunk.js",
"static/js/5503.8102c269.chunk.js": "./static/js/5503.8102c269.chunk.js",
"static/js/5926.a85e7cf5.chunk.js": "./static/js/5926.a85e7cf5.chunk.js",
"static/js/701.6d0fe16f.chunk.js": "./static/js/701.6d0fe16f.chunk.js",
"static/js/7821.461c5aa3.chunk.js": "./static/js/7821.461c5aa3.chunk.js",
"static/css/2850.9cb5f34b.chunk.css": "./static/css/2850.9cb5f34b.chunk.css",
"static/js/2850.dcbfd98c.chunk.js": "./static/js/2850.dcbfd98c.chunk.js",
"static/js/4131.e8f67352.chunk.js": "./static/js/4131.e8f67352.chunk.js",
"static/js/2850.c2c3a292.chunk.js": "./static/js/2850.c2c3a292.chunk.js",
"static/js/4131.34341b0f.chunk.js": "./static/js/4131.34341b0f.chunk.js",
"static/css/343.9cb5f34b.chunk.css": "./static/css/343.9cb5f34b.chunk.css",
"static/js/343.85ab615d.chunk.js": "./static/js/343.85ab615d.chunk.js",
"static/js/343.a3ee0915.chunk.js": "./static/js/343.a3ee0915.chunk.js",
"static/css/1199.9cb5f34b.chunk.css": "./static/css/1199.9cb5f34b.chunk.css",
"static/js/1199.0f0e2d2b.chunk.js": "./static/js/1199.0f0e2d2b.chunk.js",
"static/js/1199.cd08cdfd.chunk.js": "./static/js/1199.cd08cdfd.chunk.js",
"static/css/5517.9cb5f34b.chunk.css": "./static/css/5517.9cb5f34b.chunk.css",
"static/js/5517.23418977.chunk.js": "./static/js/5517.23418977.chunk.js",
"static/js/2555.6b5ff50d.chunk.js": "./static/js/2555.6b5ff50d.chunk.js",
"static/js/7585.2f05b1f3.chunk.js": "./static/js/7585.2f05b1f3.chunk.js",
"static/js/4902.124ab092.chunk.js": "./static/js/4902.124ab092.chunk.js",
"static/js/7847.90a046cb.chunk.js": "./static/js/7847.90a046cb.chunk.js",
"static/js/4096.f5e55618.chunk.js": "./static/js/4096.f5e55618.chunk.js",
"static/js/5517.730e0aeb.chunk.js": "./static/js/5517.730e0aeb.chunk.js",
"static/js/2555.47860755.chunk.js": "./static/js/2555.47860755.chunk.js",
"static/js/7585.cd3ad44f.chunk.js": "./static/js/7585.cd3ad44f.chunk.js",
"static/js/4902.b5c5ff07.chunk.js": "./static/js/4902.b5c5ff07.chunk.js",
"static/js/7847.659fc617.chunk.js": "./static/js/7847.659fc617.chunk.js",
"static/js/3097.86eccc21.chunk.js": "./static/js/3097.86eccc21.chunk.js",
"static/js/692.bf3eea50.chunk.js": "./static/js/692.bf3eea50.chunk.js",
"static/js/6413.17138886.chunk.js": "./static/js/6413.17138886.chunk.js",
"static/js/8360.105f809d.chunk.js": "./static/js/8360.105f809d.chunk.js",
"static/js/6577.8f9494b2.chunk.js": "./static/js/6577.8f9494b2.chunk.js",
"static/js/3875.7770313b.chunk.js": "./static/js/3875.7770313b.chunk.js",
"static/js/106.72d23b2d.chunk.js": "./static/js/106.72d23b2d.chunk.js",
"static/js/7223.c4364eea.chunk.js": "./static/js/7223.c4364eea.chunk.js",
"static/js/5726.dff06c96.chunk.js": "./static/js/5726.dff06c96.chunk.js",
"static/js/5643.706d28f9.chunk.js": "./static/js/5643.706d28f9.chunk.js",
"static/js/8626.b7bc68f1.chunk.js": "./static/js/8626.b7bc68f1.chunk.js",
"static/js/8360.cddfeef1.chunk.js": "./static/js/8360.cddfeef1.chunk.js",
"static/js/6577.caaa5471.chunk.js": "./static/js/6577.caaa5471.chunk.js",
"static/js/3875.c9ea9a57.chunk.js": "./static/js/3875.c9ea9a57.chunk.js",
"static/js/6401.82b00a73.chunk.js": "./static/js/6401.82b00a73.chunk.js",
"static/js/2949.c17a4a94.chunk.js": "./static/js/2949.c17a4a94.chunk.js",
"static/js/3119.828f52b0.chunk.js": "./static/js/3119.828f52b0.chunk.js",
"static/js/5643.5f80a628.chunk.js": "./static/js/5643.5f80a628.chunk.js",
"static/js/4781.f4794912.chunk.js": "./static/js/4781.f4794912.chunk.js",
"static/js/9478.a335fb0f.chunk.js": "./static/js/9478.a335fb0f.chunk.js",
"static/js/7164.3762a0c0.chunk.js": "./static/js/7164.3762a0c0.chunk.js",
"static/js/4414.4d74d89b.chunk.js": "./static/js/4414.4d74d89b.chunk.js",
"static/js/7798.e33e9b60.chunk.js": "./static/js/7798.e33e9b60.chunk.js",
"static/js/8833.3556cd36.chunk.js": "./static/js/8833.3556cd36.chunk.js",
"static/js/6526.296ba888.chunk.js": "./static/js/6526.296ba888.chunk.js",
"static/js/4414.87a40d85.chunk.js": "./static/js/4414.87a40d85.chunk.js",
"static/js/7798.8ed31952.chunk.js": "./static/js/7798.8ed31952.chunk.js",
"static/js/8833.9dccd2d5.chunk.js": "./static/js/8833.9dccd2d5.chunk.js",
"static/js/6526.bb7b24fe.chunk.js": "./static/js/6526.bb7b24fe.chunk.js",
"static/js/483.5b997456.chunk.js": "./static/js/483.5b997456.chunk.js",
"static/js/9467.d0711d5e.chunk.js": "./static/js/9467.d0711d5e.chunk.js",
"static/js/6895.54b01aaa.chunk.js": "./static/js/6895.54b01aaa.chunk.js",
"static/js/1379.d515229f.chunk.js": "./static/js/1379.d515229f.chunk.js",
"static/js/8277.4222c489.chunk.js": "./static/js/8277.4222c489.chunk.js",
"static/js/4133.a8d9e248.chunk.js": "./static/js/4133.a8d9e248.chunk.js",
"static/js/9467.8f4abc78.chunk.js": "./static/js/9467.8f4abc78.chunk.js",
"static/js/6895.488a4025.chunk.js": "./static/js/6895.488a4025.chunk.js",
"static/js/1379.832f5371.chunk.js": "./static/js/1379.832f5371.chunk.js",
"static/js/8277.059b7328.chunk.js": "./static/js/8277.059b7328.chunk.js",
"static/js/4133.2386eedc.chunk.js": "./static/js/4133.2386eedc.chunk.js",
"static/css/1367.9cb5f34b.chunk.css": "./static/css/1367.9cb5f34b.chunk.css",
"static/js/1367.00454bc0.chunk.js": "./static/js/1367.00454bc0.chunk.js",
"static/js/3956.693e1c1b.chunk.js": "./static/js/3956.693e1c1b.chunk.js",
"static/js/9221.e9f3f525.chunk.js": "./static/js/9221.e9f3f525.chunk.js",
"static/js/8896.3ab50b22.chunk.js": "./static/js/8896.3ab50b22.chunk.js",
"static/js/1367.eb3c7186.chunk.js": "./static/js/1367.eb3c7186.chunk.js",
"static/js/3956.81b98a64.chunk.js": "./static/js/3956.81b98a64.chunk.js",
"static/js/9221.38a31de2.chunk.js": "./static/js/9221.38a31de2.chunk.js",
"static/js/8896.2afd6d87.chunk.js": "./static/js/8896.2afd6d87.chunk.js",
"static/js/9134.76b1bd01.chunk.js": "./static/js/9134.76b1bd01.chunk.js",
"static/css/1268.9cb5f34b.chunk.css": "./static/css/1268.9cb5f34b.chunk.css",
"static/js/1268.408b6da9.chunk.js": "./static/js/1268.408b6da9.chunk.js",
"static/js/441.5061a06e.chunk.js": "./static/js/441.5061a06e.chunk.js",
"static/js/1268.31853f4b.chunk.js": "./static/js/1268.31853f4b.chunk.js",
"static/js/441.d647ea80.chunk.js": "./static/js/441.d647ea80.chunk.js",
"static/js/9145.85a731d5.chunk.js": "./static/js/9145.85a731d5.chunk.js",
"static/js/8998.b7518624.chunk.js": "./static/js/8998.b7518624.chunk.js",
"static/js/1501.45b91938.chunk.js": "./static/js/1501.45b91938.chunk.js",
"static/js/7770.3664e24d.chunk.js": "./static/js/7770.3664e24d.chunk.js",
"static/js/8998.5bea3a2b.chunk.js": "./static/js/8998.5bea3a2b.chunk.js",
"static/js/1501.e6260482.chunk.js": "./static/js/1501.e6260482.chunk.js",
"static/js/7770.771cea33.chunk.js": "./static/js/7770.771cea33.chunk.js",
"static/js/426.82aff597.chunk.js": "./static/js/426.82aff597.chunk.js",
"static/js/5608.bf0a4f01.chunk.js": "./static/js/5608.bf0a4f01.chunk.js",
"static/js/4298.39009639.chunk.js": "./static/js/4298.39009639.chunk.js",
"static/js/2878.8dd5ace8.chunk.js": "./static/js/2878.8dd5ace8.chunk.js",
"static/js/8495.b1689c2d.chunk.js": "./static/js/8495.b1689c2d.chunk.js",
"static/js/4934.72071d47.chunk.js": "./static/js/4934.72071d47.chunk.js",
"static/js/9942.78febb7d.chunk.js": "./static/js/9942.78febb7d.chunk.js",
"static/js/7021.a571133a.chunk.js": "./static/js/7021.a571133a.chunk.js",
"static/js/2684.adde116d.chunk.js": "./static/js/2684.adde116d.chunk.js",
"static/js/7021.62c812c9.chunk.js": "./static/js/7021.62c812c9.chunk.js",
"static/js/2684.dde9af57.chunk.js": "./static/js/2684.dde9af57.chunk.js",
"static/css/9567.9cb5f34b.chunk.css": "./static/css/9567.9cb5f34b.chunk.css",
"static/js/9567.cf023e3e.chunk.js": "./static/js/9567.cf023e3e.chunk.js",
"static/js/8350.c98738e4.chunk.js": "./static/js/8350.c98738e4.chunk.js",
"static/js/9567.93e1e8a0.chunk.js": "./static/js/9567.93e1e8a0.chunk.js",
"static/js/8350.ff17d087.chunk.js": "./static/js/8350.ff17d087.chunk.js",
"static/js/4873.9349e8b2.chunk.js": "./static/js/4873.9349e8b2.chunk.js",
"static/js/5367.6280cd0d.chunk.js": "./static/js/5367.6280cd0d.chunk.js",
"static/js/6405.7ed910f9.chunk.js": "./static/js/6405.7ed910f9.chunk.js",
"static/js/5223.96f3ec77.chunk.js": "./static/js/5223.96f3ec77.chunk.js",
"static/js/1799.46eb9579.chunk.js": "./static/js/1799.46eb9579.chunk.js",
"static/js/9297.e6332146.chunk.js": "./static/js/9297.e6332146.chunk.js",
"static/js/9968.89304e6a.chunk.js": "./static/js/9968.89304e6a.chunk.js",
"static/js/6405.379b5b82.chunk.js": "./static/js/6405.379b5b82.chunk.js",
"static/js/5223.a4346b6b.chunk.js": "./static/js/5223.a4346b6b.chunk.js",
"static/js/1799.d2996f85.chunk.js": "./static/js/1799.d2996f85.chunk.js",
"static/js/9297.466f48d4.chunk.js": "./static/js/9297.466f48d4.chunk.js",
"static/js/9968.8cde9579.chunk.js": "./static/js/9968.8cde9579.chunk.js",
"static/js/2180.ecd3ab8b.chunk.js": "./static/js/2180.ecd3ab8b.chunk.js",
"static/js/8253.fa95cf82.chunk.js": "./static/js/8253.fa95cf82.chunk.js",
"static/js/3328.5e637c6f.chunk.js": "./static/js/3328.5e637c6f.chunk.js",
"static/js/3328.72ba5ec0.chunk.js": "./static/js/3328.72ba5ec0.chunk.js",
"static/js/1440.d3fd88ff.chunk.js": "./static/js/1440.d3fd88ff.chunk.js",
"static/js/9179.c61083e7.chunk.js": "./static/js/9179.c61083e7.chunk.js",
"static/js/51.d24a0589.chunk.js": "./static/js/51.d24a0589.chunk.js",
"static/js/711.2c20424f.chunk.js": "./static/js/711.2c20424f.chunk.js",
"static/js/9179.73844de6.chunk.js": "./static/js/9179.73844de6.chunk.js",
"static/js/51.f63429fd.chunk.js": "./static/js/51.f63429fd.chunk.js",
"static/js/711.7013b9d7.chunk.js": "./static/js/711.7013b9d7.chunk.js",
"static/js/6901.e2472ebd.chunk.js": "./static/js/6901.e2472ebd.chunk.js",
"static/js/2185.a1da3e17.chunk.js": "./static/js/2185.a1da3e17.chunk.js",
"static/js/312.3a15e683.chunk.js": "./static/js/312.3a15e683.chunk.js",
"static/js/2112.6b7837dd.chunk.js": "./static/js/2112.6b7837dd.chunk.js",
"static/js/4619.c41b384a.chunk.js": "./static/js/4619.c41b384a.chunk.js",
"static/js/8990.8da3f1b4.chunk.js": "./static/js/8990.8da3f1b4.chunk.js",
"static/js/8455.2f5d0d0a.chunk.js": "./static/js/8455.2f5d0d0a.chunk.js",
"static/js/2185.164ae281.chunk.js": "./static/js/2185.164ae281.chunk.js",
"static/js/312.770148c8.chunk.js": "./static/js/312.770148c8.chunk.js",
"static/js/2112.c85537ec.chunk.js": "./static/js/2112.c85537ec.chunk.js",
"static/js/4619.bbf03503.chunk.js": "./static/js/4619.bbf03503.chunk.js",
"static/js/8990.4f806e82.chunk.js": "./static/js/8990.4f806e82.chunk.js",
"static/js/8455.8cf8a65d.chunk.js": "./static/js/8455.8cf8a65d.chunk.js",
"static/css/1913.9cb5f34b.chunk.css": "./static/css/1913.9cb5f34b.chunk.css",
"static/js/1913.1bb254fb.chunk.js": "./static/js/1913.1bb254fb.chunk.js",
"static/js/1913.e7ae6234.chunk.js": "./static/js/1913.e7ae6234.chunk.js",
"static/js/1604.fa7e2b2f.chunk.js": "./static/js/1604.fa7e2b2f.chunk.js",
"static/js/8391.0411f28f.chunk.js": "./static/js/8391.0411f28f.chunk.js",
"static/js/402.626f6141.chunk.js": "./static/js/402.626f6141.chunk.js",
"static/js/8391.ba8f9cd2.chunk.js": "./static/js/8391.ba8f9cd2.chunk.js",
"static/js/402.46c69861.chunk.js": "./static/js/402.46c69861.chunk.js",
"static/js/1705.596850eb.chunk.js": "./static/js/1705.596850eb.chunk.js",
"static/js/1581.3b60face.chunk.js": "./static/js/1581.3b60face.chunk.js",
"static/js/455.89cfe65b.chunk.js": "./static/js/455.89cfe65b.chunk.js",
"static/js/2661.89815275.chunk.js": "./static/js/2661.89815275.chunk.js",
"static/js/889.8c6af0b9.chunk.js": "./static/js/889.8c6af0b9.chunk.js",
"static/js/9088.131128ad.chunk.js": "./static/js/9088.131128ad.chunk.js",
"static/js/247.b3ec6497.chunk.js": "./static/js/247.b3ec6497.chunk.js",
"static/js/2408.40adaebd.chunk.js": "./static/js/2408.40adaebd.chunk.js",
"static/js/1581.44c0448f.chunk.js": "./static/js/1581.44c0448f.chunk.js",
"static/js/455.4b142906.chunk.js": "./static/js/455.4b142906.chunk.js",
"static/js/2661.9bd125a1.chunk.js": "./static/js/2661.9bd125a1.chunk.js",
"static/js/889.bba47c51.chunk.js": "./static/js/889.bba47c51.chunk.js",
"static/js/9088.17f4cb12.chunk.js": "./static/js/9088.17f4cb12.chunk.js",
"static/js/247.908c948c.chunk.js": "./static/js/247.908c948c.chunk.js",
"static/js/2408.4f7b17cd.chunk.js": "./static/js/2408.4f7b17cd.chunk.js",
"static/js/5171.e5224ef3.chunk.js": "./static/js/5171.e5224ef3.chunk.js",
"static/js/3691.ff436a8f.chunk.js": "./static/js/3691.ff436a8f.chunk.js",
"static/js/2813.cfbfa60f.chunk.js": "./static/js/2813.cfbfa60f.chunk.js",
@@ -136,7 +136,7 @@
"static/js/2515.322cc076.chunk.js": "./static/js/2515.322cc076.chunk.js",
"static/js/1459.03befbb8.chunk.js": "./static/js/1459.03befbb8.chunk.js",
"static/js/1465.4525f636.chunk.js": "./static/js/1465.4525f636.chunk.js",
"static/js/4455.cdf95486.chunk.js": "./static/js/4455.cdf95486.chunk.js",
"static/js/1267.ee70805c.chunk.js": "./static/js/1267.ee70805c.chunk.js",
"static/js/6172.12ed66ed.chunk.js": "./static/js/6172.12ed66ed.chunk.js",
"static/js/696.c93c6454.chunk.js": "./static/js/696.c93c6454.chunk.js",
"static/js/3388.6f330810.chunk.js": "./static/js/3388.6f330810.chunk.js",
@@ -149,10 +149,9 @@
"static/js/1790.eb475334.chunk.js": "./static/js/1790.eb475334.chunk.js",
"static/js/2331.288af2ec.chunk.js": "./static/js/2331.288af2ec.chunk.js",
"static/js/9515.a4e964be.chunk.js": "./static/js/9515.a4e964be.chunk.js",
"static/js/2983.26b296ba.chunk.js": "./static/js/2983.26b296ba.chunk.js",
"static/js/5861.af51c5d9.chunk.js": "./static/js/5861.af51c5d9.chunk.js",
"static/js/2763.fadd6aec.chunk.js": "./static/js/2763.fadd6aec.chunk.js",
"static/js/4298.d677cede.chunk.js": "./static/js/4298.d677cede.chunk.js",
"static/js/2983.e248775f.chunk.js": "./static/js/2983.e248775f.chunk.js",
"static/js/5861.65847210.chunk.js": "./static/js/5861.65847210.chunk.js",
"static/js/2763.08c6e1fd.chunk.js": "./static/js/2763.08c6e1fd.chunk.js",
"static/media/Lato-Thin.woff": "./static/media/Lato-Thin.1549cf8478615fc56aa3.woff",
"static/media/Lato-Thin.woff2": "./static/media/Lato-Thin.c84b392f9e0187c54528.woff2",
"static/media/Lato-BoldItalic.woff": "./static/media/Lato-BoldItalic.443bd94393f9d73446c8.woff",
@@ -177,129 +176,129 @@
"static/media/Lato-HairlineItalic.woff2": "./static/media/Lato-HairlineItalic.bf1e0782291efebe06da.woff2",
"index.html": "./index.html",
"main.b20a708b.css.map": "./static/css/main.b20a708b.css.map",
"main.3a920b67.js.map": "./static/js/main.3a920b67.js.map",
"main.1a0cef1f.js.map": "./static/js/main.1a0cef1f.js.map",
"1260.5248e62a.chunk.js.map": "./static/js/1260.5248e62a.chunk.js.map",
"6914.8c73a010.chunk.js.map": "./static/js/6914.8c73a010.chunk.js.map",
"4209.6cbd9842.chunk.js.map": "./static/js/4209.6cbd9842.chunk.js.map",
"1829.c686ac0f.chunk.js.map": "./static/js/1829.c686ac0f.chunk.js.map",
"5857.432b0de4.chunk.js.map": "./static/js/5857.432b0de4.chunk.js.map",
"5088.40235e2d.chunk.js.map": "./static/js/5088.40235e2d.chunk.js.map",
"4209.227aa3b5.chunk.js.map": "./static/js/4209.227aa3b5.chunk.js.map",
"1829.be0f91b9.chunk.js.map": "./static/js/1829.be0f91b9.chunk.js.map",
"4455.237b7d46.chunk.js.map": "./static/js/4455.237b7d46.chunk.js.map",
"5088.db1a3894.chunk.js.map": "./static/js/5088.db1a3894.chunk.js.map",
"5140.29fde8ff.chunk.js.map": "./static/js/5140.29fde8ff.chunk.js.map",
"852.8313f23d.chunk.js.map": "./static/js/852.8313f23d.chunk.js.map",
"7588.9cb5f34b.chunk.css.map": "./static/css/7588.9cb5f34b.chunk.css.map",
"7588.aa5c4850.chunk.js.map": "./static/js/7588.aa5c4850.chunk.js.map",
"7588.120d7676.chunk.js.map": "./static/js/7588.120d7676.chunk.js.map",
"3176.59846ccd.chunk.js.map": "./static/js/3176.59846ccd.chunk.js.map",
"6137.a74f25a3.chunk.js.map": "./static/js/6137.a74f25a3.chunk.js.map",
"7045.73a51a5c.chunk.js.map": "./static/js/7045.73a51a5c.chunk.js.map",
"7092.f9d41c38.chunk.js.map": "./static/js/7092.f9d41c38.chunk.js.map",
"2338.0ee15506.chunk.js.map": "./static/js/2338.0ee15506.chunk.js.map",
"4335.8ab82b9c.chunk.js.map": "./static/js/4335.8ab82b9c.chunk.js.map",
"6604.45252fd1.chunk.js.map": "./static/js/6604.45252fd1.chunk.js.map",
"6763.d7ead4a5.chunk.js.map": "./static/js/6763.d7ead4a5.chunk.js.map",
"3543.cae2b3f6.chunk.js.map": "./static/js/3543.cae2b3f6.chunk.js.map",
"4061.d59413d5.chunk.js.map": "./static/js/4061.d59413d5.chunk.js.map",
"7092.016f352b.chunk.js.map": "./static/js/7092.016f352b.chunk.js.map",
"2338.9785d021.chunk.js.map": "./static/js/2338.9785d021.chunk.js.map",
"4335.5864f94d.chunk.js.map": "./static/js/4335.5864f94d.chunk.js.map",
"6604.fbd73f8f.chunk.js.map": "./static/js/6604.fbd73f8f.chunk.js.map",
"6763.88842a51.chunk.js.map": "./static/js/6763.88842a51.chunk.js.map",
"3543.f1a85590.chunk.js.map": "./static/js/3543.f1a85590.chunk.js.map",
"4061.d4b9a89f.chunk.js.map": "./static/js/4061.d4b9a89f.chunk.js.map",
"5112.65587729.chunk.js.map": "./static/js/5112.65587729.chunk.js.map",
"9611.dc6938ca.chunk.js.map": "./static/js/9611.dc6938ca.chunk.js.map",
"2637.2f96b150.chunk.js.map": "./static/js/2637.2f96b150.chunk.js.map",
"2637.a78c67b6.chunk.js.map": "./static/js/2637.a78c67b6.chunk.js.map",
"5503.9cb5f34b.chunk.css.map": "./static/css/5503.9cb5f34b.chunk.css.map",
"5503.863b708f.chunk.js.map": "./static/js/5503.863b708f.chunk.js.map",
"5926.ef852b88.chunk.js.map": "./static/js/5926.ef852b88.chunk.js.map",
"701.ab5785ea.chunk.js.map": "./static/js/701.ab5785ea.chunk.js.map",
"5503.8102c269.chunk.js.map": "./static/js/5503.8102c269.chunk.js.map",
"5926.a85e7cf5.chunk.js.map": "./static/js/5926.a85e7cf5.chunk.js.map",
"701.6d0fe16f.chunk.js.map": "./static/js/701.6d0fe16f.chunk.js.map",
"7821.461c5aa3.chunk.js.map": "./static/js/7821.461c5aa3.chunk.js.map",
"2850.9cb5f34b.chunk.css.map": "./static/css/2850.9cb5f34b.chunk.css.map",
"2850.dcbfd98c.chunk.js.map": "./static/js/2850.dcbfd98c.chunk.js.map",
"4131.e8f67352.chunk.js.map": "./static/js/4131.e8f67352.chunk.js.map",
"2850.c2c3a292.chunk.js.map": "./static/js/2850.c2c3a292.chunk.js.map",
"4131.34341b0f.chunk.js.map": "./static/js/4131.34341b0f.chunk.js.map",
"343.9cb5f34b.chunk.css.map": "./static/css/343.9cb5f34b.chunk.css.map",
"343.85ab615d.chunk.js.map": "./static/js/343.85ab615d.chunk.js.map",
"343.a3ee0915.chunk.js.map": "./static/js/343.a3ee0915.chunk.js.map",
"1199.9cb5f34b.chunk.css.map": "./static/css/1199.9cb5f34b.chunk.css.map",
"1199.0f0e2d2b.chunk.js.map": "./static/js/1199.0f0e2d2b.chunk.js.map",
"1199.cd08cdfd.chunk.js.map": "./static/js/1199.cd08cdfd.chunk.js.map",
"5517.9cb5f34b.chunk.css.map": "./static/css/5517.9cb5f34b.chunk.css.map",
"5517.23418977.chunk.js.map": "./static/js/5517.23418977.chunk.js.map",
"2555.6b5ff50d.chunk.js.map": "./static/js/2555.6b5ff50d.chunk.js.map",
"7585.2f05b1f3.chunk.js.map": "./static/js/7585.2f05b1f3.chunk.js.map",
"4902.124ab092.chunk.js.map": "./static/js/4902.124ab092.chunk.js.map",
"7847.90a046cb.chunk.js.map": "./static/js/7847.90a046cb.chunk.js.map",
"4096.f5e55618.chunk.js.map": "./static/js/4096.f5e55618.chunk.js.map",
"5517.730e0aeb.chunk.js.map": "./static/js/5517.730e0aeb.chunk.js.map",
"2555.47860755.chunk.js.map": "./static/js/2555.47860755.chunk.js.map",
"7585.cd3ad44f.chunk.js.map": "./static/js/7585.cd3ad44f.chunk.js.map",
"4902.b5c5ff07.chunk.js.map": "./static/js/4902.b5c5ff07.chunk.js.map",
"7847.659fc617.chunk.js.map": "./static/js/7847.659fc617.chunk.js.map",
"3097.86eccc21.chunk.js.map": "./static/js/3097.86eccc21.chunk.js.map",
"692.bf3eea50.chunk.js.map": "./static/js/692.bf3eea50.chunk.js.map",
"6413.17138886.chunk.js.map": "./static/js/6413.17138886.chunk.js.map",
"8360.105f809d.chunk.js.map": "./static/js/8360.105f809d.chunk.js.map",
"6577.8f9494b2.chunk.js.map": "./static/js/6577.8f9494b2.chunk.js.map",
"3875.7770313b.chunk.js.map": "./static/js/3875.7770313b.chunk.js.map",
"106.72d23b2d.chunk.js.map": "./static/js/106.72d23b2d.chunk.js.map",
"7223.c4364eea.chunk.js.map": "./static/js/7223.c4364eea.chunk.js.map",
"5726.dff06c96.chunk.js.map": "./static/js/5726.dff06c96.chunk.js.map",
"5643.706d28f9.chunk.js.map": "./static/js/5643.706d28f9.chunk.js.map",
"8626.b7bc68f1.chunk.js.map": "./static/js/8626.b7bc68f1.chunk.js.map",
"8360.cddfeef1.chunk.js.map": "./static/js/8360.cddfeef1.chunk.js.map",
"6577.caaa5471.chunk.js.map": "./static/js/6577.caaa5471.chunk.js.map",
"3875.c9ea9a57.chunk.js.map": "./static/js/3875.c9ea9a57.chunk.js.map",
"6401.82b00a73.chunk.js.map": "./static/js/6401.82b00a73.chunk.js.map",
"2949.c17a4a94.chunk.js.map": "./static/js/2949.c17a4a94.chunk.js.map",
"3119.828f52b0.chunk.js.map": "./static/js/3119.828f52b0.chunk.js.map",
"5643.5f80a628.chunk.js.map": "./static/js/5643.5f80a628.chunk.js.map",
"4781.f4794912.chunk.js.map": "./static/js/4781.f4794912.chunk.js.map",
"9478.a335fb0f.chunk.js.map": "./static/js/9478.a335fb0f.chunk.js.map",
"7164.3762a0c0.chunk.js.map": "./static/js/7164.3762a0c0.chunk.js.map",
"4414.4d74d89b.chunk.js.map": "./static/js/4414.4d74d89b.chunk.js.map",
"7798.e33e9b60.chunk.js.map": "./static/js/7798.e33e9b60.chunk.js.map",
"8833.3556cd36.chunk.js.map": "./static/js/8833.3556cd36.chunk.js.map",
"6526.296ba888.chunk.js.map": "./static/js/6526.296ba888.chunk.js.map",
"4414.87a40d85.chunk.js.map": "./static/js/4414.87a40d85.chunk.js.map",
"7798.8ed31952.chunk.js.map": "./static/js/7798.8ed31952.chunk.js.map",
"8833.9dccd2d5.chunk.js.map": "./static/js/8833.9dccd2d5.chunk.js.map",
"6526.bb7b24fe.chunk.js.map": "./static/js/6526.bb7b24fe.chunk.js.map",
"483.5b997456.chunk.js.map": "./static/js/483.5b997456.chunk.js.map",
"9467.d0711d5e.chunk.js.map": "./static/js/9467.d0711d5e.chunk.js.map",
"6895.54b01aaa.chunk.js.map": "./static/js/6895.54b01aaa.chunk.js.map",
"1379.d515229f.chunk.js.map": "./static/js/1379.d515229f.chunk.js.map",
"8277.4222c489.chunk.js.map": "./static/js/8277.4222c489.chunk.js.map",
"4133.a8d9e248.chunk.js.map": "./static/js/4133.a8d9e248.chunk.js.map",
"9467.8f4abc78.chunk.js.map": "./static/js/9467.8f4abc78.chunk.js.map",
"6895.488a4025.chunk.js.map": "./static/js/6895.488a4025.chunk.js.map",
"1379.832f5371.chunk.js.map": "./static/js/1379.832f5371.chunk.js.map",
"8277.059b7328.chunk.js.map": "./static/js/8277.059b7328.chunk.js.map",
"4133.2386eedc.chunk.js.map": "./static/js/4133.2386eedc.chunk.js.map",
"1367.9cb5f34b.chunk.css.map": "./static/css/1367.9cb5f34b.chunk.css.map",
"1367.00454bc0.chunk.js.map": "./static/js/1367.00454bc0.chunk.js.map",
"3956.693e1c1b.chunk.js.map": "./static/js/3956.693e1c1b.chunk.js.map",
"9221.e9f3f525.chunk.js.map": "./static/js/9221.e9f3f525.chunk.js.map",
"8896.3ab50b22.chunk.js.map": "./static/js/8896.3ab50b22.chunk.js.map",
"1367.eb3c7186.chunk.js.map": "./static/js/1367.eb3c7186.chunk.js.map",
"3956.81b98a64.chunk.js.map": "./static/js/3956.81b98a64.chunk.js.map",
"9221.38a31de2.chunk.js.map": "./static/js/9221.38a31de2.chunk.js.map",
"8896.2afd6d87.chunk.js.map": "./static/js/8896.2afd6d87.chunk.js.map",
"9134.76b1bd01.chunk.js.map": "./static/js/9134.76b1bd01.chunk.js.map",
"1268.9cb5f34b.chunk.css.map": "./static/css/1268.9cb5f34b.chunk.css.map",
"1268.408b6da9.chunk.js.map": "./static/js/1268.408b6da9.chunk.js.map",
"441.5061a06e.chunk.js.map": "./static/js/441.5061a06e.chunk.js.map",
"1268.31853f4b.chunk.js.map": "./static/js/1268.31853f4b.chunk.js.map",
"441.d647ea80.chunk.js.map": "./static/js/441.d647ea80.chunk.js.map",
"9145.85a731d5.chunk.js.map": "./static/js/9145.85a731d5.chunk.js.map",
"8998.b7518624.chunk.js.map": "./static/js/8998.b7518624.chunk.js.map",
"1501.45b91938.chunk.js.map": "./static/js/1501.45b91938.chunk.js.map",
"7770.3664e24d.chunk.js.map": "./static/js/7770.3664e24d.chunk.js.map",
"8998.5bea3a2b.chunk.js.map": "./static/js/8998.5bea3a2b.chunk.js.map",
"1501.e6260482.chunk.js.map": "./static/js/1501.e6260482.chunk.js.map",
"7770.771cea33.chunk.js.map": "./static/js/7770.771cea33.chunk.js.map",
"426.82aff597.chunk.js.map": "./static/js/426.82aff597.chunk.js.map",
"5608.bf0a4f01.chunk.js.map": "./static/js/5608.bf0a4f01.chunk.js.map",
"4298.39009639.chunk.js.map": "./static/js/4298.39009639.chunk.js.map",
"2878.8dd5ace8.chunk.js.map": "./static/js/2878.8dd5ace8.chunk.js.map",
"8495.b1689c2d.chunk.js.map": "./static/js/8495.b1689c2d.chunk.js.map",
"4934.72071d47.chunk.js.map": "./static/js/4934.72071d47.chunk.js.map",
"9942.78febb7d.chunk.js.map": "./static/js/9942.78febb7d.chunk.js.map",
"7021.a571133a.chunk.js.map": "./static/js/7021.a571133a.chunk.js.map",
"2684.adde116d.chunk.js.map": "./static/js/2684.adde116d.chunk.js.map",
"7021.62c812c9.chunk.js.map": "./static/js/7021.62c812c9.chunk.js.map",
"2684.dde9af57.chunk.js.map": "./static/js/2684.dde9af57.chunk.js.map",
"9567.9cb5f34b.chunk.css.map": "./static/css/9567.9cb5f34b.chunk.css.map",
"9567.cf023e3e.chunk.js.map": "./static/js/9567.cf023e3e.chunk.js.map",
"8350.c98738e4.chunk.js.map": "./static/js/8350.c98738e4.chunk.js.map",
"9567.93e1e8a0.chunk.js.map": "./static/js/9567.93e1e8a0.chunk.js.map",
"8350.ff17d087.chunk.js.map": "./static/js/8350.ff17d087.chunk.js.map",
"4873.9349e8b2.chunk.js.map": "./static/js/4873.9349e8b2.chunk.js.map",
"5367.6280cd0d.chunk.js.map": "./static/js/5367.6280cd0d.chunk.js.map",
"6405.7ed910f9.chunk.js.map": "./static/js/6405.7ed910f9.chunk.js.map",
"5223.96f3ec77.chunk.js.map": "./static/js/5223.96f3ec77.chunk.js.map",
"1799.46eb9579.chunk.js.map": "./static/js/1799.46eb9579.chunk.js.map",
"9297.e6332146.chunk.js.map": "./static/js/9297.e6332146.chunk.js.map",
"9968.89304e6a.chunk.js.map": "./static/js/9968.89304e6a.chunk.js.map",
"6405.379b5b82.chunk.js.map": "./static/js/6405.379b5b82.chunk.js.map",
"5223.a4346b6b.chunk.js.map": "./static/js/5223.a4346b6b.chunk.js.map",
"1799.d2996f85.chunk.js.map": "./static/js/1799.d2996f85.chunk.js.map",
"9297.466f48d4.chunk.js.map": "./static/js/9297.466f48d4.chunk.js.map",
"9968.8cde9579.chunk.js.map": "./static/js/9968.8cde9579.chunk.js.map",
"2180.ecd3ab8b.chunk.js.map": "./static/js/2180.ecd3ab8b.chunk.js.map",
"8253.fa95cf82.chunk.js.map": "./static/js/8253.fa95cf82.chunk.js.map",
"3328.5e637c6f.chunk.js.map": "./static/js/3328.5e637c6f.chunk.js.map",
"3328.72ba5ec0.chunk.js.map": "./static/js/3328.72ba5ec0.chunk.js.map",
"1440.d3fd88ff.chunk.js.map": "./static/js/1440.d3fd88ff.chunk.js.map",
"9179.c61083e7.chunk.js.map": "./static/js/9179.c61083e7.chunk.js.map",
"51.d24a0589.chunk.js.map": "./static/js/51.d24a0589.chunk.js.map",
"711.2c20424f.chunk.js.map": "./static/js/711.2c20424f.chunk.js.map",
"9179.73844de6.chunk.js.map": "./static/js/9179.73844de6.chunk.js.map",
"51.f63429fd.chunk.js.map": "./static/js/51.f63429fd.chunk.js.map",
"711.7013b9d7.chunk.js.map": "./static/js/711.7013b9d7.chunk.js.map",
"6901.e2472ebd.chunk.js.map": "./static/js/6901.e2472ebd.chunk.js.map",
"2185.a1da3e17.chunk.js.map": "./static/js/2185.a1da3e17.chunk.js.map",
"312.3a15e683.chunk.js.map": "./static/js/312.3a15e683.chunk.js.map",
"2112.6b7837dd.chunk.js.map": "./static/js/2112.6b7837dd.chunk.js.map",
"4619.c41b384a.chunk.js.map": "./static/js/4619.c41b384a.chunk.js.map",
"8990.8da3f1b4.chunk.js.map": "./static/js/8990.8da3f1b4.chunk.js.map",
"8455.2f5d0d0a.chunk.js.map": "./static/js/8455.2f5d0d0a.chunk.js.map",
"2185.164ae281.chunk.js.map": "./static/js/2185.164ae281.chunk.js.map",
"312.770148c8.chunk.js.map": "./static/js/312.770148c8.chunk.js.map",
"2112.c85537ec.chunk.js.map": "./static/js/2112.c85537ec.chunk.js.map",
"4619.bbf03503.chunk.js.map": "./static/js/4619.bbf03503.chunk.js.map",
"8990.4f806e82.chunk.js.map": "./static/js/8990.4f806e82.chunk.js.map",
"8455.8cf8a65d.chunk.js.map": "./static/js/8455.8cf8a65d.chunk.js.map",
"1913.9cb5f34b.chunk.css.map": "./static/css/1913.9cb5f34b.chunk.css.map",
"1913.1bb254fb.chunk.js.map": "./static/js/1913.1bb254fb.chunk.js.map",
"1913.e7ae6234.chunk.js.map": "./static/js/1913.e7ae6234.chunk.js.map",
"1604.fa7e2b2f.chunk.js.map": "./static/js/1604.fa7e2b2f.chunk.js.map",
"8391.0411f28f.chunk.js.map": "./static/js/8391.0411f28f.chunk.js.map",
"402.626f6141.chunk.js.map": "./static/js/402.626f6141.chunk.js.map",
"8391.ba8f9cd2.chunk.js.map": "./static/js/8391.ba8f9cd2.chunk.js.map",
"402.46c69861.chunk.js.map": "./static/js/402.46c69861.chunk.js.map",
"1705.596850eb.chunk.js.map": "./static/js/1705.596850eb.chunk.js.map",
"1581.3b60face.chunk.js.map": "./static/js/1581.3b60face.chunk.js.map",
"455.89cfe65b.chunk.js.map": "./static/js/455.89cfe65b.chunk.js.map",
"2661.89815275.chunk.js.map": "./static/js/2661.89815275.chunk.js.map",
"889.8c6af0b9.chunk.js.map": "./static/js/889.8c6af0b9.chunk.js.map",
"9088.131128ad.chunk.js.map": "./static/js/9088.131128ad.chunk.js.map",
"247.b3ec6497.chunk.js.map": "./static/js/247.b3ec6497.chunk.js.map",
"2408.40adaebd.chunk.js.map": "./static/js/2408.40adaebd.chunk.js.map",
"1581.44c0448f.chunk.js.map": "./static/js/1581.44c0448f.chunk.js.map",
"455.4b142906.chunk.js.map": "./static/js/455.4b142906.chunk.js.map",
"2661.9bd125a1.chunk.js.map": "./static/js/2661.9bd125a1.chunk.js.map",
"889.bba47c51.chunk.js.map": "./static/js/889.bba47c51.chunk.js.map",
"9088.17f4cb12.chunk.js.map": "./static/js/9088.17f4cb12.chunk.js.map",
"247.908c948c.chunk.js.map": "./static/js/247.908c948c.chunk.js.map",
"2408.4f7b17cd.chunk.js.map": "./static/js/2408.4f7b17cd.chunk.js.map",
"5171.e5224ef3.chunk.js.map": "./static/js/5171.e5224ef3.chunk.js.map",
"3691.ff436a8f.chunk.js.map": "./static/js/3691.ff436a8f.chunk.js.map",
"2813.cfbfa60f.chunk.js.map": "./static/js/2813.cfbfa60f.chunk.js.map",
@@ -312,7 +311,7 @@
"2515.322cc076.chunk.js.map": "./static/js/2515.322cc076.chunk.js.map",
"1459.03befbb8.chunk.js.map": "./static/js/1459.03befbb8.chunk.js.map",
"1465.4525f636.chunk.js.map": "./static/js/1465.4525f636.chunk.js.map",
"4455.cdf95486.chunk.js.map": "./static/js/4455.cdf95486.chunk.js.map",
"1267.ee70805c.chunk.js.map": "./static/js/1267.ee70805c.chunk.js.map",
"6172.12ed66ed.chunk.js.map": "./static/js/6172.12ed66ed.chunk.js.map",
"696.c93c6454.chunk.js.map": "./static/js/696.c93c6454.chunk.js.map",
"3388.6f330810.chunk.js.map": "./static/js/3388.6f330810.chunk.js.map",
@@ -325,13 +324,12 @@
"1790.eb475334.chunk.js.map": "./static/js/1790.eb475334.chunk.js.map",
"2331.288af2ec.chunk.js.map": "./static/js/2331.288af2ec.chunk.js.map",
"9515.a4e964be.chunk.js.map": "./static/js/9515.a4e964be.chunk.js.map",
"2983.26b296ba.chunk.js.map": "./static/js/2983.26b296ba.chunk.js.map",
"5861.af51c5d9.chunk.js.map": "./static/js/5861.af51c5d9.chunk.js.map",
"2763.fadd6aec.chunk.js.map": "./static/js/2763.fadd6aec.chunk.js.map",
"4298.d677cede.chunk.js.map": "./static/js/4298.d677cede.chunk.js.map"
"2983.e248775f.chunk.js.map": "./static/js/2983.e248775f.chunk.js.map",
"5861.65847210.chunk.js.map": "./static/js/5861.65847210.chunk.js.map",
"2763.08c6e1fd.chunk.js.map": "./static/js/2763.08c6e1fd.chunk.js.map"
},
"entrypoints": [
"static/css/main.b20a708b.css",
"static/js/main.3a920b67.js"
"static/js/main.1a0cef1f.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"/><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.3a920b67.js"></script><link href="./static/css/main.b20a708b.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"/><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.1a0cef1f.js"></script><link href="./static/css/main.b20a708b.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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1581],{1581:function(e,t,a){a.r(t);var n=a(29439),s=a(1413),i=a(72791),l=a(40986),o=a(75952),c=a(11135),r=a(25787),u=a(61889),d=a(45248),f=a(23814),m=a(37516),x=a(21435),Z=a(56028),h=a(81207),p=a(38588),j=a(56578),v=a(87995),b=a(25469),g=a(80184);t.default=(0,r.Z)((function(e){return(0,c.Z)((0,s.Z)((0,s.Z)({},f.DF),f.ID))}))((function(e){var t=e.classes,a=e.open,s=e.enabled,c=e.cfg,r=e.selectedBucket,f=e.closeModalAndRefresh,k=(0,b.TL)(),C=(0,i.useState)(!1),S=(0,n.Z)(C,2),N=S[0],P=S[1],q=(0,i.useState)(!1),B=(0,n.Z)(q,2),w=B[0],y=B[1],z=(0,i.useState)("1"),E=(0,n.Z)(z,2),_=E[0],M=E[1],D=(0,i.useState)("Ti"),T=(0,n.Z)(D,2),F=T[0],I=T[1],L=(0,i.useState)(!1),Q=(0,n.Z)(L,2),R=Q[0],W=Q[1];(0,i.useEffect)((function(){if(s&&(y(!0),c)){var e=(0,d.Am)(c.quota,!0,!1,!0);M(e.total.toString()),I(e.unit),W(!0)}}),[s,c]),(0,i.useEffect)((function(){W(!w||/^\d*(?:\.\d{1,2})?$/.test(_))}),[w,_]);return(0,g.jsx)(Z.Z,{modalOpen:a,onClose:function(){f()},title:"Enable Bucket Quota",titleIcon:(0,g.jsx)(p.Wqw,{}),children:(0,g.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),function(){if(!N&&R){var e={enabled:w,amount:parseInt((0,d.Pw)(_,F,!0)),quota_type:"hard"};h.Z.invoke("PUT","/api/v1/buckets/".concat(r,"/quota"),e).then((function(){P(!1),f()})).catch((function(e){P(!1),k((0,v.zb)(e))}))}}()},children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formFieldRow,children:(0,g.jsx)(m.Z,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:w,onChange:function(e){y(e.target.checked)},label:"Enabled"})}),w&&(0,g.jsx)(i.Fragment,{children:(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formFieldRow,children:(0,g.jsx)(u.ZP,{container:!0,children:(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(x.Z,{id:"quota_size",name:"quota_size",onChange:function(e){M(e.target.value),e.target.validity.valid?W(!0):W(!1)},label:"Quota",value:_,required:!0,min:"1",overlayObject:(0,g.jsx)(j.Z,{id:"quota_unit",onUnitChange:function(e){I(e)},unitSelected:F,unitsList:(0,d.zQ)(["Ki"]),disabled:!1}),error:R?"":"Please enter a valid quota"})})})})})]}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,g.jsx)(o.zx,{id:"cancel",type:"button",variant:"regular",disabled:N,onClick:function(){f()},label:"Cancel"}),(0,g.jsx)(o.zx,{id:"save",type:"submit",variant:"callAction",disabled:N||!R,label:"Save"})]}),N&&(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(l.Z,{})})]})})})}))},56028:function(e,t,a){var n=a(29439),s=a(1413),i=a(72791),l=a(60364),o=a(13400),c=a(55646),r=a(5574),u=a(65661),d=a(39157),f=a(11135),m=a(25787),x=a(23814),Z=a(25469),h=a(29823),p=a(28057),j=a(87995),v=a(80184);t.Z=(0,m.Z)((function(e){return(0,f.Z)((0,s.Z)((0,s.Z)({},x.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},x.sN))}))((function(e){var t=e.onClose,a=e.modalOpen,f=e.title,m=e.children,x=e.classes,b=e.wideLimit,g=void 0===b||b,k=e.noContentPadding,C=e.titleIcon,S=void 0===C?null:C,N=(0,Z.TL)(),P=(0,i.useState)(!1),q=(0,n.Z)(P,2),B=q[0],w=q[1],y=(0,l.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){N((0,j.MK)(""))}),[N]),(0,i.useEffect)((function(){if(y){if(""===y.message)return void w(!1);"error"!==y.type&&w(!0)}}),[y]);var z=g?{classes:{paper:x.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},E="";return y&&(E=y.detailedErrorMsg,(""===y.detailedErrorMsg||y.detailedErrorMsg.length<5)&&(E=y.message)),(0,v.jsxs)(r.Z,(0,s.Z)((0,s.Z)({open:a,classes:x},z),{},{scroll:"paper",onClose:function(e,a){"backdropClick"!==a&&t()},className:x.root,children:[(0,v.jsxs)(u.Z,{className:x.title,children:[(0,v.jsxs)("div",{className:x.titleText,children:[S," ",f]}),(0,v.jsx)("div",{className:x.closeContainer,children:(0,v.jsx)(o.Z,{"aria-label":"close",id:"close",className:x.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,v.jsx)(h.Z,{})})})]}),(0,v.jsx)(p.Z,{isModal:!0}),(0,v.jsx)(c.Z,{open:B,className:x.snackBarModal,onClose:function(){w(!1),N((0,j.MK)(""))},message:E,ContentProps:{className:"".concat(x.snackBar," ").concat(y&&"error"===y.type?x.errorSnackBar:"")},autoHideDuration:y&&"error"===y.type?1e4:5e3}),(0,v.jsx)(d.Z,{className:k?"":x.content,children:m})]}))}))}}]);
//# sourceMappingURL=1581.3b60face.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1581],{1581:function(e,t,a){a.r(t);var n=a(29439),s=a(1413),i=a(72791),l=a(40986),o=a(75952),c=a(11135),r=a(25787),u=a(61889),d=a(45248),f=a(23814),m=a(37516),x=a(21435),Z=a(56028),h=a(81207),p=a(56096),j=a(56578),v=a(87995),b=a(25469),g=a(80184);t.default=(0,r.Z)((function(e){return(0,c.Z)((0,s.Z)((0,s.Z)({},f.DF),f.ID))}))((function(e){var t=e.classes,a=e.open,s=e.enabled,c=e.cfg,r=e.selectedBucket,f=e.closeModalAndRefresh,k=(0,b.TL)(),C=(0,i.useState)(!1),S=(0,n.Z)(C,2),N=S[0],P=S[1],q=(0,i.useState)(!1),B=(0,n.Z)(q,2),w=B[0],y=B[1],z=(0,i.useState)("1"),E=(0,n.Z)(z,2),_=E[0],M=E[1],D=(0,i.useState)("Ti"),T=(0,n.Z)(D,2),F=T[0],I=T[1],L=(0,i.useState)(!1),Q=(0,n.Z)(L,2),R=Q[0],W=Q[1];(0,i.useEffect)((function(){if(s&&(y(!0),c)){var e=(0,d.Am)(c.quota,!0,!1,!0);M(e.total.toString()),I(e.unit),W(!0)}}),[s,c]),(0,i.useEffect)((function(){W(!w||/^\d*(?:\.\d{1,2})?$/.test(_))}),[w,_]);return(0,g.jsx)(Z.Z,{modalOpen:a,onClose:function(){f()},title:"Enable Bucket Quota",titleIcon:(0,g.jsx)(p.Wqw,{}),children:(0,g.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),function(){if(!N&&R){var e={enabled:w,amount:parseInt((0,d.Pw)(_,F,!0)),quota_type:"hard"};h.Z.invoke("PUT","/api/v1/buckets/".concat(r,"/quota"),e).then((function(){P(!1),f()})).catch((function(e){P(!1),k((0,v.zb)(e))}))}}()},children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formFieldRow,children:(0,g.jsx)(m.Z,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:w,onChange:function(e){y(e.target.checked)},label:"Enabled"})}),w&&(0,g.jsx)(i.Fragment,{children:(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formFieldRow,children:(0,g.jsx)(u.ZP,{container:!0,children:(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(x.Z,{id:"quota_size",name:"quota_size",onChange:function(e){M(e.target.value),e.target.validity.valid?W(!0):W(!1)},label:"Quota",value:_,required:!0,min:"1",overlayObject:(0,g.jsx)(j.Z,{id:"quota_unit",onUnitChange:function(e){I(e)},unitSelected:F,unitsList:(0,d.zQ)(["Ki"]),disabled:!1}),error:R?"":"Please enter a valid quota"})})})})})]}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,g.jsx)(o.zx,{id:"cancel",type:"button",variant:"regular",disabled:N,onClick:function(){f()},label:"Cancel"}),(0,g.jsx)(o.zx,{id:"save",type:"submit",variant:"callAction",disabled:N||!R,label:"Save"})]}),N&&(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(l.Z,{})})]})})})}))},56028:function(e,t,a){var n=a(29439),s=a(1413),i=a(72791),l=a(60364),o=a(13400),c=a(55646),r=a(5574),u=a(65661),d=a(39157),f=a(11135),m=a(25787),x=a(23814),Z=a(25469),h=a(29823),p=a(28057),j=a(87995),v=a(80184);t.Z=(0,m.Z)((function(e){return(0,f.Z)((0,s.Z)((0,s.Z)({},x.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},x.sN))}))((function(e){var t=e.onClose,a=e.modalOpen,f=e.title,m=e.children,x=e.classes,b=e.wideLimit,g=void 0===b||b,k=e.noContentPadding,C=e.titleIcon,S=void 0===C?null:C,N=(0,Z.TL)(),P=(0,i.useState)(!1),q=(0,n.Z)(P,2),B=q[0],w=q[1],y=(0,l.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){N((0,j.MK)(""))}),[N]),(0,i.useEffect)((function(){if(y){if(""===y.message)return void w(!1);"error"!==y.type&&w(!0)}}),[y]);var z=g?{classes:{paper:x.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},E="";return y&&(E=y.detailedErrorMsg,(""===y.detailedErrorMsg||y.detailedErrorMsg.length<5)&&(E=y.message)),(0,v.jsxs)(r.Z,(0,s.Z)((0,s.Z)({open:a,classes:x},z),{},{scroll:"paper",onClose:function(e,a){"backdropClick"!==a&&t()},className:x.root,children:[(0,v.jsxs)(u.Z,{className:x.title,children:[(0,v.jsxs)("div",{className:x.titleText,children:[S," ",f]}),(0,v.jsx)("div",{className:x.closeContainer,children:(0,v.jsx)(o.Z,{"aria-label":"close",id:"close",className:x.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,v.jsx)(h.Z,{})})})]}),(0,v.jsx)(p.Z,{isModal:!0}),(0,v.jsx)(c.Z,{open:B,className:x.snackBarModal,onClose:function(){w(!1),N((0,j.MK)(""))},message:E,ContentProps:{className:"".concat(x.snackBar," ").concat(y&&"error"===y.type?x.errorSnackBar:"")},autoHideDuration:y&&"error"===y.type?1e4:5e3}),(0,v.jsx)(d.Z,{className:k?"":x.content,children:m})]}))}))}}]);
//# sourceMappingURL=1581.44c0448f.chunk.js.map

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1799],{64163:function(e,n,t){var i=t(1413),r=t(72791),s=t(61889),o=t(11135),a=t(25787),c=t(23814),l=t(80184);n.Z=(0,a.Z)((function(e){return(0,o.Z)((0,i.Z)({},c.xx))}))((function(e){var n=e.classes,t=e.label,i=void 0===t?"":t,o=e.content,a=e.multiLine,c=void 0!==a&&a,d=e.actionButton;return(0,l.jsx)(r.Fragment,{children:(0,l.jsxs)(s.ZP,{className:n.prefinedContainer,children:[""!==i&&(0,l.jsx)(s.ZP,{item:!0,xs:12,className:n.predefinedTitle,children:i}),(0,l.jsxs)(s.ZP,{item:!0,xs:12,className:"".concat(n.predefinedList," ").concat(d?n.includesActionButton:""),children:[(0,l.jsx)(s.ZP,{item:!0,xs:12,className:c?n.innerContentMultiline:n.innerContent,children:o}),d&&(0,l.jsx)("div",{className:n.overlayShareOption,children:d})]})]})})}))},61799:function(e,n,t){t.r(n);var i=t(29439),r=t(72791),s=t(51691),o=t(61889),a=t(40986),c=t(81207),l=t(21435),d=t(64163),u=t(37516),f=t(23508),x=t(38588),m=t(87995),h=t(25469),j=t(80184);n.default=function(e){var n=e.closeFormatModalAndRefresh,t=e.deleteOpen,v=e.allDrives,Z=e.drivesToFormat,b=(0,h.TL)(),p=(0,r.useState)(!1),g=(0,i.Z)(p,2),C=g[0],P=g[1],F=(0,r.useState)(""),S=(0,i.Z)(F,2),k=S[0],A=S[1],D=(0,r.useState)(!1),E=(0,i.Z)(D,2),L=E[0],N=E[1];return(0,j.jsx)(f.Z,{title:"Format ".concat(v?"All ":""," Drives"),confirmText:"Format Drive".concat(Z.length>1||v?"s":""),confirmButtonProps:{disabled:"YES, PROCEED"!==k},isOpen:t,isLoading:C,onConfirm:function(){C||(P(!0),c.Z.invoke("POST","/api/v1/directpv/drives/format",{drives:Z,force:L}).then((function(e){P(!1),n(!0,e.formatIssuesList)})).catch((function(e){P(!1),b((0,m.Ih)(e))})))},onClose:function(){n(!1,[])},titleIcon:(0,j.jsx)(x.QaX,{}),confirmationContent:(0,j.jsxs)(r.Fragment,{children:[(0,j.jsxs)(s.Z,{children:[!v&&(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(d.Z,{label:"Selected Drive".concat(Z.length>1?"s":""),content:Z.join(", ")}),(0,j.jsx)("br",{})]}),(0,j.jsx)(o.ZP,{item:!0,xs:12,children:(0,j.jsx)(u.Z,{value:"force",id:"force",name:"force",checked:L,onChange:function(e){N(e.target.checked)},label:"Force Format",indicatorLabels:["Yes","No"]})}),"Are you sure you want to format"," ",v?(0,j.jsx)("strong",{children:"All"}):"the selected"," drive",Z.length>1||v?"s":"","?.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),(0,j.jsx)("strong",{children:"All information contained will be erased and cannot be recovered"}),(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"To continue please type ",(0,j.jsx)("b",{children:"YES, PROCEED"})," in the box.",(0,j.jsx)(o.ZP,{item:!0,xs:12,children:(0,j.jsx)(l.Z,{id:"format-confirm",name:"format-confirm",onChange:function(e){A(e.target.value)},label:"",value:k})})]}),C&&(0,j.jsx)(a.Z,{})]})})}}}]);
//# sourceMappingURL=1799.46eb9579.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1799],{64163:function(e,n,t){var i=t(1413),r=t(72791),s=t(61889),o=t(11135),a=t(25787),c=t(23814),l=t(80184);n.Z=(0,a.Z)((function(e){return(0,o.Z)((0,i.Z)({},c.xx))}))((function(e){var n=e.classes,t=e.label,i=void 0===t?"":t,o=e.content,a=e.multiLine,c=void 0!==a&&a,d=e.actionButton;return(0,l.jsx)(r.Fragment,{children:(0,l.jsxs)(s.ZP,{className:n.prefinedContainer,children:[""!==i&&(0,l.jsx)(s.ZP,{item:!0,xs:12,className:n.predefinedTitle,children:i}),(0,l.jsxs)(s.ZP,{item:!0,xs:12,className:"".concat(n.predefinedList," ").concat(d?n.includesActionButton:""),children:[(0,l.jsx)(s.ZP,{item:!0,xs:12,className:c?n.innerContentMultiline:n.innerContent,children:o}),d&&(0,l.jsx)("div",{className:n.overlayShareOption,children:d})]})]})})}))},61799:function(e,n,t){t.r(n);var i=t(29439),r=t(72791),s=t(51691),o=t(61889),a=t(40986),c=t(81207),l=t(21435),d=t(64163),u=t(37516),f=t(23508),x=t(56096),m=t(87995),h=t(25469),j=t(80184);n.default=function(e){var n=e.closeFormatModalAndRefresh,t=e.deleteOpen,v=e.allDrives,Z=e.drivesToFormat,b=(0,h.TL)(),p=(0,r.useState)(!1),g=(0,i.Z)(p,2),C=g[0],P=g[1],F=(0,r.useState)(""),S=(0,i.Z)(F,2),k=S[0],A=S[1],D=(0,r.useState)(!1),E=(0,i.Z)(D,2),L=E[0],N=E[1];return(0,j.jsx)(f.Z,{title:"Format ".concat(v?"All ":""," Drives"),confirmText:"Format Drive".concat(Z.length>1||v?"s":""),confirmButtonProps:{disabled:"YES, PROCEED"!==k},isOpen:t,isLoading:C,onConfirm:function(){C||(P(!0),c.Z.invoke("POST","/api/v1/directpv/drives/format",{drives:Z,force:L}).then((function(e){P(!1),n(!0,e.formatIssuesList)})).catch((function(e){P(!1),b((0,m.Ih)(e))})))},onClose:function(){n(!1,[])},titleIcon:(0,j.jsx)(x.QaX,{}),confirmationContent:(0,j.jsxs)(r.Fragment,{children:[(0,j.jsxs)(s.Z,{children:[!v&&(0,j.jsxs)(r.Fragment,{children:[(0,j.jsx)(d.Z,{label:"Selected Drive".concat(Z.length>1?"s":""),content:Z.join(", ")}),(0,j.jsx)("br",{})]}),(0,j.jsx)(o.ZP,{item:!0,xs:12,children:(0,j.jsx)(u.Z,{value:"force",id:"force",name:"force",checked:L,onChange:function(e){N(e.target.checked)},label:"Force Format",indicatorLabels:["Yes","No"]})}),"Are you sure you want to format"," ",v?(0,j.jsx)("strong",{children:"All"}):"the selected"," drive",Z.length>1||v?"s":"","?.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),(0,j.jsx)("strong",{children:"All information contained will be erased and cannot be recovered"}),(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"To continue please type ",(0,j.jsx)("b",{children:"YES, PROCEED"})," in the box.",(0,j.jsx)(o.ZP,{item:!0,xs:12,children:(0,j.jsx)(l.Z,{id:"format-confirm",name:"format-confirm",onChange:function(e){A(e.target.value)},label:"",value:k})})]}),C&&(0,j.jsx)(a.Z,{})]})})}}}]);
//# sourceMappingURL=1799.d2996f85.chunk.js.map

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2112],{32112:function(e,n,t){t.r(n);var a=t(29439),o=t(72791),r=t(51691),i=t(21435),c=t(61889),s=t(9505),l=t(23508),u=t(38588),p=t(87995),f=t(25469),d=t(80184);n.default=function(e){var n=e.deleteOpen,t=e.selectedPVC,m=e.closeDeleteModalAndRefresh,h=(0,f.TL)(),C=(0,o.useState)(""),x=(0,a.Z)(C,2),v=x[0],P=x[1],Z=(0,s.Z)((function(){return m(!0)}),(function(e){return h((0,p.Ih)(e))})),b=(0,a.Z)(Z,2),j=b[0],T=b[1];return(0,d.jsx)(l.Z,{title:"Delete PVC",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(u.NvT,{}),isLoading:j,onConfirm:function(){v===t.name?T("DELETE","/api/v1/namespaces/".concat(t.namespace,"/tenants/").concat(t.tenant,"/pvc/").concat(t.name)):h((0,p.Ih)({errorMessage:"PVC name is incorrect",detailedError:""}))},onClose:function(){return m(!1)},confirmButtonProps:{disabled:v!==t.name||j},confirmationContent:(0,d.jsxs)(r.Z,{children:["To continue please type ",(0,d.jsx)("b",{children:t.name})," in the box.",(0,d.jsx)(c.ZP,{item:!0,xs:12,children:(0,d.jsx)(i.Z,{id:"retype-PVC",name:"retype-PVC",onChange:function(e){P(e.target.value)},label:"",value:v})})]})})}}}]);
//# sourceMappingURL=2112.6b7837dd.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2112],{32112:function(e,n,t){t.r(n);var a=t(29439),o=t(72791),r=t(51691),i=t(21435),c=t(61889),s=t(9505),l=t(23508),u=t(56096),p=t(87995),f=t(25469),d=t(80184);n.default=function(e){var n=e.deleteOpen,t=e.selectedPVC,m=e.closeDeleteModalAndRefresh,h=(0,f.TL)(),C=(0,o.useState)(""),x=(0,a.Z)(C,2),v=x[0],P=x[1],Z=(0,s.Z)((function(){return m(!0)}),(function(e){return h((0,p.Ih)(e))})),b=(0,a.Z)(Z,2),j=b[0],T=b[1];return(0,d.jsx)(l.Z,{title:"Delete PVC",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(u.NvT,{}),isLoading:j,onConfirm:function(){v===t.name?T("DELETE","/api/v1/namespaces/".concat(t.namespace,"/tenants/").concat(t.tenant,"/pvc/").concat(t.name)):h((0,p.Ih)({errorMessage:"PVC name is incorrect",detailedError:""}))},onClose:function(){return m(!1)},confirmButtonProps:{disabled:v!==t.name||j},confirmationContent:(0,d.jsxs)(r.Z,{children:["To continue please type ",(0,d.jsx)("b",{children:t.name})," in the box.",(0,d.jsx)(c.ZP,{item:!0,xs:12,children:(0,d.jsx)(i.Z,{id:"retype-PVC",name:"retype-PVC",onChange:function(e){P(e.target.value)},label:"",value:v})})]})})}}}]);
//# sourceMappingURL=2112.c85537ec.chunk.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"static/js/2112.6b7837dd.chunk.js","mappings":"gPAkGA,UA/DkB,SAAC,GAIA,IAHjBA,EAGgB,EAHhBA,WACAC,EAEgB,EAFhBA,YACAC,EACgB,EADhBA,2BAEMC,GAAWC,EAAAA,EAAAA,MACjB,GAAkCC,EAAAA,EAAAA,UAAS,IAA3C,eAAOC,EAAP,KAAkBC,EAAlB,KAOA,GAAyCC,EAAAA,EAAAA,IALpB,kBAAMN,GAA2B,EAAjC,IACF,SAACO,GAAD,OACjBN,GAASO,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAkBA,OACE,SAAC,IAAD,CACEC,MAAK,aACLC,YAAa,SACbC,OAAQf,EACRgB,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAvBoB,WAClBZ,IAAcL,EAAYkB,KAS9BP,EACE,SADa,6BAESX,EAAYmB,UAFrB,oBAE0CnB,EAAYoB,OAFtD,gBAEoEpB,EAAYkB,OAV7FhB,GACEO,EAAAA,EAAAA,IAAqB,CACnBY,aAAc,wBACdC,cAAe,KAStB,EAUGC,QA5BY,kBAAMtB,GAA2B,EAAjC,EA6BZuB,mBAAoB,CAClBC,SAAUpB,IAAcL,EAAYkB,MAAQR,GAE9CgB,qBACE,UAAC,IAAD,uCAC0B,uBAAI1B,EAAYkB,OAD1C,gBAEE,SAAC,KAAD,CAAMS,MAAI,EAACC,GAAI,GAAf,UACE,SAAC,IAAD,CACEC,GAAG,aACHX,KAAK,aACLY,SAAU,SAACC,GACTzB,EAAayB,EAAMC,OAAOC,MAC3B,EACDC,MAAM,GACND,MAAO5B,UAOpB,C","sources":["screens/Console/Tenants/TenantDetails/DeletePVC.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { useState } from \"react\";\nimport { DialogContentText } from \"@mui/material\";\nimport InputBoxWrapper from \"../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport Grid from \"@mui/material/Grid\";\n\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../../icons\";\nimport { IStoragePVCs } from \"../../Storage/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IDeletePVC {\n deleteOpen: boolean;\n selectedPVC: IStoragePVCs;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeletePVC = ({\n deleteOpen,\n selectedPVC,\n closeDeleteModalAndRefresh,\n}: IDeletePVC) => {\n const dispatch = useAppDispatch();\n const [retypePVC, setRetypePVC] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypePVC !== selectedPVC.name) {\n dispatch(\n setErrorSnackMessage({\n errorMessage: \"PVC name is incorrect\",\n detailedError: \"\",\n })\n );\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedPVC.namespace}/tenants/${selectedPVC.tenant}/pvc/${selectedPVC.name}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete PVC`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypePVC !== selectedPVC.name || deleteLoading,\n }}\n confirmationContent={\n <DialogContentText>\n To continue please type <b>{selectedPVC.name}</b> in the box.\n <Grid item xs={12}>\n <InputBoxWrapper\n id=\"retype-PVC\"\n name=\"retype-PVC\"\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n setRetypePVC(event.target.value);\n }}\n label=\"\"\n value={retypePVC}\n />\n </Grid>\n </DialogContentText>\n }\n />\n );\n};\n\nexport default DeletePVC;\n"],"names":["deleteOpen","selectedPVC","closeDeleteModalAndRefresh","dispatch","useAppDispatch","useState","retypePVC","setRetypePVC","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","name","namespace","tenant","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","item","xs","id","onChange","event","target","value","label"],"sourceRoot":""}
{"version":3,"file":"static/js/2112.c85537ec.chunk.js","mappings":"gPAkGA,UA/DkB,SAAC,GAIA,IAHjBA,EAGgB,EAHhBA,WACAC,EAEgB,EAFhBA,YACAC,EACgB,EADhBA,2BAEMC,GAAWC,EAAAA,EAAAA,MACjB,GAAkCC,EAAAA,EAAAA,UAAS,IAA3C,eAAOC,EAAP,KAAkBC,EAAlB,KAOA,GAAyCC,EAAAA,EAAAA,IALpB,kBAAMN,GAA2B,EAAjC,IACF,SAACO,GAAD,OACjBN,GAASO,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAkBA,OACE,SAAC,IAAD,CACEC,MAAK,aACLC,YAAa,SACbC,OAAQf,EACRgB,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAvBoB,WAClBZ,IAAcL,EAAYkB,KAS9BP,EACE,SADa,6BAESX,EAAYmB,UAFrB,oBAE0CnB,EAAYoB,OAFtD,gBAEoEpB,EAAYkB,OAV7FhB,GACEO,EAAAA,EAAAA,IAAqB,CACnBY,aAAc,wBACdC,cAAe,KAStB,EAUGC,QA5BY,kBAAMtB,GAA2B,EAAjC,EA6BZuB,mBAAoB,CAClBC,SAAUpB,IAAcL,EAAYkB,MAAQR,GAE9CgB,qBACE,UAAC,IAAD,uCAC0B,uBAAI1B,EAAYkB,OAD1C,gBAEE,SAAC,KAAD,CAAMS,MAAI,EAACC,GAAI,GAAf,UACE,SAAC,IAAD,CACEC,GAAG,aACHX,KAAK,aACLY,SAAU,SAACC,GACTzB,EAAayB,EAAMC,OAAOC,MAC3B,EACDC,MAAM,GACND,MAAO5B,UAOpB,C","sources":["screens/Console/Tenants/TenantDetails/DeletePVC.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { useState } from \"react\";\nimport { DialogContentText } from \"@mui/material\";\nimport InputBoxWrapper from \"../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport Grid from \"@mui/material/Grid\";\n\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../../icons\";\nimport { IStoragePVCs } from \"../../Storage/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IDeletePVC {\n deleteOpen: boolean;\n selectedPVC: IStoragePVCs;\n closeDeleteModalAndRefresh: (refreshList: boolean) => any;\n}\n\nconst DeletePVC = ({\n deleteOpen,\n selectedPVC,\n closeDeleteModalAndRefresh,\n}: IDeletePVC) => {\n const dispatch = useAppDispatch();\n const [retypePVC, setRetypePVC] = useState(\"\");\n\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n const onConfirmDelete = () => {\n if (retypePVC !== selectedPVC.name) {\n dispatch(\n setErrorSnackMessage({\n errorMessage: \"PVC name is incorrect\",\n detailedError: \"\",\n })\n );\n return;\n }\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/namespaces/${selectedPVC.namespace}/tenants/${selectedPVC.tenant}/pvc/${selectedPVC.name}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete PVC`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmButtonProps={{\n disabled: retypePVC !== selectedPVC.name || deleteLoading,\n }}\n confirmationContent={\n <DialogContentText>\n To continue please type <b>{selectedPVC.name}</b> in the box.\n <Grid item xs={12}>\n <InputBoxWrapper\n id=\"retype-PVC\"\n name=\"retype-PVC\"\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n setRetypePVC(event.target.value);\n }}\n label=\"\"\n value={retypePVC}\n />\n </Grid>\n </DialogContentText>\n }\n />\n );\n};\n\nexport default DeletePVC;\n"],"names":["deleteOpen","selectedPVC","closeDeleteModalAndRefresh","dispatch","useAppDispatch","useState","retypePVC","setRetypePVC","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","name","namespace","tenant","errorMessage","detailedError","onClose","confirmButtonProps","disabled","confirmationContent","item","xs","id","onChange","event","target","value","label"],"sourceRoot":""}

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2185],{62185:function(e,t,n){n.r(t);var a=n(29439),r=n(1413),i=n(72791),l=n(16871),s=n(75952),o=n(56028),c=n(61889),u=n(21435),d=n(11135),f=n(25787),h=n(23814),m=n(60364),x=n(45248),p=n(38588),j=n(25469),v=n(87995),b=n(80184),Z=(0,m.$j)((function(e){return{simplePath:e.objectBrowser.simplePath}}));t.default=Z((0,f.Z)((function(e){return(0,d.Z)((0,r.Z)((0,r.Z)({},h.ID),h.DF))}))((function(e){var t=e.modalOpen,n=(e.folderName,e.bucketName),r=e.onClose,d=e.classes,f=e.existingFiles,h=e.simplePath,m=(0,j.TL)(),Z=(0,l.s0)(),w=(0,i.useState)(""),P=(0,a.Z)(w,2),C=P[0],g=P[1],k=(0,i.useState)(!1),F=(0,a.Z)(k,2),N=F[0],y=F[1],E=(0,i.useState)(n),S=(0,a.Z)(E,2),z=S[0],B=S[1];(0,i.useEffect)((function(){if(h){var e="".concat(n).concat(n.endsWith("/")||h.startsWith("/")?"":"/").concat(h);B(e)}}),[h,n]);var I=function(){var e="/";h&&(e=h.endsWith("/")?h:"".concat(h,"/"));if(-1===f.findIndex((function(t){return t.name===e+C}))){var t=C.split("/").filter((function(e){return""!==e.trim()})).join("/"),a="/buckets/".concat(n,"/browse/").concat((0,x.LL)("".concat(e).concat(t,"/")));Z(a),r()}else m((0,v.zb)({errorMessage:"Folder cannot have the same name as an existing file",detailedError:""}))};(0,i.useEffect)((function(){var e=!0;0===C.trim().length&&(e=!1),y(e)}),[C]);return(0,b.jsx)(i.Fragment,{children:(0,b.jsx)(o.Z,{modalOpen:t,title:"Choose or create a new path",onClose:r,titleIcon:(0,b.jsx)(p.Z9m,{}),children:(0,b.jsxs)(c.ZP,{container:!0,children:[(0,b.jsxs)(c.ZP,{item:!0,xs:12,className:d.formFieldRow,children:[(0,b.jsx)("strong",{children:"Current Path:"})," ",(0,b.jsx)("br",{}),(0,b.jsx)("div",{style:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:14,textAlign:"left"},dir:"rtl",children:z})]}),(0,b.jsx)(c.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,b.jsx)(u.Z,{value:C,label:"New Folder Path",id:"folderPath",name:"folderPath",placeholder:"Enter the new Folder Path",onChange:function(e){g(e.target.value)},onKeyPress:function(e){"Enter"===e.code&&""!==C&&I()},required:!0})}),(0,b.jsxs)(c.ZP,{item:!0,xs:12,className:d.modalButtonBar,children:[(0,b.jsx)(s.zx,{id:"clear",type:"button",color:"primary",variant:"regular",onClick:function(){g("")},label:"Clear"}),(0,b.jsx)(s.zx,{id:"create",type:"submit",variant:"callAction",disabled:!N,onClick:I,label:"Create"})]})]})})})})))}}]);
//# sourceMappingURL=2185.a1da3e17.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2185],{62185:function(e,t,n){n.r(t);var a=n(29439),r=n(1413),i=n(72791),l=n(16871),s=n(75952),o=n(56028),c=n(61889),u=n(21435),d=n(11135),f=n(25787),h=n(23814),m=n(60364),x=n(45248),p=n(56096),j=n(25469),v=n(87995),b=n(80184),Z=(0,m.$j)((function(e){return{simplePath:e.objectBrowser.simplePath}}));t.default=Z((0,f.Z)((function(e){return(0,d.Z)((0,r.Z)((0,r.Z)({},h.ID),h.DF))}))((function(e){var t=e.modalOpen,n=(e.folderName,e.bucketName),r=e.onClose,d=e.classes,f=e.existingFiles,h=e.simplePath,m=(0,j.TL)(),Z=(0,l.s0)(),w=(0,i.useState)(""),P=(0,a.Z)(w,2),C=P[0],g=P[1],k=(0,i.useState)(!1),F=(0,a.Z)(k,2),N=F[0],y=F[1],E=(0,i.useState)(n),S=(0,a.Z)(E,2),z=S[0],B=S[1];(0,i.useEffect)((function(){if(h){var e="".concat(n).concat(n.endsWith("/")||h.startsWith("/")?"":"/").concat(h);B(e)}}),[h,n]);var I=function(){var e="/";h&&(e=h.endsWith("/")?h:"".concat(h,"/"));if(-1===f.findIndex((function(t){return t.name===e+C}))){var t=C.split("/").filter((function(e){return""!==e.trim()})).join("/"),a="/buckets/".concat(n,"/browse/").concat((0,x.LL)("".concat(e).concat(t,"/")));Z(a),r()}else m((0,v.zb)({errorMessage:"Folder cannot have the same name as an existing file",detailedError:""}))};(0,i.useEffect)((function(){var e=!0;0===C.trim().length&&(e=!1),y(e)}),[C]);return(0,b.jsx)(i.Fragment,{children:(0,b.jsx)(o.Z,{modalOpen:t,title:"Choose or create a new path",onClose:r,titleIcon:(0,b.jsx)(p.Z9m,{}),children:(0,b.jsxs)(c.ZP,{container:!0,children:[(0,b.jsxs)(c.ZP,{item:!0,xs:12,className:d.formFieldRow,children:[(0,b.jsx)("strong",{children:"Current Path:"})," ",(0,b.jsx)("br",{}),(0,b.jsx)("div",{style:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:14,textAlign:"left"},dir:"rtl",children:z})]}),(0,b.jsx)(c.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,b.jsx)(u.Z,{value:C,label:"New Folder Path",id:"folderPath",name:"folderPath",placeholder:"Enter the new Folder Path",onChange:function(e){g(e.target.value)},onKeyPress:function(e){"Enter"===e.code&&""!==C&&I()},required:!0})}),(0,b.jsxs)(c.ZP,{item:!0,xs:12,className:d.modalButtonBar,children:[(0,b.jsx)(s.zx,{id:"clear",type:"button",color:"primary",variant:"regular",onClick:function(){g("")},label:"Clear"}),(0,b.jsx)(s.zx,{id:"create",type:"submit",variant:"callAction",disabled:!N,onClick:I,label:"Create"})]})]})})})})))}}]);
//# sourceMappingURL=2185.164ae281.chunk.js.map

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2338],{51654:function(e,t,n){n(72791);var r=n(64554),i=n(80184);t.Z=function(e){var t=e.children;return(0,i.jsx)(r.Z,{sx:{border:"1px solid #eaeaea",padding:{lg:"40px",xs:"15px"}},children:t})}},72338:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var r=n(72791),i=n(16871),o=n(64554),s=n(34345),a=n(56087),l=n(32291),c=n(84669),u=n(74794),g=n(80184),d=function(e){var t=e.onClick,n=e.icon,r=e.name;return(0,g.jsxs)("button",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:10,background:"transparent",border:"1px solid #E5E5E5",borderRadius:2,cursor:"pointer"},onClick:function(){t(r)},children:[n?(0,g.jsx)(o.Z,{sx:{"& .min-icon":{height:"60px",width:"60px"}},children:n}):null,(0,g.jsx)("div",{style:{fontWeight:600,marginLeft:20},children:r})]})},x=n(51654),f=function(){var e=(0,i.s0)();return(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(l.Z,{label:(0,g.jsx)(r.Fragment,{children:(0,g.jsx)(c.Z,{to:a.gA.TIERS,label:"Tier Types"})}),actions:(0,g.jsx)(r.Fragment,{})}),(0,g.jsx)(u.Z,{children:(0,g.jsxs)(x.Z,{children:[(0,g.jsx)("div",{style:{fontSize:16,fontWeight:600,paddingBottom:15},children:"Select Tier Type"}),(0,g.jsx)(o.Z,{sx:{margin:"0 auto",display:"grid",gridGap:"47px",gridTemplateColumns:{xs:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)",lg:"repeat(4, 1fr)"}},children:s.Bh.map((function(t,n){return(0,g.jsx)(d,{name:t.targetTitle,onClick:function(){var n;n=t.serviceName,e("".concat(a.gA.TIERS_ADD,"/").concat(n))},icon:t.logo},"tierOpt-".concat(n.toString,"-").concat(t.targetTitle))}))})]})})]})}},34345:function(e,t,n){n.d(t,{Bh:function(){return c},Pp:function(){return o},b2:function(){return a},f0:function(){return s},vB:function(){return l}});var r=n(38588),i=n(80184),o="minio",s="gcs",a="s3",l="azure",c=[{serviceName:o,targetTitle:"MinIO",logo:(0,i.jsx)(r.$E9,{}),logoXs:(0,i.jsx)(r.YEz,{})},{serviceName:s,targetTitle:"Google Cloud Storage",logo:(0,i.jsx)(r.UQG,{}),logoXs:(0,i.jsx)(r.Vwu,{})},{serviceName:a,targetTitle:"AWS S3",logo:(0,i.jsx)(r.feu,{}),logoXs:(0,i.jsx)(r.Xj3,{})},{serviceName:l,targetTitle:"Azure",logo:(0,i.jsx)(r.jze,{}),logoXs:(0,i.jsx)(r.nAe,{})}]}}]);
//# sourceMappingURL=2338.0ee15506.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2338],{51654:function(e,t,n){n(72791);var r=n(64554),i=n(80184);t.Z=function(e){var t=e.children;return(0,i.jsx)(r.Z,{sx:{border:"1px solid #eaeaea",padding:{lg:"40px",xs:"15px"}},children:t})}},72338:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var r=n(72791),i=n(16871),o=n(64554),s=n(34345),a=n(56087),l=n(32291),c=n(84669),u=n(74794),g=n(80184),d=function(e){var t=e.onClick,n=e.icon,r=e.name;return(0,g.jsxs)("button",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:10,background:"transparent",border:"1px solid #E5E5E5",borderRadius:2,cursor:"pointer"},onClick:function(){t(r)},children:[n?(0,g.jsx)(o.Z,{sx:{"& .min-icon":{height:"60px",width:"60px"}},children:n}):null,(0,g.jsx)("div",{style:{fontWeight:600,marginLeft:20},children:r})]})},x=n(51654),f=function(){var e=(0,i.s0)();return(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(l.Z,{label:(0,g.jsx)(r.Fragment,{children:(0,g.jsx)(c.Z,{to:a.gA.TIERS,label:"Tier Types"})}),actions:(0,g.jsx)(r.Fragment,{})}),(0,g.jsx)(u.Z,{children:(0,g.jsxs)(x.Z,{children:[(0,g.jsx)("div",{style:{fontSize:16,fontWeight:600,paddingBottom:15},children:"Select Tier Type"}),(0,g.jsx)(o.Z,{sx:{margin:"0 auto",display:"grid",gridGap:"47px",gridTemplateColumns:{xs:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)",lg:"repeat(4, 1fr)"}},children:s.Bh.map((function(t,n){return(0,g.jsx)(d,{name:t.targetTitle,onClick:function(){var n;n=t.serviceName,e("".concat(a.gA.TIERS_ADD,"/").concat(n))},icon:t.logo},"tierOpt-".concat(n.toString,"-").concat(t.targetTitle))}))})]})})]})}},34345:function(e,t,n){n.d(t,{Bh:function(){return c},Pp:function(){return o},b2:function(){return a},f0:function(){return s},vB:function(){return l}});var r=n(56096),i=n(80184),o="minio",s="gcs",a="s3",l="azure",c=[{serviceName:o,targetTitle:"MinIO",logo:(0,i.jsx)(r.$E9,{}),logoXs:(0,i.jsx)(r.YEz,{})},{serviceName:s,targetTitle:"Google Cloud Storage",logo:(0,i.jsx)(r.UQG,{}),logoXs:(0,i.jsx)(r.Vwu,{})},{serviceName:a,targetTitle:"AWS S3",logo:(0,i.jsx)(r.feu,{}),logoXs:(0,i.jsx)(r.Xj3,{})},{serviceName:l,targetTitle:"Azure",logo:(0,i.jsx)(r.jze,{}),logoXs:(0,i.jsx)(r.nAe,{})}]}}]);
//# sourceMappingURL=2338.9785d021.chunk.js.map

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2408],{22763:function(e,t,n){n.r(t);var r=n(29439),u=n(1413),o=(n(72791),n(51691)),s=n(11135),a=n(25787),c=n(23814),i=n(9505),l=n(23508),f=n(38588),d=n(87995),p=n(25469),Z=n(80184);t.default=(0,a.Z)((function(e){return(0,s.Z)((0,u.Z)({},c.oO))}))((function(e){var t=e.deleteOpen,n=e.currentTags,s=e.selectedTag,a=e.onCloseAndUpdate,c=e.bucketName,T=e.classes,g=(0,p.TL)(),h=(0,r.Z)(s,2),k=h[0],x=h[1],C=(0,i.Z)((function(){return a(!0)}),(function(e){return g((0,d.Ih)(e))})),b=(0,r.Z)(C,2),m=b[0],v=b[1];if(!s)return null;return(0,Z.jsx)(l.Z,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,Z.jsx)(f.NvT,{}),isLoading:m,onConfirm:function(){var e=(0,u.Z)({},n);delete e[k],v("PUT","/api/v1/buckets/".concat(c,"/tags"),{tags:e})},onClose:function(){return a(!1)},confirmationContent:(0,Z.jsxs)(o.Z,{children:["Are you sure you want to delete the tag"," ",(0,Z.jsxs)("b",{className:T.wrapText,children:[k," : ",x]})," ","?"]})})}))}}]);
//# sourceMappingURL=2408.40adaebd.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2408],{22763:function(e,t,n){n.r(t);var r=n(29439),u=n(1413),o=(n(72791),n(51691)),s=n(11135),a=n(25787),c=n(23814),i=n(9505),l=n(23508),f=n(56096),d=n(87995),p=n(25469),Z=n(80184);t.default=(0,a.Z)((function(e){return(0,s.Z)((0,u.Z)({},c.oO))}))((function(e){var t=e.deleteOpen,n=e.currentTags,s=e.selectedTag,a=e.onCloseAndUpdate,c=e.bucketName,T=e.classes,g=(0,p.TL)(),h=(0,r.Z)(s,2),k=h[0],x=h[1],C=(0,i.Z)((function(){return a(!0)}),(function(e){return g((0,d.Ih)(e))})),b=(0,r.Z)(C,2),m=b[0],v=b[1];if(!s)return null;return(0,Z.jsx)(l.Z,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,Z.jsx)(f.NvT,{}),isLoading:m,onConfirm:function(){var e=(0,u.Z)({},n);delete e[k],v("PUT","/api/v1/buckets/".concat(c,"/tags"),{tags:e})},onClose:function(){return a(!1)},confirmationContent:(0,Z.jsxs)(o.Z,{children:["Are you sure you want to delete the tag"," ",(0,Z.jsxs)("b",{className:T.wrapText,children:[k," : ",x]})," ","?"]})})}))}}]);
//# sourceMappingURL=2408.4f7b17cd.chunk.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"static/js/2408.40adaebd.chunk.js","mappings":"qQAiGA,WAAeA,EAAAA,EAAAA,IA1DA,SAACC,GAAD,OACbC,EAAAA,EAAAA,IAAa,UACRC,EAAAA,IAFQ,GA0Df,EArD6B,SAAC,GAOA,IAN5BC,EAM2B,EAN3BA,WACAC,EAK2B,EAL3BA,YACAC,EAI2B,EAJ3BA,YACAC,EAG2B,EAH3BA,iBACAC,EAE2B,EAF3BA,WACAC,EAC2B,EAD3BA,QAEMC,GAAWC,EAAAA,EAAAA,MACjB,UAA2BL,EAA3B,GAAOM,EAAP,KAAeC,EAAf,KAOA,GAAyCC,EAAAA,EAAAA,IALpB,kBAAMP,GAAiB,EAAvB,IACF,SAACQ,GAAD,OACjBL,GAASM,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKZ,EACH,OAAO,KAYT,OACE,SAAC,IAAD,CACEa,MAAK,aACLC,YAAa,SACbC,OAAQjB,EACRkB,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAhBoB,WACtB,IAAMC,GAAW,UAAQpB,UAClBoB,EAAYb,GAEnBM,EAAgB,MAAD,0BAA2BV,EAA3B,SAA8C,CAC3DkB,KAAMD,GAET,EAUGE,QAzBY,kBAAMpB,GAAiB,EAAvB,EA0BZqB,qBACE,UAAC,IAAD,qDAC0C,KACxC,eAAGC,UAAWpB,EAAQqB,SAAtB,UACGlB,EADH,MACcC,KACT,IAJP,QAUP,G","sources":["screens/Console/Buckets/BucketDetails/DeleteBucketTagModal.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { modalBasic } from \"../../Common/FormComponents/common/styleLibrary\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../../icons\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IDeleteBucketTagModal {\n deleteOpen: boolean;\n currentTags: any;\n bucketName: string;\n selectedTag: string[];\n onCloseAndUpdate: (refresh: boolean) => void;\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...modalBasic,\n });\n\nconst DeleteBucketTagModal = ({\n deleteOpen,\n currentTags,\n selectedTag,\n onCloseAndUpdate,\n bucketName,\n classes,\n}: IDeleteBucketTagModal) => {\n const dispatch = useAppDispatch();\n const [tagKey, tagLabel] = selectedTag;\n\n const onDelSuccess = () => onCloseAndUpdate(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => onCloseAndUpdate(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedTag) {\n return null;\n }\n\n const onConfirmDelete = () => {\n const cleanObject = { ...currentTags };\n delete cleanObject[tagKey];\n\n invokeDeleteApi(\"PUT\", `/api/v1/buckets/${bucketName}/tags`, {\n tags: cleanObject,\n });\n };\n\n return (\n <ConfirmDialog\n title={`Delete Tag`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete the tag{\" \"}\n <b className={classes.wrapText}>\n {tagKey} : {tagLabel}\n </b>{\" \"}\n ?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default withStyles(styles)(DeleteBucketTagModal);\n"],"names":["withStyles","theme","createStyles","modalBasic","deleteOpen","currentTags","selectedTag","onCloseAndUpdate","bucketName","classes","dispatch","useAppDispatch","tagKey","tagLabel","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","cleanObject","tags","onClose","confirmationContent","className","wrapText"],"sourceRoot":""}
{"version":3,"file":"static/js/2408.4f7b17cd.chunk.js","mappings":"qQAiGA,WAAeA,EAAAA,EAAAA,IA1DA,SAACC,GAAD,OACbC,EAAAA,EAAAA,IAAa,UACRC,EAAAA,IAFQ,GA0Df,EArD6B,SAAC,GAOA,IAN5BC,EAM2B,EAN3BA,WACAC,EAK2B,EAL3BA,YACAC,EAI2B,EAJ3BA,YACAC,EAG2B,EAH3BA,iBACAC,EAE2B,EAF3BA,WACAC,EAC2B,EAD3BA,QAEMC,GAAWC,EAAAA,EAAAA,MACjB,UAA2BL,EAA3B,GAAOM,EAAP,KAAeC,EAAf,KAOA,GAAyCC,EAAAA,EAAAA,IALpB,kBAAMP,GAAiB,EAAvB,IACF,SAACQ,GAAD,OACjBL,GAASM,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKZ,EACH,OAAO,KAYT,OACE,SAAC,IAAD,CACEa,MAAK,aACLC,YAAa,SACbC,OAAQjB,EACRkB,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAhBoB,WACtB,IAAMC,GAAW,UAAQpB,UAClBoB,EAAYb,GAEnBM,EAAgB,MAAD,0BAA2BV,EAA3B,SAA8C,CAC3DkB,KAAMD,GAET,EAUGE,QAzBY,kBAAMpB,GAAiB,EAAvB,EA0BZqB,qBACE,UAAC,IAAD,qDAC0C,KACxC,eAAGC,UAAWpB,EAAQqB,SAAtB,UACGlB,EADH,MACcC,KACT,IAJP,QAUP,G","sources":["screens/Console/Buckets/BucketDetails/DeleteBucketTagModal.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { modalBasic } from \"../../Common/FormComponents/common/styleLibrary\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../../icons\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IDeleteBucketTagModal {\n deleteOpen: boolean;\n currentTags: any;\n bucketName: string;\n selectedTag: string[];\n onCloseAndUpdate: (refresh: boolean) => void;\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...modalBasic,\n });\n\nconst DeleteBucketTagModal = ({\n deleteOpen,\n currentTags,\n selectedTag,\n onCloseAndUpdate,\n bucketName,\n classes,\n}: IDeleteBucketTagModal) => {\n const dispatch = useAppDispatch();\n const [tagKey, tagLabel] = selectedTag;\n\n const onDelSuccess = () => onCloseAndUpdate(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => onCloseAndUpdate(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedTag) {\n return null;\n }\n\n const onConfirmDelete = () => {\n const cleanObject = { ...currentTags };\n delete cleanObject[tagKey];\n\n invokeDeleteApi(\"PUT\", `/api/v1/buckets/${bucketName}/tags`, {\n tags: cleanObject,\n });\n };\n\n return (\n <ConfirmDialog\n title={`Delete Tag`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete the tag{\" \"}\n <b className={classes.wrapText}>\n {tagKey} : {tagLabel}\n </b>{\" \"}\n ?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default withStyles(styles)(DeleteBucketTagModal);\n"],"names":["withStyles","theme","createStyles","modalBasic","deleteOpen","currentTags","selectedTag","onCloseAndUpdate","bucketName","classes","dispatch","useAppDispatch","tagKey","tagLabel","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","cleanObject","tags","onClose","confirmationContent","className","wrapText"],"sourceRoot":""}

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[247],{40247:function(e,a,n){n.r(a);var t=n(29439),s=n(1413),l=n(72791),i=n(75952),o=n(61889),r=n(11135),c=n(25787),d=n(23814),u=n(21435),m=n(56028),Z=n(81207),g=n(38588),p=n(87995),f=n(25469),x=n(80184);a.default=(0,c.Z)((function(e){return(0,r.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},d.DF),d.ID),d.bK))}))((function(e){var a=e.modalOpen,n=e.currentTags,r=e.onCloseAndUpdate,c=e.bucketName,d=e.classes,h=(0,f.TL)(),v=(0,l.useState)(""),b=(0,t.Z)(v,2),j=b[0],N=b[1],k=(0,l.useState)(""),C=(0,t.Z)(k,2),w=C[0],T=C[1],y=(0,l.useState)(!1),B=(0,t.Z)(y,2),S=B[0],E=B[1];return(0,x.jsx)(m.Z,{modalOpen:a,title:"Add New Tag ",onClose:function(){r(!1)},titleIcon:(0,x.jsx)(g.OCT,{}),children:(0,x.jsxs)(o.ZP,{container:!0,children:[(0,x.jsxs)("div",{className:d.spacerBottom,children:[(0,x.jsx)("strong",{children:"Bucket"}),": ",c]}),(0,x.jsx)(o.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,x.jsx)(u.Z,{value:j,label:"New Tag Key",id:"newTagKey",name:"newTagKey",placeholder:"Enter New Tag Key",onChange:function(e){N(e.target.value)}})}),(0,x.jsx)(o.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,x.jsx)(u.Z,{value:w,label:"New Tag Label",id:"newTagLabel",name:"newTagLabel",placeholder:"Enter New Tag Label",onChange:function(e){T(e.target.value)}})}),(0,x.jsxs)(o.ZP,{item:!0,xs:12,className:d.modalButtonBar,children:[(0,x.jsx)(i.zx,{id:"clear",type:"button",variant:"regular",onClick:function(){T(""),N("")},label:"Clear"}),(0,x.jsx)(i.zx,{id:"save-add-bucket-tag",type:"submit",variant:"callAction",color:"primary",disabled:""===w.trim()||""===j.trim()||S,onClick:function(){E(!0);var e={};e[j]=w;var a=(0,s.Z)((0,s.Z)({},n),e);Z.Z.invoke("PUT","/api/v1/buckets/".concat(c,"/tags"),{tags:a}).then((function(e){E(!1),r(!0)})).catch((function(e){h((0,p.zb)(e)),E(!1)}))},label:"Save"})]})]})})}))},56028:function(e,a,n){var t=n(29439),s=n(1413),l=n(72791),i=n(60364),o=n(13400),r=n(55646),c=n(5574),d=n(65661),u=n(39157),m=n(11135),Z=n(25787),g=n(23814),p=n(25469),f=n(29823),x=n(28057),h=n(87995),v=n(80184);a.Z=(0,Z.Z)((function(e){return(0,m.Z)((0,s.Z)((0,s.Z)({},g.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},g.sN))}))((function(e){var a=e.onClose,n=e.modalOpen,m=e.title,Z=e.children,g=e.classes,b=e.wideLimit,j=void 0===b||b,N=e.noContentPadding,k=e.titleIcon,C=void 0===k?null:k,w=(0,p.TL)(),T=(0,l.useState)(!1),y=(0,t.Z)(T,2),B=y[0],S=y[1],E=(0,i.v9)((function(e){return e.system.modalSnackBar}));(0,l.useEffect)((function(){w((0,h.MK)(""))}),[w]),(0,l.useEffect)((function(){if(E){if(""===E.message)return void S(!1);"error"!==E.type&&S(!0)}}),[E]);var K=j?{classes:{paper:g.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},L="";return E&&(L=E.detailedErrorMsg,(""===E.detailedErrorMsg||E.detailedErrorMsg.length<5)&&(L=E.message)),(0,v.jsxs)(c.Z,(0,s.Z)((0,s.Z)({open:n,classes:g},K),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&a()},className:g.root,children:[(0,v.jsxs)(d.Z,{className:g.title,children:[(0,v.jsxs)("div",{className:g.titleText,children:[C," ",m]}),(0,v.jsx)("div",{className:g.closeContainer,children:(0,v.jsx)(o.Z,{"aria-label":"close",id:"close",className:g.closeButton,onClick:a,disableRipple:!0,size:"small",children:(0,v.jsx)(f.Z,{})})})]}),(0,v.jsx)(x.Z,{isModal:!0}),(0,v.jsx)(r.Z,{open:B,className:g.snackBarModal,onClose:function(){S(!1),w((0,h.MK)(""))},message:L,ContentProps:{className:"".concat(g.snackBar," ").concat(E&&"error"===E.type?g.errorSnackBar:"")},autoHideDuration:E&&"error"===E.type?1e4:5e3}),(0,v.jsx)(u.Z,{className:N?"":g.content,children:Z})]}))}))}}]);
//# sourceMappingURL=247.b3ec6497.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[247],{40247:function(e,a,n){n.r(a);var t=n(29439),s=n(1413),l=n(72791),i=n(75952),o=n(61889),r=n(11135),c=n(25787),d=n(23814),u=n(21435),m=n(56028),Z=n(81207),g=n(56096),p=n(87995),f=n(25469),x=n(80184);a.default=(0,c.Z)((function(e){return(0,r.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},d.DF),d.ID),d.bK))}))((function(e){var a=e.modalOpen,n=e.currentTags,r=e.onCloseAndUpdate,c=e.bucketName,d=e.classes,h=(0,f.TL)(),v=(0,l.useState)(""),b=(0,t.Z)(v,2),j=b[0],N=b[1],k=(0,l.useState)(""),C=(0,t.Z)(k,2),w=C[0],T=C[1],y=(0,l.useState)(!1),B=(0,t.Z)(y,2),S=B[0],E=B[1];return(0,x.jsx)(m.Z,{modalOpen:a,title:"Add New Tag ",onClose:function(){r(!1)},titleIcon:(0,x.jsx)(g.OCT,{}),children:(0,x.jsxs)(o.ZP,{container:!0,children:[(0,x.jsxs)("div",{className:d.spacerBottom,children:[(0,x.jsx)("strong",{children:"Bucket"}),": ",c]}),(0,x.jsx)(o.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,x.jsx)(u.Z,{value:j,label:"New Tag Key",id:"newTagKey",name:"newTagKey",placeholder:"Enter New Tag Key",onChange:function(e){N(e.target.value)}})}),(0,x.jsx)(o.ZP,{item:!0,xs:12,className:d.formFieldRow,children:(0,x.jsx)(u.Z,{value:w,label:"New Tag Label",id:"newTagLabel",name:"newTagLabel",placeholder:"Enter New Tag Label",onChange:function(e){T(e.target.value)}})}),(0,x.jsxs)(o.ZP,{item:!0,xs:12,className:d.modalButtonBar,children:[(0,x.jsx)(i.zx,{id:"clear",type:"button",variant:"regular",onClick:function(){T(""),N("")},label:"Clear"}),(0,x.jsx)(i.zx,{id:"save-add-bucket-tag",type:"submit",variant:"callAction",color:"primary",disabled:""===w.trim()||""===j.trim()||S,onClick:function(){E(!0);var e={};e[j]=w;var a=(0,s.Z)((0,s.Z)({},n),e);Z.Z.invoke("PUT","/api/v1/buckets/".concat(c,"/tags"),{tags:a}).then((function(e){E(!1),r(!0)})).catch((function(e){h((0,p.zb)(e)),E(!1)}))},label:"Save"})]})]})})}))},56028:function(e,a,n){var t=n(29439),s=n(1413),l=n(72791),i=n(60364),o=n(13400),r=n(55646),c=n(5574),d=n(65661),u=n(39157),m=n(11135),Z=n(25787),g=n(23814),p=n(25469),f=n(29823),x=n(28057),h=n(87995),v=n(80184);a.Z=(0,Z.Z)((function(e){return(0,m.Z)((0,s.Z)((0,s.Z)({},g.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},g.sN))}))((function(e){var a=e.onClose,n=e.modalOpen,m=e.title,Z=e.children,g=e.classes,b=e.wideLimit,j=void 0===b||b,N=e.noContentPadding,k=e.titleIcon,C=void 0===k?null:k,w=(0,p.TL)(),T=(0,l.useState)(!1),y=(0,t.Z)(T,2),B=y[0],S=y[1],E=(0,i.v9)((function(e){return e.system.modalSnackBar}));(0,l.useEffect)((function(){w((0,h.MK)(""))}),[w]),(0,l.useEffect)((function(){if(E){if(""===E.message)return void S(!1);"error"!==E.type&&S(!0)}}),[E]);var K=j?{classes:{paper:g.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},L="";return E&&(L=E.detailedErrorMsg,(""===E.detailedErrorMsg||E.detailedErrorMsg.length<5)&&(L=E.message)),(0,v.jsxs)(c.Z,(0,s.Z)((0,s.Z)({open:n,classes:g},K),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&a()},className:g.root,children:[(0,v.jsxs)(d.Z,{className:g.title,children:[(0,v.jsxs)("div",{className:g.titleText,children:[C," ",m]}),(0,v.jsx)("div",{className:g.closeContainer,children:(0,v.jsx)(o.Z,{"aria-label":"close",id:"close",className:g.closeButton,onClick:a,disableRipple:!0,size:"small",children:(0,v.jsx)(f.Z,{})})})]}),(0,v.jsx)(x.Z,{isModal:!0}),(0,v.jsx)(r.Z,{open:B,className:g.snackBarModal,onClose:function(){S(!1),w((0,h.MK)(""))},message:L,ContentProps:{className:"".concat(g.snackBar," ").concat(E&&"error"===E.type?g.errorSnackBar:"")},autoHideDuration:E&&"error"===E.type?1e4:5e3}),(0,v.jsx)(u.Z,{className:N?"":g.content,children:Z})]}))}))}}]);
//# sourceMappingURL=247.908c948c.chunk.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[312],{312:function(e,n,t){t.r(n);var o=t(29439),i=(t(72791),t(51691)),r=t(9505),l=t(23508),c=t(38588),u=t(45248),s=t(87995),f=t(25469),a=t(80184);n.default=function(e){var n=e.closeDeleteModalAndRefresh,t=e.deleteOpen,p=e.selectedPolicy,d=(0,f.TL)(),h=(0,r.Z)((function(){return n(!0)}),(function(e){return d((0,s.Ih)(e))})),x=(0,o.Z)(h,2),y=x[0],j=x[1];if(!p)return null;return(0,a.jsx)(l.Z,{title:"Delete Policy",confirmText:"Delete",isOpen:t,titleIcon:(0,a.jsx)(c.NvT,{}),isLoading:y,onConfirm:function(){j("DELETE","/api/v1/policy/".concat((0,u.LL)(p)))},onClose:function(){return n(!1)},confirmationContent:(0,a.jsxs)(i.Z,{children:["Are you sure you want to delete policy ",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:p}),"?"]})})}}}]);
//# sourceMappingURL=312.3a15e683.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[312],{312:function(e,n,t){t.r(n);var o=t(29439),i=(t(72791),t(51691)),r=t(9505),l=t(23508),c=t(56096),u=t(45248),s=t(87995),f=t(25469),a=t(80184);n.default=function(e){var n=e.closeDeleteModalAndRefresh,t=e.deleteOpen,p=e.selectedPolicy,d=(0,f.TL)(),h=(0,r.Z)((function(){return n(!0)}),(function(e){return d((0,s.Ih)(e))})),x=(0,o.Z)(h,2),y=x[0],j=x[1];if(!p)return null;return(0,a.jsx)(l.Z,{title:"Delete Policy",confirmText:"Delete",isOpen:t,titleIcon:(0,a.jsx)(c.NvT,{}),isLoading:y,onConfirm:function(){j("DELETE","/api/v1/policy/".concat((0,u.LL)(p)))},onClose:function(){return n(!1)},confirmationContent:(0,a.jsxs)(i.Z,{children:["Are you sure you want to delete policy ",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:p}),"?"]})})}}}]);
//# sourceMappingURL=312.770148c8.chunk.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"static/js/312.3a15e683.chunk.js","mappings":"kOA4EA,UA3CqB,SAAC,GAIK,IAHzBA,EAGwB,EAHxBA,2BACAC,EAEwB,EAFxBA,WACAC,EACwB,EADxBA,eAEMC,GAAWC,EAAAA,EAAAA,MAMjB,GAAyCC,EAAAA,EAAAA,IALpB,kBAAML,GAA2B,EAAjC,IACF,SAACM,GAAD,OACjBH,GAASI,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKP,EACH,OAAO,KAUT,OACE,SAAC,IAAD,CACEQ,MAAK,gBACLC,YAAa,SACbC,OAAQX,EACRY,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAdoB,WACtBN,EACE,SADa,0BAEKO,EAAAA,EAAAA,IAAgBd,IAErC,EAUGe,QAvBY,kBAAMjB,GAA2B,EAAjC,EAwBZkB,qBACE,UAAC,IAAD,sDACyC,mBACvC,uBAAIhB,IAFN,QAOP,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 from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\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 onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedPolicy) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/policy/${encodeURLString(selectedPolicy)}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Policy`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete policy <br />\n <b>{selectedPolicy}</b>?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default DeletePolicy;\n"],"names":["closeDeleteModalAndRefresh","deleteOpen","selectedPolicy","dispatch","useAppDispatch","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","encodeURLString","onClose","confirmationContent"],"sourceRoot":""}
{"version":3,"file":"static/js/312.770148c8.chunk.js","mappings":"kOA4EA,UA3CqB,SAAC,GAIK,IAHzBA,EAGwB,EAHxBA,2BACAC,EAEwB,EAFxBA,WACAC,EACwB,EADxBA,eAEMC,GAAWC,EAAAA,EAAAA,MAMjB,GAAyCC,EAAAA,EAAAA,IALpB,kBAAML,GAA2B,EAAjC,IACF,SAACM,GAAD,OACjBH,GAASI,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKP,EACH,OAAO,KAUT,OACE,SAAC,IAAD,CACEQ,MAAK,gBACLC,YAAa,SACbC,OAAQX,EACRY,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAdoB,WACtBN,EACE,SADa,0BAEKO,EAAAA,EAAAA,IAAgBd,IAErC,EAUGe,QAvBY,kBAAMjB,GAA2B,EAAjC,EAwBZkB,qBACE,UAAC,IAAD,sDACyC,mBACvC,uBAAIhB,IAFN,QAOP,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 from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\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 onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedPolicy) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/policy/${encodeURLString(selectedPolicy)}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Policy`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete policy <br />\n <b>{selectedPolicy}</b>?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default DeletePolicy;\n"],"names":["closeDeleteModalAndRefresh","deleteOpen","selectedPolicy","dispatch","useAppDispatch","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","encodeURLString","onClose","confirmationContent"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3956],{23956:function(e,n,t){t.r(n);var r=t(29439),c=(t(72791),t(11135)),o=t(25787),s=t(51691),i=t(9505),u=t(23508),a=t(38588),l=t(45248),f=t(87995),p=t(25469),d=t(80184);n.default=(0,o.Z)((function(e){return(0,c.Z)({wrapText:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"}})}))((function(e){var n=e.classes,t=e.closeDeleteModalAndRefresh,c=e.deleteOpen,o=e.selectedServiceAccount,h=(0,p.TL)(),x=(0,i.Z)((function(){return t(!0)}),(function(e){return h((0,f.Ih)(e))})),w=(0,r.Z)(x,2),m=w[0],v=w[1];if(!o)return null;return(0,d.jsx)(u.Z,{title:"Delete Access Key",confirmText:"Delete",isOpen:c,titleIcon:(0,d.jsx)(a.NvT,{}),isLoading:m,onConfirm:function(){v("DELETE","/api/v1/service-accounts/".concat((0,l.LL)(o)))},onClose:function(){return t(!1)},confirmationContent:(0,d.jsxs)(s.Z,{children:["Are you sure you want to delete Access Key"," ",(0,d.jsx)("b",{className:n.wrapText,children:o}),"?"]})})}))}}]);
//# sourceMappingURL=3956.693e1c1b.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3956],{23956:function(e,n,t){t.r(n);var r=t(29439),c=(t(72791),t(11135)),o=t(25787),s=t(51691),i=t(9505),u=t(23508),a=t(56096),l=t(45248),f=t(87995),p=t(25469),d=t(80184);n.default=(0,o.Z)((function(e){return(0,c.Z)({wrapText:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"}})}))((function(e){var n=e.classes,t=e.closeDeleteModalAndRefresh,c=e.deleteOpen,o=e.selectedServiceAccount,h=(0,p.TL)(),x=(0,i.Z)((function(){return t(!0)}),(function(e){return h((0,f.Ih)(e))})),w=(0,r.Z)(x,2),m=w[0],v=w[1];if(!o)return null;return(0,d.jsx)(u.Z,{title:"Delete Access Key",confirmText:"Delete",isOpen:c,titleIcon:(0,d.jsx)(a.NvT,{}),isLoading:m,onConfirm:function(){v("DELETE","/api/v1/service-accounts/".concat((0,l.LL)(o)))},onClose:function(){return t(!1)},confirmationContent:(0,d.jsxs)(s.Z,{children:["Are you sure you want to delete Access Key"," ",(0,d.jsx)("b",{className:n.wrapText,children:o}),"?"]})})}))}}]);
//# sourceMappingURL=3956.81b98a64.chunk.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"static/js/3956.693e1c1b.chunk.js","mappings":"2PA2FA,WAAeA,EAAAA,EAAAA,IA5DA,SAACC,GAAD,OACbC,EAAAA,EAAAA,GAAa,CACXC,SAAU,CACRC,SAAU,QACVC,WAAY,SACZC,SAAU,eALD,GA4Df,EA5C6B,SAAC,GAKK,IAJjCC,EAIgC,EAJhCA,QACAC,EAGgC,EAHhCA,2BACAC,EAEgC,EAFhCA,WACAC,EACgC,EADhCA,uBAEMC,GAAWC,EAAAA,EAAAA,MAMjB,GAAyCC,EAAAA,EAAAA,IALpB,kBAAML,GAA2B,EAAjC,IACF,SAACM,GAAD,OACjBH,GAASI,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKP,EACH,OAAO,KAUT,OACE,SAAC,IAAD,CACEQ,MAAK,oBACLC,YAAa,SACbC,OAAQX,EACRY,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAdoB,WACtBN,EACE,SADa,oCAEeO,EAAAA,EAAAA,IAAgBd,IAE/C,EAUGe,QAvBY,kBAAMjB,GAA2B,EAAjC,EAwBZkB,qBACE,UAAC,IAAD,wDAC6C,KAC3C,cAAGC,UAAWpB,EAAQJ,SAAtB,SAAiCO,IAFnC,QAOP,G","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 from \"react\";\n\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { DialogContentText } from \"@mui/material\";\n\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n wrapText: {\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n },\n });\n\ninterface IDeleteServiceAccountProps {\n classes: any;\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedServiceAccount: string | null;\n}\n\nconst DeleteServiceAccount = ({\n classes,\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedServiceAccount,\n}: IDeleteServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedServiceAccount) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/service-accounts/${encodeURLString(selectedServiceAccount)}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Access Key`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete Access Key{\" \"}\n <b className={classes.wrapText}>{selectedServiceAccount}</b>?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default withStyles(styles)(DeleteServiceAccount);\n"],"names":["withStyles","theme","createStyles","wrapText","maxWidth","whiteSpace","wordWrap","classes","closeDeleteModalAndRefresh","deleteOpen","selectedServiceAccount","dispatch","useAppDispatch","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","encodeURLString","onClose","confirmationContent","className"],"sourceRoot":""}
{"version":3,"file":"static/js/3956.81b98a64.chunk.js","mappings":"2PA2FA,WAAeA,EAAAA,EAAAA,IA5DA,SAACC,GAAD,OACbC,EAAAA,EAAAA,GAAa,CACXC,SAAU,CACRC,SAAU,QACVC,WAAY,SACZC,SAAU,eALD,GA4Df,EA5C6B,SAAC,GAKK,IAJjCC,EAIgC,EAJhCA,QACAC,EAGgC,EAHhCA,2BACAC,EAEgC,EAFhCA,WACAC,EACgC,EADhCA,uBAEMC,GAAWC,EAAAA,EAAAA,MAMjB,GAAyCC,EAAAA,EAAAA,IALpB,kBAAML,GAA2B,EAAjC,IACF,SAACM,GAAD,OACjBH,GAASI,EAAAA,EAAAA,IAAqBD,GADb,IAInB,eAAOE,EAAP,KAAsBC,EAAtB,KAEA,IAAKP,EACH,OAAO,KAUT,OACE,SAAC,IAAD,CACEQ,MAAK,oBACLC,YAAa,SACbC,OAAQX,EACRY,WAAW,SAAC,MAAD,IACXC,UAAWN,EACXO,UAdoB,WACtBN,EACE,SADa,oCAEeO,EAAAA,EAAAA,IAAgBd,IAE/C,EAUGe,QAvBY,kBAAMjB,GAA2B,EAAjC,EAwBZkB,qBACE,UAAC,IAAD,wDAC6C,KAC3C,cAAGC,UAAWpB,EAAQJ,SAAtB,SAAiCO,IAFnC,QAOP,G","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 from \"react\";\n\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { DialogContentText } from \"@mui/material\";\n\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n wrapText: {\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n },\n });\n\ninterface IDeleteServiceAccountProps {\n classes: any;\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedServiceAccount: string | null;\n}\n\nconst DeleteServiceAccount = ({\n classes,\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedServiceAccount,\n}: IDeleteServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n\n if (!selectedServiceAccount) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/service-accounts/${encodeURLString(selectedServiceAccount)}`\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Access Key`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <DialogContentText>\n Are you sure you want to delete Access Key{\" \"}\n <b className={classes.wrapText}>{selectedServiceAccount}</b>?\n </DialogContentText>\n }\n />\n );\n};\n\nexport default withStyles(styles)(DeleteServiceAccount);\n"],"names":["withStyles","theme","createStyles","wrapText","maxWidth","whiteSpace","wordWrap","classes","closeDeleteModalAndRefresh","deleteOpen","selectedServiceAccount","dispatch","useAppDispatch","useApi","err","setErrorSnackMessage","deleteLoading","invokeDeleteApi","title","confirmText","isOpen","titleIcon","isLoading","onConfirm","encodeURLString","onClose","confirmationContent","className"],"sourceRoot":""}

View File

@@ -1,2 +1,2 @@
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[402],{70402:function(n,e,i){i.r(e);var t=i(29439),o=i(72791),s=i(51691),r=i(81207),c=i(23508),a=i(38588),l=i(87995),u=i(25469),d=i(80184);e.default=function(n){var e=n.closeVersioningModalAndRefresh,i=n.modalOpen,f=n.selectedBucket,h=n.versioningCurrentState,b=(0,u.TL)(),g=(0,o.useState)(!1),p=(0,t.Z)(g,2),v=p[0],j=p[1];return(0,d.jsx)(c.Z,{title:"Versioning on Bucket",confirmText:h?"Disable":"Enable",isOpen:i,isLoading:v,titleIcon:(0,d.jsx)(a.EjK,{}),onConfirm:function(){v||(j(!0),r.Z.invoke("PUT","/api/v1/buckets/".concat(f,"/versioning"),{versioning:!h}).then((function(){j(!1),e(!0)})).catch((function(n){j(!1),b((0,l.Ih)(n))})))},confirmButtonProps:{variant:"callAction"},onClose:function(){e(!1)},confirmationContent:(0,d.jsxs)(s.Z,{id:"alert-dialog-description",children:["Are you sure you want to"," ",(0,d.jsx)("strong",{children:h?"disable":"enable"})," ","versioning for this bucket?",h&&(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsx)("strong",{children:"File versions won't be automatically deleted."})]})]})})}}}]);
//# sourceMappingURL=402.626f6141.chunk.js.map
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[402],{70402:function(n,e,i){i.r(e);var t=i(29439),o=i(72791),s=i(51691),r=i(81207),c=i(23508),a=i(56096),l=i(87995),u=i(25469),d=i(80184);e.default=function(n){var e=n.closeVersioningModalAndRefresh,i=n.modalOpen,f=n.selectedBucket,h=n.versioningCurrentState,b=(0,u.TL)(),g=(0,o.useState)(!1),p=(0,t.Z)(g,2),v=p[0],j=p[1];return(0,d.jsx)(c.Z,{title:"Versioning on Bucket",confirmText:h?"Disable":"Enable",isOpen:i,isLoading:v,titleIcon:(0,d.jsx)(a.EjK,{}),onConfirm:function(){v||(j(!0),r.Z.invoke("PUT","/api/v1/buckets/".concat(f,"/versioning"),{versioning:!h}).then((function(){j(!1),e(!0)})).catch((function(n){j(!1),b((0,l.Ih)(n))})))},confirmButtonProps:{variant:"callAction"},onClose:function(){e(!1)},confirmationContent:(0,d.jsxs)(s.Z,{id:"alert-dialog-description",children:["Are you sure you want to"," ",(0,d.jsx)("strong",{children:h?"disable":"enable"})," ","versioning for this bucket?",h&&(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsx)("strong",{children:"File versions won't be automatically deleted."})]})]})})}}}]);
//# sourceMappingURL=402.46c69861.chunk.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"static/js/402.626f6141.chunk.js","mappings":"0NA+FA,UA7D8B,SAAC,GAKD,IAJ5BA,EAI2B,EAJ3BA,+BACAC,EAG2B,EAH3BA,UACAC,EAE2B,EAF3BA,eACAC,EAC2B,EAD3BA,uBAEMC,GAAWC,EAAAA,EAAAA,MACjB,GAAkDC,EAAAA,EAAAA,WAAkB,GAApE,eAAOC,EAAP,KAA0BC,EAA1B,KAsBA,OACE,SAAC,IAAD,CACEC,MAAK,uBACLC,YAAaP,EAAyB,UAAY,SAClDQ,OAAQV,EACRW,UAAWL,EACXM,WAAW,SAAC,MAAD,IACXC,UA3BqB,WACnBP,IAGJC,GAAqB,GAErBO,EAAAA,EAAAA,OACU,MADV,0BACoCb,EADpC,eACiE,CAC7Dc,YAAab,IAEdc,MAAK,WACJT,GAAqB,GACrBR,GAA+B,EAChC,IACAkB,OAAM,SAACC,GACNX,GAAqB,GACrBJ,GAASgB,EAAAA,EAAAA,IAAqBD,GAC/B,IACJ,EAUGE,mBAAoB,CAClBC,QAAS,cAEXC,QAAS,WACPvB,GAA+B,EAChC,EACDwB,qBACE,UAAC,IAAD,CAAmBC,GAAG,2BAAtB,qCAC2B,KACzB,4BAAStB,EAAyB,UAAY,WAAmB,IAFnE,8BAIGA,IACC,UAAC,EAAAuB,SAAD,YACE,mBACA,mBACA,qFAOb,C","sources":["screens/Console/Buckets/BucketDetails/EnableVersioningModal.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 { DialogContentText } from \"@mui/material\";\nimport api from \"../../../../common/api\";\n\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"../../../../icons\";\n\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IVersioningEventProps {\n closeVersioningModalAndRefresh: (refresh: boolean) => void;\n modalOpen: boolean;\n selectedBucket: string;\n versioningCurrentState: boolean;\n}\n\nconst EnableVersioningModal = ({\n closeVersioningModalAndRefresh,\n modalOpen,\n selectedBucket,\n versioningCurrentState,\n}: IVersioningEventProps) => {\n const dispatch = useAppDispatch();\n const [versioningLoading, setVersioningLoading] = useState<boolean>(false);\n\n const enableVersioning = () => {\n if (versioningLoading) {\n return;\n }\n setVersioningLoading(true);\n\n api\n .invoke(\"PUT\", `/api/v1/buckets/${selectedBucket}/versioning`, {\n versioning: !versioningCurrentState,\n })\n .then(() => {\n setVersioningLoading(false);\n closeVersioningModalAndRefresh(true);\n })\n .catch((err: ErrorResponseHandler) => {\n setVersioningLoading(false);\n dispatch(setErrorSnackMessage(err));\n });\n };\n\n return (\n <ConfirmDialog\n title={`Versioning on Bucket`}\n confirmText={versioningCurrentState ? \"Disable\" : \"Enable\"}\n isOpen={modalOpen}\n isLoading={versioningLoading}\n titleIcon={<ConfirmModalIcon />}\n onConfirm={enableVersioning}\n confirmButtonProps={{\n variant: \"callAction\",\n }}\n onClose={() => {\n closeVersioningModalAndRefresh(false);\n }}\n confirmationContent={\n <DialogContentText id=\"alert-dialog-description\">\n Are you sure you want to{\" \"}\n <strong>{versioningCurrentState ? \"disable\" : \"enable\"}</strong>{\" \"}\n versioning for this bucket?\n {versioningCurrentState && (\n <Fragment>\n <br />\n <br />\n <strong>File versions won't be automatically deleted.</strong>\n </Fragment>\n )}\n </DialogContentText>\n }\n />\n );\n};\n\nexport default EnableVersioningModal;\n"],"names":["closeVersioningModalAndRefresh","modalOpen","selectedBucket","versioningCurrentState","dispatch","useAppDispatch","useState","versioningLoading","setVersioningLoading","title","confirmText","isOpen","isLoading","titleIcon","onConfirm","api","versioning","then","catch","err","setErrorSnackMessage","confirmButtonProps","variant","onClose","confirmationContent","id","Fragment"],"sourceRoot":""}
{"version":3,"file":"static/js/402.46c69861.chunk.js","mappings":"0NA+FA,UA7D8B,SAAC,GAKD,IAJ5BA,EAI2B,EAJ3BA,+BACAC,EAG2B,EAH3BA,UACAC,EAE2B,EAF3BA,eACAC,EAC2B,EAD3BA,uBAEMC,GAAWC,EAAAA,EAAAA,MACjB,GAAkDC,EAAAA,EAAAA,WAAkB,GAApE,eAAOC,EAAP,KAA0BC,EAA1B,KAsBA,OACE,SAAC,IAAD,CACEC,MAAK,uBACLC,YAAaP,EAAyB,UAAY,SAClDQ,OAAQV,EACRW,UAAWL,EACXM,WAAW,SAAC,MAAD,IACXC,UA3BqB,WACnBP,IAGJC,GAAqB,GAErBO,EAAAA,EAAAA,OACU,MADV,0BACoCb,EADpC,eACiE,CAC7Dc,YAAab,IAEdc,MAAK,WACJT,GAAqB,GACrBR,GAA+B,EAChC,IACAkB,OAAM,SAACC,GACNX,GAAqB,GACrBJ,GAASgB,EAAAA,EAAAA,IAAqBD,GAC/B,IACJ,EAUGE,mBAAoB,CAClBC,QAAS,cAEXC,QAAS,WACPvB,GAA+B,EAChC,EACDwB,qBACE,UAAC,IAAD,CAAmBC,GAAG,2BAAtB,qCAC2B,KACzB,4BAAStB,EAAyB,UAAY,WAAmB,IAFnE,8BAIGA,IACC,UAAC,EAAAuB,SAAD,YACE,mBACA,mBACA,qFAOb,C","sources":["screens/Console/Buckets/BucketDetails/EnableVersioningModal.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 { DialogContentText } from \"@mui/material\";\nimport api from \"../../../../common/api\";\n\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"../../../../icons\";\n\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\n\ninterface IVersioningEventProps {\n closeVersioningModalAndRefresh: (refresh: boolean) => void;\n modalOpen: boolean;\n selectedBucket: string;\n versioningCurrentState: boolean;\n}\n\nconst EnableVersioningModal = ({\n closeVersioningModalAndRefresh,\n modalOpen,\n selectedBucket,\n versioningCurrentState,\n}: IVersioningEventProps) => {\n const dispatch = useAppDispatch();\n const [versioningLoading, setVersioningLoading] = useState<boolean>(false);\n\n const enableVersioning = () => {\n if (versioningLoading) {\n return;\n }\n setVersioningLoading(true);\n\n api\n .invoke(\"PUT\", `/api/v1/buckets/${selectedBucket}/versioning`, {\n versioning: !versioningCurrentState,\n })\n .then(() => {\n setVersioningLoading(false);\n closeVersioningModalAndRefresh(true);\n })\n .catch((err: ErrorResponseHandler) => {\n setVersioningLoading(false);\n dispatch(setErrorSnackMessage(err));\n });\n };\n\n return (\n <ConfirmDialog\n title={`Versioning on Bucket`}\n confirmText={versioningCurrentState ? \"Disable\" : \"Enable\"}\n isOpen={modalOpen}\n isLoading={versioningLoading}\n titleIcon={<ConfirmModalIcon />}\n onConfirm={enableVersioning}\n confirmButtonProps={{\n variant: \"callAction\",\n }}\n onClose={() => {\n closeVersioningModalAndRefresh(false);\n }}\n confirmationContent={\n <DialogContentText id=\"alert-dialog-description\">\n Are you sure you want to{\" \"}\n <strong>{versioningCurrentState ? \"disable\" : \"enable\"}</strong>{\" \"}\n versioning for this bucket?\n {versioningCurrentState && (\n <Fragment>\n <br />\n <br />\n <strong>File versions won't be automatically deleted.</strong>\n </Fragment>\n )}\n </DialogContentText>\n }\n />\n );\n};\n\nexport default EnableVersioningModal;\n"],"names":["closeVersioningModalAndRefresh","modalOpen","selectedBucket","versioningCurrentState","dispatch","useAppDispatch","useState","versioningLoading","setVersioningLoading","title","confirmText","isOpen","isLoading","titleIcon","onConfirm","api","versioning","then","catch","err","setErrorSnackMessage","confirmButtonProps","variant","onClose","confirmationContent","id","Fragment"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More