@cobaltcore-dev/aurora 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/ContentHeader-fKKZVu-o.mjs +116 -0
- package/dist/client/ContentHeader-fKKZVu-o.mjs.map +1 -0
- package/dist/client/{DeleteFlavorModal-C2MqUgGR.mjs → DeleteFlavorModal-Be2GFiB_.mjs} +3 -2
- package/dist/client/DeleteFlavorModal-Be2GFiB_.mjs.map +1 -0
- package/dist/client/{RouteIdLevelDefaultError-CSseJ1yG.mjs → RouteIdLevelDefaultError-DPF_x2tG.mjs} +9 -9
- package/dist/client/RouteIdLevelDefaultError-DPF_x2tG.mjs.map +1 -0
- package/dist/client/StorageNotFound-B-zVinVD.mjs +30 -0
- package/dist/client/StorageNotFound-B-zVinVD.mjs.map +1 -0
- package/dist/client/{_flavorId-DYv_StX22.mjs → _flavorId-0PioWpEp.mjs} +4 -4
- package/dist/client/_flavorId-0PioWpEp.mjs.map +1 -0
- package/dist/client/{_flavorId-YV3jCS5g.mjs → _flavorId-B7fp6Nk8.mjs} +3 -3
- package/dist/client/{_flavorId-YV3jCS5g.mjs.map → _flavorId-B7fp6Nk8.mjs.map} +1 -1
- package/dist/client/{_flavorId-CaA4-Pnf.mjs → _flavorId-CgueqKTs.mjs} +3 -3
- package/dist/client/{_flavorId-CaA4-Pnf.mjs.map → _flavorId-CgueqKTs.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-Dpsc7GU4.mjs → _floatingIpId-B8r64AL9.mjs} +3 -3
- package/dist/client/{_floatingIpId-Dpsc7GU4.mjs.map → _floatingIpId-B8r64AL9.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-BeYElanB.mjs → _floatingIpId-lEobpOER.mjs} +2 -2
- package/dist/client/{_floatingIpId-BeYElanB.mjs.map → _floatingIpId-lEobpOER.mjs.map} +1 -1
- package/dist/client/{_imageId-pBSS0YcC.mjs → _imageId-Ccv8PedW.mjs} +3 -3
- package/dist/client/{_imageId-pBSS0YcC.mjs.map → _imageId-Ccv8PedW.mjs.map} +1 -1
- package/dist/client/_imageId-CiqEQB_J.mjs +558 -0
- package/dist/client/{_imageId-mfKp3JHn.mjs.map → _imageId-CiqEQB_J.mjs.map} +1 -1
- package/dist/client/{_imageId-mpXUMCh_.mjs → _imageId-D9LR-02T.mjs} +3 -3
- package/dist/client/{_imageId-mpXUMCh_.mjs.map → _imageId-D9LR-02T.mjs.map} +1 -1
- package/dist/client/{_projectId-BnTBxKfp.mjs → _projectId-BDARsteX.mjs} +3 -3
- package/dist/client/{_projectId-BnTBxKfp.mjs.map → _projectId-BDARsteX.mjs.map} +1 -1
- package/dist/client/{_projectId-CVrdJ52s.mjs → _projectId-CtyAHqhH.mjs} +2 -2
- package/dist/client/{_projectId-CVrdJ52s.mjs.map → _projectId-CtyAHqhH.mjs.map} +1 -1
- package/dist/client/_projectId-D3VOH5lN.mjs +94 -0
- package/dist/client/_projectId-D3VOH5lN.mjs.map +1 -0
- package/dist/client/{_projectId-AjgJX6Gl.mjs → _projectId-ZBk6vka0.mjs} +83 -81
- package/dist/client/_projectId-ZBk6vka0.mjs.map +1 -0
- package/dist/client/{_securityGroupId-AO3wnH8g.mjs → _securityGroupId-BwgZnoiR.mjs} +2 -2
- package/dist/client/{_securityGroupId-AO3wnH8g.mjs.map → _securityGroupId-BwgZnoiR.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-Bq0ZyG6z.mjs → _securityGroupId-Cz2NUHdB.mjs} +3 -3
- package/dist/client/{_securityGroupId-Bq0ZyG6z.mjs.map → _securityGroupId-Cz2NUHdB.mjs.map} +1 -1
- package/dist/client/{_storageType-CzZ4u9x_.mjs → _storageType-BNpP1A2N.mjs} +3 -2
- package/dist/client/_storageType-BNpP1A2N.mjs.map +1 -0
- package/dist/client/_storageType-BxSGKhAI.mjs +15 -0
- package/dist/client/_storageType-BxSGKhAI.mjs.map +1 -0
- package/dist/client/_storageType-DZYCmiLt.mjs +30 -0
- package/dist/client/_storageType-DZYCmiLt.mjs.map +1 -0
- package/dist/client/{_storageType-c-DAu8qr.mjs → _storageType-UqAMP-8d.mjs} +286 -285
- package/dist/client/_storageType-UqAMP-8d.mjs.map +1 -0
- package/dist/client/_storageType-u51_7OwJ.mjs +7 -0
- package/dist/client/_storageType-u51_7OwJ.mjs.map +1 -0
- package/dist/client/components/Errors/RouteIdLevelDefaultError.d.ts +2 -1
- package/dist/client/{flavors-ZudiAiTU.mjs → flavors-Ce3J-cFa.mjs} +2 -2
- package/dist/client/{flavors-ZudiAiTU.mjs.map → flavors-Ce3J-cFa.mjs.map} +1 -1
- package/dist/client/{flavors-Bgq3KZmx.mjs → flavors-D5ThLaXO.mjs} +84 -77
- package/dist/client/flavors-D5ThLaXO.mjs.map +1 -0
- package/dist/client/{floatingips-B1oLH8z6.mjs → floatingips-DXnRlLvV.mjs} +2 -2
- package/dist/client/{floatingips-B1oLH8z6.mjs.map → floatingips-DXnRlLvV.mjs.map} +1 -1
- package/dist/client/{floatingips-BtLg3yEQ.mjs → floatingips-HRbuLxiN.mjs} +3 -3
- package/dist/client/{floatingips-BtLg3yEQ.mjs.map → floatingips-HRbuLxiN.mjs.map} +1 -1
- package/dist/client/{floatingips-BeQEkVH8.mjs → floatingips-nN1kQmsu.mjs} +2 -2
- package/dist/client/{floatingips-BeQEkVH8.mjs.map → floatingips-nN1kQmsu.mjs.map} +1 -1
- package/dist/client/{images-CnTW3bpy.mjs → images-C8M3ysWR.mjs} +3 -3
- package/dist/client/{images-CnTW3bpy.mjs.map → images-C8M3ysWR.mjs.map} +1 -1
- package/dist/client/{images-DZHDYDQu.mjs → images-Cf5R28NR.mjs} +2 -2
- package/dist/client/{images-DZHDYDQu.mjs.map → images-Cf5R28NR.mjs.map} +1 -1
- package/dist/client/index.js +198 -197
- package/dist/client/index.js.map +1 -1
- package/dist/client/{objects-jYQBFzwg.mjs → objects-BudUAfWY.mjs} +4265 -4275
- package/dist/client/objects-BudUAfWY.mjs.map +1 -0
- package/dist/client/objects-Dc7sKUr8.mjs +67 -0
- package/dist/client/objects-Dc7sKUr8.mjs.map +1 -0
- package/dist/client/objects-Dw7oeTq2.mjs +80 -0
- package/dist/client/objects-Dw7oeTq2.mjs.map +1 -0
- package/dist/client/objects-_g7nGIn5.mjs +25 -0
- package/dist/client/objects-_g7nGIn5.mjs.map +1 -0
- package/dist/client/objects-eBxvY6_n.mjs +78 -0
- package/dist/client/objects-eBxvY6_n.mjs.map +1 -0
- package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
- package/dist/client/{securitygroups-BRndk7wh.mjs → securitygroups-67fFxiwt.mjs} +2 -2
- package/dist/client/{securitygroups-BRndk7wh.mjs.map → securitygroups-67fFxiwt.mjs.map} +1 -1
- package/dist/client/{securitygroups--0PS2wbM.mjs → securitygroups-DXrfyuVF.mjs} +3 -3
- package/dist/client/{securitygroups--0PS2wbM.mjs.map → securitygroups-DXrfyuVF.mjs.map} +1 -1
- package/dist/client/{securitygroups-Cs2Op-tu.mjs → securitygroups-WLB1_IM6.mjs} +3 -3
- package/dist/client/{securitygroups-Cs2Op-tu.mjs.map → securitygroups-WLB1_IM6.mjs.map} +1 -1
- package/dist/client/{securitygroups-CdN4yAAw.mjs → securitygroups-o0IXZM6S.mjs} +2 -2
- package/dist/client/{securitygroups-CdN4yAAw.mjs.map → securitygroups-o0IXZM6S.mjs.map} +1 -1
- package/dist/client/serviceCatalog-B3lKWC9V.mjs +6 -0
- package/dist/client/serviceCatalog-B3lKWC9V.mjs.map +1 -0
- package/dist/client/storageProviders-CJ5rOh13.mjs +15 -0
- package/dist/client/storageProviders-CJ5rOh13.mjs.map +1 -0
- package/dist/client/trpcClient.d.ts +96 -3
- package/dist/client/utils/serviceCatalog.d.ts +9 -0
- package/dist/client/utils/storageProviders.d.ts +44 -0
- package/dist/server/index.d.ts +96 -3
- package/dist/server/index.js +1224 -387
- package/package.json +1 -1
- package/dist/client/ContentHeader-CPJbgYWn.mjs +0 -115
- package/dist/client/ContentHeader-CPJbgYWn.mjs.map +0 -1
- package/dist/client/DeleteFlavorModal-C2MqUgGR.mjs.map +0 -1
- package/dist/client/RouteIdLevelDefaultError-CSseJ1yG.mjs.map +0 -1
- package/dist/client/_flavorId-DYv_StX22.mjs.map +0 -1
- package/dist/client/_imageId-mfKp3JHn.mjs +0 -558
- package/dist/client/_projectId-AjgJX6Gl.mjs.map +0 -1
- package/dist/client/_projectId-DgciZslU.mjs +0 -92
- package/dist/client/_projectId-DgciZslU.mjs.map +0 -1
- package/dist/client/_storageType-BRWWJtow.mjs +0 -14
- package/dist/client/_storageType-BRWWJtow.mjs.map +0 -1
- package/dist/client/_storageType-CzZ4u9x_.mjs.map +0 -1
- package/dist/client/_storageType-c-DAu8qr.mjs.map +0 -1
- package/dist/client/_storageType-zeSZe--V.mjs +0 -7
- package/dist/client/_storageType-zeSZe--V.mjs.map +0 -1
- package/dist/client/flavors-Bgq3KZmx.mjs.map +0 -1
- package/dist/client/objects-25xsh4Ia.mjs +0 -66
- package/dist/client/objects-25xsh4Ia.mjs.map +0 -1
- package/dist/client/objects-KXY6dgwq.mjs +0 -82
- package/dist/client/objects-KXY6dgwq.mjs.map +0 -1
- package/dist/client/objects-QryuClU3.mjs +0 -82
- package/dist/client/objects-QryuClU3.mjs.map +0 -1
- package/dist/client/objects-jYQBFzwg.mjs.map +0 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { C as e, D as t, H as n, L as r, Q as i, S as a, T as o, X as s, Z as c, c as l, d as u, ft as d, g as f, i as p, l as m, m as h, o as g, ot as _, p as v, rt as y, st as b, t as x, tt as S, x as C } from "./build-WuxXRAqf.mjs";
|
|
2
2
|
import { a as w } from "./trpcClient-D7gpR7YG.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
3
|
+
import { t as T } from "./storageProviders-CJ5rOh13.mjs";
|
|
4
|
+
import { E, O as D, T as O, _ as k, a as A, c as ee, d as te, f as ne, g as j, h as re, i as M, l as ie, m as ae, o as oe, p as se, r as ce, s as le, u as ue, w as de, y as N } from "./objects-BudUAfWY.mjs";
|
|
5
|
+
import { t as P } from "./useProjectId-DBc5lpoU.mjs";
|
|
6
|
+
import { t as fe } from "./SortInput-4g7nSTHW.mjs";
|
|
7
|
+
import { t as F } from "./formatBytes-CZv_XyCY.mjs";
|
|
8
|
+
import { t as I } from "./useModalTracking-BYd37pXm.mjs";
|
|
9
|
+
import { t as L } from "./ContentHeader-fKKZVu-o.mjs";
|
|
10
|
+
import { Fragment as pe, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
11
|
+
import { startTransition as B, useEffect as me, useRef as he, useState as V } from "react";
|
|
12
|
+
import { useNavigate as ge, useParams as _e } from "@tanstack/react-router";
|
|
13
|
+
import { Trans as H, useLingui as U } from "@lingui/react";
|
|
14
|
+
import { z as W } from "zod";
|
|
15
|
+
import { ErrorBoundary as G } from "react-error-boundary";
|
|
16
|
+
import { useForm as ve, useStore as ye } from "@tanstack/react-form";
|
|
16
17
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/CreateContainerModal.tsx
|
|
17
|
-
var
|
|
18
|
-
let { i18n: l, _: u } =
|
|
18
|
+
var K = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContainerNameLength: o = 256, existingContainers: c = [] }) => {
|
|
19
|
+
let { i18n: l, _: u } = U(), d = P(), [f, p] = V(""), [m, g] = V(null), [_, v] = V(null), { trackClose: y, markSubmitted: b, resetTracking: x } = I({
|
|
19
20
|
isOpen: e,
|
|
20
21
|
actionPrefix: "storage.swift.container.create"
|
|
21
22
|
}), S = w.useUtils(), C = w.storage.swift.createContainer.useMutation({
|
|
@@ -44,7 +45,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
44
45
|
container: f.trim()
|
|
45
46
|
}));
|
|
46
47
|
};
|
|
47
|
-
return e ? /*#__PURE__*/
|
|
48
|
+
return e ? /*#__PURE__*/ R(s, {
|
|
48
49
|
title: l._({ id: "vTh35P" }),
|
|
49
50
|
open: e,
|
|
50
51
|
onCancel: T,
|
|
@@ -55,11 +56,11 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
55
56
|
disableConfirmButton: C.isPending || !f.trim(),
|
|
56
57
|
disableCancelButton: C.isPending,
|
|
57
58
|
disableCloseButton: C.isPending,
|
|
58
|
-
children: /*#__PURE__*/
|
|
59
|
+
children: /*#__PURE__*/ z(i, {
|
|
59
60
|
direction: "vertical",
|
|
60
61
|
gap: "6",
|
|
61
62
|
children: [
|
|
62
|
-
_ && /*#__PURE__*/
|
|
63
|
+
_ && /*#__PURE__*/ R(r, {
|
|
63
64
|
variant: "error",
|
|
64
65
|
dismissible: !0,
|
|
65
66
|
onDismiss: () => v(null),
|
|
@@ -68,11 +69,11 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
68
69
|
"data-testid": "create-container-error",
|
|
69
70
|
children: _
|
|
70
71
|
}),
|
|
71
|
-
/*#__PURE__*/
|
|
72
|
+
/*#__PURE__*/ R("p", {
|
|
72
73
|
className: "text-theme-default",
|
|
73
|
-
children: /*#__PURE__*/
|
|
74
|
+
children: /*#__PURE__*/ R(H, { id: "ne/GWZ" })
|
|
74
75
|
}),
|
|
75
|
-
/*#__PURE__*/
|
|
76
|
+
/*#__PURE__*/ R(h, {
|
|
76
77
|
label: l._({ id: "SUSS9i" }),
|
|
77
78
|
required: !0,
|
|
78
79
|
value: f,
|
|
@@ -89,58 +90,58 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
89
90
|
]
|
|
90
91
|
})
|
|
91
92
|
}) : null;
|
|
92
|
-
},
|
|
93
|
-
let { projectId: ee, provider: te, storageType: ne } =
|
|
94
|
-
|
|
95
|
-
if (
|
|
96
|
-
let e =
|
|
97
|
-
|
|
93
|
+
}, be = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContainerNameLength: i, existingContainers: s = [], onCreateSuccess: c, onCreatePartialSuccess: u, onEmptySuccess: d, onEmptyError: m, onDeleteSuccess: h, onDeleteError: _, onPropertiesSuccess: v, onPropertiesError: S, onAclSuccess: w, onAclError: T, selectedContainers: E, setSelectedContainers: D, hasAnyBulkAction: A = !0 }) => {
|
|
94
|
+
let { projectId: ee, provider: te, storageType: ne } = _e({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: M, _: ie } = U(), oe = ge(), [se, ce] = V(0), [le, ue] = V(null), [N, P] = V(null), [fe, I] = V(null), [L, B] = V(null), { ref: he, elementRef: W, height: G, virtualItems: ve, totalSize: ye, measureElement: be } = de({ count: e.length });
|
|
95
|
+
me(() => {
|
|
96
|
+
if (W.current) {
|
|
97
|
+
let e = W.current.offsetWidth - W.current.clientWidth;
|
|
98
|
+
ce(e);
|
|
98
99
|
}
|
|
99
|
-
}, [e.length,
|
|
100
|
-
let
|
|
101
|
-
E.includes(e) ?
|
|
102
|
-
},
|
|
103
|
-
return /*#__PURE__*/
|
|
104
|
-
/*#__PURE__*/
|
|
100
|
+
}, [e.length, G]);
|
|
101
|
+
let q = (e) => {
|
|
102
|
+
E.includes(e) ? D(E.filter((t) => t !== e)) : D([...E, e]);
|
|
103
|
+
}, J = A ? 6 : 5, Y = A ? "40px minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px" : "minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px";
|
|
104
|
+
return /*#__PURE__*/ z(pe, { children: [
|
|
105
|
+
/*#__PURE__*/ z("div", {
|
|
105
106
|
className: "relative",
|
|
106
|
-
children: [/*#__PURE__*/
|
|
107
|
-
style: { paddingRight: `${
|
|
108
|
-
children: /*#__PURE__*/
|
|
109
|
-
columns:
|
|
110
|
-
gridColumnTemplate:
|
|
107
|
+
children: [/*#__PURE__*/ R("div", {
|
|
108
|
+
style: { paddingRight: `${se}px` },
|
|
109
|
+
children: /*#__PURE__*/ z(g, {
|
|
110
|
+
columns: J,
|
|
111
|
+
gridColumnTemplate: Y,
|
|
111
112
|
className: "containers",
|
|
112
113
|
"data-testid": "containers-table-header",
|
|
113
|
-
children: [/*#__PURE__*/
|
|
114
|
-
A && /*#__PURE__*/
|
|
115
|
-
/*#__PURE__*/
|
|
116
|
-
/*#__PURE__*/
|
|
117
|
-
/*#__PURE__*/
|
|
118
|
-
/*#__PURE__*/
|
|
119
|
-
/*#__PURE__*/
|
|
120
|
-
] }), (!e || e.length === 0) && /*#__PURE__*/
|
|
121
|
-
colSpan:
|
|
122
|
-
children: /*#__PURE__*/
|
|
114
|
+
children: [/*#__PURE__*/ z(o, { children: [
|
|
115
|
+
A && /*#__PURE__*/ R(a, {}),
|
|
116
|
+
/*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "t0X9+8" }) }),
|
|
117
|
+
/*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "sxbP3b" }) }),
|
|
118
|
+
/*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "sjMCOP" }) }),
|
|
119
|
+
/*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "hgpMHD" }) }),
|
|
120
|
+
/*#__PURE__*/ R(a, { style: { marginRight: `-${se}px` } })
|
|
121
|
+
] }), (!e || e.length === 0) && /*#__PURE__*/ R(o, { children: /*#__PURE__*/ R(x, {
|
|
122
|
+
colSpan: J,
|
|
123
|
+
children: /*#__PURE__*/ R(y, {
|
|
123
124
|
status: "empty",
|
|
124
|
-
title:
|
|
125
|
-
body:
|
|
125
|
+
title: M._({ id: "Hiw1Ha" }),
|
|
126
|
+
body: M._({ id: "x1bK0h" })
|
|
126
127
|
})
|
|
127
128
|
}) })]
|
|
128
129
|
})
|
|
129
|
-
}), /*#__PURE__*/
|
|
130
|
-
ref:
|
|
130
|
+
}), /*#__PURE__*/ R("div", {
|
|
131
|
+
ref: he,
|
|
131
132
|
className: "overflow-auto",
|
|
132
|
-
style: { height: `${
|
|
133
|
+
style: { height: `${G ?? 0}px` },
|
|
133
134
|
"data-testid": "containers-table-body",
|
|
134
|
-
children: /*#__PURE__*/
|
|
135
|
-
columns:
|
|
136
|
-
gridColumnTemplate:
|
|
135
|
+
children: /*#__PURE__*/ R(g, {
|
|
136
|
+
columns: J,
|
|
137
|
+
gridColumnTemplate: Y,
|
|
137
138
|
style: {
|
|
138
|
-
height: `${
|
|
139
|
+
height: `${ye}px`,
|
|
139
140
|
width: "100%",
|
|
140
141
|
position: "relative"
|
|
141
142
|
},
|
|
142
|
-
children:
|
|
143
|
-
let r = e[n.index], i = E.includes(r.name), a = () =>
|
|
143
|
+
children: ve.map((n) => {
|
|
144
|
+
let r = e[n.index], i = E.includes(r.name), a = () => oe({
|
|
144
145
|
to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
|
|
145
146
|
params: {
|
|
146
147
|
projectId: ee,
|
|
@@ -149,9 +150,9 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
149
150
|
containerName: r.name
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
|
-
return /*#__PURE__*/
|
|
153
|
+
return /*#__PURE__*/ z(o, {
|
|
153
154
|
"data-index": n.index,
|
|
154
|
-
ref:
|
|
155
|
+
ref: be,
|
|
155
156
|
style: {
|
|
156
157
|
position: "absolute",
|
|
157
158
|
top: 0,
|
|
@@ -159,7 +160,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
159
160
|
width: "100%",
|
|
160
161
|
transform: `translateY(${n.start}px)`,
|
|
161
162
|
display: "grid",
|
|
162
|
-
gridTemplateColumns:
|
|
163
|
+
gridTemplateColumns: Y,
|
|
163
164
|
alignItems: "stretch"
|
|
164
165
|
},
|
|
165
166
|
"data-testid": `container-row-${r.name}`,
|
|
@@ -169,57 +170,57 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
169
170
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
|
|
170
171
|
},
|
|
171
172
|
children: [
|
|
172
|
-
A && /*#__PURE__*/
|
|
173
|
+
A && /*#__PURE__*/ R(x, {
|
|
173
174
|
onClick: (e) => e.stopPropagation(),
|
|
174
175
|
onKeyDown: (e) => {
|
|
175
176
|
(e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
176
177
|
},
|
|
177
|
-
children: /*#__PURE__*/
|
|
178
|
+
children: /*#__PURE__*/ R(b, {
|
|
178
179
|
checked: i,
|
|
179
|
-
onChange: () =>
|
|
180
|
+
onChange: () => q(r.name),
|
|
180
181
|
"data-testid": `select-container-${r.name}`
|
|
181
182
|
})
|
|
182
183
|
}),
|
|
183
|
-
/*#__PURE__*/
|
|
184
|
+
/*#__PURE__*/ R(x, {
|
|
184
185
|
className: "min-w-0 overflow-hidden",
|
|
185
|
-
children: /*#__PURE__*/
|
|
186
|
+
children: /*#__PURE__*/ R("span", {
|
|
186
187
|
className: "block truncate",
|
|
187
188
|
title: r.name,
|
|
188
189
|
children: r.name
|
|
189
190
|
})
|
|
190
191
|
}),
|
|
191
|
-
/*#__PURE__*/
|
|
192
|
-
/*#__PURE__*/
|
|
193
|
-
/*#__PURE__*/
|
|
194
|
-
/*#__PURE__*/
|
|
192
|
+
/*#__PURE__*/ R(x, { children: r.count.toLocaleString() }),
|
|
193
|
+
/*#__PURE__*/ R(x, { children: O(r.last_modified) ?? M._({ id: "fj5byd" }) }),
|
|
194
|
+
/*#__PURE__*/ R(x, { children: F(r.bytes) }),
|
|
195
|
+
/*#__PURE__*/ R(x, {
|
|
195
196
|
onClick: (e) => e.stopPropagation(),
|
|
196
|
-
children: /*#__PURE__*/
|
|
197
|
+
children: /*#__PURE__*/ z(t, { children: [/*#__PURE__*/ R(l, {
|
|
197
198
|
as: "div",
|
|
198
|
-
children: /*#__PURE__*/
|
|
199
|
+
children: /*#__PURE__*/ R(p, {
|
|
199
200
|
icon: "moreVert",
|
|
200
|
-
title:
|
|
201
|
-
"aria-label":
|
|
201
|
+
title: M._({ id: "jnnDNd" }),
|
|
202
|
+
"aria-label": M._({ id: "jnnDNd" }),
|
|
202
203
|
className: "!bg-transparent"
|
|
203
204
|
})
|
|
204
|
-
}), /*#__PURE__*/
|
|
205
|
-
/*#__PURE__*/
|
|
206
|
-
label:
|
|
207
|
-
onClick: () =>
|
|
205
|
+
}), /*#__PURE__*/ z(f, { children: [
|
|
206
|
+
/*#__PURE__*/ R(C, {
|
|
207
|
+
label: M._({ id: "cWbW6w" }),
|
|
208
|
+
onClick: () => B(r),
|
|
208
209
|
"data-testid": `access-control-action-${r.name}`
|
|
209
210
|
}),
|
|
210
|
-
/*#__PURE__*/
|
|
211
|
-
label:
|
|
212
|
-
onClick: () =>
|
|
211
|
+
/*#__PURE__*/ R(C, {
|
|
212
|
+
label: M._({ id: "Oc8Aqv" }),
|
|
213
|
+
onClick: () => I(r),
|
|
213
214
|
"data-testid": `properties-action-${r.name}`
|
|
214
215
|
}),
|
|
215
|
-
/*#__PURE__*/
|
|
216
|
-
label:
|
|
217
|
-
onClick: () =>
|
|
216
|
+
/*#__PURE__*/ R(C, {
|
|
217
|
+
label: M._({ id: "foCwki" }),
|
|
218
|
+
onClick: () => ue(r),
|
|
218
219
|
"data-testid": `empty-action-${r.name}`
|
|
219
220
|
}),
|
|
220
|
-
/*#__PURE__*/
|
|
221
|
-
label:
|
|
222
|
-
onClick: () =>
|
|
221
|
+
/*#__PURE__*/ R(C, {
|
|
222
|
+
label: M._({ id: "t1J6VC" }),
|
|
223
|
+
onClick: () => P(r),
|
|
223
224
|
"data-testid": `delete-action-${r.name}`
|
|
224
225
|
})
|
|
225
226
|
] })] })
|
|
@@ -230,7 +231,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
230
231
|
})
|
|
231
232
|
})]
|
|
232
233
|
}),
|
|
233
|
-
/*#__PURE__*/
|
|
234
|
+
/*#__PURE__*/ R(K, {
|
|
234
235
|
isOpen: n,
|
|
235
236
|
onClose: () => r(!1),
|
|
236
237
|
onSuccess: c,
|
|
@@ -238,64 +239,64 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
238
239
|
maxContainerNameLength: i,
|
|
239
240
|
existingContainers: s
|
|
240
241
|
}),
|
|
241
|
-
/*#__PURE__*/
|
|
242
|
-
isOpen:
|
|
243
|
-
container:
|
|
244
|
-
onClose: () =>
|
|
242
|
+
/*#__PURE__*/ R(re, {
|
|
243
|
+
isOpen: le !== null,
|
|
244
|
+
container: le,
|
|
245
|
+
onClose: () => ue(null),
|
|
245
246
|
onSuccess: d,
|
|
246
247
|
onError: m
|
|
247
248
|
}),
|
|
248
|
-
/*#__PURE__*/
|
|
249
|
-
isOpen:
|
|
250
|
-
container:
|
|
251
|
-
onClose: () =>
|
|
249
|
+
/*#__PURE__*/ R(ae, {
|
|
250
|
+
isOpen: N !== null,
|
|
251
|
+
container: N,
|
|
252
|
+
onClose: () => P(null),
|
|
252
253
|
onSuccess: h,
|
|
253
254
|
onError: _
|
|
254
255
|
}),
|
|
255
|
-
/*#__PURE__*/
|
|
256
|
-
isOpen:
|
|
257
|
-
container:
|
|
258
|
-
onClose: () =>
|
|
256
|
+
/*#__PURE__*/ R(j, {
|
|
257
|
+
isOpen: fe !== null,
|
|
258
|
+
container: fe,
|
|
259
|
+
onClose: () => I(null),
|
|
259
260
|
onSuccess: v,
|
|
260
261
|
onError: S
|
|
261
262
|
}),
|
|
262
|
-
/*#__PURE__*/
|
|
263
|
-
isOpen:
|
|
264
|
-
container:
|
|
265
|
-
onClose: () =>
|
|
263
|
+
/*#__PURE__*/ R(k, {
|
|
264
|
+
isOpen: L !== null,
|
|
265
|
+
container: L,
|
|
266
|
+
onClose: () => B(null),
|
|
266
267
|
onSuccess: w,
|
|
267
268
|
onError: T
|
|
268
269
|
})
|
|
269
270
|
] });
|
|
270
|
-
},
|
|
271
|
+
}, q = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ z("span", {
|
|
271
272
|
className: "flex items-start gap-1.5",
|
|
272
|
-
children: [/*#__PURE__*/
|
|
273
|
+
children: [/*#__PURE__*/ R(u, {
|
|
273
274
|
icon: "check",
|
|
274
275
|
size: "16px",
|
|
275
276
|
className: "text-theme-success mt-0.5 shrink-0"
|
|
276
|
-
}), /*#__PURE__*/
|
|
277
|
-
/*#__PURE__*/
|
|
277
|
+
}), /*#__PURE__*/ z("span", { children: [
|
|
278
|
+
/*#__PURE__*/ z("span", {
|
|
278
279
|
className: "font-medium",
|
|
279
280
|
children: [e, ":"]
|
|
280
281
|
}),
|
|
281
282
|
" ",
|
|
282
283
|
t
|
|
283
284
|
] })]
|
|
284
|
-
}),
|
|
285
|
+
}), J = ({ label: e }) => /*#__PURE__*/ z("span", {
|
|
285
286
|
className: "flex items-start gap-1.5",
|
|
286
|
-
children: [/*#__PURE__*/
|
|
287
|
+
children: [/*#__PURE__*/ R(u, {
|
|
287
288
|
icon: "check",
|
|
288
289
|
size: "16px",
|
|
289
290
|
className: "text-theme-success mt-0.5 shrink-0"
|
|
290
|
-
}), /*#__PURE__*/
|
|
291
|
-
}),
|
|
291
|
+
}), /*#__PURE__*/ R("span", { children: e })]
|
|
292
|
+
}), Y = ({ title: e, children: t }) => /*#__PURE__*/ z("span", {
|
|
292
293
|
className: "flex flex-col gap-1.5",
|
|
293
|
-
children: [/*#__PURE__*/
|
|
294
|
+
children: [/*#__PURE__*/ R("span", {
|
|
294
295
|
className: "text-theme-default block font-semibold",
|
|
295
296
|
children: e
|
|
296
297
|
}), t]
|
|
297
|
-
}),
|
|
298
|
-
let { i18n: i, _: a } =
|
|
298
|
+
}), xe = ({ serviceInfo: e, accountInfo: t, open: r }) => {
|
|
299
|
+
let { i18n: i, _: a } = U(), o = e?.swift, s = {
|
|
299
300
|
account_quotas: i._({ id: "DJT9tB" }),
|
|
300
301
|
container_quotas: i._({ id: "USiuNX" }),
|
|
301
302
|
bulk_delete: i._({ id: "F6YIQe" }),
|
|
@@ -306,112 +307,112 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
306
307
|
symlink: i._({ id: "Q2xmVl" }),
|
|
307
308
|
versioned_writes: i._({ id: "8jLXs3" })
|
|
308
309
|
}, l = Object.entries(s).filter(([e]) => o?.[e]).map(([, e]) => e);
|
|
309
|
-
return /*#__PURE__*/
|
|
310
|
+
return /*#__PURE__*/ z(c, {
|
|
310
311
|
triggerEvent: "hover",
|
|
311
312
|
placement: "bottom-end",
|
|
312
313
|
open: r,
|
|
313
|
-
children: [/*#__PURE__*/
|
|
314
|
+
children: [/*#__PURE__*/ R(S, {
|
|
314
315
|
className: "max-h-5",
|
|
315
|
-
children: /*#__PURE__*/
|
|
316
|
+
children: /*#__PURE__*/ R("span", { children: /*#__PURE__*/ R(u, {
|
|
316
317
|
icon: "info",
|
|
317
318
|
size: "20px",
|
|
318
319
|
className: "text-theme-light hover:text-theme-default cursor-pointer"
|
|
319
320
|
}) })
|
|
320
|
-
}), /*#__PURE__*/
|
|
321
|
+
}), /*#__PURE__*/ R(n, {
|
|
321
322
|
className: "z-10 w-72 text-sm",
|
|
322
|
-
children: /*#__PURE__*/
|
|
323
|
+
children: /*#__PURE__*/ z("span", {
|
|
323
324
|
className: "flex flex-col gap-3 p-1",
|
|
324
325
|
children: [
|
|
325
|
-
t && /*#__PURE__*/
|
|
326
|
-
title: /*#__PURE__*/
|
|
326
|
+
t && /*#__PURE__*/ z(Y, {
|
|
327
|
+
title: /*#__PURE__*/ R(H, { id: "AeXO77" }),
|
|
327
328
|
children: [
|
|
328
|
-
/*#__PURE__*/
|
|
329
|
+
/*#__PURE__*/ R(q, {
|
|
329
330
|
label: i._({ id: "B3toQF" }),
|
|
330
331
|
value: t.objectCount.toLocaleString()
|
|
331
332
|
}),
|
|
332
|
-
/*#__PURE__*/
|
|
333
|
+
/*#__PURE__*/ R(q, {
|
|
333
334
|
label: i._({ id: "aL1w5Z" }),
|
|
334
|
-
value:
|
|
335
|
+
value: F(t.bytesUsed)
|
|
335
336
|
}),
|
|
336
|
-
t.quotaBytes !== void 0 && /*#__PURE__*/
|
|
337
|
+
t.quotaBytes !== void 0 && /*#__PURE__*/ R(q, {
|
|
337
338
|
label: i._({ id: "vEkTR9" }),
|
|
338
|
-
value:
|
|
339
|
+
value: F(t.quotaBytes)
|
|
339
340
|
})
|
|
340
341
|
]
|
|
341
342
|
}),
|
|
342
|
-
o && /*#__PURE__*/
|
|
343
|
-
title: /*#__PURE__*/
|
|
343
|
+
o && /*#__PURE__*/ z(Y, {
|
|
344
|
+
title: /*#__PURE__*/ R(H, { id: "6BDqha" }),
|
|
344
345
|
children: [
|
|
345
|
-
/*#__PURE__*/
|
|
346
|
+
/*#__PURE__*/ R(q, {
|
|
346
347
|
label: i._({ id: "wTg+FY" }),
|
|
347
|
-
value: o.max_file_size === void 0 ? void 0 :
|
|
348
|
+
value: o.max_file_size === void 0 ? void 0 : F(o.max_file_size)
|
|
348
349
|
}),
|
|
349
|
-
/*#__PURE__*/
|
|
350
|
+
/*#__PURE__*/ R(q, {
|
|
350
351
|
label: i._({ id: "Rih53k" }),
|
|
351
352
|
value: o.max_container_name_length
|
|
352
353
|
}),
|
|
353
|
-
/*#__PURE__*/
|
|
354
|
+
/*#__PURE__*/ R(q, {
|
|
354
355
|
label: i._({ id: "qAkkjP" }),
|
|
355
356
|
value: o.max_object_name_length
|
|
356
357
|
}),
|
|
357
|
-
/*#__PURE__*/
|
|
358
|
+
/*#__PURE__*/ R(q, {
|
|
358
359
|
label: i._({ id: "OZImTR" }),
|
|
359
360
|
value: o.container_listing_limit?.toLocaleString()
|
|
360
361
|
}),
|
|
361
|
-
/*#__PURE__*/
|
|
362
|
+
/*#__PURE__*/ R(q, {
|
|
362
363
|
label: i._({ id: "a4A2uB" }),
|
|
363
364
|
value: o.account_listing_limit?.toLocaleString()
|
|
364
365
|
}),
|
|
365
|
-
/*#__PURE__*/
|
|
366
|
+
/*#__PURE__*/ R(q, {
|
|
366
367
|
label: i._({ id: "zWb/Nn" }),
|
|
367
368
|
value: o.max_header_size
|
|
368
369
|
}),
|
|
369
|
-
/*#__PURE__*/
|
|
370
|
+
/*#__PURE__*/ R(q, {
|
|
370
371
|
label: i._({ id: "RGwfoL" }),
|
|
371
372
|
value: o.max_meta_count
|
|
372
373
|
}),
|
|
373
|
-
/*#__PURE__*/
|
|
374
|
+
/*#__PURE__*/ R(q, {
|
|
374
375
|
label: i._({ id: "8c3/77" }),
|
|
375
376
|
value: o.max_meta_name_length
|
|
376
377
|
}),
|
|
377
|
-
/*#__PURE__*/
|
|
378
|
+
/*#__PURE__*/ R(q, {
|
|
378
379
|
label: i._({ id: "5JDSvn" }),
|
|
379
380
|
value: o.max_meta_value_length
|
|
380
381
|
}),
|
|
381
|
-
/*#__PURE__*/
|
|
382
|
+
/*#__PURE__*/ R(q, {
|
|
382
383
|
label: i._({ id: "ZAx+d1" }),
|
|
383
384
|
value: o.max_meta_overall_size
|
|
384
385
|
}),
|
|
385
|
-
o.bulk_delete && /*#__PURE__*/
|
|
386
|
+
o.bulk_delete && /*#__PURE__*/ R(q, {
|
|
386
387
|
label: i._({ id: "lQ3EIe" }),
|
|
387
388
|
value: o.bulk_delete.max_deletes_per_request.toLocaleString()
|
|
388
389
|
}),
|
|
389
|
-
o.bulk_upload && /*#__PURE__*/
|
|
390
|
+
o.bulk_upload && /*#__PURE__*/ R(q, {
|
|
390
391
|
label: i._({ id: "STc+7E" }),
|
|
391
392
|
value: o.bulk_upload.max_containers_per_extraction.toLocaleString()
|
|
392
393
|
}),
|
|
393
|
-
o.slo && /*#__PURE__*/
|
|
394
|
+
o.slo && /*#__PURE__*/ R(q, {
|
|
394
395
|
label: i._({ id: "RNBvdl" }),
|
|
395
396
|
value: o.slo.max_manifest_segments.toLocaleString()
|
|
396
397
|
})
|
|
397
398
|
]
|
|
398
399
|
}),
|
|
399
|
-
l.length > 0 && /*#__PURE__*/
|
|
400
|
-
title: /*#__PURE__*/
|
|
401
|
-
children: l.map((e) => /*#__PURE__*/
|
|
400
|
+
l.length > 0 && /*#__PURE__*/ R(Y, {
|
|
401
|
+
title: /*#__PURE__*/ R(H, { id: "Qx7DM7" }),
|
|
402
|
+
children: l.map((e) => /*#__PURE__*/ R(J, { label: e }, e))
|
|
402
403
|
})
|
|
403
404
|
]
|
|
404
405
|
})
|
|
405
406
|
})]
|
|
406
407
|
});
|
|
407
|
-
},
|
|
408
|
-
let { i18n: a, i18n: o, _: c } =
|
|
408
|
+
}, X = 20, Z = "empty", Se = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
|
|
409
|
+
let { i18n: a, i18n: o, _: c } = U(), l = P(), [u, f] = V(null), { trackClose: p, markSubmitted: m, resetTracking: g } = I({
|
|
409
410
|
isOpen: e,
|
|
410
411
|
actionPrefix: "storage.swift.containers.empty"
|
|
411
|
-
}), _ =
|
|
412
|
+
}), _ = W.object({ confirm: W.string().transform((e) => e.trim()).refine((e) => e === Z, { message: a._({
|
|
412
413
|
id: "xyaMox",
|
|
413
|
-
values: { CONFIRM_WORD:
|
|
414
|
-
}) }) }), b =
|
|
414
|
+
values: { CONFIRM_WORD: Z }
|
|
415
|
+
}) }) }), b = ve({
|
|
415
416
|
defaultValues: { confirm: "" },
|
|
416
417
|
validators: { onSubmit: _ },
|
|
417
418
|
onSubmit: async () => {
|
|
@@ -441,13 +442,13 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
441
442
|
errors: i
|
|
442
443
|
}), T();
|
|
443
444
|
}
|
|
444
|
-
}), x =
|
|
445
|
+
}), x = ye(b.store, (e) => e.isSubmitting || e.values.confirm.trim() !== Z), S = w.useUtils(), C = w.storage.swift.emptyContainer.useMutation(), T = () => {
|
|
445
446
|
p(), C.reset(), f(null), b.reset(), g(), n();
|
|
446
447
|
};
|
|
447
448
|
if (!e || t.length === 0) return null;
|
|
448
|
-
let E = t.length, D = t.slice(0,
|
|
449
|
-
return /*#__PURE__*/
|
|
450
|
-
title: /*#__PURE__*/
|
|
449
|
+
let E = t.length, D = t.slice(0, X), O = E - D.length, k = C.isPending || u !== null, A = u?.current, ee = u?.total;
|
|
450
|
+
return /*#__PURE__*/ R(s, {
|
|
451
|
+
title: /*#__PURE__*/ R(H, {
|
|
451
452
|
id: "0efWir",
|
|
452
453
|
values: { totalCount: E }
|
|
453
454
|
}),
|
|
@@ -463,7 +464,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
463
464
|
disableCancelButton: k,
|
|
464
465
|
disableCloseButton: k,
|
|
465
466
|
size: "small",
|
|
466
|
-
children: k ? /*#__PURE__*/
|
|
467
|
+
children: k ? /*#__PURE__*/ R(y, {
|
|
467
468
|
status: "progress",
|
|
468
469
|
title: u ? a._({
|
|
469
470
|
id: "3A+Lhe",
|
|
@@ -473,30 +474,30 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
473
474
|
}
|
|
474
475
|
}) : a._({ id: "s4Vnq2" }),
|
|
475
476
|
className: "mt-0"
|
|
476
|
-
}) : /*#__PURE__*/
|
|
477
|
-
/*#__PURE__*/
|
|
478
|
-
/*#__PURE__*/
|
|
477
|
+
}) : /*#__PURE__*/ z("div", { children: [
|
|
478
|
+
/*#__PURE__*/ R("p", { children: /*#__PURE__*/ R(H, { id: "JuOpPY" }) }),
|
|
479
|
+
/*#__PURE__*/ R("p", { children: /*#__PURE__*/ R(H, {
|
|
479
480
|
id: "XXjbEV",
|
|
480
481
|
components: {
|
|
481
|
-
0: /*#__PURE__*/
|
|
482
|
-
1: /*#__PURE__*/
|
|
482
|
+
0: /*#__PURE__*/ R("strong", {}),
|
|
483
|
+
1: /*#__PURE__*/ R("strong", {})
|
|
483
484
|
}
|
|
484
485
|
}) }),
|
|
485
|
-
/*#__PURE__*/
|
|
486
|
+
/*#__PURE__*/ z("div", {
|
|
486
487
|
className: "my-6",
|
|
487
|
-
children: [/*#__PURE__*/
|
|
488
|
+
children: [/*#__PURE__*/ R("p", {
|
|
488
489
|
className: "text-sm font-semibold",
|
|
489
|
-
children: /*#__PURE__*/
|
|
490
|
-
}), /*#__PURE__*/
|
|
490
|
+
children: /*#__PURE__*/ R(H, { id: "F6WEvK" })
|
|
491
|
+
}), /*#__PURE__*/ R("div", {
|
|
491
492
|
className: "bg-theme-background-lvl-2 mt-2 max-h-48 overflow-y-auto rounded p-3",
|
|
492
|
-
children: /*#__PURE__*/
|
|
493
|
+
children: /*#__PURE__*/ z(i, {
|
|
493
494
|
direction: "vertical",
|
|
494
495
|
gap: "1",
|
|
495
496
|
children: [D.map((e) => {
|
|
496
497
|
let t = e.count;
|
|
497
|
-
return /*#__PURE__*/
|
|
498
|
+
return /*#__PURE__*/ z("div", {
|
|
498
499
|
className: "text-theme-default overflow-x-hidden text-sm wrap-anywhere",
|
|
499
|
-
children: [e.name, t != null && /*#__PURE__*/
|
|
500
|
+
children: [e.name, t != null && /*#__PURE__*/ z("span", {
|
|
500
501
|
className: "text-theme-light ml-2",
|
|
501
502
|
children: [
|
|
502
503
|
"(",
|
|
@@ -508,9 +509,9 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
508
509
|
]
|
|
509
510
|
})]
|
|
510
511
|
}, e.name);
|
|
511
|
-
}), O > 0 && /*#__PURE__*/
|
|
512
|
+
}), O > 0 && /*#__PURE__*/ R("div", {
|
|
512
513
|
className: "text-theme-light pt-2 text-sm",
|
|
513
|
-
children: /*#__PURE__*/
|
|
514
|
+
children: /*#__PURE__*/ R(H, {
|
|
514
515
|
id: "20afDk",
|
|
515
516
|
values: { hiddenCount: O }
|
|
516
517
|
})
|
|
@@ -518,17 +519,17 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
518
519
|
})
|
|
519
520
|
})]
|
|
520
521
|
}),
|
|
521
|
-
/*#__PURE__*/
|
|
522
|
+
/*#__PURE__*/ R(d, {
|
|
522
523
|
className: "mb-0",
|
|
523
524
|
id: "empty-containers-form",
|
|
524
525
|
onSubmit: (e) => {
|
|
525
526
|
e.preventDefault(), b.handleSubmit();
|
|
526
527
|
},
|
|
527
|
-
children: /*#__PURE__*/
|
|
528
|
+
children: /*#__PURE__*/ R(v, { children: /*#__PURE__*/ R(b.Field, {
|
|
528
529
|
name: "confirm",
|
|
529
|
-
children: (e) => /*#__PURE__*/
|
|
530
|
+
children: (e) => /*#__PURE__*/ R(h, {
|
|
530
531
|
label: a._({ id: "Ghp863" }),
|
|
531
|
-
placeholder:
|
|
532
|
+
placeholder: Z,
|
|
532
533
|
id: e.name,
|
|
533
534
|
name: e.name,
|
|
534
535
|
value: e.state.value,
|
|
@@ -541,50 +542,50 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
541
542
|
})
|
|
542
543
|
] })
|
|
543
544
|
});
|
|
544
|
-
},
|
|
545
|
-
let { i18n: n, i18n: r, _: a } =
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
}, Ce = () => {
|
|
546
|
+
let { i18n: n, i18n: r, _: a } = U(), o = P(), s = ge({ from: D.fullPath }), { sortBy: c, sortDirection: u, search: d = "" } = D.useSearch(), [h, g] = V(!1), [v, x] = V(!1), [S, T] = V([]), [O, k] = V(d), j = he(void 0);
|
|
547
|
+
me(() => () => clearTimeout(j.current), []), me(() => {
|
|
548
|
+
k(d);
|
|
548
549
|
}, [d]);
|
|
549
550
|
let re = (e) => {
|
|
550
|
-
let { message: t, ...n } =
|
|
551
|
+
let { message: t, ...n } = A(e);
|
|
551
552
|
_.success(t, n);
|
|
552
|
-
},
|
|
553
|
-
let { message: n, ...r } =
|
|
553
|
+
}, ae = (e, t) => {
|
|
554
|
+
let { message: n, ...r } = oe(e, t);
|
|
554
555
|
_.warning(n, r);
|
|
555
|
-
},
|
|
556
|
-
let { message: n, ...r } =
|
|
556
|
+
}, de = (e, t) => {
|
|
557
|
+
let { message: n, ...r } = ie(e, t);
|
|
557
558
|
_.success(n, r);
|
|
558
|
-
},
|
|
559
|
-
let { message: n, ...r } =
|
|
559
|
+
}, N = (e, t) => {
|
|
560
|
+
let { message: n, ...r } = ue(e, t);
|
|
560
561
|
_.error(n, r);
|
|
561
|
-
},
|
|
562
|
-
let { message: t, ...n } =
|
|
562
|
+
}, I = (e) => {
|
|
563
|
+
let { message: t, ...n } = ee(e);
|
|
563
564
|
_.success(t, n);
|
|
564
|
-
},
|
|
565
|
-
let { message: n, ...r } =
|
|
565
|
+
}, L = (e, t) => {
|
|
566
|
+
let { message: n, ...r } = le(e, t);
|
|
566
567
|
_.error(n, r);
|
|
567
|
-
},
|
|
568
|
-
let { message: t, ...n } =
|
|
568
|
+
}, _e = (e) => {
|
|
569
|
+
let { message: t, ...n } = ne(e);
|
|
569
570
|
_.success(t, n);
|
|
570
|
-
},
|
|
571
|
-
let { message: n, ...r } =
|
|
571
|
+
}, W = (e, t) => {
|
|
572
|
+
let { message: n, ...r } = te(e, t);
|
|
572
573
|
_.error(n, r);
|
|
573
|
-
},
|
|
574
|
-
let { message: t, ...n } =
|
|
574
|
+
}, G = (e) => {
|
|
575
|
+
let { message: t, ...n } = M(e);
|
|
575
576
|
_.success(t, n);
|
|
576
|
-
},
|
|
577
|
-
let { message: n, ...r } =
|
|
577
|
+
}, ve = (e, t) => {
|
|
578
|
+
let { message: n, ...r } = ce(e, t);
|
|
578
579
|
_.error(n, r);
|
|
579
|
-
},
|
|
580
|
-
if (n.length === 0)
|
|
580
|
+
}, ye = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
|
|
581
|
+
if (n.length === 0) T([]);
|
|
581
582
|
else {
|
|
582
583
|
let e = new Set(n.map((e) => e.split(": ")[0]));
|
|
583
|
-
|
|
584
|
+
T((t) => t.filter((t) => e.has(t)));
|
|
584
585
|
}
|
|
585
|
-
let { message: r, severity: i, ...a } =
|
|
586
|
+
let { message: r, severity: i, ...a } = se(e, t, n);
|
|
586
587
|
_[i](r, a);
|
|
587
|
-
},
|
|
588
|
+
}, K = {
|
|
588
589
|
options: [
|
|
589
590
|
{
|
|
590
591
|
label: n._({ id: "t0X9+8" }),
|
|
@@ -605,10 +606,10 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
605
606
|
],
|
|
606
607
|
sortBy: c ?? "name",
|
|
607
608
|
sortDirection: u ?? "asc"
|
|
608
|
-
}, { data:
|
|
609
|
+
}, { data: q, isLoading: J, error: Y } = w.storage.swift.listContainers.useQuery({
|
|
609
610
|
project_id: o,
|
|
610
611
|
format: "json"
|
|
611
|
-
}), { data:
|
|
612
|
+
}), { data: X } = w.storage.swift.getAccountMetadata.useQuery({ project_id: o }), { data: Z } = w.storage.swift.getServiceInfo.useQuery(), Ce = (e) => [...e].sort((e, t) => {
|
|
612
613
|
let n;
|
|
613
614
|
switch (c ?? "name") {
|
|
614
615
|
case "name":
|
|
@@ -630,17 +631,17 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
630
631
|
default: n = e.name.localeCompare(t.name);
|
|
631
632
|
}
|
|
632
633
|
return (u ?? "asc") === "desc" ? -n : n;
|
|
633
|
-
}),
|
|
634
|
+
}), we = (q || []).filter((e) => e.name.toLowerCase().includes(d.toLowerCase())), Te = Ce(we), Ee = (e) => {
|
|
634
635
|
let t = typeof e == "string" ? e : "";
|
|
635
|
-
|
|
636
|
+
B(() => {
|
|
636
637
|
s({ search: (e) => ({
|
|
637
638
|
...e,
|
|
638
639
|
search: t || void 0
|
|
639
640
|
}) });
|
|
640
641
|
});
|
|
641
|
-
},
|
|
642
|
+
}, De = (e) => {
|
|
642
643
|
let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
|
|
643
|
-
|
|
644
|
+
B(() => {
|
|
644
645
|
s({ search: (e) => ({
|
|
645
646
|
...e,
|
|
646
647
|
sortBy: t,
|
|
@@ -648,100 +649,100 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
648
649
|
}) });
|
|
649
650
|
});
|
|
650
651
|
};
|
|
651
|
-
if (
|
|
652
|
+
if (J) return /*#__PURE__*/ R(y, {
|
|
652
653
|
status: "progress",
|
|
653
654
|
title: n._({ id: "WYiUDa" })
|
|
654
655
|
});
|
|
655
|
-
if (
|
|
656
|
+
if (Y) return /*#__PURE__*/ R(y, {
|
|
656
657
|
status: "error",
|
|
657
658
|
title: n._({ id: "WZWHIv" }),
|
|
658
|
-
body:
|
|
659
|
+
body: Y.message
|
|
659
660
|
});
|
|
660
|
-
let
|
|
661
|
-
return /*#__PURE__*/
|
|
661
|
+
let Oe = X?.bytesUsed || 0, Q = X?.quotaBytes || 0, ke = Q > 0 ? Q - Oe : 0, Ae = (q || []).filter((e) => S.includes(e.name)), je = Ae.length > 0, Me = Ae.length, Ne = (q || []).length, Pe = we.length, Fe = Pe !== Ne, $ = Te.map((e) => e.name), Ie = $.length > 0 && $.every((e) => S.includes(e)), Le = $.some((e) => S.includes(e));
|
|
662
|
+
return /*#__PURE__*/ z("div", {
|
|
662
663
|
className: "relative",
|
|
663
664
|
children: [
|
|
664
|
-
/*#__PURE__*/
|
|
665
|
+
/*#__PURE__*/ z(i, {
|
|
665
666
|
direction: "vertical",
|
|
666
667
|
children: [
|
|
667
|
-
/*#__PURE__*/
|
|
668
|
+
/*#__PURE__*/ z(i, {
|
|
668
669
|
distribution: "end",
|
|
669
670
|
alignment: "center",
|
|
670
671
|
gap: "2",
|
|
671
672
|
className: "pb-2",
|
|
672
|
-
children: [/*#__PURE__*/
|
|
673
|
+
children: [/*#__PURE__*/ R(i, {
|
|
673
674
|
gap: "0.5",
|
|
674
675
|
alignment: "center",
|
|
675
|
-
children: /*#__PURE__*/
|
|
676
|
-
options:
|
|
677
|
-
sortBy:
|
|
678
|
-
sortDirection:
|
|
676
|
+
children: /*#__PURE__*/ R(fe, {
|
|
677
|
+
options: K.options,
|
|
678
|
+
sortBy: K.sortBy,
|
|
679
|
+
sortDirection: K.sortDirection ?? "asc",
|
|
679
680
|
selectClassName: "min-w-40",
|
|
680
|
-
onSortByChange: (e) =>
|
|
681
|
-
...
|
|
681
|
+
onSortByChange: (e) => De({
|
|
682
|
+
...K,
|
|
682
683
|
sortBy: e,
|
|
683
|
-
sortDirection:
|
|
684
|
+
sortDirection: K.sortDirection
|
|
684
685
|
}),
|
|
685
|
-
onSortDirectionChange: (e) =>
|
|
686
|
-
...
|
|
686
|
+
onSortDirectionChange: (e) => De({
|
|
687
|
+
...K,
|
|
687
688
|
sortDirection: e
|
|
688
689
|
})
|
|
689
690
|
})
|
|
690
|
-
}), /*#__PURE__*/
|
|
691
|
+
}), /*#__PURE__*/ R(p, {
|
|
691
692
|
variant: "primary",
|
|
692
693
|
className: "whitespace-nowrap",
|
|
693
694
|
onClick: () => g(!0),
|
|
694
|
-
children: /*#__PURE__*/
|
|
695
|
+
children: /*#__PURE__*/ R(H, { id: "vTh35P" })
|
|
695
696
|
})]
|
|
696
697
|
}),
|
|
697
|
-
/*#__PURE__*/
|
|
698
|
+
/*#__PURE__*/ R(m, { children: /*#__PURE__*/ R(i, {
|
|
698
699
|
direction: "vertical",
|
|
699
700
|
gap: "2",
|
|
700
|
-
children: /*#__PURE__*/
|
|
701
|
+
children: /*#__PURE__*/ R(i, {
|
|
701
702
|
distribution: "end",
|
|
702
703
|
alignment: "center",
|
|
703
|
-
children: /*#__PURE__*/
|
|
704
|
+
children: /*#__PURE__*/ R(e, {
|
|
704
705
|
placeholder: n._({ id: "TipzDp" }),
|
|
705
706
|
"data-testid": "searchbar",
|
|
706
707
|
value: O,
|
|
707
708
|
onInput: (e) => {
|
|
708
709
|
let t = e.currentTarget.value;
|
|
709
|
-
|
|
710
|
+
k(t), clearTimeout(j.current), j.current = window.setTimeout(() => Ee(t), 500);
|
|
710
711
|
},
|
|
711
712
|
onSearch: (e) => {
|
|
712
|
-
clearTimeout(
|
|
713
|
+
clearTimeout(j.current), Ee(typeof e == "string" ? e : "");
|
|
713
714
|
},
|
|
714
715
|
onClear: () => {
|
|
715
|
-
clearTimeout(
|
|
716
|
+
clearTimeout(j.current), k(""), Ee("");
|
|
716
717
|
}
|
|
717
718
|
})
|
|
718
719
|
})
|
|
719
720
|
}) }),
|
|
720
|
-
/*#__PURE__*/
|
|
721
|
+
/*#__PURE__*/ R(m, { children: /*#__PURE__*/ z(i, {
|
|
721
722
|
distribution: "start",
|
|
722
723
|
gap: "2",
|
|
723
724
|
alignment: "center",
|
|
724
725
|
className: "text-sm",
|
|
725
|
-
children: [/*#__PURE__*/
|
|
726
|
+
children: [/*#__PURE__*/ z(i, {
|
|
726
727
|
gap: "2",
|
|
727
728
|
alignment: "center",
|
|
728
|
-
children: [/*#__PURE__*/
|
|
729
|
+
children: [/*#__PURE__*/ R(b, {
|
|
729
730
|
checked: Ie,
|
|
730
731
|
indeterminate: Le && !Ie,
|
|
731
732
|
onChange: () => {
|
|
732
|
-
|
|
733
|
+
T(Ie ? (e) => e.filter((e) => !$.includes(e)) : (e) => [.../* @__PURE__ */ new Set([...e, ...$])]);
|
|
733
734
|
}
|
|
734
|
-
}), /*#__PURE__*/
|
|
735
|
+
}), /*#__PURE__*/ z(t, {
|
|
735
736
|
className: "flex items-center",
|
|
736
|
-
children: [/*#__PURE__*/
|
|
737
|
+
children: [/*#__PURE__*/ R(l, {
|
|
737
738
|
as: "div",
|
|
738
|
-
children: /*#__PURE__*/
|
|
739
|
+
children: /*#__PURE__*/ R(p, {
|
|
739
740
|
disabled: !je,
|
|
740
741
|
size: "small",
|
|
741
742
|
icon: "moreVert",
|
|
742
743
|
label: n._({ id: "7L01XJ" })
|
|
743
744
|
})
|
|
744
|
-
}), je && /*#__PURE__*/
|
|
745
|
+
}), je && /*#__PURE__*/ R(f, { children: /*#__PURE__*/ R(C, {
|
|
745
746
|
disabled: !je,
|
|
746
747
|
label: r._(n._({
|
|
747
748
|
id: "0Th0CH",
|
|
@@ -750,109 +751,109 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
|
|
|
750
751
|
onClick: () => x(!0)
|
|
751
752
|
}) })]
|
|
752
753
|
})]
|
|
753
|
-
}), /*#__PURE__*/
|
|
754
|
+
}), /*#__PURE__*/ z("div", {
|
|
754
755
|
className: "text-theme-light ml-auto flex items-center gap-1",
|
|
755
756
|
"data-testid": "containers-info-block",
|
|
756
757
|
children: [
|
|
757
|
-
Fe ? /*#__PURE__*/
|
|
758
|
+
Fe ? /*#__PURE__*/ R(H, {
|
|
758
759
|
id: "8uPTwT",
|
|
759
760
|
values: {
|
|
760
761
|
filteredCount: Pe,
|
|
761
762
|
totalCount: Ne
|
|
762
763
|
}
|
|
763
|
-
}) : /*#__PURE__*/
|
|
764
|
+
}) : /*#__PURE__*/ R(H, {
|
|
764
765
|
id: "ywe1H/",
|
|
765
766
|
values: { totalCount: Ne }
|
|
766
767
|
}),
|
|
767
|
-
|
|
768
|
-
/*#__PURE__*/
|
|
768
|
+
Q > 0 && /*#__PURE__*/ z(pe, { children: [/*#__PURE__*/ R("span", { children: "," }), /*#__PURE__*/ z("span", { children: [
|
|
769
|
+
/*#__PURE__*/ R(H, { id: "kKK8AH" }),
|
|
769
770
|
" ",
|
|
770
|
-
/*#__PURE__*/
|
|
771
|
+
/*#__PURE__*/ R("span", {
|
|
771
772
|
className: "text-theme-default font-semibold",
|
|
772
|
-
children:
|
|
773
|
+
children: F(ke)
|
|
773
774
|
})
|
|
774
775
|
] })] }),
|
|
775
|
-
/*#__PURE__*/
|
|
776
|
-
serviceInfo:
|
|
777
|
-
accountInfo:
|
|
776
|
+
/*#__PURE__*/ R(xe, {
|
|
777
|
+
serviceInfo: Z,
|
|
778
|
+
accountInfo: X
|
|
778
779
|
})
|
|
779
780
|
]
|
|
780
781
|
})]
|
|
781
782
|
}) })
|
|
782
783
|
]
|
|
783
784
|
}),
|
|
784
|
-
/*#__PURE__*/
|
|
785
|
-
containers:
|
|
785
|
+
/*#__PURE__*/ R(be, {
|
|
786
|
+
containers: Te,
|
|
786
787
|
createModalOpen: h,
|
|
787
788
|
setCreateModalOpen: g,
|
|
788
|
-
maxContainerNameLength:
|
|
789
|
-
existingContainers:
|
|
789
|
+
maxContainerNameLength: Z?.swift?.max_container_name_length,
|
|
790
|
+
existingContainers: q,
|
|
790
791
|
onCreateSuccess: re,
|
|
791
|
-
onCreatePartialSuccess:
|
|
792
|
-
onEmptySuccess:
|
|
793
|
-
onEmptyError:
|
|
794
|
-
onDeleteSuccess:
|
|
795
|
-
onDeleteError:
|
|
796
|
-
onPropertiesSuccess:
|
|
797
|
-
onPropertiesError:
|
|
798
|
-
onAclSuccess:
|
|
799
|
-
onAclError:
|
|
792
|
+
onCreatePartialSuccess: ae,
|
|
793
|
+
onEmptySuccess: de,
|
|
794
|
+
onEmptyError: N,
|
|
795
|
+
onDeleteSuccess: I,
|
|
796
|
+
onDeleteError: L,
|
|
797
|
+
onPropertiesSuccess: _e,
|
|
798
|
+
onPropertiesError: W,
|
|
799
|
+
onAclSuccess: G,
|
|
800
|
+
onAclError: ve,
|
|
800
801
|
selectedContainers: S,
|
|
801
|
-
setSelectedContainers:
|
|
802
|
+
setSelectedContainers: T,
|
|
802
803
|
hasAnyBulkAction: !0
|
|
803
804
|
}),
|
|
804
|
-
/*#__PURE__*/
|
|
805
|
+
/*#__PURE__*/ R(Se, {
|
|
805
806
|
isOpen: v,
|
|
806
807
|
containers: Ae,
|
|
807
808
|
onClose: () => x(!1),
|
|
808
|
-
onComplete:
|
|
809
|
+
onComplete: ye
|
|
809
810
|
})
|
|
810
811
|
]
|
|
811
812
|
});
|
|
812
813
|
};
|
|
813
814
|
//#endregion
|
|
814
815
|
//#region src/client/routes/_auth/projects/$projectId/storage/$provider/$storageType/index.tsx?tsr-split=component
|
|
815
|
-
function
|
|
816
|
-
let { project: e, provider: t } =
|
|
816
|
+
function we() {
|
|
817
|
+
let { project: e, provider: t } = _e({
|
|
817
818
|
from: "/_auth/projects/$projectId/storage/$provider/$storageType/",
|
|
818
819
|
select: (e) => ({
|
|
819
820
|
project: e.projectId,
|
|
820
821
|
provider: e.provider,
|
|
821
822
|
storageType: e.storageType
|
|
822
823
|
})
|
|
823
|
-
}), { i18n: n, _: r } =
|
|
824
|
+
}), { i18n: n, _: r } = U(), i;
|
|
824
825
|
switch (t) {
|
|
825
|
-
case
|
|
826
|
+
case T.SWIFT:
|
|
826
827
|
i = n._({ id: "+OEi73" });
|
|
827
828
|
break;
|
|
828
|
-
case
|
|
829
|
+
case T.CEPH:
|
|
829
830
|
i = n._({ id: "KhNDX4" });
|
|
830
831
|
break;
|
|
831
832
|
default: i = n._({ id: "IWF68U" });
|
|
832
833
|
}
|
|
833
|
-
return /*#__PURE__*/
|
|
834
|
+
return /*#__PURE__*/ z("div", { children: [/*#__PURE__*/ R(L, {
|
|
834
835
|
title: i,
|
|
835
836
|
projectId: e
|
|
836
|
-
}), e ? /*#__PURE__*/
|
|
837
|
+
}), e ? /*#__PURE__*/ R(G, {
|
|
837
838
|
resetKeys: [e, t],
|
|
838
|
-
fallback: /*#__PURE__*/
|
|
839
|
+
fallback: /*#__PURE__*/ R("div", {
|
|
839
840
|
className: "p-4 text-center",
|
|
840
|
-
children: /*#__PURE__*/
|
|
841
|
+
children: /*#__PURE__*/ R(H, { id: "diFNkW" })
|
|
841
842
|
}),
|
|
842
843
|
children: (() => {
|
|
843
844
|
switch (t) {
|
|
844
|
-
case
|
|
845
|
-
case
|
|
846
|
-
default: return /*#__PURE__*/
|
|
845
|
+
case T.SWIFT: return /*#__PURE__*/ R(Ce, {});
|
|
846
|
+
case T.CEPH: return /*#__PURE__*/ R(N, {});
|
|
847
|
+
default: return /*#__PURE__*/ R("div", { children: "Storage Overview Page" });
|
|
847
848
|
}
|
|
848
849
|
})()
|
|
849
|
-
}) : /*#__PURE__*/
|
|
850
|
+
}) : /*#__PURE__*/ R("div", {
|
|
850
851
|
className: "p-4 text-center",
|
|
851
|
-
children: /*#__PURE__*/
|
|
852
|
+
children: /*#__PURE__*/ R(H, { id: "Z2fZGD" })
|
|
852
853
|
})] });
|
|
853
854
|
}
|
|
854
|
-
var
|
|
855
|
+
var Te = () => /*#__PURE__*/ R(we, {});
|
|
855
856
|
//#endregion
|
|
856
|
-
export {
|
|
857
|
+
export { Te as component };
|
|
857
858
|
|
|
858
|
-
//# sourceMappingURL=_storageType-
|
|
859
|
+
//# sourceMappingURL=_storageType-UqAMP-8d.mjs.map
|