@cobaltcore-dev/aurora 0.8.0 → 0.9.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/README.md +47 -13
- package/dist/client/AuroraApp.d.ts +14 -0
- package/dist/client/ContentHeader-D4jlOG-9.mjs +96 -0
- package/dist/client/ContentHeader-D4jlOG-9.mjs.map +1 -0
- package/dist/client/Slot-CWb612-_.mjs +28 -0
- package/dist/client/Slot-CWb612-_.mjs.map +1 -0
- package/dist/client/{_flavorId-CFpNGz52.mjs → _flavorId-DsD2VTKA.mjs} +3 -3
- package/dist/client/{_flavorId-CFpNGz52.mjs.map → _flavorId-DsD2VTKA.mjs.map} +1 -1
- package/dist/client/{_flavorId-B9Vqkraj.mjs → _flavorId-Dy7EYQum.mjs} +2 -2
- package/dist/client/{_flavorId-B9Vqkraj.mjs.map → _flavorId-Dy7EYQum.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-B5GMSLeQ.mjs → _floatingIpId-BjVbeNw_.mjs} +2 -2
- package/dist/client/{_floatingIpId-B5GMSLeQ.mjs.map → _floatingIpId-BjVbeNw_.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-C2-BeRmF.mjs → _floatingIpId-j17rCQqG2.mjs} +2 -2
- package/dist/client/_floatingIpId-j17rCQqG2.mjs.map +1 -0
- package/dist/client/{_imageId-9NZytfNs.mjs → _imageId-BjfhqAje.mjs} +2 -2
- package/dist/client/{_imageId-9NZytfNs.mjs.map → _imageId-BjfhqAje.mjs.map} +1 -1
- package/dist/client/_projectId-B_2sZKk-.mjs.map +1 -1
- package/dist/client/{_projectId-cW9aQ4Ag.mjs → _projectId-BaqZ4W50.mjs} +152 -127
- package/dist/client/_projectId-BaqZ4W50.mjs.map +1 -0
- package/dist/client/_projectId-CARHuZTU.mjs +106 -0
- package/dist/client/_projectId-CARHuZTU.mjs.map +1 -0
- package/dist/client/_projectId-DR_2U10f.mjs +27 -0
- package/dist/client/_projectId-DR_2U10f.mjs.map +1 -0
- package/dist/client/{_storageType-2_fau4B5.mjs → _storageType-B0eJODiQ.mjs} +52 -51
- package/dist/client/_storageType-B0eJODiQ.mjs.map +1 -0
- package/dist/client/{_storageType-dRTFMKG3.mjs → _storageType-D7-_Xwwl.mjs} +2 -2
- package/dist/client/{_storageType-dRTFMKG3.mjs.map → _storageType-D7-_Xwwl.mjs.map} +1 -1
- package/dist/client/{flavors-m1qDHzeS.mjs → flavors-C-gY4XeQ.mjs} +3 -3
- package/dist/client/{flavors-m1qDHzeS.mjs.map → flavors-C-gY4XeQ.mjs.map} +1 -1
- package/dist/client/{flavors-_P7R-CeT.mjs → flavors-Dwy1ID_f.mjs} +2 -2
- package/dist/client/{flavors-_P7R-CeT.mjs.map → flavors-Dwy1ID_f.mjs.map} +1 -1
- package/dist/client/{images-DHmVgQAh2.mjs → images-HG7TneK0.mjs} +3 -3
- package/dist/client/images-HG7TneK0.mjs.map +1 -0
- package/dist/client/{images-CpM-T_jM.mjs → images-bG-MZZ7V.mjs} +2 -2
- package/dist/client/{images-CpM-T_jM.mjs.map → images-bG-MZZ7V.mjs.map} +1 -1
- package/dist/client/index.js +182 -172
- package/dist/client/index.js.map +1 -1
- package/dist/client/{pca-CK5-j7Kk.mjs → pca-BBxPCAH0.mjs} +3 -3
- package/dist/client/{pca-CK5-j7Kk.mjs.map → pca-BBxPCAH0.mjs.map} +1 -1
- package/dist/client/{pca-C8zWTSSt.mjs → pca-D7DF_BZZ.mjs} +2 -2
- package/dist/client/{pca-C8zWTSSt.mjs.map → pca-D7DF_BZZ.mjs.map} +1 -1
- package/dist/client/{projects-CeLhtLvf.mjs → projects-B5topuei.mjs} +2 -2
- package/dist/client/projects-B5topuei.mjs.map +1 -0
- package/dist/client/projects-CHYn7L5e.mjs.map +1 -1
- package/dist/client/projects-DNd3UTas.mjs +110 -0
- package/dist/client/projects-DNd3UTas.mjs.map +1 -0
- package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
- package/dist/client/routeInfo-Dy9l-wFB.mjs +31 -0
- package/dist/client/routeInfo-Dy9l-wFB.mjs.map +1 -0
- package/dist/server/index.js +0 -40
- package/package.json +3 -3
- package/dist/client/ContentHeader-DqsGNvtD.mjs +0 -81
- package/dist/client/ContentHeader-DqsGNvtD.mjs.map +0 -1
- package/dist/client/_floatingIpId-C2-BeRmF.mjs.map +0 -1
- package/dist/client/_projectId-CLgClx24.mjs +0 -84
- package/dist/client/_projectId-CLgClx24.mjs.map +0 -1
- package/dist/client/_projectId-cW9aQ4Ag.mjs.map +0 -1
- package/dist/client/_storageType-2_fau4B5.mjs.map +0 -1
- package/dist/client/images-DHmVgQAh2.mjs.map +0 -1
- package/dist/client/projects-CeLhtLvf.mjs.map +0 -1
- package/dist/client/projects-ClViaUuv.mjs +0 -105
- package/dist/client/projects-ClViaUuv.mjs.map +0 -1
- package/dist/client/routeInfo-DlDJZnpg.mjs +0 -72
- package/dist/client/routeInfo-DlDJZnpg.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_projectId-BaqZ4W50.mjs","names":["useNavigate","useMatches","useParams","useRouteContext","useState","useEffect","useRef","SideNavigation","SideNavigationList","SideNavigationGroup","SideNavigationItem","Divider","isRouteInfo","Slot","SideNavBar","projectId","projectName","domainName","sections","navigate","matches","provider","strict","slots","navBadge","service","serviceBadge","component","useShadowDOM","currentService","activeMatch","reverse","find","m","staticData","activeRouteInfo","undefined","activeSection","section","activeService","openSections","setOpenSections","Object","fromEntries","map","s","prevSectionRef","mountedRef","prev","current","wasMounted","setTimeout","ariaLabel","onClick","to","params","label","p","className","spacing","services","open","item","isStorageContainers","isSelected","span","selected","sideNavBanner","getServiceIndex","buildNavSections","projectId","availableServices","enabledServices","serviceIndex","isEnabled","service","includes","computeServices","label","t","navigate","nav","to","params","networkServices","storageServices","provider","storageType","pcaServices","clavisServices","section","services","filter","s","length","Breadcrumb","BreadcrumbItem","useMatches","useNavigate","useParams","useMemo","isRouteInfo","ProjectInfoBox","projectInfo","useLingui","navigate","matches","projectId","strict","breadcrumbs","crumbLabels","Compute","t","Network","Storage","Services","Images","Flavors","resolveProviderLabel","provider","items","push","icon","label","onClick","to","domain","name","projectMatches","filter","m","routeId","startsWith","deepest","length","info","staticData","undefined","active","params","sectionCrumb","labelKey","crumb","useParamAsLabel","resolvedLabel","isDetail","intermediateCrumb","iTo","iParam","useParentTitleAsLabel","parentMatch","parentTitle","meta","find","title","iLabel","className","map","item","index","Outlet","useLoaderData","useRouteContext","AppShell","Container","Stack","SideNavBar","buildNavSections","ProjectInfoBox","Route","RouteComponent","availableServices","projectId","crumbProject","crumbDomain","from","id","enabledServices","strict","name","domain","component"],"sources":["../../src/client/routes/_auth/projects/-components/SideNavBar.tsx","../../src/client/routes/_auth/projects/-components/buildNavSections.ts","../../src/client/components/ProjectView/ProjectInfoBox.tsx","../../src/client/routes/_auth/projects/$projectId.tsx?tsr-split=component"],"sourcesContent":["import { useNavigate, useMatches, useParams, useRouteContext } from \"@tanstack/react-router\"\nimport { useState, useEffect, useRef } from \"react\"\nimport {\n SideNavigation,\n SideNavigationList,\n SideNavigationGroup,\n SideNavigationItem,\n Divider,\n} from \"@cloudoperators/juno-ui-components/index\"\nimport { isRouteInfo } from \"@/client/routes/routeInfo\"\nimport { Slot } from \"@/client/components/Slot\"\nimport type { NavSection } from \"./buildNavSections\"\n\ninterface SideNavBarProps {\n projectId: string\n projectName: string\n domainName?: string\n sections: NavSection[]\n}\n\nexport const SideNavBar = ({ projectId, projectName, domainName, sections }: SideNavBarProps) => {\n const navigate = useNavigate()\n const matches = useMatches()\n const { provider } = useParams({ strict: false }) as { provider?: string }\n const { slots } = useRouteContext({ strict: false })\n\n const navBadge = (service: string) => {\n if (!slots?.serviceBadge) return null\n return <Slot component={slots.serviceBadge} useShadowDOM={false} currentService={service} />\n }\n\n // Read active section/service from the deepest match that has valid RouteInfo staticData\n const activeMatch = [...matches].reverse().find((m) => isRouteInfo(m.staticData))\n const activeRouteInfo = activeMatch && isRouteInfo(activeMatch.staticData) ? activeMatch.staticData : undefined\n const activeSection = activeRouteInfo?.section ?? null\n const activeService = activeRouteInfo?.service ?? null\n\n const [openSections, setOpenSections] = useState<Record<string, boolean>>(() =>\n Object.fromEntries(sections.map((s) => [s.section, true]))\n )\n const prevSectionRef = useRef<string | null>(null)\n const mountedRef = useRef(false)\n\n useEffect(() => {\n const prev = prevSectionRef.current\n prevSectionRef.current = activeSection\n const wasMounted = mountedRef.current\n mountedRef.current = true\n // Skip on initial mount: all sections start open, Juno initializes correctly from the open prop.\n // Only re-open when navigating to a section that Juno may have internally collapsed.\n if (!wasMounted) return\n if (activeSection && activeSection !== prev && activeSection in openSections) {\n // Set false first, then true in the next tick so Juno's useEffect([open]) sees the change\n // even if the section was already true in our state (Juno may have internally collapsed it).\n setOpenSections((s) => ({ ...s, [activeSection]: false }))\n const section = activeSection\n setTimeout(() => setOpenSections((s) => ({ ...s, [section]: true })), 0)\n }\n }, [activeSection])\n\n return (\n <SideNavigation ariaLabel=\"Project Side Navigation\">\n <>\n <SideNavigationList>\n <>\n <SideNavigationItem\n onClick={() => navigate({ to: \"/projects/$projectId\", params: { projectId } })}\n label={\n <>\n {domainName && <p className=\"text-theme-light text-xs leading-4 font-bold\">{domainName} /</p>}\n <p className=\"leading-5 font-normal\">{projectName}</p>\n </>\n }\n />\n <Divider spacing=\"1\" />\n {sections.map(({ section, label, services }) => (\n <SideNavigationGroup key={section} label={label} open={openSections[section]}>\n {services.map((item) => {\n const isStorageContainers = activeSection === \"storage\" && activeService === \"containers\"\n const isSelected =\n activeSection === section &&\n (isStorageContainers ? item.params.provider === provider : activeService === item.service)\n\n return (\n <SideNavigationItem\n key={item.service}\n onClick={() => item.navigate(navigate)}\n label={\n <span className=\"flex items-start gap-2\">\n {item.label}\n {navBadge(item.service)}\n </span>\n }\n selected={isSelected}\n />\n )\n })}\n </SideNavigationGroup>\n ))}\n </>\n </SideNavigationList>\n {slots?.sideNavBanner && <Slot component={slots.sideNavBanner} />}\n </>\n </SideNavigation>\n )\n}\n","import { getServiceIndex } from \"@/server/Authentication/helpers\"\nimport { t } from \"@lingui/core/macro\"\nimport type { NavigateFn } from \"@tanstack/react-router\"\n\nexport type NavItem = {\n service: string\n label: string\n navigate: (navigateFn: NavigateFn) => void\n params: Record<string, string>\n}\n\nexport type NavSection = {\n section: string\n label: string\n services: NavItem[]\n}\n\nexport function buildNavSections(\n projectId: string,\n availableServices: { type: string; name: string }[],\n enabledServices?: string[]\n): NavSection[] {\n const serviceIndex = getServiceIndex(availableServices)\n const isEnabled = (service: string) => !enabledServices || enabledServices.includes(service)\n\n const computeServices: NavItem[] = [\n ...(serviceIndex[\"image\"]?.[\"glance\"] && isEnabled(\"images\")\n ? [\n {\n service: \"images\",\n label: t`Images`,\n navigate: (nav: NavigateFn) => nav({ to: \"/projects/$projectId/compute/images\", params: { projectId } }),\n params: { projectId },\n },\n ]\n : []),\n ...(serviceIndex?.[\"compute\"]?.[\"nova\"] && isEnabled(\"flavors\")\n ? [\n {\n service: \"flavors\",\n label: t`Flavors`,\n navigate: (nav: NavigateFn) => nav({ to: \"/projects/$projectId/compute/flavors\", params: { projectId } }),\n params: { projectId },\n },\n ]\n : []),\n ]\n\n const networkServices: NavItem[] = serviceIndex[\"network\"]\n ? [\n ...(isEnabled(\"securitygroups\")\n ? [\n {\n service: \"securitygroups\",\n label: t`Security Groups`,\n navigate: (nav: NavigateFn) =>\n nav({ to: \"/projects/$projectId/network/securitygroups\", params: { projectId } }),\n params: { projectId },\n },\n ]\n : []),\n ...(isEnabled(\"floatingips\")\n ? [\n {\n service: \"floatingips\",\n label: t`Floating IPs`,\n navigate: (nav: NavigateFn) =>\n nav({ to: \"/projects/$projectId/network/floatingips\", params: { projectId } }),\n params: { projectId },\n },\n ]\n : []),\n ]\n : []\n\n const storageServices: NavItem[] = [\n ...(serviceIndex?.[\"object-store\"]?.[\"swift\"] && isEnabled(\"containers\")\n ? [\n {\n service: \"containers\",\n label: t`Object Storage (Swift)`,\n navigate: (nav: NavigateFn) =>\n nav({\n to: \"/projects/$projectId/storage/$provider/$storageType\",\n params: { projectId, provider: \"swift\", storageType: \"containers\" },\n }),\n params: { projectId, provider: \"swift\", storageType: \"containers\" },\n },\n ]\n : []),\n ...(isEnabled(\"ceph-containers\")\n ? [\n {\n service: \"ceph-containers\",\n label: t`Object Storage (Ceph)`,\n navigate: (nav: NavigateFn) =>\n nav({\n to: \"/projects/$projectId/storage/$provider/$storageType\",\n params: { projectId, provider: \"ceph\", storageType: \"buckets\" },\n }),\n params: { projectId, provider: \"ceph\", storageType: \"buckets\" },\n },\n ]\n : []),\n ]\n\n // temporary as clavis is not fully GA, after GA replace with [\"pca\"]?.[\"clavis\"]\n const pcaServices = serviceIndex[\"pca\"]?.[\"clavis-beta\"] || serviceIndex[\"pca\"]?.[\"clavis-dev\"]\n const clavisServices: NavItem[] =\n pcaServices && isEnabled(\"pca\")\n ? [\n {\n service: \"pca\",\n label: t`PCA (Clavis)`,\n navigate: (nav: NavigateFn) => nav({ to: \"/projects/$projectId/services/pca\", params: { projectId } }),\n params: { projectId },\n },\n ]\n : []\n\n return [\n { section: \"compute\", label: t`Compute`, services: computeServices },\n { section: \"network\", label: t`Network`, services: networkServices },\n { section: \"storage\", label: t`Storage`, services: storageServices },\n { section: \"services\", label: t`Services`, services: clavisServices },\n ].filter((s) => s.services.length > 0)\n}\n","import { Breadcrumb, BreadcrumbItem, KnownIcons } from \"@cloudoperators/juno-ui-components\"\nimport { useMatches, useNavigate, useParams } from \"@tanstack/react-router\"\nimport { useMemo } from \"react\"\nimport { useLingui } from \"@lingui/react/macro\"\nimport { isRouteInfo, CrumbLabelKey } from \"@/client/routes/routeInfo\"\n\ninterface ProjectInfoBoxProps {\n projectInfo: {\n id: string\n name: string\n description?: string\n domain?: {\n name?: string\n }\n }\n}\n\nexport function ProjectInfoBox({ projectInfo }: ProjectInfoBoxProps) {\n const { t } = useLingui()\n const navigate = useNavigate()\n const matches = useMatches()\n const { projectId } = useParams({ strict: false }) as { projectId: string }\n\n const breadcrumbs = useMemo(() => {\n const crumbLabels: Record<CrumbLabelKey, string> = {\n Compute: t`Compute`,\n Network: t`Network`,\n Storage: t`Storage`,\n Services: t`Services`,\n Images: t`Images`,\n Flavors: t`Flavors`,\n \"Security Groups\": t`Security Groups`,\n \"Floating IPs\": t`Floating IPs`,\n \"PCA (Clavis)\": t`PCA (Clavis)`,\n }\n\n const resolveProviderLabel = (provider: string | undefined) => {\n if (provider === \"swift\") return t`Object Storage (Swift)`\n if (provider === \"ceph\") return t`Object Storage (Ceph)`\n return t`Storage`\n }\n\n const items: Array<{ label?: string; icon?: KnownIcons; onClick?: () => void; active?: boolean }> = []\n\n items.push({ icon: \"home\", label: t`Home`, onClick: () => navigate({ to: \"/projects\" }) })\n\n if (projectInfo.domain?.name) {\n items.push({ label: projectInfo.domain.name })\n }\n\n const projectMatches = matches.filter(\n (m) => m.routeId !== \"/_auth/projects/$projectId\" && m.routeId.startsWith(\"/_auth/projects/$projectId\")\n )\n const deepest = projectMatches[projectMatches.length - 1]\n\n const info = deepest ? (isRouteInfo(deepest.staticData) ? deepest.staticData : undefined) : undefined\n\n if (!deepest || !info) {\n items.push({ label: projectInfo.name, active: true })\n return items\n }\n\n items.push({\n label: projectInfo.name,\n onClick: () => navigate({ to: \"/projects/$projectId\", params: { projectId } }),\n })\n\n const params = deepest.params as Record<string, string>\n\n if (info.sectionCrumb?.to) {\n const { labelKey, to } = info.sectionCrumb\n const label = labelKey ? crumbLabels[labelKey] : undefined\n items.push({ label, onClick: () => navigate({ to: to as never, params: params as never }) })\n }\n\n if (info.crumb) {\n const { labelKey, to, useParamAsLabel } = info.crumb\n const resolvedLabel = useParamAsLabel\n ? resolveProviderLabel(params[useParamAsLabel])\n : labelKey\n ? crumbLabels[labelKey]\n : undefined\n\n if (info.isDetail) {\n items.push({ label: resolvedLabel, onClick: () => navigate({ to: to as never, params: params as never }) })\n\n if (info.intermediateCrumb) {\n const { to: iTo, useParamAsLabel: iParam, useParentTitleAsLabel } = info.intermediateCrumb\n const parentMatch = projectMatches[projectMatches.length - 2]\n const parentTitle = parentMatch?.meta?.find((m) => m != null && \"title\" in m)?.title as string | undefined\n const iLabel = useParentTitleAsLabel\n ? (parentTitle ?? (iParam ? params[iParam] : undefined))\n : iParam\n ? params[iParam]\n : undefined\n items.push(\n iTo\n ? { label: iLabel, onClick: () => navigate({ to: iTo as never, params: params as never }) }\n : { label: iLabel }\n )\n }\n\n const title = deepest.meta?.find((m) => m != null && \"title\" in m)?.title as string | undefined\n if (title) items.push({ label: title, active: true })\n } else {\n items.push(\n to\n ? { label: resolvedLabel, onClick: () => navigate({ to: to as never, params: params as never }) }\n : { label: resolvedLabel, active: true }\n )\n }\n }\n\n return items\n }, [matches, projectInfo, projectId, navigate, t])\n\n return (\n <Breadcrumb className=\"relative z-1 mt-8 mb-4\">\n {breadcrumbs.map((item, index) => (\n <BreadcrumbItem key={index} label={item.label} icon={item.icon} onClick={item.onClick} active={item.active} />\n ))}\n </Breadcrumb>\n )\n}\n","import { createFileRoute, Outlet, useLoaderData, useRouteContext } from \"@tanstack/react-router\"\nimport { AppShell, Container, Stack } from \"@cloudoperators/juno-ui-components\"\nimport { SideNavBar } from \"@/client/routes/_auth/projects/-components/SideNavBar\"\nimport { buildNavSections } from \"@/client/routes/_auth/projects/-components/buildNavSections\"\nimport { ProjectInfoBox } from \"@/client/components/ProjectView/ProjectInfoBox\"\nimport { RouteError } from \"@/client/components/Error/RouteError\"\n\nexport const Route = createFileRoute(\"/_auth/projects/$projectId\")({\n component: RouteComponent,\n errorComponent: ({ error }) => {\n return <RouteError error={error} />\n },\n loader: async (options) => {\n const { context, params } = options\n const data = await context.trpcClient?.auth.setCurrentScope.mutate({\n type: \"project\",\n projectId: params.projectId || \"\",\n })\n\n const [availableServices, projects] = await Promise.all([\n context.trpcClient?.auth.getAvailableServices.query(),\n context.trpcClient?.project.getAuthProjects.query().catch(() => null),\n ])\n\n const accountId = data?.domain?.id || \"\"\n const description = projects?.find((p) => p.id === params.projectId)?.description ?? null\n\n return {\n trpcClient: context.trpcClient,\n crumbDomain: { path: `/projects`, name: data?.domain?.name },\n crumbProject: data?.project,\n availableServices,\n accountId,\n projectId: params.projectId,\n description,\n }\n },\n})\n\nfunction RouteComponent() {\n const { availableServices, projectId, crumbProject, crumbDomain } = useLoaderData({ from: Route.id })\n const { enabledServices } = useRouteContext({ strict: false })\n\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n sections={buildNavSections(projectId, availableServices!, enabledServices)}\n projectId={projectId}\n projectName={crumbProject?.name || projectId}\n domainName={crumbDomain?.name}\n />\n }\n className=\"h-min-screen\"\n >\n <Container>\n <Stack direction=\"vertical\" distribution=\"start\" alignment=\"stretch\" className=\"xl:flex-row\" gap=\"6\">\n {/* Main content area */}\n <div className=\"min-w-0 flex-1\">\n <ProjectInfoBox\n projectInfo={{\n id: projectId,\n name: crumbProject?.name || projectId,\n domain: crumbProject?.domain,\n }}\n />\n <Outlet />\n </div>\n </Stack>\n </Container>\n </AppShell>\n )\n}\n"],"mappings":";;;;;;;;;;;AAoBA,IAAac,KAAc,EAAEC,cAAWC,gBAAaC,eAAYC,kBAA2B;CAC1F,IAAMC,IAAWnB,EAAAA,GACXoB,IAAUnB,EAAAA,GACV,EAAEoB,gBAAanB,EAAU,EAAEoB,QAAQ,GAAM,CAAA,GACzC,EAAEC,aAAUpB,EAAgB,EAAEmB,QAAQ,GAAM,CAAA,GAE5CE,KAAYC,MACXF,GAAOG,eACL,gBAACb,GAAAA;EAAKc,WAAWJ,EAAMG;EAAcE,cAAc;EAAOC,gBAAgBJ;MADhD,MAK7BK,IAAc,CAAA,GAAIV,CAAAA,EAASW,QAAO,EAAGC,MAAMC,MAAMrB,EAAYqB,EAAEC,UAAU,CAAA,GACzEC,IAAkBL,KAAelB,EAAYkB,EAAYI,UAAU,IAAIJ,EAAYI,aAAaE,KAAAA,GAChGC,IAAgBF,GAAiBG,WAAW,MAC5CC,IAAgBJ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EAAEc,MAAMN,EAAMO,GAAG,CAAA,GAC7F,EAAEC,uBAAoBf,EAAgB,EAAEgB,QAAQ,GAAM,CAAA;CAE5D,OACE,gBAAC,GAAA;EACC,UAAQ;EACR,gBACE,gBAAC,GAAA;GACC,UAAUX,EAAiBK,GAAWD,GAAoBM,CAAAA;GAC/CL;GACX,aAAaC,GAAcM,QAAQP;GACnC,YAAYE,GAAaK;;EAG7B,WAAU;YAEV,gBAAC,GAAA,EAAA,UACC,gBAAC,GAAA;GAAM,WAAU;GAAW,cAAa;GAAQ,WAAU;GAAU,WAAU;GAAc,KAAI;aAE/F,gBAAC,OAAA;IAAI,WAAU;eACb,gBAAC,GAAA,EACC,aAAa;KACXH,IAAIJ;KACJO,MAAMN,GAAcM,QAAQP;KAC5BQ,QAAQP,GAAcO;IACxB,EAAA,CAAA,GAEF,gBAAC,GAAA,CAAA,CAAA,CAAA;;;;AAMb"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Y as e, c as t, u as n } from "./build-BdRRmNf5.mjs";
|
|
2
|
+
import { t as r } from "./Slot-CWb612-_.mjs";
|
|
3
|
+
import { t as i } from "./helpers-1PpYf-fC.mjs";
|
|
4
|
+
import { t as a } from "./ContentHeader-D4jlOG-9.mjs";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { useLoaderData as c, useNavigate as l, useRouteContext as u } from "@tanstack/react-router";
|
|
7
|
+
import { Trans as d, useLingui as f } from "@lingui/react";
|
|
8
|
+
//#region src/client/routes/_auth/projects/$projectId/index.tsx?tsr-split=component
|
|
9
|
+
function p({ group: e, label: i, to: a, service: c }) {
|
|
10
|
+
let d = l(), { slots: f } = u({ strict: !1 });
|
|
11
|
+
return /*#__PURE__*/ s(n, {
|
|
12
|
+
onClick: () => d({ to: a }),
|
|
13
|
+
className: "flex min-h-40 flex-col gap-4 px-3 pt-2 pb-3",
|
|
14
|
+
"data-testid": "service-card",
|
|
15
|
+
children: [/*#__PURE__*/ s("div", {
|
|
16
|
+
className: "flex min-w-0 flex-col",
|
|
17
|
+
children: [/*#__PURE__*/ s("div", {
|
|
18
|
+
className: "flex items-center gap-1",
|
|
19
|
+
children: [/*#__PURE__*/ o("p", {
|
|
20
|
+
className: "text-theme-light text-xs leading-5 font-medium",
|
|
21
|
+
children: e
|
|
22
|
+
}), /*#__PURE__*/ o(t, {
|
|
23
|
+
icon: "expandLess",
|
|
24
|
+
size: "16",
|
|
25
|
+
className: "text-theme-high"
|
|
26
|
+
})]
|
|
27
|
+
}), /*#__PURE__*/ s("div", {
|
|
28
|
+
className: "flex items-center gap-2",
|
|
29
|
+
children: [/*#__PURE__*/ o("p", {
|
|
30
|
+
className: "text-theme-high text-lg leading-7 font-bold",
|
|
31
|
+
"data-testid": "service-card-label",
|
|
32
|
+
children: i
|
|
33
|
+
}), f?.serviceBadge && /*#__PURE__*/ o(r, {
|
|
34
|
+
component: f.serviceBadge,
|
|
35
|
+
useShadowDOM: !1,
|
|
36
|
+
currentService: c
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
}), /*#__PURE__*/ o("div", { className: "flex-1" })]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function m() {
|
|
43
|
+
let { crumbProject: t, availableServices: n, projectId: l, description: m } = c({ from: "/_auth/projects/$projectId" }), { i18n: h, _: g } = f(), { slots: _, enabledServices: v } = u({ strict: !1 }), y = (e) => !v || v.includes(e), b = i(n ?? []), x = `/projects/${l}`, S = [];
|
|
44
|
+
return b.image?.glance && y("images") && S.push({
|
|
45
|
+
group: h._({ id: "rp0Bd0" }),
|
|
46
|
+
label: h._({ id: "an5hVd" }),
|
|
47
|
+
to: `${x}/compute/images`,
|
|
48
|
+
service: "images"
|
|
49
|
+
}), b.compute?.nova && y("flavors") && S.push({
|
|
50
|
+
group: h._({ id: "rp0Bd0" }),
|
|
51
|
+
label: h._({ id: "neiJm0" }),
|
|
52
|
+
to: `${x}/compute/flavors`,
|
|
53
|
+
service: "flavors"
|
|
54
|
+
}), b.network && (y("securitygroups") && S.push({
|
|
55
|
+
group: h._({ id: "OR475H" }),
|
|
56
|
+
label: h._({ id: "4opp4r" }),
|
|
57
|
+
to: `${x}/network/securitygroups`,
|
|
58
|
+
service: "securitygroups"
|
|
59
|
+
}), y("floatingips") && S.push({
|
|
60
|
+
group: h._({ id: "OR475H" }),
|
|
61
|
+
label: h._({ id: "u77/s4" }),
|
|
62
|
+
to: `${x}/network/floatingips`,
|
|
63
|
+
service: "floatingips"
|
|
64
|
+
})), b["object-store"]?.swift && y("containers") && S.push({
|
|
65
|
+
group: h._({ id: "BrrIs8" }),
|
|
66
|
+
label: h._({ id: "+OEi73" }),
|
|
67
|
+
to: `${x}/storage/swift/containers`,
|
|
68
|
+
service: "containers"
|
|
69
|
+
}), b["object-store-ceph"]?.ceph && y("ceph-containers") && S.push({
|
|
70
|
+
group: h._({ id: "BrrIs8" }),
|
|
71
|
+
label: h._({ id: "KhNDX4" }),
|
|
72
|
+
to: `${x}/storage/ceph/buckets`,
|
|
73
|
+
service: "ceph-containers"
|
|
74
|
+
}), (b.pca?.["clavis-dev"] || b.pca?.["clavis-beta"]) && y("pca") && S.push({
|
|
75
|
+
group: h._({ id: "MILoeL" }),
|
|
76
|
+
label: h._({ id: "miy5mb" }),
|
|
77
|
+
to: `${x}/services/pca`,
|
|
78
|
+
service: "pca"
|
|
79
|
+
}), /*#__PURE__*/ s(e, {
|
|
80
|
+
direction: "vertical",
|
|
81
|
+
gap: "6",
|
|
82
|
+
className: "pb-4",
|
|
83
|
+
children: [
|
|
84
|
+
/*#__PURE__*/ o(a, {
|
|
85
|
+
title: t?.name ?? h._({ id: "e0NrBM" }),
|
|
86
|
+
projectId: l,
|
|
87
|
+
description: m
|
|
88
|
+
}),
|
|
89
|
+
_?.projectOverviewBanner && /*#__PURE__*/ o(r, {
|
|
90
|
+
component: _.projectOverviewBanner,
|
|
91
|
+
useShadowDOM: !1
|
|
92
|
+
}),
|
|
93
|
+
S.length > 0 ? /*#__PURE__*/ o("div", {
|
|
94
|
+
className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4",
|
|
95
|
+
children: S.map((e) => /*#__PURE__*/ o(p, { ...e }, e.to))
|
|
96
|
+
}) : /*#__PURE__*/ o("p", {
|
|
97
|
+
className: "text-theme-light text-sm",
|
|
98
|
+
children: /*#__PURE__*/ o(d, { id: "Q1W//7" })
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { m as component };
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=_projectId-CARHuZTU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_projectId-CARHuZTU.mjs","names":["useLoaderData","useNavigate","Card","Icon","Stack","getServiceIndex","Trans","useLingui","useRouteContext","ContentHeader","Slot","ServiceCardProps","group","label","to","service","ServiceCard","navigate","slots","strict","serviceBadge","RouteComponent","crumbProject","availableServices","projectId","description","from","t","enabledServices","isEnabled","includes","serviceIndex","base","cards","push","name","projectOverviewBanner","length","map","card","component"],"sources":["../../src/client/routes/_auth/projects/$projectId/index.tsx?tsr-split=component"],"sourcesContent":["import { createFileRoute, useLoaderData, useNavigate } from \"@tanstack/react-router\"\nimport { Card, Icon, Stack } from \"@cloudoperators/juno-ui-components\"\nimport { getServiceIndex } from \"@/server/Authentication/helpers\"\nimport { Trans } from \"@lingui/react/macro\"\nimport { useLingui } from \"@lingui/react/macro\"\nimport { useRouteContext } from \"@tanstack/react-router\"\nimport { ContentHeader } from \"@/client/components/ContentHeader/ContentHeader\"\nimport { Slot } from \"@/client/components/Slot\"\nexport const Route = createFileRoute(\"/_auth/projects/$projectId/\")({\n component: RouteComponent,\n})\n\ninterface ServiceCardProps {\n group: string\n label: string\n to: string\n service: string\n}\n\nfunction ServiceCard({ group, label, to, service }: ServiceCardProps) {\n const navigate = useNavigate()\n const { slots } = useRouteContext({ strict: false })\n\n return (\n <Card\n onClick={() => navigate({ to: to as never })}\n className=\"flex min-h-40 flex-col gap-4 px-3 pt-2 pb-3\"\n data-testid=\"service-card\"\n >\n <div className=\"flex min-w-0 flex-col\">\n <div className=\"flex items-center gap-1\">\n <p className=\"text-theme-light text-xs leading-5 font-medium\">{group}</p>\n <Icon icon=\"expandLess\" size=\"16\" className=\"text-theme-high\" />\n </div>\n <div className=\"flex items-center gap-2\">\n <p className=\"text-theme-high text-lg leading-7 font-bold\" data-testid=\"service-card-label\">\n {label}\n </p>\n {slots?.serviceBadge && <Slot component={slots.serviceBadge} useShadowDOM={false} currentService={service} />}\n </div>\n </div>\n <div className=\"flex-1\" />\n </Card>\n )\n}\n\nfunction RouteComponent() {\n const { crumbProject, availableServices, projectId, description } = useLoaderData({\n from: \"/_auth/projects/$projectId\",\n })\n const { t } = useLingui()\n const { slots, enabledServices } = useRouteContext({ strict: false })\n const isEnabled = (service: string) => !enabledServices || enabledServices.includes(service)\n\n const serviceIndex = getServiceIndex(availableServices ?? [])\n const base = `/projects/${projectId}`\n\n const cards: ServiceCardProps[] = []\n\n if (serviceIndex[\"image\"]?.[\"glance\"] && isEnabled(\"images\"))\n cards.push({ group: t`Compute`, label: t`Images`, to: `${base}/compute/images`, service: \"images\" })\n if (serviceIndex[\"compute\"]?.[\"nova\"] && isEnabled(\"flavors\"))\n cards.push({ group: t`Compute`, label: t`Flavors`, to: `${base}/compute/flavors`, service: \"flavors\" })\n if (serviceIndex[\"network\"]) {\n if (isEnabled(\"securitygroups\"))\n cards.push({\n group: t`Network`,\n label: t`Security Groups`,\n to: `${base}/network/securitygroups`,\n service: \"securitygroups\",\n })\n if (isEnabled(\"floatingips\"))\n cards.push({\n group: t`Network`,\n label: t`Floating IPs`,\n to: `${base}/network/floatingips`,\n service: \"floatingips\",\n })\n }\n if (serviceIndex[\"object-store\"]?.[\"swift\"] && isEnabled(\"containers\"))\n cards.push({\n group: t`Storage`,\n label: t`Object Storage (Swift)`,\n to: `${base}/storage/swift/containers`,\n service: \"containers\",\n })\n if (serviceIndex[\"object-store-ceph\"]?.[\"ceph\"] && isEnabled(\"ceph-containers\"))\n cards.push({\n group: t`Storage`,\n label: t`Object Storage (Ceph)`,\n to: `${base}/storage/ceph/buckets`,\n service: \"ceph-containers\",\n })\n if ((serviceIndex[\"pca\"]?.[\"clavis-dev\"] || serviceIndex[\"pca\"]?.[\"clavis-beta\"]) && isEnabled(\"pca\")) {\n cards.push({ group: t`Services`, label: t`PCA (Clavis)`, to: `${base}/services/pca`, service: \"pca\" })\n }\n\n return (\n <Stack direction=\"vertical\" gap=\"6\" className=\"pb-4\">\n <ContentHeader title={crumbProject?.name ?? t`Project`} projectId={projectId} description={description} />\n {slots?.projectOverviewBanner && <Slot component={slots.projectOverviewBanner} useShadowDOM={false} />}\n {cards.length > 0 ? (\n <div className=\"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4\">\n {cards.map((card) => (\n <ServiceCard key={card.to} {...card} />\n ))}\n </div>\n ) : (\n <p className=\"text-theme-light text-sm\">\n <Trans>No services available for this project.</Trans>\n </p>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;;;;;AAmBA,SAASgB,EAAY,EAAEJ,UAAOC,UAAOC,OAAIC,cAA2B;CAClE,IAAME,IAAWhB,EAAAA,GACX,EAAEiB,aAAUV,EAAgB,EAAEW,QAAQ,GAAM,CAAA;CAElD,OACE,gBAAC,GAAA;EACC,eAAeF,EAAS,EAAMH,MAAY,CAAA;EAC1C,WAAU;EACV,eAAY;aAEZ,gBAAC,OAAA;GAAI,WAAU;cACb,gBAAC,OAAA;IAAI,WAAU;eACb,gBAAC,KAAA;KAAE,WAAU;eAAkDF;QAC/D,gBAAC,GAAA;KAAK,MAAK;KAAa,MAAK;KAAK,WAAU;;OAE9C,gBAAC,OAAA;IAAI,WAAU;eACb,gBAAC,KAAA;KAAE,WAAU;KAA8C,eAAY;eACpEC;QAEFK,GAAOE,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;;AAKV"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createFileRoute as e, lazyRouteComponent as t } from "@tanstack/react-router";
|
|
2
|
+
var n = e("/_auth/projects/$projectId")({
|
|
3
|
+
component: t(() => import("./_projectId-BaqZ4W50.mjs"), "component"),
|
|
4
|
+
errorComponent: t(() => import("./_projectId-B_2sZKk-.mjs"), "errorComponent"),
|
|
5
|
+
loader: async (e) => {
|
|
6
|
+
let { context: t, params: n } = e, r = await t.trpcClient?.auth.setCurrentScope.mutate({
|
|
7
|
+
type: "project",
|
|
8
|
+
projectId: n.projectId || ""
|
|
9
|
+
}), [i, a] = await Promise.all([t.trpcClient?.auth.getAvailableServices.query(), t.trpcClient?.project.getAuthProjects.query().catch(() => null)]), o = r?.domain?.id || "", s = a?.find((e) => e.id === n.projectId)?.description ?? null;
|
|
10
|
+
return {
|
|
11
|
+
trpcClient: t.trpcClient,
|
|
12
|
+
crumbDomain: {
|
|
13
|
+
path: "/projects",
|
|
14
|
+
name: r?.domain?.name
|
|
15
|
+
},
|
|
16
|
+
crumbProject: r?.project,
|
|
17
|
+
availableServices: i,
|
|
18
|
+
accountId: o,
|
|
19
|
+
projectId: n.projectId,
|
|
20
|
+
description: s
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { n as t };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=_projectId-DR_2U10f.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_projectId-DR_2U10f.mjs","names":["createFileRoute","Route","component","lazyRouteComponent","$$splitComponentImporter","errorComponent","$$splitErrorComponentImporter","loader","options","context","params","data","trpcClient","auth","setCurrentScope","mutate","type","projectId","availableServices","projects","Promise","all","getAvailableServices","query","project","getAuthProjects","catch","accountId","domain","id","description","find","p","crumbDomain","path","name","crumbProject"],"sources":["../../src/client/routes/_auth/projects/$projectId.tsx"],"sourcesContent":["import { createFileRoute, Outlet, useLoaderData, useRouteContext } from \"@tanstack/react-router\"\nimport { AppShell, Container, Stack } from \"@cloudoperators/juno-ui-components\"\nimport { SideNavBar } from \"@/client/routes/_auth/projects/-components/SideNavBar\"\nimport { buildNavSections } from \"@/client/routes/_auth/projects/-components/buildNavSections\"\nimport { ProjectInfoBox } from \"@/client/components/ProjectView/ProjectInfoBox\"\nimport { RouteError } from \"@/client/components/Error/RouteError\"\n\nexport const Route = createFileRoute(\"/_auth/projects/$projectId\")({\n component: RouteComponent,\n errorComponent: ({ error }) => {\n return <RouteError error={error} />\n },\n loader: async (options) => {\n const { context, params } = options\n const data = await context.trpcClient?.auth.setCurrentScope.mutate({\n type: \"project\",\n projectId: params.projectId || \"\",\n })\n\n const [availableServices, projects] = await Promise.all([\n context.trpcClient?.auth.getAvailableServices.query(),\n context.trpcClient?.project.getAuthProjects.query().catch(() => null),\n ])\n\n const accountId = data?.domain?.id || \"\"\n const description = projects?.find((p) => p.id === params.projectId)?.description ?? null\n\n return {\n trpcClient: context.trpcClient,\n crumbDomain: { path: `/projects`, name: data?.domain?.name },\n crumbProject: data?.project,\n availableServices,\n accountId,\n projectId: params.projectId,\n description,\n }\n },\n})\n\nfunction RouteComponent() {\n const { availableServices, projectId, crumbProject, crumbDomain } = useLoaderData({ from: Route.id })\n const { enabledServices } = useRouteContext({ strict: false })\n\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n sections={buildNavSections(projectId, availableServices!, enabledServices)}\n projectId={projectId}\n projectName={crumbProject?.name || projectId}\n domainName={crumbDomain?.name}\n />\n }\n className=\"h-min-screen\"\n >\n <Container>\n <Stack direction=\"vertical\" distribution=\"start\" alignment=\"stretch\" className=\"xl:flex-row\" gap=\"6\">\n {/* Main content area */}\n <div className=\"min-w-0 flex-1\">\n <ProjectInfoBox\n projectInfo={{\n id: projectId,\n name: crumbProject?.name || projectId,\n domain: crumbProject?.domain,\n }}\n />\n <Outlet />\n </div>\n </Stack>\n </Container>\n </AppShell>\n )\n}\n"],"mappings":";AAOA,IAAaC,IAAQD,EAAgB,4BAAA,EAA8B;CACjEE,WAASC,6CAAA,WAAA;CACTE,gBAAcF,6CAAA,gBAAA;CAGdI,QAAQ,OAAOC,MAAAA;EACb,IAAM,EAAEC,YAASC,cAAWF,GACtBG,IAAO,MAAMF,EAAQG,YAAYC,KAAKC,gBAAgBC,OAAO;GACjEC,MAAM;GACNC,WAAWP,EAAOO,aAAa;EACjC,CAAA,GAEM,CAACC,GAAmBC,KAAY,MAAMC,QAAQC,IAAI,CACtDZ,EAAQG,YAAYC,KAAKS,qBAAqBC,MAAAA,GAC9Cd,EAAQG,YAAYY,QAAQC,gBAAgBF,MAAAA,EAAQG,YAAY,IAAA,CAAA,CACjE,GAEKC,IAAYhB,GAAMiB,QAAQC,MAAM,IAChCC,IAAcX,GAAUY,MAAMC,MAAMA,EAAEH,OAAOnB,EAAOO,SAAS,GAAGa,eAAe;EAErF,OAAO;GACLlB,YAAYH,EAAQG;GACpBqB,aAAa;IAAEC,MAAM;IAAaC,MAAMxB,GAAMiB,QAAQO;GAAK;GAC3DC,cAAczB,GAAMa;GACpBN;GACAS;GACAV,WAAWP,EAAOO;GAClBa;EACF;CACF;AACF,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as e, A as t, C as n, D as r, G as i, H as a, J as o, L as s, N as c, T as l, U as u, V as d, Y as f, _ as p, c as m, ct as h, d as g, et as _, f as v, it as y, k as b, lt as x, m as S, nt as C, o as w, ot as T, rt as E, t as D } from "./build-BdRRmNf5.mjs";
|
|
2
2
|
import { r as O } from "./trpcClient-BzPUgiM2.mjs";
|
|
3
|
-
import { t as k } from "./_storageType-
|
|
4
|
-
import { t as A } from "./ContentHeader-
|
|
3
|
+
import { t as k } from "./_storageType-D7-_Xwwl.mjs";
|
|
4
|
+
import { t as A } from "./ContentHeader-D4jlOG-9.mjs";
|
|
5
5
|
import { t as j } from "./SortInput-VK7IYqQv.mjs";
|
|
6
6
|
import { t as M } from "./formatBytes-CZv_XyCY.mjs";
|
|
7
7
|
import { t as N } from "./useProjectId-DBc5lpoU.mjs";
|
|
@@ -1685,21 +1685,22 @@ var ge = (e, t) => ({
|
|
|
1685
1685
|
className: "text-theme-default block font-semibold",
|
|
1686
1686
|
children: e
|
|
1687
1687
|
}), t]
|
|
1688
|
-
}), Oe = ({ serviceInfo: e, accountInfo: r }) => {
|
|
1689
|
-
let { i18n:
|
|
1690
|
-
account_quotas:
|
|
1691
|
-
container_quotas:
|
|
1692
|
-
bulk_delete:
|
|
1693
|
-
bulk_upload:
|
|
1694
|
-
slo:
|
|
1695
|
-
container_sync:
|
|
1696
|
-
tempurl:
|
|
1697
|
-
symlink:
|
|
1698
|
-
versioned_writes:
|
|
1699
|
-
},
|
|
1688
|
+
}), Oe = ({ serviceInfo: e, accountInfo: r, open: i }) => {
|
|
1689
|
+
let { i18n: a, _: o } = W(), s = e?.swift, c = {
|
|
1690
|
+
account_quotas: a._({ id: "DJT9tB" }),
|
|
1691
|
+
container_quotas: a._({ id: "USiuNX" }),
|
|
1692
|
+
bulk_delete: a._({ id: "F6YIQe" }),
|
|
1693
|
+
bulk_upload: a._({ id: "2Inn83" }),
|
|
1694
|
+
slo: a._({ id: "cpw++p" }),
|
|
1695
|
+
container_sync: a._({ id: "ezT9KW" }),
|
|
1696
|
+
tempurl: a._({ id: "UO3hJ2" }),
|
|
1697
|
+
symlink: a._({ id: "Q2xmVl" }),
|
|
1698
|
+
versioned_writes: a._({ id: "8jLXs3" })
|
|
1699
|
+
}, l = Object.entries(c).filter(([e]) => s?.[e]).map(([, e]) => e);
|
|
1700
1700
|
return /*#__PURE__*/ I(t, {
|
|
1701
1701
|
triggerEvent: "hover",
|
|
1702
1702
|
placement: "bottom-end",
|
|
1703
|
+
open: i,
|
|
1703
1704
|
children: [/*#__PURE__*/ F(w, {
|
|
1704
1705
|
asChild: !0,
|
|
1705
1706
|
children: /*#__PURE__*/ F(m, {
|
|
@@ -1716,83 +1717,83 @@ var ge = (e, t) => ({
|
|
|
1716
1717
|
title: /*#__PURE__*/ F(U, { id: "AeXO77" }),
|
|
1717
1718
|
children: [
|
|
1718
1719
|
/*#__PURE__*/ F($, {
|
|
1719
|
-
label:
|
|
1720
|
+
label: a._({ id: "ClGcRq" }),
|
|
1720
1721
|
value: r.containerCount.toLocaleString()
|
|
1721
1722
|
}),
|
|
1722
1723
|
/*#__PURE__*/ F($, {
|
|
1723
|
-
label:
|
|
1724
|
+
label: a._({ id: "B3toQF" }),
|
|
1724
1725
|
value: r.objectCount.toLocaleString()
|
|
1725
1726
|
}),
|
|
1726
1727
|
/*#__PURE__*/ F($, {
|
|
1727
|
-
label:
|
|
1728
|
+
label: a._({ id: "aL1w5Z" }),
|
|
1728
1729
|
value: M(r.bytesUsed)
|
|
1729
1730
|
}),
|
|
1730
1731
|
r.quotaBytes !== void 0 && /*#__PURE__*/ F($, {
|
|
1731
|
-
label:
|
|
1732
|
+
label: a._({ id: "vEkTR9" }),
|
|
1732
1733
|
value: M(r.quotaBytes)
|
|
1733
1734
|
})
|
|
1734
1735
|
]
|
|
1735
1736
|
}),
|
|
1736
|
-
|
|
1737
|
+
s && /*#__PURE__*/ I(De, {
|
|
1737
1738
|
title: /*#__PURE__*/ F(U, { id: "6BDqha" }),
|
|
1738
1739
|
children: [
|
|
1739
1740
|
/*#__PURE__*/ F($, {
|
|
1740
|
-
label:
|
|
1741
|
-
value:
|
|
1741
|
+
label: a._({ id: "wTg+FY" }),
|
|
1742
|
+
value: s.max_file_size === void 0 ? void 0 : M(s.max_file_size)
|
|
1742
1743
|
}),
|
|
1743
1744
|
/*#__PURE__*/ F($, {
|
|
1744
|
-
label:
|
|
1745
|
-
value:
|
|
1745
|
+
label: a._({ id: "Rih53k" }),
|
|
1746
|
+
value: s.max_container_name_length
|
|
1746
1747
|
}),
|
|
1747
1748
|
/*#__PURE__*/ F($, {
|
|
1748
|
-
label:
|
|
1749
|
-
value:
|
|
1749
|
+
label: a._({ id: "qAkkjP" }),
|
|
1750
|
+
value: s.max_object_name_length
|
|
1750
1751
|
}),
|
|
1751
1752
|
/*#__PURE__*/ F($, {
|
|
1752
|
-
label:
|
|
1753
|
-
value:
|
|
1753
|
+
label: a._({ id: "OZImTR" }),
|
|
1754
|
+
value: s.container_listing_limit?.toLocaleString()
|
|
1754
1755
|
}),
|
|
1755
1756
|
/*#__PURE__*/ F($, {
|
|
1756
|
-
label:
|
|
1757
|
-
value:
|
|
1757
|
+
label: a._({ id: "a4A2uB" }),
|
|
1758
|
+
value: s.account_listing_limit?.toLocaleString()
|
|
1758
1759
|
}),
|
|
1759
1760
|
/*#__PURE__*/ F($, {
|
|
1760
|
-
label:
|
|
1761
|
-
value:
|
|
1761
|
+
label: a._({ id: "zWb/Nn" }),
|
|
1762
|
+
value: s.max_header_size
|
|
1762
1763
|
}),
|
|
1763
1764
|
/*#__PURE__*/ F($, {
|
|
1764
|
-
label:
|
|
1765
|
-
value:
|
|
1765
|
+
label: a._({ id: "RGwfoL" }),
|
|
1766
|
+
value: s.max_meta_count
|
|
1766
1767
|
}),
|
|
1767
1768
|
/*#__PURE__*/ F($, {
|
|
1768
|
-
label:
|
|
1769
|
-
value:
|
|
1769
|
+
label: a._({ id: "8c3/77" }),
|
|
1770
|
+
value: s.max_meta_name_length
|
|
1770
1771
|
}),
|
|
1771
1772
|
/*#__PURE__*/ F($, {
|
|
1772
|
-
label:
|
|
1773
|
-
value:
|
|
1773
|
+
label: a._({ id: "5JDSvn" }),
|
|
1774
|
+
value: s.max_meta_value_length
|
|
1774
1775
|
}),
|
|
1775
1776
|
/*#__PURE__*/ F($, {
|
|
1776
|
-
label:
|
|
1777
|
-
value:
|
|
1777
|
+
label: a._({ id: "ZAx+d1" }),
|
|
1778
|
+
value: s.max_meta_overall_size
|
|
1778
1779
|
}),
|
|
1779
|
-
|
|
1780
|
-
label:
|
|
1781
|
-
value:
|
|
1780
|
+
s.bulk_delete && /*#__PURE__*/ F($, {
|
|
1781
|
+
label: a._({ id: "lQ3EIe" }),
|
|
1782
|
+
value: s.bulk_delete.max_deletes_per_request.toLocaleString()
|
|
1782
1783
|
}),
|
|
1783
|
-
|
|
1784
|
-
label:
|
|
1785
|
-
value:
|
|
1784
|
+
s.bulk_upload && /*#__PURE__*/ F($, {
|
|
1785
|
+
label: a._({ id: "STc+7E" }),
|
|
1786
|
+
value: s.bulk_upload.max_containers_per_extraction.toLocaleString()
|
|
1786
1787
|
}),
|
|
1787
|
-
|
|
1788
|
-
label:
|
|
1789
|
-
value:
|
|
1788
|
+
s.slo && /*#__PURE__*/ F($, {
|
|
1789
|
+
label: a._({ id: "RNBvdl" }),
|
|
1790
|
+
value: s.slo.max_manifest_segments.toLocaleString()
|
|
1790
1791
|
})
|
|
1791
1792
|
]
|
|
1792
1793
|
}),
|
|
1793
|
-
|
|
1794
|
+
l.length > 0 && /*#__PURE__*/ F(De, {
|
|
1794
1795
|
title: /*#__PURE__*/ F(U, { id: "Qx7DM7" }),
|
|
1795
|
-
children:
|
|
1796
|
+
children: l.map((e) => /*#__PURE__*/ F(Ee, { label: e }, e))
|
|
1796
1797
|
})
|
|
1797
1798
|
]
|
|
1798
1799
|
})
|
|
@@ -3240,4 +3241,4 @@ var $e = () => /*#__PURE__*/ F(Qe, {});
|
|
|
3240
3241
|
//#endregion
|
|
3241
3242
|
export { $e as component };
|
|
3242
3243
|
|
|
3243
|
-
//# sourceMappingURL=_storageType-
|
|
3244
|
+
//# sourceMappingURL=_storageType-B0eJODiQ.mjs.map
|