Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a838c763ea | ||
|
|
0afea63994 | ||
|
|
0df9487527 | ||
|
|
9274ee72ad | ||
|
|
2b6c3debb4 | ||
|
|
8dd6dd4e7f | ||
|
|
5e64c96497 | ||
|
|
54c0b4b8a2 | ||
|
|
31056e12ba |
@@ -80,7 +80,7 @@ var (
|
||||
minioSetUserStatusMock func(accessKey string, status madmin.AccountStatus) error
|
||||
|
||||
minioAccountInfoMock func(ctx context.Context) (madmin.AccountInfo, error)
|
||||
minioAddServiceAccountMock func(ctx context.Context, policy *iampolicy.Policy, user string, accessKey string, secretKey string, description string, name string, expiry *time.Time, status string) (madmin.Credentials, error)
|
||||
minioAddServiceAccountMock func(ctx context.Context, policy string, user string, accessKey string, secretKey string, description string, name string, expiry *time.Time, status string) (madmin.Credentials, error)
|
||||
minioListServiceAccountsMock func(ctx context.Context, user string) (madmin.ListServiceAccountsResp, error)
|
||||
minioDeleteServiceAccountMock func(ctx context.Context, serviceAccount string) error
|
||||
minioInfoServiceAccountMock func(ctx context.Context, serviceAccount string) (madmin.InfoServiceAccountResp, error)
|
||||
@@ -377,7 +377,7 @@ func (ac AdminClientMock) AccountInfo(ctx context.Context) (madmin.AccountInfo,
|
||||
return minioAccountInfoMock(ctx)
|
||||
}
|
||||
|
||||
func (ac AdminClientMock) addServiceAccount(ctx context.Context, policy *iampolicy.Policy, user string, accessKey string, secretKey string, description string, name string, expiry *time.Time, status string) (madmin.Credentials, error) {
|
||||
func (ac AdminClientMock) addServiceAccount(ctx context.Context, policy string, user string, accessKey string, secretKey string, description string, name string, expiry *time.Time, status string) (madmin.Credentials, error) {
|
||||
return minioAddServiceAccountMock(ctx, policy, user, accessKey, secretKey, description, name, expiry, status)
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ type MinioAdmin interface {
|
||||
heal(ctx context.Context, bucket, prefix string, healOpts madmin.HealOpts, clientToken string,
|
||||
forceStart, forceStop bool) (healStart madmin.HealStartSuccess, healTaskStatus madmin.HealTaskStatus, err error)
|
||||
// Service Accounts
|
||||
addServiceAccount(ctx context.Context, policy *iampolicy.Policy, user string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (madmin.Credentials, error)
|
||||
addServiceAccount(ctx context.Context, policy string, user string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (madmin.Credentials, error)
|
||||
listServiceAccounts(ctx context.Context, user string) (madmin.ListServiceAccountsResp, error)
|
||||
deleteServiceAccount(ctx context.Context, serviceAccount string) error
|
||||
infoServiceAccount(ctx context.Context, serviceAccount string) (madmin.InfoServiceAccountResp, error)
|
||||
@@ -305,13 +305,9 @@ func (ac AdminClient) getLogs(ctx context.Context, node string, lineCnt int, log
|
||||
}
|
||||
|
||||
// implements madmin.AddServiceAccount()
|
||||
func (ac AdminClient) addServiceAccount(ctx context.Context, policy *iampolicy.Policy, user string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (madmin.Credentials, error) {
|
||||
buf, err := json.Marshal(policy)
|
||||
if err != nil {
|
||||
return madmin.Credentials{}, err
|
||||
}
|
||||
func (ac AdminClient) addServiceAccount(ctx context.Context, policy string, user string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (madmin.Credentials, error) {
|
||||
return ac.Client.AddServiceAccount(ctx, madmin.AddServiceAccountReq{
|
||||
Policy: buf,
|
||||
Policy: []byte(policy),
|
||||
TargetUser: user,
|
||||
AccessKey: accessKey,
|
||||
SecretKey: secretKey,
|
||||
|
||||
@@ -17,11 +17,9 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
@@ -123,36 +121,17 @@ func registerServiceAccountsHandlers(api *operations.ConsoleAPI) {
|
||||
|
||||
// createServiceAccount adds a service account to the userClient and assigns a policy to him if defined.
|
||||
func createServiceAccount(ctx context.Context, userClient MinioAdmin, policy string, name string, description string, expiry *time.Time, comment string) (*models.ServiceAccountCreds, error) {
|
||||
// By default a nil policy will be used so the service account inherit the parent account policy, otherwise
|
||||
// we override with the user provided iam policy
|
||||
var iamPolicy *iampolicy.Policy
|
||||
if strings.TrimSpace(policy) != "" {
|
||||
iamp, err := iampolicy.ParseConfig(bytes.NewReader([]byte(policy)))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
iamPolicy = iamp
|
||||
}
|
||||
creds, err := userClient.addServiceAccount(ctx, iamPolicy, "", "", "", name, description, expiry, comment)
|
||||
creds, err := userClient.addServiceAccount(ctx, policy, "", "", "", name, description, expiry, comment)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &models.ServiceAccountCreds{AccessKey: creds.AccessKey, SecretKey: creds.SecretKey, URL: getMinIOServer()}, nil
|
||||
}
|
||||
|
||||
// createServiceAccount adds a service account with the given credentials to the userClient and assigns a policy to him if defined.
|
||||
// createServiceAccount adds a service account with the given credentials to the
|
||||
// userClient and assigns a policy to him if defined.
|
||||
func createServiceAccountCreds(ctx context.Context, userClient MinioAdmin, policy string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (*models.ServiceAccountCreds, error) {
|
||||
// By default a nil policy will be used so the service account inherit the parent account policy, otherwise
|
||||
// we override with the user provided iam policy
|
||||
var iamPolicy *iampolicy.Policy
|
||||
if strings.TrimSpace(policy) != "" {
|
||||
iamp, err := iampolicy.ParseConfig(bytes.NewReader([]byte(policy)))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
iamPolicy = iamp
|
||||
}
|
||||
creds, err := userClient.addServiceAccount(ctx, iamPolicy, "", accessKey, secretKey, name, description, expiry, comment)
|
||||
creds, err := userClient.addServiceAccount(ctx, policy, "", accessKey, secretKey, name, description, expiry, comment)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -190,18 +169,7 @@ func getCreateServiceAccountResponse(session *models.Principal, params saApi.Cre
|
||||
|
||||
// createServiceAccount adds a service account to a given user and assigns a policy to him if defined.
|
||||
func createAUserServiceAccount(ctx context.Context, userClient MinioAdmin, policy string, user string, name string, description string, expiry *time.Time, comment string) (*models.ServiceAccountCreds, error) {
|
||||
// By default a nil policy will be used so the service account inherit the parent account policy, otherwise
|
||||
// we override with the user provided iam policy
|
||||
var iamPolicy *iampolicy.Policy
|
||||
if strings.TrimSpace(policy) != "" {
|
||||
iamp, err := iampolicy.ParseConfig(bytes.NewReader([]byte(policy)))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
iamPolicy = iamp
|
||||
}
|
||||
|
||||
creds, err := userClient.addServiceAccount(ctx, iamPolicy, user, "", "", name, description, expiry, comment)
|
||||
creds, err := userClient.addServiceAccount(ctx, policy, user, "", "", name, description, expiry, comment)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -209,18 +177,7 @@ func createAUserServiceAccount(ctx context.Context, userClient MinioAdmin, polic
|
||||
}
|
||||
|
||||
func createAUserServiceAccountCreds(ctx context.Context, userClient MinioAdmin, policy string, user string, accessKey string, secretKey string, name string, description string, expiry *time.Time, comment string) (*models.ServiceAccountCreds, error) {
|
||||
// By default a nil policy will be used so the service account inherit the parent account policy, otherwise
|
||||
// we override with the user provided iam policy
|
||||
var iamPolicy *iampolicy.Policy
|
||||
if strings.TrimSpace(policy) != "" {
|
||||
iamp, err := iampolicy.ParseConfig(bytes.NewReader([]byte(policy)))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
iamPolicy = iamp
|
||||
}
|
||||
|
||||
creds, err := userClient.addServiceAccount(ctx, iamPolicy, user, accessKey, secretKey, name, description, expiry, comment)
|
||||
creds, err := userClient.addServiceAccount(ctx, policy, user, accessKey, secretKey, name, description, expiry, comment)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/minio/madmin-go/v3"
|
||||
iampolicy "github.com/minio/pkg/v2/policy"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -41,7 +40,7 @@ func TestAddServiceAccount(t *testing.T) {
|
||||
AccessKey: "minio",
|
||||
SecretKey: "minio123",
|
||||
}
|
||||
minioAddServiceAccountMock = func(_ context.Context, _ *iampolicy.Policy, _ string, _ string, _ string, _ string, _ string, _ *time.Time, _ string) (madmin.Credentials, error) {
|
||||
minioAddServiceAccountMock = func(_ context.Context, _ string, _ string, _ string, _ string, _ string, _ string, _ *time.Time, _ string) (madmin.Credentials, error) {
|
||||
return mockResponse, nil
|
||||
}
|
||||
saCreds, err := createServiceAccount(ctx, client, policyDefinition, "", "", nil, "")
|
||||
@@ -51,25 +50,13 @@ func TestAddServiceAccount(t *testing.T) {
|
||||
assert.Equal(mockResponse.AccessKey, saCreds.AccessKey, fmt.Sprintf("Failed on %s:, error occurred: AccessKey differ", function))
|
||||
assert.Equal(mockResponse.SecretKey, saCreds.SecretKey, fmt.Sprintf("Failed on %s:, error occurred: SecretKey differ", function))
|
||||
|
||||
// Test-2: if an invalid policy is assigned to the service account, this will raise an error
|
||||
policyDefinition = "invalid policy"
|
||||
mockResponse = madmin.Credentials{
|
||||
AccessKey: "minio",
|
||||
SecretKey: "minio123",
|
||||
}
|
||||
minioAddServiceAccountMock = func(_ context.Context, _ *iampolicy.Policy, _ string, _ string, _ string, _ string, _ string, _ *time.Time, _ string) (madmin.Credentials, error) {
|
||||
return mockResponse, nil
|
||||
}
|
||||
_, err = createServiceAccount(ctx, client, policyDefinition, "", "", nil, "")
|
||||
assert.Error(err)
|
||||
|
||||
// Test-3: if an error occurs on server while creating service account (valid policy), handle it
|
||||
// Test-2: if an error occurs on server while creating service account (valid policy), handle it
|
||||
policyDefinition = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"s3:GetBucketLocation\",\"s3:GetObject\",\"s3:ListAllMyBuckets\"],\"Resource\":[\"arn:aws:s3:::bucket1/*\"]}]}"
|
||||
mockResponse = madmin.Credentials{
|
||||
AccessKey: "minio",
|
||||
SecretKey: "minio123",
|
||||
}
|
||||
minioAddServiceAccountMock = func(_ context.Context, _ *iampolicy.Policy, _ string, _ string, _ string, _ string, _ string, _ *time.Time, _ string) (madmin.Credentials, error) {
|
||||
minioAddServiceAccountMock = func(_ context.Context, _ string, _ string, _ string, _ string, _ string, _ string, _ *time.Time, _ string) (madmin.Credentials, error) {
|
||||
return madmin.Credentials{}, errors.New("error")
|
||||
}
|
||||
_, err = createServiceAccount(ctx, client, policyDefinition, "", "", nil, "")
|
||||
|
||||
@@ -186,6 +186,7 @@ func TestObjectGet(t *testing.T) {
|
||||
}
|
||||
|
||||
response, err := client.Do(request)
|
||||
fmt.Printf("Console server Response: %v\nErr: %v\n", response, err)
|
||||
|
||||
assert.NotNil(response, fmt.Sprintf("%s response object is nil", tt.name))
|
||||
assert.Nil(err, fmt.Sprintf("%s returned an error: %v", tt.name, err))
|
||||
|
||||
@@ -1,100 +1,101 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "./static/css/main.e60e4760.css",
|
||||
"main.js": "./static/js/main.e9eb8088.js",
|
||||
"static/js/5056.eb86acd9.chunk.js": "./static/js/5056.eb86acd9.chunk.js",
|
||||
"static/js/7784.3b092fc0.chunk.js": "./static/js/7784.3b092fc0.chunk.js",
|
||||
"static/js/3132.68faa431.chunk.js": "./static/js/3132.68faa431.chunk.js",
|
||||
"static/js/1596.f3c6b059.chunk.js": "./static/js/1596.f3c6b059.chunk.js",
|
||||
"static/js/9788.55d6e883.chunk.js": "./static/js/9788.55d6e883.chunk.js",
|
||||
"static/js/7700.2214e9d4.chunk.js": "./static/js/7700.2214e9d4.chunk.js",
|
||||
"static/js/9444.1d9d2cc0.chunk.js": "./static/js/9444.1d9d2cc0.chunk.js",
|
||||
"static/js/380.5a675da1.chunk.js": "./static/js/380.5a675da1.chunk.js",
|
||||
"static/js/712.eca7b94f.chunk.js": "./static/js/712.eca7b94f.chunk.js",
|
||||
"static/js/8704.9cb334af.chunk.js": "./static/js/8704.9cb334af.chunk.js",
|
||||
"static/js/9664.e89f62c6.chunk.js": "./static/js/9664.e89f62c6.chunk.js",
|
||||
"static/js/7612.e8288419.chunk.js": "./static/js/7612.e8288419.chunk.js",
|
||||
"static/js/424.04352234.chunk.js": "./static/js/424.04352234.chunk.js",
|
||||
"static/js/926.1d04c803.chunk.js": "./static/js/926.1d04c803.chunk.js",
|
||||
"static/js/1692.e6616840.chunk.js": "./static/js/1692.e6616840.chunk.js",
|
||||
"static/js/1376.e17d63e1.chunk.js": "./static/js/1376.e17d63e1.chunk.js",
|
||||
"static/js/7952.22a6ce54.chunk.js": "./static/js/7952.22a6ce54.chunk.js",
|
||||
"static/js/7316.89c52b7f.chunk.js": "./static/js/7316.89c52b7f.chunk.js",
|
||||
"static/js/1160.93409ca8.chunk.js": "./static/js/1160.93409ca8.chunk.js",
|
||||
"static/js/6432.31d6d652.chunk.js": "./static/js/6432.31d6d652.chunk.js",
|
||||
"static/js/3990.50417f3a.chunk.js": "./static/js/3990.50417f3a.chunk.js",
|
||||
"static/js/9352.1ae2bf88.chunk.js": "./static/js/9352.1ae2bf88.chunk.js",
|
||||
"static/js/4168.f6de88dd.chunk.js": "./static/js/4168.f6de88dd.chunk.js",
|
||||
"static/js/1124.52654914.chunk.js": "./static/js/1124.52654914.chunk.js",
|
||||
"static/js/8424.bd0ded37.chunk.js": "./static/js/8424.bd0ded37.chunk.js",
|
||||
"static/js/4632.b69f999c.chunk.js": "./static/js/4632.b69f999c.chunk.js",
|
||||
"static/js/8100.67b80931.chunk.js": "./static/js/8100.67b80931.chunk.js",
|
||||
"static/js/2448.5e41ba14.chunk.js": "./static/js/2448.5e41ba14.chunk.js",
|
||||
"static/js/6244.21ba4489.chunk.js": "./static/js/6244.21ba4489.chunk.js",
|
||||
"static/js/8336.97797ef4.chunk.js": "./static/js/8336.97797ef4.chunk.js",
|
||||
"static/js/152.7aa7fed2.chunk.js": "./static/js/152.7aa7fed2.chunk.js",
|
||||
"static/js/7165.6417f2bc.chunk.js": "./static/js/7165.6417f2bc.chunk.js",
|
||||
"static/js/5412.8f665bd9.chunk.js": "./static/js/5412.8f665bd9.chunk.js",
|
||||
"static/js/6164.22ffd313.chunk.js": "./static/js/6164.22ffd313.chunk.js",
|
||||
"static/js/3996.7bb99dbe.chunk.js": "./static/js/3996.7bb99dbe.chunk.js",
|
||||
"static/js/9920.ea7958b0.chunk.js": "./static/js/9920.ea7958b0.chunk.js",
|
||||
"static/js/5296.17a49dd1.chunk.js": "./static/js/5296.17a49dd1.chunk.js",
|
||||
"static/js/6218.fe935606.chunk.js": "./static/js/6218.fe935606.chunk.js",
|
||||
"static/js/2576.1b91e163.chunk.js": "./static/js/2576.1b91e163.chunk.js",
|
||||
"static/js/7908.597b20bb.chunk.js": "./static/js/7908.597b20bb.chunk.js",
|
||||
"static/js/6588.cfab7e27.chunk.js": "./static/js/6588.cfab7e27.chunk.js",
|
||||
"static/js/2012.7d122587.chunk.js": "./static/js/2012.7d122587.chunk.js",
|
||||
"static/js/4412.fe19b155.chunk.js": "./static/js/4412.fe19b155.chunk.js",
|
||||
"static/js/5756.2a90f420.chunk.js": "./static/js/5756.2a90f420.chunk.js",
|
||||
"static/js/20.16e8fc29.chunk.js": "./static/js/20.16e8fc29.chunk.js",
|
||||
"static/js/2928.8487007f.chunk.js": "./static/js/2928.8487007f.chunk.js",
|
||||
"static/js/6520.9be3294f.chunk.js": "./static/js/6520.9be3294f.chunk.js",
|
||||
"static/js/6596.3e0af576.chunk.js": "./static/js/6596.3e0af576.chunk.js",
|
||||
"static/js/352.57c4d53b.chunk.js": "./static/js/352.57c4d53b.chunk.js",
|
||||
"static/js/3728.619f9f58.chunk.js": "./static/js/3728.619f9f58.chunk.js",
|
||||
"static/js/7776.525c972b.chunk.js": "./static/js/7776.525c972b.chunk.js",
|
||||
"static/js/4440.7da6ff32.chunk.js": "./static/js/4440.7da6ff32.chunk.js",
|
||||
"static/js/6560.b4440a7d.chunk.js": "./static/js/6560.b4440a7d.chunk.js",
|
||||
"static/js/8648.1d9c893d.chunk.js": "./static/js/8648.1d9c893d.chunk.js",
|
||||
"static/js/7540.672b21be.chunk.js": "./static/js/7540.672b21be.chunk.js",
|
||||
"static/js/2124.2a71d5a5.chunk.js": "./static/js/2124.2a71d5a5.chunk.js",
|
||||
"static/js/8234.7c6414e0.chunk.js": "./static/js/8234.7c6414e0.chunk.js",
|
||||
"static/js/5072.61e61192.chunk.js": "./static/js/5072.61e61192.chunk.js",
|
||||
"static/js/3556.ab4ba514.chunk.js": "./static/js/3556.ab4ba514.chunk.js",
|
||||
"static/js/4776.5ef55320.chunk.js": "./static/js/4776.5ef55320.chunk.js",
|
||||
"static/js/8940.ebc12e13.chunk.js": "./static/js/8940.ebc12e13.chunk.js",
|
||||
"static/js/2492.ad98215a.chunk.js": "./static/js/2492.ad98215a.chunk.js",
|
||||
"static/js/6844.fa78bce4.chunk.js": "./static/js/6844.fa78bce4.chunk.js",
|
||||
"static/js/6532.71c2908a.chunk.js": "./static/js/6532.71c2908a.chunk.js",
|
||||
"static/js/3400.f4b8f3e0.chunk.js": "./static/js/3400.f4b8f3e0.chunk.js",
|
||||
"static/js/1496.e8c5dafd.chunk.js": "./static/js/1496.e8c5dafd.chunk.js",
|
||||
"static/js/6186.3019e777.chunk.js": "./static/js/6186.3019e777.chunk.js",
|
||||
"static/js/428.2172e82f.chunk.js": "./static/js/428.2172e82f.chunk.js",
|
||||
"static/js/7904.05fd1ade.chunk.js": "./static/js/7904.05fd1ade.chunk.js",
|
||||
"static/js/9572.70d2f6c8.chunk.js": "./static/js/9572.70d2f6c8.chunk.js",
|
||||
"static/js/1064.1ab42ca4.chunk.js": "./static/js/1064.1ab42ca4.chunk.js",
|
||||
"static/js/9740.424d346a.chunk.js": "./static/js/9740.424d346a.chunk.js",
|
||||
"static/js/4916.0094d194.chunk.js": "./static/js/4916.0094d194.chunk.js",
|
||||
"static/js/1024.aee9e8e8.chunk.js": "./static/js/1024.aee9e8e8.chunk.js",
|
||||
"static/js/9460.be94fd27.chunk.js": "./static/js/9460.be94fd27.chunk.js",
|
||||
"static/js/4844.0dce889a.chunk.js": "./static/js/4844.0dce889a.chunk.js",
|
||||
"static/js/6292.623b86cd.chunk.js": "./static/js/6292.623b86cd.chunk.js",
|
||||
"static/js/7264.a0f227d8.chunk.js": "./static/js/7264.a0f227d8.chunk.js",
|
||||
"static/js/5084.978ad614.chunk.js": "./static/js/5084.978ad614.chunk.js",
|
||||
"static/js/4528.d208fadc.chunk.js": "./static/js/4528.d208fadc.chunk.js",
|
||||
"static/js/9892.fadfbcac.chunk.js": "./static/js/9892.fadfbcac.chunk.js",
|
||||
"static/js/6536.fd6f7316.chunk.js": "./static/js/6536.fd6f7316.chunk.js",
|
||||
"static/js/968.5ee29217.chunk.js": "./static/js/968.5ee29217.chunk.js",
|
||||
"static/js/92.b3c6645e.chunk.js": "./static/js/92.b3c6645e.chunk.js",
|
||||
"static/js/5508.de9d49da.chunk.js": "./static/js/5508.de9d49da.chunk.js",
|
||||
"static/js/4084.19418226.chunk.js": "./static/js/4084.19418226.chunk.js",
|
||||
"static/js/9844.7ee4f681.chunk.js": "./static/js/9844.7ee4f681.chunk.js",
|
||||
"static/js/3052.c221a4c1.chunk.js": "./static/js/3052.c221a4c1.chunk.js",
|
||||
"static/js/8108.95a99cdc.chunk.js": "./static/js/8108.95a99cdc.chunk.js",
|
||||
"static/js/7720.8a2f37ec.chunk.js": "./static/js/7720.8a2f37ec.chunk.js",
|
||||
"static/js/7788.a780545f.chunk.js": "./static/js/7788.a780545f.chunk.js",
|
||||
"static/js/9160.9e428c5b.chunk.js": "./static/js/9160.9e428c5b.chunk.js",
|
||||
"static/js/844.53519725.chunk.js": "./static/js/844.53519725.chunk.js",
|
||||
"main.js": "./static/js/main.62cb1e54.js",
|
||||
"static/js/5301.2c626a41.chunk.js": "./static/js/5301.2c626a41.chunk.js",
|
||||
"static/js/9361.3fc638a6.chunk.js": "./static/js/9361.3fc638a6.chunk.js",
|
||||
"static/js/843.8502a4fd.chunk.js": "./static/js/843.8502a4fd.chunk.js",
|
||||
"static/js/3035.b2eb0918.chunk.js": "./static/js/3035.b2eb0918.chunk.js",
|
||||
"static/js/9537.675a2ebb.chunk.js": "./static/js/9537.675a2ebb.chunk.js",
|
||||
"static/js/5711.c58de6bb.chunk.js": "./static/js/5711.c58de6bb.chunk.js",
|
||||
"static/js/8769.5e67beb9.chunk.js": "./static/js/8769.5e67beb9.chunk.js",
|
||||
"static/js/2033.a09fb9da.chunk.js": "./static/js/2033.a09fb9da.chunk.js",
|
||||
"static/js/8821.44b4fe0f.chunk.js": "./static/js/8821.44b4fe0f.chunk.js",
|
||||
"static/js/9987.15024980.chunk.js": "./static/js/9987.15024980.chunk.js",
|
||||
"static/js/689.d9f80e6e.chunk.js": "./static/js/689.d9f80e6e.chunk.js",
|
||||
"static/js/6164.993b302b.chunk.js": "./static/js/6164.993b302b.chunk.js",
|
||||
"static/js/2372.aaeaeefa.chunk.js": "./static/js/2372.aaeaeefa.chunk.js",
|
||||
"static/js/1324.beff0285.chunk.js": "./static/js/1324.beff0285.chunk.js",
|
||||
"static/js/5693.5834aa74.chunk.js": "./static/js/5693.5834aa74.chunk.js",
|
||||
"static/js/5872.62eb672b.chunk.js": "./static/js/5872.62eb672b.chunk.js",
|
||||
"static/js/6758.b6da6dc7.chunk.js": "./static/js/6758.b6da6dc7.chunk.js",
|
||||
"static/js/755.ac098541.chunk.js": "./static/js/755.ac098541.chunk.js",
|
||||
"static/js/8715.0aaa4c38.chunk.js": "./static/js/8715.0aaa4c38.chunk.js",
|
||||
"static/js/7880.6f98d22b.chunk.js": "./static/js/7880.6f98d22b.chunk.js",
|
||||
"static/js/2209.3b0ca7fa.chunk.js": "./static/js/2209.3b0ca7fa.chunk.js",
|
||||
"static/js/7435.eb0888fa.chunk.js": "./static/js/7435.eb0888fa.chunk.js",
|
||||
"static/js/9340.8c56fae7.chunk.js": "./static/js/9340.8c56fae7.chunk.js",
|
||||
"static/js/9269.e21bb7dd.chunk.js": "./static/js/9269.e21bb7dd.chunk.js",
|
||||
"static/js/6925.65a0241f.chunk.js": "./static/js/6925.65a0241f.chunk.js",
|
||||
"static/js/3527.59dee34f.chunk.js": "./static/js/3527.59dee34f.chunk.js",
|
||||
"static/js/8789.668926b3.chunk.js": "./static/js/8789.668926b3.chunk.js",
|
||||
"static/js/7485.7f393450.chunk.js": "./static/js/7485.7f393450.chunk.js",
|
||||
"static/js/7041.4daa055d.chunk.js": "./static/js/7041.4daa055d.chunk.js",
|
||||
"static/js/2138.d05b3faa.chunk.js": "./static/js/2138.d05b3faa.chunk.js",
|
||||
"static/js/5699.bb05be82.chunk.js": "./static/js/5699.bb05be82.chunk.js",
|
||||
"static/js/7381.99263635.chunk.js": "./static/js/7381.99263635.chunk.js",
|
||||
"static/js/7052.58711f5f.chunk.js": "./static/js/7052.58711f5f.chunk.js",
|
||||
"static/js/144.1bc937a8.chunk.js": "./static/js/144.1bc937a8.chunk.js",
|
||||
"static/js/5978.723fd455.chunk.js": "./static/js/5978.723fd455.chunk.js",
|
||||
"static/js/4103.b6a51725.chunk.js": "./static/js/4103.b6a51725.chunk.js",
|
||||
"static/js/1702.9ff3a82e.chunk.js": "./static/js/1702.9ff3a82e.chunk.js",
|
||||
"static/js/7601.4e033e78.chunk.js": "./static/js/7601.4e033e78.chunk.js",
|
||||
"static/js/2959.fdc343fa.chunk.js": "./static/js/2959.fdc343fa.chunk.js",
|
||||
"static/js/9619.572ad00d.chunk.js": "./static/js/9619.572ad00d.chunk.js",
|
||||
"static/js/8017.d5b163f3.chunk.js": "./static/js/8017.d5b163f3.chunk.js",
|
||||
"static/js/3323.f86a698b.chunk.js": "./static/js/3323.f86a698b.chunk.js",
|
||||
"static/js/5128.96ab1387.chunk.js": "./static/js/5128.96ab1387.chunk.js",
|
||||
"static/js/6140.37801ce8.chunk.js": "./static/js/6140.37801ce8.chunk.js",
|
||||
"static/js/696.77a3fec7.chunk.js": "./static/js/696.77a3fec7.chunk.js",
|
||||
"static/js/2166.1e6c2b39.chunk.js": "./static/js/2166.1e6c2b39.chunk.js",
|
||||
"static/js/7063.80895202.chunk.js": "./static/js/7063.80895202.chunk.js",
|
||||
"static/js/3061.c8170979.chunk.js": "./static/js/3061.c8170979.chunk.js",
|
||||
"static/js/5064.b290192d.chunk.js": "./static/js/5064.b290192d.chunk.js",
|
||||
"static/js/7643.bc0ec1d5.chunk.js": "./static/js/7643.bc0ec1d5.chunk.js",
|
||||
"static/js/985.d2139cb6.chunk.js": "./static/js/985.d2139cb6.chunk.js",
|
||||
"static/js/1370.d5e698ce.chunk.js": "./static/js/1370.d5e698ce.chunk.js",
|
||||
"static/js/8823.034b6a8d.chunk.js": "./static/js/8823.034b6a8d.chunk.js",
|
||||
"static/js/24.1245bd95.chunk.js": "./static/js/24.1245bd95.chunk.js",
|
||||
"static/js/5851.9d7a7887.chunk.js": "./static/js/5851.9d7a7887.chunk.js",
|
||||
"static/js/4705.2270c966.chunk.js": "./static/js/4705.2270c966.chunk.js",
|
||||
"static/js/3654.877a48d3.chunk.js": "./static/js/3654.877a48d3.chunk.js",
|
||||
"static/js/960.761b3235.chunk.js": "./static/js/960.761b3235.chunk.js",
|
||||
"static/js/8642.df3bb12d.chunk.js": "./static/js/8642.df3bb12d.chunk.js",
|
||||
"static/js/3329.c2099208.chunk.js": "./static/js/3329.c2099208.chunk.js",
|
||||
"static/js/2332.7f421c9f.chunk.js": "./static/js/2332.7f421c9f.chunk.js",
|
||||
"static/js/5941.4df5a08b.chunk.js": "./static/js/5941.4df5a08b.chunk.js",
|
||||
"static/js/2704.fe33dd23.chunk.js": "./static/js/2704.fe33dd23.chunk.js",
|
||||
"static/js/7774.4d23a595.chunk.js": "./static/js/7774.4d23a595.chunk.js",
|
||||
"static/js/3851.c5eaa08e.chunk.js": "./static/js/3851.c5eaa08e.chunk.js",
|
||||
"static/js/9965.e00429f9.chunk.js": "./static/js/9965.e00429f9.chunk.js",
|
||||
"static/js/6065.f30b3ff2.chunk.js": "./static/js/6065.f30b3ff2.chunk.js",
|
||||
"static/js/12.d0242609.chunk.js": "./static/js/12.d0242609.chunk.js",
|
||||
"static/js/8010.8ce54818.chunk.js": "./static/js/8010.8ce54818.chunk.js",
|
||||
"static/js/2689.5e76c1cd.chunk.js": "./static/js/2689.5e76c1cd.chunk.js",
|
||||
"static/js/872.46dc0f05.chunk.js": "./static/js/872.46dc0f05.chunk.js",
|
||||
"static/js/4676.578844c1.chunk.js": "./static/js/4676.578844c1.chunk.js",
|
||||
"static/js/8825.e5adf924.chunk.js": "./static/js/8825.e5adf924.chunk.js",
|
||||
"static/js/614.f6cdf349.chunk.js": "./static/js/614.f6cdf349.chunk.js",
|
||||
"static/js/502.0106f2a9.chunk.js": "./static/js/502.0106f2a9.chunk.js",
|
||||
"static/js/6799.61dee8ac.chunk.js": "./static/js/6799.61dee8ac.chunk.js",
|
||||
"static/js/7659.124c07a5.chunk.js": "./static/js/7659.124c07a5.chunk.js",
|
||||
"static/js/7515.346161ed.chunk.js": "./static/js/7515.346161ed.chunk.js",
|
||||
"static/js/6654.d76daa88.chunk.js": "./static/js/6654.d76daa88.chunk.js",
|
||||
"static/js/5311.bf44bf69.chunk.js": "./static/js/5311.bf44bf69.chunk.js",
|
||||
"static/js/5809.064e83cc.chunk.js": "./static/js/5809.064e83cc.chunk.js",
|
||||
"static/js/7264.f7c51a0e.chunk.js": "./static/js/7264.f7c51a0e.chunk.js",
|
||||
"static/js/4172.0d489f24.chunk.js": "./static/js/4172.0d489f24.chunk.js",
|
||||
"static/js/6108.7a769377.chunk.js": "./static/js/6108.7a769377.chunk.js",
|
||||
"static/js/9714.48a29c42.chunk.js": "./static/js/9714.48a29c42.chunk.js",
|
||||
"static/js/459.65dbecac.chunk.js": "./static/js/459.65dbecac.chunk.js",
|
||||
"static/js/8152.6306ebd5.chunk.js": "./static/js/8152.6306ebd5.chunk.js",
|
||||
"static/js/1303.12f6ca82.chunk.js": "./static/js/1303.12f6ca82.chunk.js",
|
||||
"static/js/5079.a0847792.chunk.js": "./static/js/5079.a0847792.chunk.js",
|
||||
"static/js/4581.41480fcf.chunk.js": "./static/js/4581.41480fcf.chunk.js",
|
||||
"static/js/6016.80782e6d.chunk.js": "./static/js/6016.80782e6d.chunk.js",
|
||||
"static/js/8144.b4405bfa.chunk.js": "./static/js/8144.b4405bfa.chunk.js",
|
||||
"static/js/1195.aeb88cd6.chunk.js": "./static/js/1195.aeb88cd6.chunk.js",
|
||||
"static/js/1011.13d372c8.chunk.js": "./static/js/1011.13d372c8.chunk.js",
|
||||
"static/media/videoBG.mp4": "./static/media/videoBG.17363418b3c2246a0e27.mp4",
|
||||
"static/media/loginAnimationPoster.png": "./static/media/loginAnimationPoster.9aa924bfe619e71d5d29.png",
|
||||
"static/media/Inter-BoldItalic.woff": "./static/media/Inter-BoldItalic.b376885042f6c961a541.woff",
|
||||
@@ -118,103 +119,104 @@
|
||||
"static/media/placeholderimage.png": "./static/media/placeholderimage.077ea48bd1ef1f4a883f.png",
|
||||
"index.html": "./index.html",
|
||||
"main.e60e4760.css.map": "./static/css/main.e60e4760.css.map",
|
||||
"main.e9eb8088.js.map": "./static/js/main.e9eb8088.js.map",
|
||||
"5056.eb86acd9.chunk.js.map": "./static/js/5056.eb86acd9.chunk.js.map",
|
||||
"7784.3b092fc0.chunk.js.map": "./static/js/7784.3b092fc0.chunk.js.map",
|
||||
"3132.68faa431.chunk.js.map": "./static/js/3132.68faa431.chunk.js.map",
|
||||
"1596.f3c6b059.chunk.js.map": "./static/js/1596.f3c6b059.chunk.js.map",
|
||||
"9788.55d6e883.chunk.js.map": "./static/js/9788.55d6e883.chunk.js.map",
|
||||
"7700.2214e9d4.chunk.js.map": "./static/js/7700.2214e9d4.chunk.js.map",
|
||||
"9444.1d9d2cc0.chunk.js.map": "./static/js/9444.1d9d2cc0.chunk.js.map",
|
||||
"380.5a675da1.chunk.js.map": "./static/js/380.5a675da1.chunk.js.map",
|
||||
"712.eca7b94f.chunk.js.map": "./static/js/712.eca7b94f.chunk.js.map",
|
||||
"8704.9cb334af.chunk.js.map": "./static/js/8704.9cb334af.chunk.js.map",
|
||||
"9664.e89f62c6.chunk.js.map": "./static/js/9664.e89f62c6.chunk.js.map",
|
||||
"7612.e8288419.chunk.js.map": "./static/js/7612.e8288419.chunk.js.map",
|
||||
"424.04352234.chunk.js.map": "./static/js/424.04352234.chunk.js.map",
|
||||
"926.1d04c803.chunk.js.map": "./static/js/926.1d04c803.chunk.js.map",
|
||||
"1692.e6616840.chunk.js.map": "./static/js/1692.e6616840.chunk.js.map",
|
||||
"1376.e17d63e1.chunk.js.map": "./static/js/1376.e17d63e1.chunk.js.map",
|
||||
"7952.22a6ce54.chunk.js.map": "./static/js/7952.22a6ce54.chunk.js.map",
|
||||
"7316.89c52b7f.chunk.js.map": "./static/js/7316.89c52b7f.chunk.js.map",
|
||||
"1160.93409ca8.chunk.js.map": "./static/js/1160.93409ca8.chunk.js.map",
|
||||
"6432.31d6d652.chunk.js.map": "./static/js/6432.31d6d652.chunk.js.map",
|
||||
"3990.50417f3a.chunk.js.map": "./static/js/3990.50417f3a.chunk.js.map",
|
||||
"9352.1ae2bf88.chunk.js.map": "./static/js/9352.1ae2bf88.chunk.js.map",
|
||||
"4168.f6de88dd.chunk.js.map": "./static/js/4168.f6de88dd.chunk.js.map",
|
||||
"1124.52654914.chunk.js.map": "./static/js/1124.52654914.chunk.js.map",
|
||||
"8424.bd0ded37.chunk.js.map": "./static/js/8424.bd0ded37.chunk.js.map",
|
||||
"4632.b69f999c.chunk.js.map": "./static/js/4632.b69f999c.chunk.js.map",
|
||||
"8100.67b80931.chunk.js.map": "./static/js/8100.67b80931.chunk.js.map",
|
||||
"2448.5e41ba14.chunk.js.map": "./static/js/2448.5e41ba14.chunk.js.map",
|
||||
"6244.21ba4489.chunk.js.map": "./static/js/6244.21ba4489.chunk.js.map",
|
||||
"8336.97797ef4.chunk.js.map": "./static/js/8336.97797ef4.chunk.js.map",
|
||||
"152.7aa7fed2.chunk.js.map": "./static/js/152.7aa7fed2.chunk.js.map",
|
||||
"7165.6417f2bc.chunk.js.map": "./static/js/7165.6417f2bc.chunk.js.map",
|
||||
"5412.8f665bd9.chunk.js.map": "./static/js/5412.8f665bd9.chunk.js.map",
|
||||
"6164.22ffd313.chunk.js.map": "./static/js/6164.22ffd313.chunk.js.map",
|
||||
"3996.7bb99dbe.chunk.js.map": "./static/js/3996.7bb99dbe.chunk.js.map",
|
||||
"9920.ea7958b0.chunk.js.map": "./static/js/9920.ea7958b0.chunk.js.map",
|
||||
"5296.17a49dd1.chunk.js.map": "./static/js/5296.17a49dd1.chunk.js.map",
|
||||
"6218.fe935606.chunk.js.map": "./static/js/6218.fe935606.chunk.js.map",
|
||||
"2576.1b91e163.chunk.js.map": "./static/js/2576.1b91e163.chunk.js.map",
|
||||
"7908.597b20bb.chunk.js.map": "./static/js/7908.597b20bb.chunk.js.map",
|
||||
"6588.cfab7e27.chunk.js.map": "./static/js/6588.cfab7e27.chunk.js.map",
|
||||
"2012.7d122587.chunk.js.map": "./static/js/2012.7d122587.chunk.js.map",
|
||||
"4412.fe19b155.chunk.js.map": "./static/js/4412.fe19b155.chunk.js.map",
|
||||
"5756.2a90f420.chunk.js.map": "./static/js/5756.2a90f420.chunk.js.map",
|
||||
"20.16e8fc29.chunk.js.map": "./static/js/20.16e8fc29.chunk.js.map",
|
||||
"2928.8487007f.chunk.js.map": "./static/js/2928.8487007f.chunk.js.map",
|
||||
"6520.9be3294f.chunk.js.map": "./static/js/6520.9be3294f.chunk.js.map",
|
||||
"6596.3e0af576.chunk.js.map": "./static/js/6596.3e0af576.chunk.js.map",
|
||||
"352.57c4d53b.chunk.js.map": "./static/js/352.57c4d53b.chunk.js.map",
|
||||
"3728.619f9f58.chunk.js.map": "./static/js/3728.619f9f58.chunk.js.map",
|
||||
"7776.525c972b.chunk.js.map": "./static/js/7776.525c972b.chunk.js.map",
|
||||
"4440.7da6ff32.chunk.js.map": "./static/js/4440.7da6ff32.chunk.js.map",
|
||||
"6560.b4440a7d.chunk.js.map": "./static/js/6560.b4440a7d.chunk.js.map",
|
||||
"8648.1d9c893d.chunk.js.map": "./static/js/8648.1d9c893d.chunk.js.map",
|
||||
"7540.672b21be.chunk.js.map": "./static/js/7540.672b21be.chunk.js.map",
|
||||
"2124.2a71d5a5.chunk.js.map": "./static/js/2124.2a71d5a5.chunk.js.map",
|
||||
"8234.7c6414e0.chunk.js.map": "./static/js/8234.7c6414e0.chunk.js.map",
|
||||
"5072.61e61192.chunk.js.map": "./static/js/5072.61e61192.chunk.js.map",
|
||||
"3556.ab4ba514.chunk.js.map": "./static/js/3556.ab4ba514.chunk.js.map",
|
||||
"4776.5ef55320.chunk.js.map": "./static/js/4776.5ef55320.chunk.js.map",
|
||||
"8940.ebc12e13.chunk.js.map": "./static/js/8940.ebc12e13.chunk.js.map",
|
||||
"2492.ad98215a.chunk.js.map": "./static/js/2492.ad98215a.chunk.js.map",
|
||||
"6844.fa78bce4.chunk.js.map": "./static/js/6844.fa78bce4.chunk.js.map",
|
||||
"6532.71c2908a.chunk.js.map": "./static/js/6532.71c2908a.chunk.js.map",
|
||||
"3400.f4b8f3e0.chunk.js.map": "./static/js/3400.f4b8f3e0.chunk.js.map",
|
||||
"1496.e8c5dafd.chunk.js.map": "./static/js/1496.e8c5dafd.chunk.js.map",
|
||||
"6186.3019e777.chunk.js.map": "./static/js/6186.3019e777.chunk.js.map",
|
||||
"428.2172e82f.chunk.js.map": "./static/js/428.2172e82f.chunk.js.map",
|
||||
"7904.05fd1ade.chunk.js.map": "./static/js/7904.05fd1ade.chunk.js.map",
|
||||
"9572.70d2f6c8.chunk.js.map": "./static/js/9572.70d2f6c8.chunk.js.map",
|
||||
"1064.1ab42ca4.chunk.js.map": "./static/js/1064.1ab42ca4.chunk.js.map",
|
||||
"9740.424d346a.chunk.js.map": "./static/js/9740.424d346a.chunk.js.map",
|
||||
"4916.0094d194.chunk.js.map": "./static/js/4916.0094d194.chunk.js.map",
|
||||
"1024.aee9e8e8.chunk.js.map": "./static/js/1024.aee9e8e8.chunk.js.map",
|
||||
"9460.be94fd27.chunk.js.map": "./static/js/9460.be94fd27.chunk.js.map",
|
||||
"4844.0dce889a.chunk.js.map": "./static/js/4844.0dce889a.chunk.js.map",
|
||||
"6292.623b86cd.chunk.js.map": "./static/js/6292.623b86cd.chunk.js.map",
|
||||
"7264.a0f227d8.chunk.js.map": "./static/js/7264.a0f227d8.chunk.js.map",
|
||||
"5084.978ad614.chunk.js.map": "./static/js/5084.978ad614.chunk.js.map",
|
||||
"4528.d208fadc.chunk.js.map": "./static/js/4528.d208fadc.chunk.js.map",
|
||||
"9892.fadfbcac.chunk.js.map": "./static/js/9892.fadfbcac.chunk.js.map",
|
||||
"6536.fd6f7316.chunk.js.map": "./static/js/6536.fd6f7316.chunk.js.map",
|
||||
"968.5ee29217.chunk.js.map": "./static/js/968.5ee29217.chunk.js.map",
|
||||
"92.b3c6645e.chunk.js.map": "./static/js/92.b3c6645e.chunk.js.map",
|
||||
"5508.de9d49da.chunk.js.map": "./static/js/5508.de9d49da.chunk.js.map",
|
||||
"4084.19418226.chunk.js.map": "./static/js/4084.19418226.chunk.js.map",
|
||||
"9844.7ee4f681.chunk.js.map": "./static/js/9844.7ee4f681.chunk.js.map",
|
||||
"3052.c221a4c1.chunk.js.map": "./static/js/3052.c221a4c1.chunk.js.map",
|
||||
"8108.95a99cdc.chunk.js.map": "./static/js/8108.95a99cdc.chunk.js.map",
|
||||
"7720.8a2f37ec.chunk.js.map": "./static/js/7720.8a2f37ec.chunk.js.map",
|
||||
"7788.a780545f.chunk.js.map": "./static/js/7788.a780545f.chunk.js.map",
|
||||
"9160.9e428c5b.chunk.js.map": "./static/js/9160.9e428c5b.chunk.js.map",
|
||||
"844.53519725.chunk.js.map": "./static/js/844.53519725.chunk.js.map"
|
||||
"main.62cb1e54.js.map": "./static/js/main.62cb1e54.js.map",
|
||||
"5301.2c626a41.chunk.js.map": "./static/js/5301.2c626a41.chunk.js.map",
|
||||
"9361.3fc638a6.chunk.js.map": "./static/js/9361.3fc638a6.chunk.js.map",
|
||||
"843.8502a4fd.chunk.js.map": "./static/js/843.8502a4fd.chunk.js.map",
|
||||
"3035.b2eb0918.chunk.js.map": "./static/js/3035.b2eb0918.chunk.js.map",
|
||||
"9537.675a2ebb.chunk.js.map": "./static/js/9537.675a2ebb.chunk.js.map",
|
||||
"5711.c58de6bb.chunk.js.map": "./static/js/5711.c58de6bb.chunk.js.map",
|
||||
"8769.5e67beb9.chunk.js.map": "./static/js/8769.5e67beb9.chunk.js.map",
|
||||
"2033.a09fb9da.chunk.js.map": "./static/js/2033.a09fb9da.chunk.js.map",
|
||||
"8821.44b4fe0f.chunk.js.map": "./static/js/8821.44b4fe0f.chunk.js.map",
|
||||
"9987.15024980.chunk.js.map": "./static/js/9987.15024980.chunk.js.map",
|
||||
"689.d9f80e6e.chunk.js.map": "./static/js/689.d9f80e6e.chunk.js.map",
|
||||
"6164.993b302b.chunk.js.map": "./static/js/6164.993b302b.chunk.js.map",
|
||||
"2372.aaeaeefa.chunk.js.map": "./static/js/2372.aaeaeefa.chunk.js.map",
|
||||
"1324.beff0285.chunk.js.map": "./static/js/1324.beff0285.chunk.js.map",
|
||||
"5693.5834aa74.chunk.js.map": "./static/js/5693.5834aa74.chunk.js.map",
|
||||
"5872.62eb672b.chunk.js.map": "./static/js/5872.62eb672b.chunk.js.map",
|
||||
"6758.b6da6dc7.chunk.js.map": "./static/js/6758.b6da6dc7.chunk.js.map",
|
||||
"755.ac098541.chunk.js.map": "./static/js/755.ac098541.chunk.js.map",
|
||||
"8715.0aaa4c38.chunk.js.map": "./static/js/8715.0aaa4c38.chunk.js.map",
|
||||
"7880.6f98d22b.chunk.js.map": "./static/js/7880.6f98d22b.chunk.js.map",
|
||||
"2209.3b0ca7fa.chunk.js.map": "./static/js/2209.3b0ca7fa.chunk.js.map",
|
||||
"7435.eb0888fa.chunk.js.map": "./static/js/7435.eb0888fa.chunk.js.map",
|
||||
"9340.8c56fae7.chunk.js.map": "./static/js/9340.8c56fae7.chunk.js.map",
|
||||
"9269.e21bb7dd.chunk.js.map": "./static/js/9269.e21bb7dd.chunk.js.map",
|
||||
"6925.65a0241f.chunk.js.map": "./static/js/6925.65a0241f.chunk.js.map",
|
||||
"3527.59dee34f.chunk.js.map": "./static/js/3527.59dee34f.chunk.js.map",
|
||||
"8789.668926b3.chunk.js.map": "./static/js/8789.668926b3.chunk.js.map",
|
||||
"7485.7f393450.chunk.js.map": "./static/js/7485.7f393450.chunk.js.map",
|
||||
"7041.4daa055d.chunk.js.map": "./static/js/7041.4daa055d.chunk.js.map",
|
||||
"2138.d05b3faa.chunk.js.map": "./static/js/2138.d05b3faa.chunk.js.map",
|
||||
"5699.bb05be82.chunk.js.map": "./static/js/5699.bb05be82.chunk.js.map",
|
||||
"7381.99263635.chunk.js.map": "./static/js/7381.99263635.chunk.js.map",
|
||||
"7052.58711f5f.chunk.js.map": "./static/js/7052.58711f5f.chunk.js.map",
|
||||
"144.1bc937a8.chunk.js.map": "./static/js/144.1bc937a8.chunk.js.map",
|
||||
"5978.723fd455.chunk.js.map": "./static/js/5978.723fd455.chunk.js.map",
|
||||
"4103.b6a51725.chunk.js.map": "./static/js/4103.b6a51725.chunk.js.map",
|
||||
"1702.9ff3a82e.chunk.js.map": "./static/js/1702.9ff3a82e.chunk.js.map",
|
||||
"7601.4e033e78.chunk.js.map": "./static/js/7601.4e033e78.chunk.js.map",
|
||||
"2959.fdc343fa.chunk.js.map": "./static/js/2959.fdc343fa.chunk.js.map",
|
||||
"9619.572ad00d.chunk.js.map": "./static/js/9619.572ad00d.chunk.js.map",
|
||||
"8017.d5b163f3.chunk.js.map": "./static/js/8017.d5b163f3.chunk.js.map",
|
||||
"3323.f86a698b.chunk.js.map": "./static/js/3323.f86a698b.chunk.js.map",
|
||||
"5128.96ab1387.chunk.js.map": "./static/js/5128.96ab1387.chunk.js.map",
|
||||
"6140.37801ce8.chunk.js.map": "./static/js/6140.37801ce8.chunk.js.map",
|
||||
"696.77a3fec7.chunk.js.map": "./static/js/696.77a3fec7.chunk.js.map",
|
||||
"2166.1e6c2b39.chunk.js.map": "./static/js/2166.1e6c2b39.chunk.js.map",
|
||||
"7063.80895202.chunk.js.map": "./static/js/7063.80895202.chunk.js.map",
|
||||
"3061.c8170979.chunk.js.map": "./static/js/3061.c8170979.chunk.js.map",
|
||||
"5064.b290192d.chunk.js.map": "./static/js/5064.b290192d.chunk.js.map",
|
||||
"7643.bc0ec1d5.chunk.js.map": "./static/js/7643.bc0ec1d5.chunk.js.map",
|
||||
"985.d2139cb6.chunk.js.map": "./static/js/985.d2139cb6.chunk.js.map",
|
||||
"1370.d5e698ce.chunk.js.map": "./static/js/1370.d5e698ce.chunk.js.map",
|
||||
"8823.034b6a8d.chunk.js.map": "./static/js/8823.034b6a8d.chunk.js.map",
|
||||
"24.1245bd95.chunk.js.map": "./static/js/24.1245bd95.chunk.js.map",
|
||||
"5851.9d7a7887.chunk.js.map": "./static/js/5851.9d7a7887.chunk.js.map",
|
||||
"4705.2270c966.chunk.js.map": "./static/js/4705.2270c966.chunk.js.map",
|
||||
"3654.877a48d3.chunk.js.map": "./static/js/3654.877a48d3.chunk.js.map",
|
||||
"960.761b3235.chunk.js.map": "./static/js/960.761b3235.chunk.js.map",
|
||||
"8642.df3bb12d.chunk.js.map": "./static/js/8642.df3bb12d.chunk.js.map",
|
||||
"3329.c2099208.chunk.js.map": "./static/js/3329.c2099208.chunk.js.map",
|
||||
"2332.7f421c9f.chunk.js.map": "./static/js/2332.7f421c9f.chunk.js.map",
|
||||
"5941.4df5a08b.chunk.js.map": "./static/js/5941.4df5a08b.chunk.js.map",
|
||||
"2704.fe33dd23.chunk.js.map": "./static/js/2704.fe33dd23.chunk.js.map",
|
||||
"7774.4d23a595.chunk.js.map": "./static/js/7774.4d23a595.chunk.js.map",
|
||||
"3851.c5eaa08e.chunk.js.map": "./static/js/3851.c5eaa08e.chunk.js.map",
|
||||
"9965.e00429f9.chunk.js.map": "./static/js/9965.e00429f9.chunk.js.map",
|
||||
"6065.f30b3ff2.chunk.js.map": "./static/js/6065.f30b3ff2.chunk.js.map",
|
||||
"12.d0242609.chunk.js.map": "./static/js/12.d0242609.chunk.js.map",
|
||||
"8010.8ce54818.chunk.js.map": "./static/js/8010.8ce54818.chunk.js.map",
|
||||
"2689.5e76c1cd.chunk.js.map": "./static/js/2689.5e76c1cd.chunk.js.map",
|
||||
"872.46dc0f05.chunk.js.map": "./static/js/872.46dc0f05.chunk.js.map",
|
||||
"4676.578844c1.chunk.js.map": "./static/js/4676.578844c1.chunk.js.map",
|
||||
"8825.e5adf924.chunk.js.map": "./static/js/8825.e5adf924.chunk.js.map",
|
||||
"614.f6cdf349.chunk.js.map": "./static/js/614.f6cdf349.chunk.js.map",
|
||||
"502.0106f2a9.chunk.js.map": "./static/js/502.0106f2a9.chunk.js.map",
|
||||
"6799.61dee8ac.chunk.js.map": "./static/js/6799.61dee8ac.chunk.js.map",
|
||||
"7659.124c07a5.chunk.js.map": "./static/js/7659.124c07a5.chunk.js.map",
|
||||
"7515.346161ed.chunk.js.map": "./static/js/7515.346161ed.chunk.js.map",
|
||||
"6654.d76daa88.chunk.js.map": "./static/js/6654.d76daa88.chunk.js.map",
|
||||
"5311.bf44bf69.chunk.js.map": "./static/js/5311.bf44bf69.chunk.js.map",
|
||||
"5809.064e83cc.chunk.js.map": "./static/js/5809.064e83cc.chunk.js.map",
|
||||
"7264.f7c51a0e.chunk.js.map": "./static/js/7264.f7c51a0e.chunk.js.map",
|
||||
"4172.0d489f24.chunk.js.map": "./static/js/4172.0d489f24.chunk.js.map",
|
||||
"6108.7a769377.chunk.js.map": "./static/js/6108.7a769377.chunk.js.map",
|
||||
"9714.48a29c42.chunk.js.map": "./static/js/9714.48a29c42.chunk.js.map",
|
||||
"459.65dbecac.chunk.js.map": "./static/js/459.65dbecac.chunk.js.map",
|
||||
"8152.6306ebd5.chunk.js.map": "./static/js/8152.6306ebd5.chunk.js.map",
|
||||
"1303.12f6ca82.chunk.js.map": "./static/js/1303.12f6ca82.chunk.js.map",
|
||||
"5079.a0847792.chunk.js.map": "./static/js/5079.a0847792.chunk.js.map",
|
||||
"4581.41480fcf.chunk.js.map": "./static/js/4581.41480fcf.chunk.js.map",
|
||||
"6016.80782e6d.chunk.js.map": "./static/js/6016.80782e6d.chunk.js.map",
|
||||
"8144.b4405bfa.chunk.js.map": "./static/js/8144.b4405bfa.chunk.js.map",
|
||||
"1195.aeb88cd6.chunk.js.map": "./static/js/1195.aeb88cd6.chunk.js.map",
|
||||
"1011.13d372c8.chunk.js.map": "./static/js/1011.13d372c8.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.e60e4760.css",
|
||||
"static/js/main.e9eb8088.js"
|
||||
"static/js/main.62cb1e54.js"
|
||||
]
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="/"/><meta content="width=device-width,initial-scale=1" name="viewport"/><meta content="#081C42" media="(prefers-color-scheme: light)" name="theme-color"/><meta content="#081C42" media="(prefers-color-scheme: dark)" name="theme-color"/><meta content="MinIO Console" name="description"/><meta name="minio-license" content="apgl"/><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.e9eb8088.js"></script><link href="./static/css/main.e60e4760.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div id="preload"><img src="./images/background.svg"/> <img src="./images/background-wave-orig2.svg"/></div><div id="loader-block"><img src="./Loader.svg"/></div></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="/"/><meta content="width=device-width,initial-scale=1" name="viewport"/><meta content="#081C42" media="(prefers-color-scheme: light)" name="theme-color"/><meta content="#081C42" media="(prefers-color-scheme: dark)" name="theme-color"/><meta content="MinIO Console" name="description"/><meta name="minio-license" content="apgl"/><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.62cb1e54.js"></script><link href="./static/css/main.e60e4760.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div id="preload"><img src="./images/background.svg"/> <img src="./images/background-wave-orig2.svg"/></div><div id="loader-block"><img src="./Loader.svg"/></div></div></body></html>
|
||||
2
web-app/build/static/js/1011.13d372c8.chunk.js
Normal file
2
web-app/build/static/js/1011.13d372c8.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/1011.13d372c8.chunk.js.map
Normal file
1
web-app/build/static/js/1011.13d372c8.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1024],{11024:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(69060),o=n(66152),c=n(95705),l=n(66156),r=n(61180),u=n(78256),a=n(70780),i=n(82496);const p=e=>{let{onClose:t,modalOpen:n,bucket:p,toDelete:f}=e;const h=(0,l.Ab)(),[b,d]=(0,s.useState)(!1);return(0,i.jsx)(a.c,{title:"Delete Anonymous Access Rule",confirmText:"Delete",isOpen:n,isLoading:b,onConfirm:()=>{d(!0);let e={prefix:f};r.m.bucket.deleteAccessRuleWithBucket(p,e).then((()=>{t()})).catch((e=>{h((0,c.aW)((0,u.K)(e.error))),t()})).finally((()=>d(!1)))},titleIcon:(0,i.jsx)(o.sB6,{}),onClose:t,confirmationContent:(0,i.jsx)(s.Fragment,{children:"Are you sure you want to delete this access rule?"})})}}}]);
|
||||
//# sourceMappingURL=1024.aee9e8e8.chunk.js.map
|
||||
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"static/js/1024.aee9e8e8.chunk.js","mappings":"6NAgCA,MA0CA,EA1CyBA,IAKC,IALA,QACxBC,EAAO,UACPC,EAAS,OACTC,EAAM,SACNC,GACkBJ,EAClB,MAAMK,GAAWC,EAAAA,EAAAA,OAEVC,EAAyBC,IAC9BC,EAAAA,EAAAA,WAAkB,GAiBpB,OACEC,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,+BACLC,YAAa,SACbC,OAAQZ,EACRa,UAAWR,EACXS,UArBoBC,KACtBT,GAA2B,GAC3B,IAAIU,EAAyB,CAAEC,OAAQf,GACvCgB,EAAAA,EAAIjB,OACDkB,2BAA2BlB,EAAQe,GACnCI,MAAK,KACJrB,GAAS,IAEVsB,OAAOC,IACNnB,GAASoB,EAAAA,EAAAA,KAAqBC,EAAAA,EAAAA,GAAeF,EAAIG,SACjD1B,GAAS,IAEV2B,SAAQ,IAAMpB,GAA2B,IAAO,EAUjDqB,WAAWnB,EAAAA,EAAAA,KAACoB,EAAAA,IAAiB,IAC7B7B,QAASA,EACT8B,qBACErB,EAAAA,EAAAA,KAACsB,EAAAA,SAAQ,CAAAC,SAAC,uDAEZ,C","sources":["screens/Console/Buckets/BucketDetails/DeleteAccessRule.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment, useState } from \"react\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { api } from \"api\";\nimport { ApiError, HttpResponse, PrefixWrapper } from \"api/consoleApi\";\nimport { errorToHandler } from \"api/errors\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteAccessRule {\n modalOpen: boolean;\n onClose: () => any;\n bucket: string;\n toDelete: string;\n}\n\nconst DeleteAccessRule = ({\n onClose,\n modalOpen,\n bucket,\n toDelete,\n}: IDeleteAccessRule) => {\n const dispatch = useAppDispatch();\n\n const [loadingDeleteAccessRule, setLoadingDeleteAccessRule] =\n useState<boolean>(false);\n\n const onConfirmDelete = () => {\n setLoadingDeleteAccessRule(true);\n let wrapper: PrefixWrapper = { prefix: toDelete };\n api.bucket\n .deleteAccessRuleWithBucket(bucket, wrapper)\n .then(() => {\n onClose();\n })\n .catch((res: HttpResponse<boolean, ApiError>) => {\n dispatch(setErrorSnackMessage(errorToHandler(res.error)));\n onClose();\n })\n .finally(() => setLoadingDeleteAccessRule(false));\n };\n\n return (\n <ConfirmDialog\n title={`Delete Anonymous Access Rule`}\n confirmText={\"Delete\"}\n isOpen={modalOpen}\n isLoading={loadingDeleteAccessRule}\n onConfirm={onConfirmDelete}\n titleIcon={<ConfirmDeleteIcon />}\n onClose={onClose}\n confirmationContent={\n <Fragment>Are you sure you want to delete this access rule?</Fragment>\n }\n />\n );\n};\n\nexport default DeleteAccessRule;\n"],"names":["_ref","onClose","modalOpen","bucket","toDelete","dispatch","useAppDispatch","loadingDeleteAccessRule","setLoadingDeleteAccessRule","useState","_jsx","ConfirmDialog","title","confirmText","isOpen","isLoading","onConfirm","onConfirmDelete","wrapper","prefix","api","deleteAccessRuleWithBucket","then","catch","res","setErrorSnackMessage","errorToHandler","error","finally","titleIcon","ConfirmDeleteIcon","confirmationContent","Fragment","children"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1064],{31064:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var l=n(69060),o=n(70780),s=n(66152),c=n(95705),i=n(66156),a=n(61180),r=n(78256),u=n(61060),p=n(82496);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedPolicy:d}=e;const f=(0,i.Ab)(),[y,h]=(0,l.useState)(!1);if(!d)return null;return(0,p.jsx)(o.c,{title:"Delete Policy",confirmText:"Delete",isOpen:n,titleIcon:(0,p.jsx)(s.sB6,{}),isLoading:y,onConfirm:()=>{h(!0),a.m.policy.removePolicy((0,u.CO)(d)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();f((0,c.aW)((0,r.K)(n))),t(!1)})).finally((()=>h(!1)))},onClose:()=>t(!1),confirmationContent:(0,p.jsxs)(l.Fragment,{children:["Are you sure you want to delete policy ",(0,p.jsx)("br",{}),(0,p.jsx)("b",{children:d}),"?"]})})}}}]);
|
||||
//# sourceMappingURL=1064.1ab42ca4.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
2
web-app/build/static/js/12.d0242609.chunk.js
Normal file
2
web-app/build/static/js/12.d0242609.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/12.d0242609.chunk.js.map
Normal file
1
web-app/build/static/js/12.d0242609.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/1303.12f6ca82.chunk.js
Normal file
2
web-app/build/static/js/1303.12f6ca82.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1303],{1303:(e,a,t)=>{t.r(a),t.d(a,{default:()=>g});var l=t(65043),n=t(89923),s=t(77403),r=t(94141),c=t(64159),d=t(20554),o=t(56629),i=t(53518),u=t(70579);const g=e=>{let{modalOpen:a,currentTags:t,onCloseAndUpdate:g,bucketName:b}=e;const p=(0,d.jL)(),[h,w]=(0,l.useState)(""),[x,m]=(0,l.useState)(""),[j,k]=(0,l.useState)(!1);return(0,u.jsx)(r.A,{modalOpen:a,title:"Add New Tag ",onClose:()=>{g(!1)},titleIcon:(0,u.jsx)(n.b_$,{}),children:(0,u.jsxs)(n.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsxs)(n.azJ,{sx:{marginBottom:15},children:[(0,u.jsx)("strong",{children:"Bucket"}),": ",b]}),(0,u.jsx)(n.cl_,{value:h,label:"New Tag Key",id:"newTagKey",name:"newTagKey",placeholder:"Enter New Tag Key",onChange:e=>{w(e.target.value)}}),(0,u.jsx)(n.cl_,{value:x,label:"New Tag Label",id:"newTagLabel",name:"newTagLabel",placeholder:"Enter New Tag Label",onChange:e=>{m(e.target.value)}}),(0,u.jsxs)(n.xA9,{item:!0,xs:12,sx:s.Uz.modalButtonBar,children:[(0,u.jsx)(n.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{m(""),w("")},label:"Clear"}),(0,u.jsx)(n.$nd,{id:"save-add-bucket-tag",type:"submit",variant:"callAction",color:"primary",disabled:""===x.trim()||""===h.trim()||j,onClick:()=>{k(!0);const e={};e[h]=x;const a={...t,...e};o.F.buckets.putBucketTags(b,{tags:a}).then((()=>{k(!1),g(!0)})).catch((e=>{p((0,c.Dy)((0,i.S)(e.error))),k(!1)}))},label:"Save"})]})]})})}}}]);
|
||||
//# sourceMappingURL=1303.12f6ca82.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/1324.beff0285.chunk.js
Normal file
2
web-app/build/static/js/1324.beff0285.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/1324.beff0285.chunk.js.map
Normal file
1
web-app/build/static/js/1324.beff0285.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/1370.d5e698ce.chunk.js
Normal file
2
web-app/build/static/js/1370.d5e698ce.chunk.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/144.1bc937a8.chunk.js
Normal file
2
web-app/build/static/js/144.1bc937a8.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/144.1bc937a8.chunk.js.map
Normal file
1
web-app/build/static/js/144.1bc937a8.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1496],{31496:(e,t,i)=>{i.r(t),i.d(t,{default:()=>I});var s=i(69060),c=i(19536),a=i(51560),n=i(66152),o=i(61180),r=i(78256),l=i(21124),d=i(3992),u=i(61060),m=i(95705),S=i(2432),h=i(66156),_=i(82496);const I=()=>{const e=(0,h.Ab)(),t=(0,a.i6)(),i=(0,a.W4)(),I=(0,c.w1)(S.qO),[b,O]=(0,s.useState)("simple-tab-0"),[p,k]=(0,s.useState)(!0),[A,E]=(0,s.useState)([]),[L,P]=(0,s.useState)(!0),[U,C]=(0,s.useState)([]),N=i.bucketName||"",f=(0,d.i)(N,[l.Oi.ADMIN_LIST_USER_POLICIES]),T=(0,d.i)(N,[l.Oi.ADMIN_GET_POLICY,l.Oi.ADMIN_LIST_USERS,l.Oi.ADMIN_LIST_GROUPS],!0),g=(0,d.i)(l.Gc,[l.Oi.ADMIN_GET_USER]),x=(0,d.i)(l.Gc,[l.Oi.ADMIN_GET_POLICY,l.Oi.ADMIN_LIST_USERS,l.Oi.ADMIN_LIST_GROUPS]);(0,s.useEffect)((()=>{I&&(P(!0),k(!0))}),[I,P,k]);const M=[{type:"view",disableButtonFunction:()=>!x,onClick:e=>{t("".concat(l.Ks.POLICIES,"/").concat((0,u.CO)(e.name)))}}],y=[{type:"view",disableButtonFunction:()=>!g,onClick:e=>{t("".concat(l.Ks.USERS,"/").concat((0,u.CO)(e)))}}];return(0,s.useEffect)((()=>{L&&(T?o.m.bucketUsers.listUsersWithAccessToBucket(N).then((e=>{C(e.data),P(!1)})).catch((t=>{e((0,m.aW)((0,r.K)(t))),P(!1)})):P(!1))}),[L,e,N,T]),(0,s.useEffect)((()=>{e((0,m.i8)("bucket_detail_access"))}),[]),(0,s.useEffect)((()=>{p&&(f?o.m.bucketPolicy.listPoliciesWithBucket(N).then((e=>{E(e.data.policies),k(!1)})).catch((t=>{e((0,m.aW)((0,r.K)(t))),k(!1)})):k(!1))}),[p,e,N,f]),(0,_.jsxs)(s.Fragment,{children:[(0,_.jsx)(n.eCc,{separator:!0,children:(0,_.jsx)(n.M5Y,{content:(0,_.jsxs)(s.Fragment,{children:["Understand which"," ",(0,_.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/linux/administration/identity-access-management/policy-based-access-control.html#",children:"Policies"})," ","and"," ",(0,_.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/linux/administration/identity-access-management/minio-user-management.html",children:"Users"})," ","are authorized to access this Bucket."]}),placement:"right",children:"Access Audit"})}),(0,_.jsx)(n.kZJ,{currentTabOrPath:b,onTabClick:e=>{O(e)},horizontal:!0,options:[{tabConfig:{label:"Policies",id:"simple-tab-0"},content:(0,_.jsx)(d.K,{scopes:[l.Oi.ADMIN_LIST_USER_POLICIES],resource:N,errorProps:{disabled:!0},children:A&&(0,_.jsx)(n.iSL,{noBackground:!0,itemActions:M,columns:[{label:"Name",elementKey:"name"}],isLoading:p,records:A,entityName:"Policies",idField:"name"})})},{tabConfig:{label:"Users",id:"simple-tab-1"},content:(0,_.jsx)(d.K,{scopes:[l.Oi.ADMIN_GET_POLICY,l.Oi.ADMIN_LIST_USERS,l.Oi.ADMIN_LIST_GROUPS],resource:N,matchAll:!0,errorProps:{disabled:!0},children:(0,_.jsx)(n.iSL,{noBackground:!0,itemActions:y,columns:[{label:"User",elementKey:"accessKey"}],isLoading:L,records:U,entityName:"Users",idField:"accessKey"})})}]})]})}}}]);
|
||||
//# sourceMappingURL=1496.e8c5dafd.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
@@ -1,2 +0,0 @@
|
||||
(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1596],{41596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var o=n(69060),l=n(47600),a=n(19536),s=n(66152),c=n(66156),r=n(61060),i=n(55707),u=n(18276),h=n(95705),d=n(50900),b=n(3428),f=n(48504),p=n(82496);const x=()=>{const e=(0,c.Ab)(),t=(0,a.w1)((e=>e.watch.messages)),[n,x]=(0,o.useState)(!1),[m,w]=(0,o.useState)("Select Bucket"),[g,y]=(0,o.useState)(""),[j,k]=(0,o.useState)(""),[v,S]=(0,o.useState)([]);(0,o.useEffect)((()=>{d.c.invoke("GET","/api/v1/buckets").then((e=>{let t=[];null!==e.buckets&&(t=e.buckets),S(t)})).catch((e=>{console.error(e)}))}),[]),(0,o.useEffect)((()=>{if(e((0,u.AF)()),n&&v.some((e=>e.name===m))){const t=new URL(window.location.toString()),n=!1?"9090":t.port,o=new URL(document.baseURI).pathname,a=(0,i.K_)(t.protocol),s=new l.w3cwebsocket("".concat(a,"://").concat(t.hostname,":").concat(n).concat(o,"ws/watch/").concat(m,"?prefix=").concat(g,"&suffix=").concat(j));let c=null;if(null!==s)return s.onopen=()=>{console.log("WebSocket Client Connected"),s.send("ok"),c=setInterval((()=>{s.send("ok")}),1e4)},s.onmessage=t=>{let n=JSON.parse(t.data.toString());n.Time=new Date(n.Time.toString()),n.key=Math.random(),e((0,u.oZ)(n))},s.onclose=()=>{clearInterval(c),console.log("connection closed by server"),x(!1)},()=>{s.close(1e3),clearInterval(c),console.log("closing websockets")}}else x(!1)}),[e,n,v,m,g,j]);const _=v.map((e=>({label:e.name,value:e.name})));(0,o.useEffect)((()=>{e((0,h.i8)("watch"))}),[]);const C=_.map((e=>({label:e.label,value:e.value})));return(0,p.jsxs)(o.Fragment,{children:[(0,p.jsx)(b.c,{label:"Watch",actions:(0,p.jsx)(f.c,{})}),(0,p.jsx)(s._al,{children:(0,p.jsxs)(s.yeN,{container:!0,children:[(0,p.jsxs)(s.yeN,{item:!0,xs:12,sx:{display:"flex",gap:10,marginBottom:15,alignItems:"center"},children:[(0,p.jsxs)(s.kvh,{sx:{flexGrow:1},children:[(0,p.jsx)(s.mWW,{children:"Bucket"}),(0,p.jsx)(s.M1e,{id:"bucket-name",name:"bucket-name",value:m,onChange:e=>{w(e)},disabled:n,options:C,placeholder:"Select Bucket"})]}),(0,p.jsxs)(s.kvh,{sx:{flexGrow:1},children:[(0,p.jsx)(s.mWW,{children:"Prefix"}),(0,p.jsx)(s.q22,{id:"prefix-resource",disabled:n,onChange:e=>{y(e.target.value)}})]}),(0,p.jsxs)(s.kvh,{sx:{flexGrow:1},children:[(0,p.jsx)(s.mWW,{children:"Suffix"}),(0,p.jsx)(s.q22,{id:"suffix-resource",disabled:n,onChange:e=>{k(e.target.value)}})]}),(0,p.jsx)(s.kvh,{sx:{alignSelf:"flex-end",paddingBottom:4},children:n?(0,p.jsx)(s.qaq,{id:"stop-watch",type:"submit",variant:"callAction",onClick:()=>x(!1),label:"Stop"}):(0,p.jsx)(s.qaq,{id:"start-watch",type:"submit",variant:"callAction",onClick:()=>x(!0),label:"Start"})})]}),(0,p.jsx)(s.yeN,{item:!0,xs:12,children:(0,p.jsx)(s.iSL,{columns:[{label:"Time",elementKey:"Time",renderFunction:r.gD},{label:"Size",elementKey:"Size",renderFunction:r.U7},{label:"Type",elementKey:"Type"},{label:"Path",elementKey:"Path"}],records:t,entityName:"Watch",customEmptyMessage:"No Changes at this time",idField:"watch_table",isLoading:!1,customPaperHeight:"calc(100vh - 270px)"})})]})})]})}},7504:e=>{var t=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},47600:(e,t,n)=>{var o;if("object"===typeof globalThis)o=globalThis;else try{o=n(7504)}catch(c){}finally{if(o||"undefined"===typeof window||(o=window),!o)throw new Error("Could not determine global this")}var l=o.WebSocket||o.MozWebSocket,a=n(3068);function s(e,t){return t?new l(e,t):new l(e)}l&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(s,e,{get:function(){return l[e]}})})),e.exports={w3cwebsocket:l?s:null,version:a}},3068:(e,t,n)=>{e.exports=n(40648).version},40648:e=>{"use strict";e.exports={version:"1.0.34"}}}]);
|
||||
//# sourceMappingURL=1596.f3c6b059.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
2
web-app/build/static/js/1702.9ff3a82e.chunk.js
Normal file
2
web-app/build/static/js/1702.9ff3a82e.chunk.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2012],{24256:(e,t,n)=>{n.d(t,{c:()=>i});var l=n(69060),a=n(58564),o=n.n(a),s=n(66152),c=n(82496);const i=e=>{let{elements:t,name:n,label:a,tooltip:i="",commonPlaceholder:r="",onChange:h,withBorder:d=!1}=e;const[u,m]=(0,l.useState)([""]),f=(0,l.createRef)();(0,l.useEffect)((()=>{if(1===u.length&&""===u[0]&&t&&""!==t){const e=t.split(",");e.push(""),m(e)}}),[t,u]),(0,l.useEffect)((()=>{if(u.length>1){const e=f.current;e&&e.scrollIntoView(!1)}}),[u,f]);const p=(0,l.useCallback)((e=>{h(e)}),[h]),v=(0,l.useRef)(!0);(0,l.useEffect)((()=>{if(v.current)return void(v.current=!1);const e=u.filter((e=>""!==e.trim())).join(",");p(e)}),[u]);const x=e=>{e.persist();let t=[...u];const n=o()(e.target,"dataset.index","0");t[parseInt(n)]=e.target.value,m(t)},g=u.map(((e,t)=>(0,c.jsx)(s.q22,{id:"".concat(n,"-").concat(t.toString()),label:"",name:"".concat(n,"-").concat(t.toString()),value:u[t],onChange:x,index:t,placeholder:r,overlayIcon:t===u.length-1?(0,c.jsx)(s.EgV,{}):null,overlayAction:()=>{(e=>{if(""!==e[e.length-1].trim()){const t=[...e];t.push(""),m(t)}})(u)}},"csv-multi-".concat(n,"-").concat(t.toString()))));return(0,c.jsx)(l.Fragment,{children:(0,c.jsxs)(s.kvh,{sx:{display:"flex"},className:"inputItem",children:[(0,c.jsxs)(s.mWW,{sx:{alignItems:"flex-start"},children:[(0,c.jsx)("span",{children:a}),""!==i&&(0,c.jsx)(s.kvh,{sx:{marginLeft:5,display:"flex",alignItems:"center","& .min-icon":{width:13}},children:(0,c.jsx)(s.o5h,{tooltip:i,placement:"top",children:(0,c.jsx)(s.kvh,{className:i,children:(0,c.jsx)(s.OKz,{})})})})]}),(0,c.jsxs)(s.kvh,{withBorders:d,sx:{width:"100%",overflowY:"auto",height:150,position:"relative"},children:[g,(0,c.jsx)("div",{ref:f})]})]})})}},22012:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i,valueDef:()=>c});var l=n(69060),a=n(66152),o=n(24256),s=n(82496);const c=(e,t,n)=>{let l="on|off"===t?"off":"";if(n.length>0){const t=n.find((t=>t.key===e));t&&(l=t.value||"")}return l},i=e=>{let{onChange:t,fields:n,defaultVals:i,overrideEnv:r}=e;const[h,d]=(0,l.useState)([]),u=n||[],m=i||[];(0,l.useEffect)((()=>{const e=n.map((e=>({key:e.name,value:c(e.name,e.type,m)})));d(e)}),[n,i]),(0,l.useEffect)((()=>{t(h)}),[h]);const f=(e,t,n)=>{const l=[...h];t=t.trim(),l[n]={key:e,value:t},d(l)},p=(e,t)=>{const n=h[t];if(n){const t=null===r||void 0===r?void 0:r["".concat(n.key)];if(t)return(0,s.jsx)(a.E$k,{label:e.label,actionButton:(0,s.jsx)(a.yeN,{item:!0,sx:{display:"flex",justifyContent:"flex-end",paddingRight:"10px"},children:(0,s.jsx)(a.o5h,{tooltip:"This value is set from the ".concat(t.overrideEnv," environment variable"),placement:"left",children:(0,s.jsx)(a.Mz0,{style:{width:20}})})}),sx:{width:"100%"},children:t.value})}switch(e.type){case"on|off":const l=n?n.value:"off";return(0,s.jsx)(a.Wkk,{onChange:n=>{const l=n.target.checked?"on":"off";f(e.name,l,t)},id:e.name,name:e.name,label:e.label,value:"switch_on",tooltip:e.tooltip,checked:"on"===l});case"csv":return(0,s.jsx)(o.c,{elements:n?n.value:"",label:e.label,name:e.name,onChange:n=>{let l="";l=Array.isArray(n)?n.join(","):n,f(e.name,l,t)},tooltip:e.tooltip,commonPlaceholder:e.placeholder,withBorder:!0});case"comment":return(0,s.jsx)(a.W_2,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:n?n.value:"",onChange:n=>f(e.name,n.target.value,t),placeholder:e.placeholder});default:return(0,s.jsx)(a.q22,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:n?n.value:"",onChange:n=>f(e.name,n.target.value,t),placeholder:e.placeholder})}};return(0,s.jsx)(a.yE_,{withBorders:!1,containerPadding:!1,children:u.map(((e,t)=>(0,s.jsx)(l.Fragment,{children:p(e,t)},e.name)))})}}}]);
|
||||
//# sourceMappingURL=2012.7d122587.chunk.js.map
|
||||
2
web-app/build/static/js/2033.a09fb9da.chunk.js
Normal file
2
web-app/build/static/js/2033.a09fb9da.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2033.a09fb9da.chunk.js.map
Normal file
1
web-app/build/static/js/2033.a09fb9da.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2124],{2124:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});t(69060);var s=t(4836),i=t(66152),l=t(92432),o=t(86260),a=t(15144),c=t(82496);const r=e=>{let{isOpen:n,onClose:t}=e;return(0,c.jsx)(s.c,{modalOpen:n,title:"License",onClose:()=>{t()},children:(0,c.jsxs)(i.kvh,{sx:{display:"flex",flexFlow:"column","& .link-text":{color:"#2781B0",fontWeight:600}},children:[(0,c.jsx)(i.kvh,{sx:{display:"flex",alignItems:"center",marginBottom:"40px",justifyContent:"center","& .min-icon":{fill:"blue",width:"188px",height:"62px"}},children:(0,c.jsx)(i.kqt,{})}),(0,c.jsxs)(i.kvh,{sx:{marginBottom:"27px"},children:["By using this software, you acknowledge that MinIO software is licensed under the ",(0,c.jsx)(o.c,{}),", for which, the full text can be found here:"," ",(0,c.jsx)("a",{href:"https://www.gnu.org/licenses/agpl-3.0.html",rel:"noopener",className:"link-text",children:"https://www.gnu.org/licenses/agpl-3.0.html."})]}),(0,c.jsxs)(i.kvh,{sx:{paddingBottom:"23px"},children:["Please review the terms carefully and ensure you are in compliance with the obligations of the license. If you are not able to satisfy the license obligations, we offer a commercial license which is available here:"," ",(0,c.jsx)("a",{href:"https://min.io/signup?ref=con",rel:"noopener",className:"link-text",children:"https://min.io/signup."})]}),(0,c.jsx)(a.c,{}),(0,c.jsx)(i.kvh,{sx:{marginTop:"19px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(i.qaq,{id:"confirm",type:"button",variant:"callAction",onClick:()=>{(0,l.Yn)(),t()},label:"Acknowledge"})})]})})}}}]);
|
||||
//# sourceMappingURL=2124.2a71d5a5.chunk.js.map
|
||||
2
web-app/build/static/js/2138.d05b3faa.chunk.js
Normal file
2
web-app/build/static/js/2138.d05b3faa.chunk.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/2166.1e6c2b39.chunk.js
Normal file
2
web-app/build/static/js/2166.1e6c2b39.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2166.1e6c2b39.chunk.js.map
Normal file
1
web-app/build/static/js/2166.1e6c2b39.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/2209.3b0ca7fa.chunk.js
Normal file
2
web-app/build/static/js/2209.3b0ca7fa.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2209],{72237:(e,n,s)=>{s.d(n,{A:()=>a});var t=s(65043),l=s(70579);const a=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(s){return(0,l.jsx)(t.Suspense,{fallback:n,children:(0,l.jsx)(e,{...s})})}}},12209:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var t=s(65043),l=s(73216),a=s(39808),h=s(72237),c=s(70579);const p=(0,h.A)(t.lazy((()=>s.e(985).then(s.bind(s,10985))))),u=(0,h.A)(t.lazy((()=>s.e(1370).then(s.bind(s,81370))))),r=()=>(0,c.jsxs)(l.BV,{children:[(0,c.jsx)(l.qh,{path:"/",element:(0,c.jsx)(p,{})}),(0,c.jsx)(l.qh,{path:":policyName",element:(0,c.jsx)(u,{})}),(0,c.jsx)(l.qh,{element:(0,c.jsx)(a.A,{})})]})}}]);
|
||||
//# sourceMappingURL=2209.3b0ca7fa.chunk.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"static/js/6432.31d6d652.chunk.js","mappings":"8IAiCA,QAfA,SACEA,GAEC,IADDC,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KAUtC,OARA,SAA+BG,GAC7B,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAACN,SAAUA,EAASO,UAC3BF,EAAAA,EAAAA,KAACN,EAAgB,IAAMK,KAG7B,CAGF,C,2GCtBA,MAAMI,GAAeC,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAC7CC,GAAgBF,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAYpD,EAViBE,KAEbC,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAP,SAAA,EACLF,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAM,IAAKC,SAASZ,EAAAA,EAAAA,KAACG,EAAY,OACxCH,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAI,cAAiBC,SAASZ,EAAAA,EAAAA,KAACM,EAAa,OACnDN,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACE,SAASZ,EAAAA,EAAAA,KAACa,EAAAA,EAAY,Q","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/Policies/Policies.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense<P extends string | number | object>(\n WrappedComponent: ComponentType<P>,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n <Suspense fallback={fallback}>\n <WrappedComponent {...(props as any)} />\n </Suspense>\n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\nimport NotFoundPage from \"../../NotFoundPage\";\nimport withSuspense from \"../Common/Components/withSuspense\";\n\nconst ListPolicies = withSuspense(React.lazy(() => import(\"./ListPolicies\")));\nconst PolicyDetails = withSuspense(React.lazy(() => import(\"./PolicyDetails\")));\n\nconst Policies = () => {\n return (\n <Routes>\n <Route path={\"/\"} element={<ListPolicies />} />\n <Route path={`:policyName`} element={<PolicyDetails />} />\n <Route element={<NotFoundPage />} />\n </Routes>\n );\n};\n\nexport default Policies;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","ListPolicies","withSuspense","React","PolicyDetails","Policies","_jsxs","Routes","Route","path","element","NotFoundPage"],"sourceRoot":""}
|
||||
{"version":3,"file":"static/js/2209.3b0ca7fa.chunk.js","mappings":"8IAiCA,QAfA,SACEA,GAEC,IADDC,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KAUtC,OARA,SAA+BG,GAC7B,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAACN,SAAUA,EAASO,UAC3BF,EAAAA,EAAAA,KAACN,EAAgB,IAAMK,KAG7B,CAGF,C,2GCtBA,MAAMI,GAAeC,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,kCAC7CC,GAAgBF,EAAAA,EAAAA,GAAaC,EAAAA,MAAW,IAAM,mCAYpD,EAViBE,KAEbC,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAP,SAAA,EACLF,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAM,IAAKC,SAASZ,EAAAA,EAAAA,KAACG,EAAY,OACxCH,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACC,KAAI,cAAiBC,SAASZ,EAAAA,EAAAA,KAACM,EAAa,OACnDN,EAAAA,EAAAA,KAACU,EAAAA,GAAK,CAACE,SAASZ,EAAAA,EAAAA,KAACa,EAAAA,EAAY,Q","sources":["screens/Console/Common/Components/withSuspense.tsx","screens/Console/Policies/Policies.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense<P extends string | number | object>(\n WrappedComponent: ComponentType<P>,\n fallback: SuspenseProps[\"fallback\"] = null,\n) {\n function ComponentWithSuspense(props: P) {\n return (\n <Suspense fallback={fallback}>\n <WrappedComponent {...(props as any)} />\n </Suspense>\n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\n\nimport NotFoundPage from \"../../NotFoundPage\";\nimport withSuspense from \"../Common/Components/withSuspense\";\n\nconst ListPolicies = withSuspense(React.lazy(() => import(\"./ListPolicies\")));\nconst PolicyDetails = withSuspense(React.lazy(() => import(\"./PolicyDetails\")));\n\nconst Policies = () => {\n return (\n <Routes>\n <Route path={\"/\"} element={<ListPolicies />} />\n <Route path={`:policyName`} element={<PolicyDetails />} />\n <Route element={<NotFoundPage />} />\n </Routes>\n );\n};\n\nexport default Policies;\n"],"names":["WrappedComponent","fallback","arguments","length","undefined","props","_jsx","Suspense","children","ListPolicies","withSuspense","React","PolicyDetails","Policies","_jsxs","Routes","Route","path","element","NotFoundPage"],"sourceRoot":""}
|
||||
2
web-app/build/static/js/2332.7f421c9f.chunk.js
Normal file
2
web-app/build/static/js/2332.7f421c9f.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2332],{32332:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j,emptyContent:()=>y});var a=n(65043),s=n(89923),l=n(73216),o=n(99161),r=n(64159),c=n(20554),i=n(77403),p=n(38375),x=n(48793),m=n(92452),d=n(56629),u=n(53518),h=n(70579);const y='{\n "bytes": ""\n}',j=()=>{const e=(0,c.jL)(),t=(0,l.Zp)(),[n,j]=(0,a.useState)(!1),[b,k]=(0,a.useState)(""),[f,C]=(0,a.useState)(y),S=""!==b.trim()&&-1===b.indexOf(" ");return(0,a.useEffect)((()=>{e((0,r.ph)("import_key"))}),[]),(0,h.jsx)(a.Fragment,{children:(0,h.jsxs)(s.xA9,{item:!0,xs:12,children:[(0,h.jsx)(x.A,{label:(0,h.jsx)(s.EGL,{onClick:()=>t(o.zZ.KMS_KEYS),label:"Keys"}),actions:(0,h.jsx)(m.A,{})}),(0,h.jsx)(s.Mxu,{children:(0,h.jsx)(s.Hbc,{title:"Import Key",icon:(0,h.jsx)(s.No_,{}),helpBox:(0,h.jsx)(p.A,{helpText:"Encryption Key",contents:["Import a cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,h.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:n=>{(n=>{j(!0),n.preventDefault();let a=JSON.parse(f);d.F.kms.kmsImportKey(b,a).then((e=>{t("".concat(o.zZ.KMS_KEYS))})).catch((async t=>{const n=await t.json();e((0,r.C9)((0,u.S)(n)))})).finally((()=>j(!1)))})(n)},children:[(0,h.jsx)(s.cl_,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:b,error:(e=>-1!==e.indexOf(" ")?"Key name cannot contain spaces":"")(b),onChange:e=>{k(e.target.value)}}),(0,h.jsx)(s.BYM,{label:"Set key Content",value:f,onChange:e=>{C(e)},editorHeight:"350px"}),(0,h.jsxs)(s.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,h.jsx)(s.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{k(""),C("")},label:"Clear"}),(0,h.jsx)(s.$nd,{id:"import-key",type:"submit",variant:"callAction",color:"primary",disabled:n||!S,label:"Import"})]})]})})})]})})}},38375:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(65043),s=n(89923),l=n(70579);const o=e=>{let{helpText:t,contents:n}=e;return(0,l.jsx)(s.lVp,{iconComponent:(0,l.jsx)(s.nag,{}),title:t,help:(0,l.jsx)(a.Fragment,{children:n.map((e=>(0,l.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:e})))})})}}}]);
|
||||
//# sourceMappingURL=2332.7f421c9f.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/2372.aaeaeefa.chunk.js
Normal file
2
web-app/build/static/js/2372.aaeaeefa.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2372.aaeaeefa.chunk.js.map
Normal file
1
web-app/build/static/js/2372.aaeaeefa.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/24.1245bd95.chunk.js
Normal file
2
web-app/build/static/js/24.1245bd95.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[24],{60024:(e,s,t)=>{t.r(s),t.d(s,{default:()=>h});var r=t(65043),l=t(89923),a=t(77403),n=t(20649),o=t(13109),d=t(94141),i=t(64159),c=t(20554),u=t(70579);const h=e=>{let{open:s,checkedUsers:t,closeModalAndRefresh:h}=e;const p=(0,c.jL)(),[x,j]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1),[m,f]=(0,r.useState)([]);(0,r.useEffect)((()=>{x&&(m.length>0?n.A.invoke("PUT","/api/v1/users-groups-bulk",{groups:m,users:t}).then((()=>{j(!1),g(!0)})).catch((e=>{j(!1),p((0,i.Dy)(e))})):(j(!1),p((0,i.Dy)({errorMessage:"You need to select at least one group to assign",detailedError:""}))))}),[x,j,h,m,t,p]);return(0,u.jsx)(d.A,{modalOpen:s,onClose:()=>{h(b)},title:b?"The selected users were added to the following groups.":"Add Users to Group",titleIcon:(0,u.jsx)(l.WC,{}),children:b?(0,u.jsx)(r.Fragment,{children:(0,u.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,sx:{margin:"30px 0"},children:[(0,u.jsx)(l.EmB,{label:"Groups",sx:{width:"100%"},children:m.join(", ")}),(0,u.jsxs)(l.EmB,{label:"Users",sx:{width:"100%"},children:[" ",t.join(", ")," "]})]})}):(0,u.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:e=>{e.preventDefault(),j(!0)},children:[(0,u.jsxs)(l.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(l.EmB,{label:"Selected Users",sx:{width:"100%"},children:t.join(", ")}),(0,u.jsx)(o.A,{selectedGroups:m,setSelectedGroups:f})]}),(0,u.jsxs)(l.xA9,{item:!0,xs:12,sx:a.Uz.modalButtonBar,children:[(0,u.jsx)(l.$nd,{id:"clear-bulk-add-group",type:"button",variant:"regular",color:"primary",onClick:()=>{f([])},label:"Clear"}),(0,u.jsx)(l.$nd,{id:"save-add-group",type:"submit",variant:"callAction",disabled:x||m.length<1,label:"Save"})]}),x&&(0,u.jsx)(l.xA9,{item:!0,xs:12,children:(0,u.jsx)(l.z21,{})})]})})}}}]);
|
||||
//# sourceMappingURL=24.1245bd95.chunk.js.map
|
||||
1
web-app/build/static/js/24.1245bd95.chunk.js.map
Normal file
1
web-app/build/static/js/24.1245bd95.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2492],{92492:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(69060),s=a(39427),d=a(66152),o=a(19536),l=a(4836),r=a(66156),i=a(10732),c=a(61628),u=a(82496);const w=e=>{let{closeModalAndRefresh:t,open:a,bucketName:w}=e;const b=(0,r.Ab)(),h=(0,o.w1)((e=>e.objectBrowser.rewind.rewindEnabled)),S=(0,o.w1)((e=>e.objectBrowser.rewind.dateToRewind)),[p,k]=(0,n.useState)(!1),[x,C]=(0,n.useState)(!0),[j,m]=(0,n.useState)(s.CS.fromJSDate(new Date));(0,n.useEffect)((()=>{h&&(C(!0),m(s.CS.fromISO(S||s.CS.now().toISO()||"")))}),[h,S]);return(0,u.jsx)(l.c,{modalOpen:a,onClose:()=>{t()},title:"Rewind - ".concat(w),children:(0,u.jsxs)(d.yE_,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(d.KuV,{value:j,onChange:e=>e?m(e):null,id:"rewind-selector",label:"Rewind to",timeFormat:"24h",secondsSelector:!1,disabled:!x}),h&&(0,u.jsx)(d.Wkk,{value:"status",id:"status",name:"status",checked:x,onChange:e=>{C(e.target.checked)},label:"Current Status",indicatorLabels:["Enabled","Disabled"]}),(0,u.jsx)(d.yeN,{item:!0,xs:12,sx:c.W2.modalButtonBar,children:(0,u.jsx)(d.qaq,{type:"button",variant:"callAction",disabled:p||!j&&x,onClick:()=>{!x&&h?b((0,i.It)()):(k(!0),b((0,i.sV)({state:!0,bucket:w,dateRewind:j.toISO()}))),b((0,i.QP)(!0)),t()},id:"rewind-apply-button",label:!x&&h?"Show Current Data":"Show Rewind Data"})}),p&&(0,u.jsx)(d.yeN,{item:!0,xs:12,children:(0,u.jsx)(d.cHM,{})})]})})}}}]);
|
||||
//# sourceMappingURL=2492.ad98215a.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/2689.5e76c1cd.chunk.js
Normal file
2
web-app/build/static/js/2689.5e76c1cd.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2689],{62689:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var i=n(65043),l=n(22166),s=n(73216),c=n(89923),r=n(20649),a=n(77938),o=n(99161),d=n(64159),u=n(39947),p=n(20554),h=n(6681),b=n(72237),x=n(70579);const m=(0,b.A)(i.lazy((()=>n.e(9714).then(n.bind(n,79714))))),A=(0,b.A)(i.lazy((()=>n.e(459).then(n.bind(n,10459))))),R=(0,b.A)(i.lazy((()=>n.e(8152).then(n.bind(n,28152))))),_=()=>{const e=(0,p.jL)(),t=(0,s.g)(),n=(0,l.d4)(u.Nx),[b,_]=(0,i.useState)(!0),[j,O]=(0,i.useState)([]),[I,S]=(0,i.useState)(!1),[T,k]=(0,i.useState)(!1),[g,N]=(0,i.useState)(!1),[C,f]=(0,i.useState)(""),[y,P]=(0,i.useState)([]),[E,v]=(0,i.useState)(!1),F=t.bucketName||"",V=(0,a._)(F,[o.OV.S3_GET_REPLICATION_CONFIGURATION,o.OV.S3_GET_ACTIONS]);(0,i.useEffect)((()=>{e((0,d.ph)("bucket_detail_replication"))}),[]),(0,i.useEffect)((()=>{n&&_(!0)}),[n,_]),(0,i.useEffect)((()=>{b&&(V?r.A.invoke("GET","/api/v1/buckets/".concat(F,"/replication")).then((e=>{const t=e.rules?e.rules:[];t.sort(((e,t)=>e.priority-t.priority)),O(t),_(!1)})).catch((t=>{e((0,d.C9)(t)),_(!1)})):_(!1))}),[b,e,F,V]);const w=function(){k(arguments.length>0&&void 0!==arguments[0]&&arguments[0])},U=(0,s.Zp)(),G=[{type:"delete",onClick:e=>{f(e.id),v(!1),S(!0)}},{type:"view",onClick:e=>{f(e.id),U("/buckets/edit-replication?bucketName=".concat(F,"&ruleID=").concat(e.id))},disableButtonFunction:!(0,a._)(F,[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],!0)}];return(0,x.jsxs)(i.Fragment,{children:[T&&(0,x.jsx)(A,{closeModalAndRefresh:()=>{w(!1),_(!0)},open:T,bucketName:F,setReplicationRules:j}),I&&(0,x.jsx)(R,{deleteOpen:I,selectedBucket:F,closeDeleteModalAndRefresh:e=>{S(!1),e&&_(!0)},ruleToDelete:C,rulesToDelete:y,remainingRules:j.length,allSelected:j.length>0&&y.length===j.length,deleteSelectedRules:E}),g&&(0,x.jsx)(m,{closeModalAndRefresh:e=>{N(!1),e&&_(!0)},open:g,bucketName:F,ruleID:C}),(0,x.jsx)(c._xt,{separator:!0,sx:{marginBottom:15},actions:(0,x.jsxs)(c.azJ,{style:{display:"flex",gap:10},children:[(0,x.jsx)(a.R,{scopes:[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],resource:F,matchAll:!0,errorProps:{disabled:!0},children:(0,x.jsx)(h.A,{tooltip:"Remove Selected Replication Rules",children:(0,x.jsx)(c.$nd,{id:"remove-bucket-replication-rule",onClick:()=>{f("selectedRules"),v(!0),S(!0)},label:"Remove Selected Rules",icon:(0,x.jsx)(c.ucK,{}),color:"secondary",disabled:0===y.length||0===j.length,variant:"secondary"})})}),(0,x.jsx)(a.R,{scopes:[o.OV.S3_PUT_REPLICATION_CONFIGURATION,o.OV.S3_PUT_ACTIONS],resource:F,matchAll:!0,errorProps:{disabled:!0},children:(0,x.jsx)(h.A,{tooltip:"Add Replication Rule",children:(0,x.jsx)(c.$nd,{id:"add-bucket-replication-rule",onClick:()=>{U(o.zZ.BUCKETS_ADD_REPLICATION+"?bucketName=".concat(F,"&nextPriority=").concat(j.length+1))},label:"Add Replication Rule",icon:(0,x.jsx)(c.REV,{}),variant:"callAction"})})})]}),children:(0,x.jsx)(c.V7x,{content:(0,x.jsxs)(i.Fragment,{children:["MinIO"," ",(0,x.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/kubernetes/upstream/administration/bucket-replication.html",children:"server-side bucket replication"})," ","is an automatic bucket-level configuration that synchronizes objects between a source and destination bucket."]}),placement:"right",children:"Replication"})}),(0,x.jsxs)(c.xA9,{container:!0,children:[(0,x.jsx)(c.xA9,{item:!0,xs:12,children:(0,x.jsx)(a.R,{scopes:[o.OV.S3_GET_REPLICATION_CONFIGURATION,o.OV.S3_GET_ACTIONS],resource:F,errorProps:{disabled:!0},children:(0,x.jsx)(c.bQt,{itemActions:G,columns:[{label:"Priority",elementKey:"priority",width:55,contentTextAlign:"center"},{label:"Destination",elementKey:"destination",renderFunction:e=>(0,x.jsx)(i.Fragment,{children:e.bucket.replace("arn:aws:s3:::","")})},{label:"Prefix",elementKey:"prefix",width:200},{label:"Tags",elementKey:"tags",renderFunction:e=>(0,x.jsx)(i.Fragment,{children:e&&""!==e.tags?"Yes":"No"}),width:60},{label:"Status",elementKey:"status",width:100}],isLoading:b,records:j,entityName:"Replication Rules",idField:"id",customPaperHeight:"400px",textSelectable:!0,selectedItems:y,onSelect:e=>(e=>{const t=e.target,n=t.value,i=t.checked;let l=[...y];return i?l.push(n):l=l.filter((e=>e!==n)),P(l),l})(e),onSelectAll:()=>{y.length!==j.length?P(j.map((e=>e.id))):P([])}})})}),(0,x.jsxs)(c.xA9,{item:!0,xs:12,children:[(0,x.jsx)("br",{}),(0,x.jsx)(c.lVp,{title:"Replication",iconComponent:(0,x.jsx)(c.brV,{}),help:(0,x.jsxs)(i.Fragment,{children:["MinIO supports server-side and client-side replication of objects between source and destination buckets.",(0,x.jsx)("br",{}),(0,x.jsx)("br",{}),"You can learn more at our"," ",(0,x.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/bucket-replication.html?ref=con",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})]})]})]})}}}]);
|
||||
//# sourceMappingURL=2689.5e76c1cd.chunk.js.map
|
||||
1
web-app/build/static/js/2689.5e76c1cd.chunk.js.map
Normal file
1
web-app/build/static/js/2689.5e76c1cd.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/2704.fe33dd23.chunk.js
Normal file
2
web-app/build/static/js/2704.fe33dd23.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2704],{32704:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(65043),s=a(24241),d=a(89923),o=a(22166),l=a(94141),r=a(20554),c=a(6035),i=a(77403),u=a(70579);const w=e=>{let{closeModalAndRefresh:t,open:a,bucketName:w}=e;const b=(0,r.jL)(),h=(0,o.d4)((e=>e.objectBrowser.rewind.rewindEnabled)),x=(0,o.d4)((e=>e.objectBrowser.rewind.dateToRewind)),[j,p]=(0,n.useState)(!1),[S,m]=(0,n.useState)(!0),[k,f]=(0,n.useState)(s.c9.fromJSDate(new Date));(0,n.useEffect)((()=>{h&&(m(!0),f(s.c9.fromISO(x||s.c9.now().toISO()||"")))}),[h,x]);return(0,u.jsx)(l.A,{modalOpen:a,onClose:()=>{t()},title:"Rewind - ".concat(w),children:(0,u.jsxs)(d.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,u.jsx)(d.e8j,{value:k,onChange:e=>e?f(e):null,id:"rewind-selector",label:"Rewind to",timeFormat:"24h",secondsSelector:!1,disabled:!S}),h&&(0,u.jsx)(d.dOG,{value:"status",id:"status",name:"status",checked:S,onChange:e=>{m(e.target.checked)},label:"Current Status",indicatorLabels:["Enabled","Disabled"]}),(0,u.jsx)(d.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:(0,u.jsx)(d.$nd,{type:"button",variant:"callAction",disabled:j||!k&&S,onClick:()=>{!S&&h?b((0,c.rS)()):(p(!0),b((0,c.v8)({state:!0,bucket:w,dateRewind:k.toISO()}))),b((0,c.Yw)(!0)),t()},id:"rewind-apply-button",label:!S&&h?"Show Current Data":"Show Rewind Data"})}),j&&(0,u.jsx)(d.xA9,{item:!0,xs:12,children:(0,u.jsx)(d.z21,{})})]})})}}}]);
|
||||
//# sourceMappingURL=2704.fe33dd23.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
2
web-app/build/static/js/2959.fdc343fa.chunk.js
Normal file
2
web-app/build/static/js/2959.fdc343fa.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
web-app/build/static/js/2959.fdc343fa.chunk.js.map
Normal file
1
web-app/build/static/js/2959.fdc343fa.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/3035.b2eb0918.chunk.js
Normal file
2
web-app/build/static/js/3035.b2eb0918.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3035],{13035:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var a=n(65043),l=n(22166),s=n(89923),c=n(20554),o=n(56483),i=n(32511),r=n(68603),d=n(64159),u=n(20649),x=n(48793),h=n(92452),m=n(70579);const p=()=>{const e=(0,c.jL)(),t=(0,l.d4)((e=>e.watch.messages)),[n,p]=(0,a.useState)(!1),[b,f]=(0,a.useState)("Select Bucket"),[g,j]=(0,a.useState)(""),[w,k]=(0,a.useState)(""),[S,v]=(0,a.useState)([]);(0,a.useEffect)((()=>{u.A.invoke("GET","/api/v1/buckets").then((e=>{let t=[];null!==e.buckets&&(t=e.buckets),v(t)})).catch((e=>{console.error(e)}))}),[]),(0,a.useEffect)((()=>{if(e((0,r.n4)()),n&&S.some((e=>e.name===b))){const t=new URL(window.location.toString()),n=!1?"9090":t.port,a=new URL(document.baseURI).pathname,l=(0,i.nw)(t.protocol),s=new WebSocket("".concat(l,"://").concat(t.hostname,":").concat(n).concat(a,"ws/watch/").concat(b,"?prefix=").concat(g,"&suffix=").concat(w));let c=null;if(null!==s)return s.onopen=()=>{console.log("WebSocket Client Connected"),s.send("ok"),c=setInterval((()=>{s.send("ok")}),1e4)},s.onmessage=t=>{let n=JSON.parse(t.data.toString());n.Time=new Date(n.Time.toString()),n.key=Math.random(),e((0,r.ID)(n))},s.onclose=()=>{clearInterval(c),console.log("connection closed by server"),p(!1)},()=>{s.close(1e3),clearInterval(c),console.log("closing websockets")}}else p(!1)}),[e,n,S,b,g,w]);const y=S.map((e=>({label:e.name,value:e.name})));(0,a.useEffect)((()=>{e((0,d.ph)("watch"))}),[]);const C=y.map((e=>({label:e.label,value:e.value})));return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(x.A,{label:"Watch",actions:(0,m.jsx)(h.A,{})}),(0,m.jsx)(s.Mxu,{children:(0,m.jsxs)(s.xA9,{container:!0,children:[(0,m.jsxs)(s.xA9,{item:!0,xs:12,sx:{display:"flex",gap:10,marginBottom:15,alignItems:"center"},children:[(0,m.jsxs)(s.azJ,{sx:{flexGrow:1},children:[(0,m.jsx)(s.l1Y,{children:"Bucket"}),(0,m.jsx)(s.l6P,{id:"bucket-name",name:"bucket-name",value:b,onChange:e=>{f(e)},disabled:n,options:C,placeholder:"Select Bucket"})]}),(0,m.jsxs)(s.azJ,{sx:{flexGrow:1},children:[(0,m.jsx)(s.l1Y,{children:"Prefix"}),(0,m.jsx)(s.cl_,{id:"prefix-resource",disabled:n,onChange:e=>{j(e.target.value)}})]}),(0,m.jsxs)(s.azJ,{sx:{flexGrow:1},children:[(0,m.jsx)(s.l1Y,{children:"Suffix"}),(0,m.jsx)(s.cl_,{id:"suffix-resource",disabled:n,onChange:e=>{k(e.target.value)}})]}),(0,m.jsx)(s.azJ,{sx:{alignSelf:"flex-end",paddingBottom:4},children:n?(0,m.jsx)(s.$nd,{id:"stop-watch",type:"submit",variant:"callAction",onClick:()=>p(!1),label:"Stop"}):(0,m.jsx)(s.$nd,{id:"start-watch",type:"submit",variant:"callAction",onClick:()=>p(!0),label:"Start"})})]}),(0,m.jsx)(s.xA9,{item:!0,xs:12,children:(0,m.jsx)(s.bQt,{columns:[{label:"Time",elementKey:"Time",renderFunction:o.cj},{label:"Size",elementKey:"Size",renderFunction:o.nO},{label:"Type",elementKey:"Type"},{label:"Path",elementKey:"Path"}],records:t,entityName:"Watch",customEmptyMessage:"No Changes at this time",idField:"watch_table",isLoading:!1,customPaperHeight:"calc(100vh - 270px)"})})]})})]})}}}]);
|
||||
//# sourceMappingURL=3035.b2eb0918.chunk.js.map
|
||||
1
web-app/build/static/js/3035.b2eb0918.chunk.js.map
Normal file
1
web-app/build/static/js/3035.b2eb0918.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3052],{53052:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(69060),s=n(89940),o=n(70780),r=n(66152),c=n(95705),l=n(66156),i=n(82496);const d=e=>{let{deleteOpen:t,currentTags:n,selectedTag:d,onCloseAndUpdate:u,bucketName:p}=e;const b=(0,l.Ab)(),[g,h]=d,[w,f]=(0,s.c)((()=>u(!0)),(e=>b((0,c.aW)(e))));if(!d)return null;return(0,i.jsx)(o.c,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,i.jsx)(r.sB6,{}),isLoading:w,onConfirm:()=>{const e={...n};delete e[g],f("PUT","/api/v1/buckets/".concat(p,"/tags"),{tags:e})},onClose:()=>u(!1),confirmationContent:(0,i.jsxs)(a.Fragment,{children:["Are you sure you want to delete the tag"," ",(0,i.jsxs)("b",{style:{maxWidth:200,whiteSpace:"normal",wordWrap:"break-word"},children:[g," : ",h]})," ","?"]})})}}}]);
|
||||
//# sourceMappingURL=3052.c221a4c1.chunk.js.map
|
||||
2
web-app/build/static/js/3061.c8170979.chunk.js
Normal file
2
web-app/build/static/js/3061.c8170979.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3061],{43061:(e,l,t)=>{t.r(l),t.d(l,{default:()=>x});var o=t(65043),a=t(89923),n=t(32511),c=t(73216),i=t(14558),s=t(20554),r=t(64159),p=t(28481),d=t(48793),u=t(92452),b=t(70579),m=null;const x=()=>{const e=(0,c.Zp)(),[l,t]=(0,o.useState)(!1),[x,f]=(0,o.useState)(["cpu","mem","block","mutex","goroutines"]),h=(0,i.vf)(),g=e=>{let l=[];l=x.indexOf(e.target.value)>-1?x.filter((l=>l!==e.target.value)):[...x,e.target.value],f(l)},v=(0,s.jL)();return(0,o.useEffect)((()=>{v((0,r.ph)("profile"))}),[]),(0,b.jsxs)(o.Fragment,{children:[(0,b.jsx)(d.A,{label:"Profile",actions:(0,b.jsx)(u.A,{})}),(0,b.jsxs)(a.Mxu,{children:[!h&&(0,b.jsx)(p.A,{compactMode:!0}),(0,b.jsxs)(a.Hbc,{children:[(0,b.jsxs)(a.azJ,{sx:{display:"flex",gap:10,"& div":{width:"initial"},"& .inputItem:not(:last-of-type)":{marginBottom:0}},children:[(0,b.jsx)(a.l1Y,{noMinWidth:!0,children:"Types to profile:"}),[{label:"cpu",value:"cpu"},{label:"mem",value:"mem"},{label:"block",value:"block"},{label:"mutex",value:"mutex"},{label:"goroutines",value:"goroutines"}].map((e=>(0,b.jsx)(a.Sc0,{checked:x.indexOf(e.value)>-1,disabled:l||!h,id:"checkbox-".concat(e.label),label:e.label,name:"checkbox-".concat(e.label),onChange:g,value:e.value},"checkbox-".concat(e.label))))]}),(0,b.jsxs)(a.azJ,{sx:{display:"flex",justifyContent:"flex-end",marginTop:24,gap:10},children:[(0,b.jsx)(a.$nd,{id:"start-profiling",type:"submit",variant:h?"callAction":"regular",disabled:l||x.length<1||!h,onClick:()=>{h?(()=>{const e=x.join(","),l=new URL(window.location.toString()),o=l.port,a=new URL(document.baseURI).pathname,c=(0,n.nw)(l.protocol);if(null!==(m=new WebSocket("".concat(c,"://").concat(l.hostname,":").concat(o).concat(a,"ws/profile?types=").concat(e))))m.onopen=()=>{t(!0),m.send("ok")},m.onmessage=e=>{let l=new Blob([e.data],{type:"application/zip"});t(!1);var o=document.createElement("a");o.href=window.URL.createObjectURL(l),o.download="profile.zip",document.body.appendChild(o),o.click(),document.body.removeChild(o)},m.onclose=()=>{console.log("connection closed by server"),t(!1)}})():e("/support/register")},label:"Start Profiling"}),(0,b.jsx)(a.$nd,{id:"stop-profiling",type:"submit",variant:"callAction",color:"primary",disabled:!l||!h,onClick:()=>{m.close(1e3),t(!1)},label:"Stop Profiling"})]})]})]})]})}}}]);
|
||||
//# sourceMappingURL=3061.c8170979.chunk.js.map
|
||||
1
web-app/build/static/js/3061.c8170979.chunk.js.map
Normal file
1
web-app/build/static/js/3061.c8170979.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/3323.f86a698b.chunk.js
Normal file
2
web-app/build/static/js/3323.f86a698b.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3323],{43323:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var l=a(65043),s=a(89923),n=a(70579);const r=e=>{let{onChange:t}=e;const[a,r]=(0,l.useState)(!1),[o,u]=(0,l.useState)(""),[c,d]=(0,l.useState)(""),[i,m]=(0,l.useState)(""),[g,h]=(0,l.useState)(""),[p,b]=(0,l.useState)(""),[v,x]=(0,l.useState)(""),[j,f]=(0,l.useState)(""),[S,k]=(0,l.useState)("namespace"),[C,_]=(0,l.useState)(""),[w,E]=(0,l.useState)(""),[y,B]=(0,l.useState)(""),q=(0,l.useCallback)((()=>"".concat(p,":").concat(v,"@tcp(").concat(c,":").concat(g,")/").concat(i)),[p,v,c,g,i]);(0,l.useEffect)((()=>{if(""!==o){t([{key:"dsn_string",value:o},{key:"table",value:j},{key:"format",value:S},{key:"queue_dir",value:C},{key:"queue_limit",value:w},{key:"comment",value:y}])}}),[o,j,S,C,w,y,t]),(0,l.useEffect)((()=>{const e=q();u(e)}),[p,i,v,g,c,u,q]);return(0,n.jsxs)(s.Hbc,{withBorders:!1,containerPadding:!1,children:[(0,n.jsx)(s.dOG,{label:"Enter DNS String",checked:a,id:"checkedB",name:"checkedB",onChange:e=>{if(e.target.checked){const e=q();u(e)}else{const e=((e,t)=>{let a=new Map;const l=/(.*?):(.*?)@tcp\((.*?):(.*?)\)\/(.*?)$/gm;let s;for(;null!==(s=l.exec(e));)s.index===l.lastIndex&&l.lastIndex++,a.set("user",s[1]),a.set("password",s[2]),a.set("host",s[3]),a.set("port",s[4]),a.set("dbname",s[5]);return a})(o);d(e.get("host")?e.get("host")+"":""),h(e.get("port")?e.get("port")+"":""),m(e.get("dbname")?e.get("dbname")+"":""),b(e.get("user")?e.get("user")+"":""),x(e.get("password")?e.get("password")+"":"")}r(e.target.checked)},value:"dnsString"}),a?(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(s.azJ,{className:"inputItem",children:(0,n.jsx)(s.cl_,{id:"dsn-string",name:"dsn_string",label:"DSN String",value:o,onChange:e=>{u(e.target.value)}})})}):(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(s.azJ,{children:(0,n.jsxs)(s.azJ,{withBorders:!0,useBackground:!0,sx:{overflowY:"auto",height:170,marginBottom:12},children:[(0,n.jsx)(s.cl_,{id:"host",name:"host",label:"",placeholder:"Enter Host",value:c,onChange:e=>{d(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"db-name",name:"db-name",label:"",placeholder:"Enter DB Name",value:i,onChange:e=>{m(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"port",name:"port",label:"",placeholder:"Enter Port",value:g,onChange:e=>{h(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"user",name:"user",label:"",placeholder:"Enter User",value:p,onChange:e=>{b(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"password",name:"password",label:"",placeholder:"Enter Password",type:"password",value:v,onChange:e=>{x(e.target.value)}})]})}),(0,n.jsx)(s.xA9,{item:!0,xs:12,sx:{margin:"12px 0"},children:(0,n.jsx)(s.EmB,{label:"Connection String",multiLine:!0,children:o})})]}),(0,n.jsx)(s.cl_,{id:"table",name:"table",label:"Table",placeholder:"Enter Table Name",value:j,tooltip:"DB table name to store/update events, table is auto-created",onChange:e=>{f(e.target.value)}}),(0,n.jsx)(s.z6M,{currentValue:S,id:"format",name:"format",label:"Format",onChange:e=>{k(e.target.value)},tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",selectorOptions:[{label:"Namespace",value:"namespace"},{label:"Access",value:"access"}]}),(0,n.jsx)(s.cl_,{id:"queue-dir",name:"queue_dir",label:"Queue Dir",placeholder:"Enter Queue Dir",value:C,tooltip:"Staging directory for undelivered messages e.g. '/home/events'",onChange:e=>{_(e.target.value)}}),(0,n.jsx)(s.cl_,{id:"queue-limit",name:"queue_limit",label:"Queue Limit",placeholder:"Enter Queue Limit",type:"number",value:w,tooltip:"Maximum limit for undelivered messages, defaults to '10000'",onChange:e=>{E(e.target.value)}}),(0,n.jsx)(s.hFj,{id:"comment",name:"comment",label:"Comment",placeholder:"Enter custom notes if any",value:y,onChange:e=>{B(e.target.value)}})]})}}}]);
|
||||
//# sourceMappingURL=3323.f86a698b.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/3329.c2099208.chunk.js
Normal file
2
web-app/build/static/js/3329.c2099208.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3329],{53329:(e,n,t)=>{t.r(n),t.d(n,{default:()=>y});var a=t(65043),s=t(89923),r=t(73216),c=t(99161),l=t(20554),i=t(77403),o=t(38375),x=t(56629),d=t(64159),p=t(53518),j=t(70579);const h=()=>{const e=(0,l.jL)(),n=(0,r.Zp)(),[t,h]=(0,a.useState)(""),[m,u]=(0,a.useState)(!1),y=""!==t.trim()&&-1===t.indexOf(" ");return(0,j.jsx)(s.Mxu,{children:(0,j.jsx)(s.Hbc,{title:"Create Key",icon:(0,j.jsx)(s.No_,{}),helpBox:(0,j.jsx)(o.A,{helpText:"Encryption Key",contents:["Create a new cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,j.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:a=>{a.preventDefault(),u(!0),x.F.kms.kmsCreateKey({key:t}).then((e=>{n("".concat(c.zZ.KMS_KEYS))})).catch((async n=>{const t=await n.json();e((0,d.C9)((0,p.S)(t)))})).finally((()=>u(!1)))},children:(0,j.jsxs)(s.xA9,{container:!0,children:[(0,j.jsx)(s.xA9,{item:!0,xs:12,children:(0,j.jsx)(s.cl_,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:t,error:(e=>-1!==e.indexOf(" ")?"Key name cannot contain spaces":"")(t),onChange:e=>{h(e.target.value)}})}),(0,j.jsxs)(s.xA9,{item:!0,xs:12,sx:i.Uz.modalButtonBar,children:[(0,j.jsx)(s.$nd,{id:"clear",type:"button",variant:"regular",onClick:()=>{h("")},label:"Clear"}),(0,j.jsx)(s.$nd,{id:"save-key",type:"submit",variant:"callAction",color:"primary",disabled:m||!y,label:"Save"})]})]})})})})};var m=t(48793),u=t(92452);const y=()=>{const e=(0,l.jL)(),n=(0,r.Zp)();return(0,a.useEffect)((()=>{e((0,d.ph)("add_key"))}),[]),(0,j.jsx)(a.Fragment,{children:(0,j.jsxs)(s.xA9,{item:!0,xs:12,children:[(0,j.jsx)(m.A,{label:(0,j.jsx)(s.EGL,{label:"Keys",onClick:()=>n(c.zZ.KMS_KEYS)}),actions:(0,j.jsx)(u.A,{})}),(0,j.jsx)(h,{})]})})}},38375:(e,n,t)=>{t.d(n,{A:()=>c});var a=t(65043),s=t(89923),r=t(70579);const c=e=>{let{helpText:n,contents:t}=e;return(0,r.jsx)(s.lVp,{iconComponent:(0,r.jsx)(s.nag,{}),title:n,help:(0,r.jsx)(a.Fragment,{children:t.map((e=>(0,r.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:e})))})})}}}]);
|
||||
//# sourceMappingURL=3329.c2099208.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3400],{3400:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var c=s(69060),i=s(66152),n=s(19536),a=s(51560),o=s(61180),l=s(78256),r=s(21124),u=s(3992),d=s(95705),_=s(2432),p=s(66156),h=s(99748),m=s(84612),C=s(82496);const O=(0,h.c)(c.lazy((()=>s.e(4916).then(s.bind(s,74916))))),S=(0,h.c)(c.lazy((()=>s.e(1024).then(s.bind(s,11024))))),b=(0,h.c)(c.lazy((()=>s.e(9460).then(s.bind(s,29460))))),x=()=>{const e=(0,p.Ab)(),t=(0,a.W4)(),s=(0,n.w1)(_.qO),[h,x]=(0,c.useState)(!0),[T,f]=(0,c.useState)([]),[E,A]=(0,c.useState)(!1),[k,j]=(0,c.useState)(!1),[y,P]=(0,c.useState)(""),[B,I]=(0,c.useState)(!1),[K,U]=(0,c.useState)(""),[w,L]=(0,c.useState)(""),g=t.bucketName||"",N=(0,u.i)(g,[r.Oi.S3_GET_BUCKET_POLICY,r.Oi.S3_GET_ACTIONS]),Y=(0,u.i)(g,[r.Oi.S3_DELETE_BUCKET_POLICY]),F=(0,u.i)(g,[r.Oi.S3_PUT_BUCKET_POLICY,r.Oi.S3_PUT_ACTIONS]);(0,c.useEffect)((()=>{s&&x(!0)}),[s,x]);const G=[{type:"delete",disableButtonFunction:()=>!Y,onClick:e=>{j(!0),P(e.prefix)}},{type:"view",disableButtonFunction:()=>!F,onClick:e=>{U(e.prefix),L(e.access),I(!0)}}];(0,c.useEffect)((()=>{e((0,d.i8)("bucket_detail_prefix"))}),[]),(0,c.useEffect)((()=>{h&&(N?o.m.bucket.listAccessRulesWithBucket(g).then((e=>{f(e.data.accessRules),x(!1)})).catch((t=>{e((0,d.aW)((0,l.K)(t))),x(!1)})):x(!1))}),[h,e,N,g]);return(0,C.jsxs)(c.Fragment,{children:[E&&(0,C.jsx)(O,{modalOpen:E,onClose:()=>{A(!1),x(!0)},bucket:g}),k&&(0,C.jsx)(S,{modalOpen:k,onClose:()=>{j(!1),x(!0)},bucket:g,toDelete:y}),B&&(0,C.jsx)(b,{modalOpen:B,onClose:()=>{I(!1),x(!0)},bucket:g,toEdit:K,initial:w}),(0,C.jsx)(i.eCc,{separator:!0,sx:{marginBottom:15},actions:(0,C.jsx)(u.K,{scopes:[r.Oi.S3_GET_BUCKET_POLICY,r.Oi.S3_PUT_BUCKET_POLICY,r.Oi.S3_GET_ACTIONS,r.Oi.S3_PUT_ACTIONS],resource:g,matchAll:!0,errorProps:{disabled:!0},children:(0,C.jsx)(m.c,{tooltip:"Add Access Rule",children:(0,C.jsx)(i.qaq,{id:"add-bucket-access-rule",onClick:()=>{A(!0)},label:"Add Access Rule",icon:(0,C.jsx)(i.EgV,{}),variant:"callAction"})})}),children:(0,C.jsx)(i.M5Y,{content:(0,C.jsxs)(c.Fragment,{children:["Setting an"," ",(0,C.jsx)("a",{href:"https://min.io/docs/minio/linux/reference/minio-mc/mc-anonymous-set.html",target:"blank",children:"Anonymous"})," ","policy allows clients to access the Bucket or prefix contents and perform actions consistent with the specified policy without authentication."]}),placement:"right",children:"Anonymous Access"})}),(0,C.jsx)(u.K,{scopes:[r.Oi.S3_GET_BUCKET_POLICY,r.Oi.S3_GET_ACTIONS],resource:g,errorProps:{disabled:!0},children:(0,C.jsx)(i.iSL,{itemActions:G,columns:[{label:"Prefix",elementKey:"prefix",renderFunction:e=>e||"/"},{label:"Access",elementKey:"access"}],isLoading:h,records:T||[],entityName:"Access Rules",idField:"prefix"})})]})}}}]);
|
||||
//# sourceMappingURL=3400.f4b8f3e0.chunk.js.map
|
||||
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[352],{70352:(e,i,t)=>{t.r(i),t.d(i,{default:()=>f});var s=t(69060),c=t(51560),n=t(66152),a=t(19536),l=t(21124),o=t(3992),r=t(99748),d=t(95705),b=t(2432),_=t(66156),u=t(84612),T=t(3428),O=t(61180),x=t(78256),h=t(48504),C=t(82496);const E=(0,r.c)(s.lazy((()=>t.e(6532).then(t.bind(t,96532))))),m=(0,r.c)(s.lazy((()=>t.e(3400).then(t.bind(t,3400))))),j=(0,r.c)(s.lazy((()=>t.e(1496).then(t.bind(t,31496))))),I=(0,r.c)(s.lazy((()=>t.e(6186).then(t.bind(t,46186))))),S=(0,r.c)(s.lazy((()=>t.e(428).then(t.bind(t,428))))),k=(0,r.c)(s.lazy((()=>t.e(7904).then(t.bind(t,87904))))),p=(0,r.c)(s.lazy((()=>t.e(9572).then(t.bind(t,19572))))),f=()=>{var e;const i=(0,_.Ab)(),t=(0,c.i6)(),r=(0,c.W4)(),f=(0,c.IT)(),y=(0,a.w1)(d.wB),N=(0,a.w1)(b.qO),A=(0,a.w1)(b.yi),g=(0,a.w1)(d.zd),[w,U]=(0,s.useState)(!1),[B,v]=(0,s.useState)(!1),G=r.bucketName||"",L=(0,o.i)(G,l.kZ),F=(0,o.i)(G,l.DD);(0,s.useEffect)((()=>{i((0,d.i8)("bucket_details"))}),[]),(0,s.useEffect)((()=>{w||(i((0,b.E3)(!0)),U(!0))}),[w,i,U]),(0,s.useEffect)((()=>{N&&O.m.buckets.bucketInfo(G).then((e=>{i((0,b.E3)(!1)),i((0,b.Km)(e.data))})).catch((e=>{i((0,b.E3)(!1)),i((0,d.aW)((0,x.K)(e)))}))}),[G,N,i]);let P="/buckets/".concat(G);const R={events:"/admin/events",replication:"/admin/replication",lifecycle:"/admin/lifecycle",access:"/admin/access",prefix:"/admin/prefix"},z=e=>{let i=R[e];return i=i?"".concat(P).concat(i):"".concat(P).concat("/admin/summary"),i};return(0,C.jsxs)(s.Fragment,{children:[B&&(0,C.jsx)(E,{deleteOpen:B,selectedBucket:G,closeDeleteModalAndRefresh:e=>{(e=>{v(!1),e&&t("/buckets")})(e)}}),(0,C.jsx)(T.c,{label:(0,C.jsx)(n.y_F,{label:"Buckets",onClick:()=>t("/buckets")}),actions:(0,C.jsxs)(s.Fragment,{children:[(0,C.jsx)(u.c,{tooltip:F?"Browse Bucket":(0,l.q4)(l.M1[l.m0.BUCKET_VIEWER],"browsing this bucket"),children:(0,C.jsx)(n.qaq,{id:"switch-browse-view","aria-label":"Browse Bucket",onClick:()=>{t("/browser/".concat(G))},icon:(0,C.jsx)(n.imB,{style:{width:20,height:20,marginTop:-3}}),style:{padding:"0 10px"},disabled:!F})}),(0,C.jsx)(h.c,{})]})}),(0,C.jsxs)(n._al,{children:[(0,C.jsx)(n.g1F,{icon:(0,C.jsx)(s.Fragment,{children:(0,C.jsx)(n.Gme,{width:40})}),title:G,subTitle:(0,C.jsxs)(o.K,{scopes:[l.Oi.S3_GET_BUCKET_POLICY,l.Oi.S3_GET_ACTIONS],resource:G,children:[(0,C.jsx)("span",{style:{fontSize:15},children:"Access: "}),(0,C.jsx)("span",{style:{fontWeight:600,fontSize:15,textTransform:"capitalize"},children:null===A||void 0===A||null===(e=A.access)||void 0===e?void 0:e.toLowerCase()})]}),actions:(0,C.jsxs)(s.Fragment,{children:[(0,C.jsx)(o.K,{scopes:l.kZ,resource:G,errorProps:{disabled:!0},children:(0,C.jsx)(u.c,{tooltip:L?"":(0,l.q4)([l.Oi.S3_DELETE_BUCKET,l.Oi.S3_FORCE_DELETE_BUCKET],"deleting this bucket"),children:(0,C.jsx)(n.qaq,{id:"delete-bucket-button",onClick:()=>{v(!0)},label:"Delete Bucket",icon:(0,C.jsx)(n.g8$,{}),variant:"secondary",disabled:!L})})}),(0,C.jsx)(n.qaq,{id:"refresh-bucket-info",onClick:()=>{i((0,b.E3)(!0))},label:"Refresh",icon:(0,C.jsx)(n.W5k,{})})]}),sx:{marginBottom:15}}),(0,C.jsx)(n.kvh,{children:(0,C.jsx)(n.kZJ,{currentTabOrPath:f.pathname,useRouteTabs:!0,onTabClick:e=>{t(e)},options:[{tabConfig:{label:"Summary",id:"summary",to:z("summary")}},{tabConfig:{label:"Events",id:"events",disabled:!(0,o.i)(G,[l.Oi.S3_GET_BUCKET_NOTIFICATIONS,l.Oi.S3_PUT_BUCKET_NOTIFICATIONS,l.Oi.S3_GET_ACTIONS,l.Oi.S3_PUT_ACTIONS]),to:z("events")}},{tabConfig:{label:"Replication",id:"replication",disabled:!y||g.enabled&&g.curSite||!(0,o.i)(G,[l.Oi.S3_GET_REPLICATION_CONFIGURATION,l.Oi.S3_PUT_REPLICATION_CONFIGURATION,l.Oi.S3_GET_ACTIONS,l.Oi.S3_PUT_ACTIONS]),to:z("replication")}},{tabConfig:{label:"Lifecycle",id:"lifecycle",disabled:!y||!(0,o.i)(G,[l.Oi.S3_GET_LIFECYCLE_CONFIGURATION,l.Oi.S3_PUT_LIFECYCLE_CONFIGURATION,l.Oi.S3_GET_ACTIONS,l.Oi.S3_PUT_ACTIONS]),to:z("lifecycle")}},{tabConfig:{label:"Access",id:"access",disabled:!(0,o.i)(G,[l.Oi.ADMIN_GET_POLICY,l.Oi.ADMIN_LIST_USER_POLICIES,l.Oi.ADMIN_LIST_USERS]),to:z("access")}},{tabConfig:{label:"Anonymous",id:"anonymous",disabled:!(0,o.i)(G,[l.Oi.S3_GET_BUCKET_POLICY,l.Oi.S3_GET_ACTIONS]),to:z("prefix")}}],routes:(0,C.jsxs)(c.c5,{children:[(0,C.jsx)(c.kX,{path:"summary",element:(0,C.jsx)(I,{})}),(0,C.jsx)(c.kX,{path:"events",element:(0,C.jsx)(S,{})}),y&&(0,C.jsx)(c.kX,{path:"replication",element:(0,C.jsx)(k,{})}),y&&(0,C.jsx)(c.kX,{path:"lifecycle",element:(0,C.jsx)(p,{})}),(0,C.jsx)(c.kX,{path:"access",element:(0,C.jsx)(j,{})}),(0,C.jsx)(c.kX,{path:"prefix",element:(0,C.jsx)(m,{})}),(0,C.jsx)(c.kX,{path:"*",element:(0,C.jsx)(c.YX,{to:"/buckets/".concat(G,"/admin/summary")})})]})})})]})]})}},99748:(e,i,t)=>{t.d(i,{c:()=>n});var s=t(69060),c=t(82496);const n=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(t){return(0,c.jsx)(s.Suspense,{fallback:i,children:(0,c.jsx)(e,{...t})})}}}}]);
|
||||
//# sourceMappingURL=352.57c4d53b.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/3527.59dee34f.chunk.js
Normal file
2
web-app/build/static/js/3527.59dee34f.chunk.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3556],{43556:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n=a(69060),s=a(66152),c=a(51560),r=a(21124),l=a(66156),i=a(61628),o=a(52224),x=a(61180),d=a(95705),y=a(78256),m=a(82496);const p=()=>{const e=(0,l.Ab)(),t=(0,c.i6)(),[a,p]=(0,n.useState)(""),[h,j]=(0,n.useState)(!1),u=""!==a.trim()&&-1===a.indexOf(" ");return(0,m.jsx)(s._al,{children:(0,m.jsx)(s.yE_,{title:"Create Key",icon:(0,m.jsx)(s.MV9,{}),helpBox:(0,m.jsx)(o.c,{helpText:"Encryption Key",contents:["Create a new cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,m.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:n=>{n.preventDefault(),j(!0),x.m.kms.kmsCreateKey({key:a}).then((e=>{t("".concat(r.Ks.KMS_KEYS))})).catch((async t=>{const a=await t.json();e((0,d.aW)((0,y.K)(a)))})).finally((()=>j(!1)))},children:(0,m.jsxs)(s.yeN,{container:!0,children:[(0,m.jsx)(s.yeN,{item:!0,xs:12,children:(0,m.jsx)(s.q22,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:a,error:(e=>-1!==e.indexOf(" ")?"Key name cannot contain spaces":"")(a),onChange:e=>{p(e.target.value)}})}),(0,m.jsxs)(s.yeN,{item:!0,xs:12,sx:i.W2.modalButtonBar,children:[(0,m.jsx)(s.qaq,{id:"clear",type:"button",variant:"regular",onClick:()=>{p("")},label:"Clear"}),(0,m.jsx)(s.qaq,{id:"save-key",type:"submit",variant:"callAction",color:"primary",disabled:h||!u,label:"Save"})]})]})})})})};var h=a(3428),j=a(48504);const u=()=>{const e=(0,l.Ab)(),t=(0,c.i6)();return(0,n.useEffect)((()=>{e((0,d.i8)("add_key"))}),[]),(0,m.jsx)(n.Fragment,{children:(0,m.jsxs)(s.yeN,{item:!0,xs:12,children:[(0,m.jsx)(h.c,{label:(0,m.jsx)(s.y_F,{label:"Keys",onClick:()=>t(r.Ks.KMS_KEYS)}),actions:(0,m.jsx)(j.c,{})}),(0,m.jsx)(p,{})]})})}},52224:(e,t,a)=>{a.d(t,{c:()=>r});var n=a(69060),s=a(66152),c=a(82496);const r=e=>{let{helpText:t,contents:a}=e;return(0,c.jsx)(s.g1k,{iconComponent:(0,c.jsx)(s.cFZ,{}),title:t,help:(0,c.jsx)(n.Fragment,{children:a.map((e=>(0,c.jsx)(s.kvh,{sx:{paddingBottom:"20px"},children:e})))})})}}}]);
|
||||
//# sourceMappingURL=3556.ab4ba514.chunk.js.map
|
||||
2
web-app/build/static/js/3654.877a48d3.chunk.js
Normal file
2
web-app/build/static/js/3654.877a48d3.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3654],{63654:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});t(65043);var s=t(94141),i=t(89923),l=t(95428),a=t(57195),o=t(35731),r=t(70579);const c=e=>{let{isOpen:n,onClose:t}=e;return(0,r.jsx)(s.A,{modalOpen:n,title:"License",onClose:()=>{t()},children:(0,r.jsxs)(i.azJ,{sx:{display:"flex",flexFlow:"column","& .link-text":{color:"#2781B0",fontWeight:600}},children:[(0,r.jsx)(i.azJ,{sx:{display:"flex",alignItems:"center",marginBottom:"40px",justifyContent:"center","& .min-icon":{fill:"blue",width:"188px",height:"62px"}},children:(0,r.jsx)(i.P1T,{})}),(0,r.jsxs)(i.azJ,{sx:{marginBottom:"27px"},children:["By using this software, you acknowledge that MinIO software is licensed under the ",(0,r.jsx)(a.A,{}),", for which, the full text can be found here:"," ",(0,r.jsx)("a",{href:"https://www.gnu.org/licenses/agpl-3.0.html",rel:"noopener",className:"link-text",children:"https://www.gnu.org/licenses/agpl-3.0.html."})]}),(0,r.jsxs)(i.azJ,{sx:{paddingBottom:"23px"},children:["Please review the terms carefully and ensure you are in compliance with the obligations of the license. If you are not able to satisfy the license obligations, we offer a commercial license which is available here:"," ",(0,r.jsx)("a",{href:"https://min.io/signup?ref=con",rel:"noopener",className:"link-text",children:"https://min.io/signup."})]}),(0,r.jsx)(o.A,{}),(0,r.jsx)(i.azJ,{sx:{marginTop:"19px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(i.$nd,{id:"confirm",type:"button",variant:"callAction",onClick:()=>{(0,l.YN)(),t()},label:"Acknowledge"})})]})})}}}]);
|
||||
//# sourceMappingURL=3654.877a48d3.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3728],{23728:(e,i,s)=>{s.r(i),s.d(i,{default:()=>I});var t=s(69060),n=s(66152),c=s(51560),o=s(61628),a=s(21124),r=s(3992),l=s(61060),d=s(95705),u=s(66156),m=s(61180),h=s(86116),p=s(99748),x=s(84612),b=s(3428),j=s(48504),f=s(82496);const y=(0,p.c)(t.lazy((()=>s.e(1064).then(s.bind(s,31064))))),I=()=>{const e=(0,u.Ab)(),i=(0,c.i6)(),[s,p]=(0,t.useState)([]),[I,A]=(0,t.useState)(!1),[C,P]=(0,t.useState)(!1),[O,S]=(0,t.useState)(""),[_,v]=(0,t.useState)(""),M=(0,r.i)(a.Gc,[a.Oi.ADMIN_GET_POLICY]),g=(0,r.i)(a.Gc,a.UV),E=(0,r.i)(a.Gc,a.aY),k=(0,r.i)(a.Gc,a.lp),w=(0,r.i)(a.Gc,a.ew);(0,t.useEffect)((()=>{L()}),[]),(0,t.useEffect)((()=>{I&&(E?m.m.policies.listPolicies().then((e=>{var i;const s=null!==(i=e.data.policies)&&void 0!==i?i:[];s.sort(((e,i)=>e.name>i.name?1:e.name<i.name?-1:0)),A(!1),p(s)})).catch((i=>{A(!1),e((0,d.aW)(i))})):A(!1))}),[I,A,p,e,E]);const L=()=>{A(!0)},G=[{type:"view",onClick:e=>{i("".concat(a.Ks.POLICIES,"/").concat((0,l.CO)(e.name)))},disableButtonFunction:()=>!M},{type:"delete",onClick:e=>{P(!0),S(e)},sendOnlyId:!0,disableButtonFunction:()=>!g}],N=s.filter((e=>{var i;return null===(i=e.name)||void 0===i?void 0:i.includes(_)}));return(0,t.useEffect)((()=>{e((0,d.i8)("list_policies"))}),[]),(0,f.jsxs)(t.Fragment,{children:[C&&(0,f.jsx)(y,{deleteOpen:C,selectedPolicy:O,closeDeleteModalAndRefresh:e=>{P(!1),e&&L()}}),(0,f.jsx)(b.c,{label:"IAM Policies",actions:(0,f.jsx)(j.c,{})}),(0,f.jsx)(n._al,{children:(0,f.jsxs)(n.yeN,{container:!0,children:[(0,f.jsxs)(n.yeN,{item:!0,xs:12,sx:o.GR.actionsTray,children:[(0,f.jsx)(h.c,{onChange:v,placeholder:"Search Policies",value:_,sx:{maxWidth:380}}),(0,f.jsx)(r.K,{scopes:[a.Oi.ADMIN_CREATE_POLICY],resource:a.Gc,errorProps:{disabled:!0},children:(0,f.jsx)(x.c,{tooltip:k?"":(0,a.q4)(a.lp,"create a Policy"),children:(0,f.jsx)(n.qaq,{id:"create-policy",label:"Create Policy",variant:"callAction",icon:(0,f.jsx)(n.EgV,{}),onClick:()=>{i("".concat(a.Ks.POLICY_ADD))},disabled:!k})})})]}),(0,f.jsx)(n.yeN,{item:!0,xs:12,children:(0,f.jsx)(r.K,{scopes:[a.Oi.ADMIN_LIST_USER_POLICIES],resource:a.Gc,errorProps:{disabled:!0},children:(0,f.jsx)(x.c,{tooltip:w?"":(0,a.q4)(a.ew,"view Policy details"),children:(0,f.jsx)(n.iSL,{itemActions:G,columns:[{label:"Name",elementKey:"name"}],isLoading:I,records:N,entityName:"Policies",idField:"name"})})})}),(0,f.jsx)(n.yeN,{item:!0,xs:12,sx:{marginTop:15},children:(0,f.jsx)(n.g1k,{title:"Learn more about IAM POLICIES",iconComponent:(0,f.jsx)(n.u_c,{}),help:(0,f.jsxs)(t.Fragment,{children:["MinIO uses Policy-Based Access Control (PBAC) to define the authorized actions and resources to which an authenticated user has access. Each policy describes one or more actions and conditions that outline the permissions of a user or group of users.",(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),"MinIO PBAC is built for compatibility with AWS IAM policy syntax, structure, and behavior. The MinIO documentation makes a best-effort to cover IAM-specific behavior and functionality. Consider deferring to the IAM documentation for more complete documentation on AWS IAM-specific topics.",(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),"You can learn more at our"," ",(0,f.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/identity-access-management.html?ref=con#access-management",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})})]})})]})}}}]);
|
||||
//# sourceMappingURL=3728.619f9f58.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/3851.c5eaa08e.chunk.js
Normal file
2
web-app/build/static/js/3851.c5eaa08e.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3851],{3851:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var s=n(65043),l=n(89923),c=n(64159),o=n(20554),r=n(25448),i=n(58661),u=n(70579);const a=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:a}=e;const d=(0,o.jL)(),[p,b]=(0,r.A)((()=>t(!0)),(e=>d((0,c.C9)(e))));if(!a)return null;return(0,u.jsx)(i.A,{title:"Delete Bucket",confirmText:"Delete",isOpen:n,titleIcon:(0,u.jsx)(l.xWY,{}),isLoading:p,onConfirm:()=>{b("DELETE","/api/v1/buckets/".concat(a),{name:a})},onClose:()=>t(!1),confirmationContent:(0,u.jsxs)(s.Fragment,{children:["Are you sure you want to delete bucket ",(0,u.jsx)("b",{children:a}),"? ",(0,u.jsx)("br",{}),"A bucket can only be deleted if it's empty."]})})}}}]);
|
||||
//# sourceMappingURL=3851.c5eaa08e.chunk.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"static/js/6532.71c2908a.chunk.js","mappings":"kNA8BA,MA0CA,EA1CqBA,IAIM,IAJL,2BACpBC,EAA0B,WAC1BC,EAAU,eACVC,GACmBH,EACnB,MAAMI,GAAWC,EAAAA,EAAAA,OAMVC,EAAeC,IAAmBC,EAAAA,EAAAA,IALpBC,IAAMR,GAA2B,KAClCS,GAClBN,GAASO,EAAAA,EAAAA,IAAqBD,MAKhC,IAAKP,EACH,OAAO,KAST,OACES,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,gBACLC,YAAa,SACbC,OAAQd,EACRe,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWb,EACXc,UAboBC,KACtBd,EAAgB,SAAS,mBAADe,OAAqBnB,GAAkB,CAC7DoB,KAAMpB,GACN,EAWAqB,QAtBYA,IAAMvB,GAA2B,GAuB7CwB,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,2CAC+BhB,EAAAA,EAAAA,KAAA,KAAAgB,SAAIzB,IAAmB,MAAES,EAAAA,EAAAA,KAAA,SAAM,kDAI1E,C","sources":["screens/Console/Buckets/ListBuckets/DeleteBucket.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment } from \"react\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteBucketProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedBucket: string;\n}\n\nconst DeleteBucket = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedBucket,\n}: IDeleteBucketProps) => {\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 (!selectedBucket) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\"DELETE\", `/api/v1/buckets/${selectedBucket}`, {\n name: selectedBucket,\n });\n };\n\n return (\n <ConfirmDialog\n title={`Delete Bucket`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>\n Are you sure you want to delete bucket <b>{selectedBucket}</b>? <br />\n A bucket can only be deleted if it's empty.\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteBucket;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedBucket","dispatch","useAppDispatch","deleteLoading","invokeDeleteApi","useApi","onDelSuccess","err","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","concat","name","onClose","confirmationContent","_jsxs","Fragment","children"],"sourceRoot":""}
|
||||
{"version":3,"file":"static/js/3851.c5eaa08e.chunk.js","mappings":"iNA8BA,MA0CA,EA1CqBA,IAIM,IAJL,2BACpBC,EAA0B,WAC1BC,EAAU,eACVC,GACmBH,EACnB,MAAMI,GAAWC,EAAAA,EAAAA,OAMVC,EAAeC,IAAmBC,EAAAA,EAAAA,IALpBC,IAAMR,GAA2B,KAClCS,GAClBN,GAASO,EAAAA,EAAAA,IAAqBD,MAKhC,IAAKP,EACH,OAAO,KAST,OACES,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,gBACLC,YAAa,SACbC,OAAQd,EACRe,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWb,EACXc,UAboBC,KACtBd,EAAgB,SAAS,mBAADe,OAAqBnB,GAAkB,CAC7DoB,KAAMpB,GACN,EAWAqB,QAtBYA,IAAMvB,GAA2B,GAuB7CwB,qBACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,CAAC,2CAC+BhB,EAAAA,EAAAA,KAAA,KAAAgB,SAAIzB,IAAmB,MAAES,EAAAA,EAAAA,KAAA,SAAM,kDAI1E,C","sources":["screens/Console/Buckets/ListBuckets/DeleteBucket.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment } from \"react\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\n\ninterface IDeleteBucketProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedBucket: string;\n}\n\nconst DeleteBucket = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedBucket,\n}: IDeleteBucketProps) => {\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 (!selectedBucket) {\n return null;\n }\n\n const onConfirmDelete = () => {\n invokeDeleteApi(\"DELETE\", `/api/v1/buckets/${selectedBucket}`, {\n name: selectedBucket,\n });\n };\n\n return (\n <ConfirmDialog\n title={`Delete Bucket`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>\n Are you sure you want to delete bucket <b>{selectedBucket}</b>? <br />\n A bucket can only be deleted if it's empty.\n </Fragment>\n }\n />\n );\n};\n\nexport default DeleteBucket;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedBucket","dispatch","useAppDispatch","deleteLoading","invokeDeleteApi","useApi","onDelSuccess","err","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","concat","name","onClose","confirmationContent","_jsxs","Fragment","children"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/4103.b6a51725.chunk.js
Normal file
2
web-app/build/static/js/4103.b6a51725.chunk.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
web-app/build/static/js/4172.0d489f24.chunk.js
Normal file
2
web-app/build/static/js/4172.0d489f24.chunk.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4172],{4172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(65043),c=n(33097),l=n.n(c),r=n(25448),i=n(58661),o=n(89923),u=n(64159),a=n(20554),f=n(70579);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:c,bucketEvent:p}=e;const d=(0,a.jL)(),[x,v]=(0,r.A)((()=>t(!0)),(e=>d((0,u.C9)(e))));if(!c)return null;return(0,f.jsx)(i.A,{title:"Delete Event",confirmText:"Delete",isOpen:n,titleIcon:(0,f.jsx)(o.xWY,{}),isLoading:x,onConfirm:()=>{if(null===p)return;const e=l()(p,"events",[]),t=l()(p,"prefix",""),n=l()(p,"suffix",""),s=e.reduce(((e,t)=>e.includes(t)?e:[...e,t]),[]);v("DELETE","/api/v1/buckets/".concat(c,"/events/").concat(p.arn),{events:s,prefix:t,suffix:n})},onClose:()=>t(!1),confirmationContent:(0,f.jsx)(s.Fragment,{children:"Are you sure you want to delete this event?"})})}}}]);
|
||||
//# sourceMappingURL=4172.0d489f24.chunk.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"static/js/6536.fd6f7316.chunk.js","mappings":"sOAiCA,MA6DA,EA7DoBA,IAKM,IALL,2BACnBC,EAA0B,WAC1BC,EAAU,eACVC,EAAc,YACdC,GACkBJ,EAClB,MAAMK,GAAWC,EAAAA,EAAAA,OAMVC,EAAeC,IAAmBC,EAAAA,EAAAA,IALpBC,IAAMT,GAA2B,KAClCU,GAClBN,GAASO,EAAAA,EAAAA,IAAqBD,MAKhC,IAAKR,EACH,OAAO,KA8BT,OACEU,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,eACLC,YAAa,SACbC,OAAQf,EACRgB,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWb,EACXc,UAlCoBC,KACtB,GAAoB,OAAhBlB,EACF,OAGF,MAAMmB,EAAmBC,IAAIpB,EAAa,SAAU,IAC9CqB,EAASD,IAAIpB,EAAa,SAAU,IACpCsB,EAASF,IAAIpB,EAAa,SAAU,IAEpCuB,EAAcJ,EAAOK,QAAO,CAACC,EAAeC,IAC3CD,EAAIE,SAASD,GAGXD,EAFE,IAAIA,EAAKC,IAGjB,IAEHtB,EACE,SAAS,mBAADwB,OACW7B,EAAc,YAAA6B,OAAW5B,EAAY6B,KACxD,CACEV,OAAQI,EACRF,SACAC,UAEH,EAWCQ,QA3CYA,IAAMjC,GAA2B,GA4C7CkC,qBACEtB,EAAAA,EAAAA,KAACuB,EAAAA,SAAQ,CAAAC,SAAC,iDAEZ,C","sources":["screens/Console/Buckets/BucketDetails/DeleteEvent.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment } from \"react\";\nimport get from \"lodash/get\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { NotificationConfig } from \"api/consoleApi\";\n\ninterface IDeleteEventProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedBucket: string;\n bucketEvent: NotificationConfig | null;\n}\n\nconst DeleteEvent = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedBucket,\n bucketEvent,\n}: IDeleteEventProps) => {\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 (!selectedBucket) {\n return null;\n }\n\n const onConfirmDelete = () => {\n if (bucketEvent === null) {\n return;\n }\n\n const events: string[] = get(bucketEvent, \"events\", []);\n const prefix = get(bucketEvent, \"prefix\", \"\");\n const suffix = get(bucketEvent, \"suffix\", \"\");\n\n const cleanEvents = events.reduce((acc: string[], currVal: string) => {\n if (!acc.includes(currVal)) {\n return [...acc, currVal];\n }\n return acc;\n }, []);\n\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/buckets/${selectedBucket}/events/${bucketEvent.arn}`,\n {\n events: cleanEvents,\n prefix,\n suffix,\n },\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Event`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>Are you sure you want to delete this event?</Fragment>\n }\n />\n );\n};\n\nexport default DeleteEvent;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedBucket","bucketEvent","dispatch","useAppDispatch","deleteLoading","invokeDeleteApi","useApi","onDelSuccess","err","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","events","get","prefix","suffix","cleanEvents","reduce","acc","currVal","includes","concat","arn","onClose","confirmationContent","Fragment","children"],"sourceRoot":""}
|
||||
{"version":3,"file":"static/js/4172.0d489f24.chunk.js","mappings":"qOAiCA,MA6DA,EA7DoBA,IAKM,IALL,2BACnBC,EAA0B,WAC1BC,EAAU,eACVC,EAAc,YACdC,GACkBJ,EAClB,MAAMK,GAAWC,EAAAA,EAAAA,OAMVC,EAAeC,IAAmBC,EAAAA,EAAAA,IALpBC,IAAMT,GAA2B,KAClCU,GAClBN,GAASO,EAAAA,EAAAA,IAAqBD,MAKhC,IAAKR,EACH,OAAO,KA8BT,OACEU,EAAAA,EAAAA,KAACC,EAAAA,EAAa,CACZC,MAAK,eACLC,YAAa,SACbC,OAAQf,EACRgB,WAAWL,EAAAA,EAAAA,KAACM,EAAAA,IAAiB,IAC7BC,UAAWb,EACXc,UAlCoBC,KACtB,GAAoB,OAAhBlB,EACF,OAGF,MAAMmB,EAAmBC,IAAIpB,EAAa,SAAU,IAC9CqB,EAASD,IAAIpB,EAAa,SAAU,IACpCsB,EAASF,IAAIpB,EAAa,SAAU,IAEpCuB,EAAcJ,EAAOK,QAAO,CAACC,EAAeC,IAC3CD,EAAIE,SAASD,GAGXD,EAFE,IAAIA,EAAKC,IAGjB,IAEHtB,EACE,SAAS,mBAADwB,OACW7B,EAAc,YAAA6B,OAAW5B,EAAY6B,KACxD,CACEV,OAAQI,EACRF,SACAC,UAEH,EAWCQ,QA3CYA,IAAMjC,GAA2B,GA4C7CkC,qBACEtB,EAAAA,EAAAA,KAACuB,EAAAA,SAAQ,CAAAC,SAAC,iDAEZ,C","sources":["screens/Console/Buckets/BucketDetails/DeleteEvent.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nimport React, { Fragment } from \"react\";\nimport get from \"lodash/get\";\nimport { ErrorResponseHandler } from \"../../../../common/types\";\nimport useApi from \"../../Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"mds\";\nimport { setErrorSnackMessage } from \"../../../../systemSlice\";\nimport { useAppDispatch } from \"../../../../store\";\nimport { NotificationConfig } from \"api/consoleApi\";\n\ninterface IDeleteEventProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedBucket: string;\n bucketEvent: NotificationConfig | null;\n}\n\nconst DeleteEvent = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedBucket,\n bucketEvent,\n}: IDeleteEventProps) => {\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 (!selectedBucket) {\n return null;\n }\n\n const onConfirmDelete = () => {\n if (bucketEvent === null) {\n return;\n }\n\n const events: string[] = get(bucketEvent, \"events\", []);\n const prefix = get(bucketEvent, \"prefix\", \"\");\n const suffix = get(bucketEvent, \"suffix\", \"\");\n\n const cleanEvents = events.reduce((acc: string[], currVal: string) => {\n if (!acc.includes(currVal)) {\n return [...acc, currVal];\n }\n return acc;\n }, []);\n\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/buckets/${selectedBucket}/events/${bucketEvent.arn}`,\n {\n events: cleanEvents,\n prefix,\n suffix,\n },\n );\n };\n\n return (\n <ConfirmDialog\n title={`Delete Event`}\n confirmText={\"Delete\"}\n isOpen={deleteOpen}\n titleIcon={<ConfirmDeleteIcon />}\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n <Fragment>Are you sure you want to delete this event?</Fragment>\n }\n />\n );\n};\n\nexport default DeleteEvent;\n"],"names":["_ref","closeDeleteModalAndRefresh","deleteOpen","selectedBucket","bucketEvent","dispatch","useAppDispatch","deleteLoading","invokeDeleteApi","useApi","onDelSuccess","err","setErrorSnackMessage","_jsx","ConfirmDialog","title","confirmText","isOpen","titleIcon","ConfirmDeleteIcon","isLoading","onConfirm","onConfirmDelete","events","get","prefix","suffix","cleanEvents","reduce","acc","currVal","includes","concat","arn","onClose","confirmationContent","Fragment","children"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[428],{428:(e,t,n)=>{n.r(t),n.d(t,{default:()=>E});var s=n(69060),i=n(58564),o=n.n(i),r=n(19536),c=n(51560),a=n(66152),l=n(61180),d=n(78256),u=n(3992),b=n(21124),m=n(95705),h=n(2432),x=n(66156),p=n(99748),f=n(84612),j=n(82496);const S=(0,p.c)(s.lazy((()=>n.e(6536).then(n.bind(n,96536))))),k=(0,p.c)(s.lazy((()=>n.e(968).then(n.bind(n,50968))))),E=()=>{const e=(0,x.Ab)(),t=(0,c.W4)(),n=(0,r.w1)(h.qO),[i,p]=(0,s.useState)(!1),[E,O]=(0,s.useState)(!0),[_,v]=(0,s.useState)([]),[N,T]=(0,s.useState)(!1),[I,C]=(0,s.useState)(null),g=t.bucketName||"",A=(0,u.i)(g,[b.Oi.S3_GET_BUCKET_NOTIFICATIONS,b.Oi.S3_GET_ACTIONS]);(0,s.useEffect)((()=>{n&&O(!0)}),[n,O]),(0,s.useEffect)((()=>{e((0,m.i8)("bucket_detail_events"))}),[]),(0,s.useEffect)((()=>{E&&(A?l.m.buckets.listBucketEvents(g).then((e=>{const t=o()(e.data,"events",[]);O(!1),v(t||[])})).catch((t=>{O(!1),e((0,m.aW)((0,d.K)(t.error)))})):O(!1))}),[E,e,g,A]);const y=[{type:"delete",onClick:e=>{T(!0),C(e)}}];return(0,j.jsxs)(s.Fragment,{children:[N&&(0,j.jsx)(S,{deleteOpen:N,selectedBucket:g,bucketEvent:I,closeDeleteModalAndRefresh:e=>{T(!1),e&&O(!0)}}),i&&(0,j.jsx)(k,{open:i,selectedBucket:g,closeModalAndRefresh:()=>{p(!1),O(!0)}}),(0,j.jsx)(a.eCc,{separator:!0,sx:{marginBottom:15},actions:(0,j.jsx)(u.K,{scopes:[b.Oi.S3_PUT_BUCKET_NOTIFICATIONS,b.Oi.S3_PUT_ACTIONS,b.Oi.ADMIN_SERVER_INFO],resource:g,matchAll:!0,errorProps:{disabled:!0},children:(0,j.jsx)(f.c,{tooltip:"Subscribe to Event",children:(0,j.jsx)(a.qaq,{id:"Subscribe-bucket-event",onClick:()=>{p(!0)},label:"Subscribe to Event",icon:(0,j.jsx)(a.EgV,{}),variant:"callAction"})})}),children:(0,j.jsx)(a.M5Y,{content:(0,j.jsxs)(s.Fragment,{children:["MinIO"," ",(0,j.jsx)("a",{target:"blank",href:"https://min.io/docs/minio/kubernetes/upstream/administration/monitoring.html",children:"bucket notifications"})," ","allow administrators to send notifications to supported external services on certain object or bucket events."]}),placement:"right",children:"Events"})}),(0,j.jsxs)(a.yeN,{container:!0,children:[(0,j.jsx)(a.yeN,{item:!0,xs:12,children:(0,j.jsx)(u.K,{scopes:[b.Oi.S3_GET_BUCKET_NOTIFICATIONS,b.Oi.S3_GET_ACTIONS],resource:g,errorProps:{disabled:!0},children:(0,j.jsx)(a.iSL,{itemActions:y,columns:[{label:"SQS",elementKey:"arn"},{label:"Events",elementKey:"events",renderFunction:e=>{if(!e)return"other";const t=e.reduce(((e,t)=>e.includes(t)?e:[...e,t]),[]);return(0,j.jsx)(s.Fragment,{children:t.join(", ")})}},{label:"Prefix",elementKey:"prefix"},{label:"Suffix",elementKey:"suffix"}],isLoading:E,records:_,entityName:"Events",idField:"id",customPaperHeight:"400px"})})}),!E&&(0,j.jsxs)(a.yeN,{item:!0,xs:12,children:[(0,j.jsx)("br",{}),(0,j.jsx)(a.g1k,{title:"Event Notifications",iconComponent:(0,j.jsx)(a.sPV,{}),help:(0,j.jsxs)(s.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"You can learn more at our"," ",(0,j.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/monitoring/bucket-notifications.html?ref=con",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})]})]})]})}}}]);
|
||||
//# sourceMappingURL=428.2172e82f.chunk.js.map
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user