@cobaltcore-dev/aurora 0.8.1 → 0.10.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.
Files changed (98) hide show
  1. package/README.md +47 -13
  2. package/dist/client/AuroraApp.d.ts +14 -0
  3. package/dist/client/ContentHeader-D4jlOG-9.mjs +96 -0
  4. package/dist/client/ContentHeader-D4jlOG-9.mjs.map +1 -0
  5. package/dist/client/DeleteVersionsModal-CyYZfB8d.mjs +331 -0
  6. package/dist/client/DeleteVersionsModal-CyYZfB8d.mjs.map +1 -0
  7. package/dist/client/Slot-CWb612-_.mjs +28 -0
  8. package/dist/client/Slot-CWb612-_.mjs.map +1 -0
  9. package/dist/client/{SortInput-VK7IYqQv.mjs → SortInput-DLcusjGZ.mjs} +8 -8
  10. package/dist/client/SortInput-DLcusjGZ.mjs.map +1 -0
  11. package/dist/client/_auth-DXJkv9QO.mjs.map +1 -1
  12. package/dist/client/{_flavorId-iZE2j210.mjs → _flavorId-DsD2VTKA.mjs} +3 -3
  13. package/dist/client/{_flavorId-iZE2j210.mjs.map → _flavorId-DsD2VTKA.mjs.map} +1 -1
  14. package/dist/client/{_flavorId-DU4gcFna.mjs → _flavorId-Dy7EYQum.mjs} +2 -2
  15. package/dist/client/{_flavorId-DU4gcFna.mjs.map → _flavorId-Dy7EYQum.mjs.map} +1 -1
  16. package/dist/client/{_floatingIpId-B5GMSLeQ.mjs → _floatingIpId-BjVbeNw_.mjs} +2 -2
  17. package/dist/client/{_floatingIpId-B5GMSLeQ.mjs.map → _floatingIpId-BjVbeNw_.mjs.map} +1 -1
  18. package/dist/client/{_floatingIpId-C2-BeRmF.mjs → _floatingIpId-j17rCQqG2.mjs} +2 -2
  19. package/dist/client/_floatingIpId-j17rCQqG2.mjs.map +1 -0
  20. package/dist/client/{_imageId-zmaSymWe.mjs → _imageId-BjfhqAje.mjs} +2 -2
  21. package/dist/client/{_imageId-zmaSymWe.mjs.map → _imageId-BjfhqAje.mjs.map} +1 -1
  22. package/dist/client/{_pcaId-BwTvJJgh.mjs → _pcaId-Bo7yHkNW.mjs} +3 -3
  23. package/dist/client/{_pcaId-BwTvJJgh.mjs.map → _pcaId-Bo7yHkNW.mjs.map} +1 -1
  24. package/dist/client/{_pcaId-DUHQd0rB.mjs → _pcaId-CKkCVC7b.mjs} +2 -2
  25. package/dist/client/{_pcaId-DUHQd0rB.mjs.map → _pcaId-CKkCVC7b.mjs.map} +1 -1
  26. package/dist/client/_projectId-B_2sZKk-.mjs.map +1 -1
  27. package/dist/client/_projectId-CARHuZTU.mjs +106 -0
  28. package/dist/client/_projectId-CARHuZTU.mjs.map +1 -0
  29. package/dist/client/_projectId-CY8W0IF6.mjs +27 -0
  30. package/dist/client/_projectId-CY8W0IF6.mjs.map +1 -0
  31. package/dist/client/_projectId-Dbck_MFa.mjs +290 -0
  32. package/dist/client/_projectId-Dbck_MFa.mjs.map +1 -0
  33. package/dist/client/{_securityGroupId-DYxmXUOP.mjs → _securityGroupId-CkN0CGVg.mjs} +3 -3
  34. package/dist/client/{_securityGroupId-DYxmXUOP.mjs.map → _securityGroupId-CkN0CGVg.mjs.map} +1 -1
  35. package/dist/client/{_securityGroupId-fhK1CuZh.mjs → _securityGroupId-gSEZbBII.mjs} +2 -2
  36. package/dist/client/{_securityGroupId-fhK1CuZh.mjs.map → _securityGroupId-gSEZbBII.mjs.map} +1 -1
  37. package/dist/client/{_storageType-CepuevDG.mjs → _storageType-6k8lUnQo.mjs} +2 -2
  38. package/dist/client/{_storageType-CepuevDG.mjs.map → _storageType-6k8lUnQo.mjs.map} +1 -1
  39. package/dist/client/_storageType-CLTxXjQZ.mjs +3048 -0
  40. package/dist/client/_storageType-CLTxXjQZ.mjs.map +1 -0
  41. package/dist/client/{constants-J5nm9hbP.mjs → constants-PMXUGI4Q.mjs} +2 -2
  42. package/dist/client/{constants-J5nm9hbP.mjs.map → constants-PMXUGI4Q.mjs.map} +1 -1
  43. package/dist/client/{flavors-8bZVlzzb.mjs → flavors-BclEwobO.mjs} +2 -2
  44. package/dist/client/{flavors-8bZVlzzb.mjs.map → flavors-BclEwobO.mjs.map} +1 -1
  45. package/dist/client/{flavors-BfsEBUE-.mjs → flavors-p2TKcqP-.mjs} +4 -4
  46. package/dist/client/{flavors-BfsEBUE-.mjs.map → flavors-p2TKcqP-.mjs.map} +1 -1
  47. package/dist/client/{floatingips-Dq4DXQYb.mjs → floatingips-ph0ZxJw8.mjs} +3 -3
  48. package/dist/client/{floatingips-Dq4DXQYb.mjs.map → floatingips-ph0ZxJw8.mjs.map} +1 -1
  49. package/dist/client/{images-BPnTuKFO2.mjs → images-BblnyWJq.mjs} +4 -4
  50. package/dist/client/images-BblnyWJq.mjs.map +1 -0
  51. package/dist/client/{images-8FOgju2f.mjs → images-CXdghaMW.mjs} +2 -2
  52. package/dist/client/{images-8FOgju2f.mjs.map → images-CXdghaMW.mjs.map} +1 -1
  53. package/dist/client/index.js +261 -247
  54. package/dist/client/index.js.map +1 -1
  55. package/dist/client/{md-CYTrL5dq.mjs → md-CyCflQee.mjs} +10 -28
  56. package/dist/client/{md-CYTrL5dq.mjs.map → md-CyCflQee.mjs.map} +1 -1
  57. package/dist/client/{objects-DKWp9RtR.mjs → objects-B9Jh3SMG.mjs} +4 -3
  58. package/dist/client/objects-B9Jh3SMG.mjs.map +1 -0
  59. package/dist/client/objects-Bw25cE1m.mjs +5970 -0
  60. package/dist/client/objects-Bw25cE1m.mjs.map +1 -0
  61. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
  62. package/dist/client/{pca-5wOBf_KI.mjs → pca-CiLPHmK7.mjs} +4 -4
  63. package/dist/client/{pca-5wOBf_KI.mjs.map → pca-CiLPHmK7.mjs.map} +1 -1
  64. package/dist/client/{pca-dhrOFfrE.mjs → pca-DUrQ_tIg.mjs} +2 -2
  65. package/dist/client/{pca-dhrOFfrE.mjs.map → pca-DUrQ_tIg.mjs.map} +1 -1
  66. package/dist/client/{projects-B_PPyZD1.mjs → projects-B5topuei.mjs} +2 -2
  67. package/dist/client/projects-B5topuei.mjs.map +1 -0
  68. package/dist/client/projects-CHYn7L5e.mjs.map +1 -1
  69. package/dist/client/projects-DNd3UTas.mjs +110 -0
  70. package/dist/client/projects-DNd3UTas.mjs.map +1 -0
  71. package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
  72. package/dist/client/routeInfo-Dy9l-wFB.mjs +31 -0
  73. package/dist/client/routeInfo-Dy9l-wFB.mjs.map +1 -0
  74. package/dist/client/{securitygroups-CNFLu9zS.mjs → securitygroups-CcA2TpAt.mjs} +2 -2
  75. package/dist/client/{securitygroups-CNFLu9zS.mjs.map → securitygroups-CcA2TpAt.mjs.map} +1 -1
  76. package/dist/client/{useListWithFiltering-v2A0-SZb.mjs → useListWithFiltering-CVzhMyEA.mjs} +2 -2
  77. package/dist/client/{useListWithFiltering-v2A0-SZb.mjs.map → useListWithFiltering-CVzhMyEA.mjs.map} +1 -1
  78. package/dist/server/index.js +282 -48
  79. package/package.json +3 -3
  80. package/dist/client/ContentHeader-C51H95X8.mjs +0 -85
  81. package/dist/client/ContentHeader-C51H95X8.mjs.map +0 -1
  82. package/dist/client/SortInput-VK7IYqQv.mjs.map +0 -1
  83. package/dist/client/_floatingIpId-C2-BeRmF.mjs.map +0 -1
  84. package/dist/client/_projectId-C8BaEHUj.mjs +0 -273
  85. package/dist/client/_projectId-C8BaEHUj.mjs.map +0 -1
  86. package/dist/client/_projectId-COt93OEF.mjs +0 -84
  87. package/dist/client/_projectId-COt93OEF.mjs.map +0 -1
  88. package/dist/client/_storageType-B-qGcGUQ.mjs +0 -3244
  89. package/dist/client/_storageType-B-qGcGUQ.mjs.map +0 -1
  90. package/dist/client/images-BPnTuKFO2.mjs.map +0 -1
  91. package/dist/client/objects-DKWp9RtR.mjs.map +0 -1
  92. package/dist/client/objects-DaCuy_CB.mjs +0 -5708
  93. package/dist/client/objects-DaCuy_CB.mjs.map +0 -1
  94. package/dist/client/projects-B_PPyZD1.mjs.map +0 -1
  95. package/dist/client/projects-Dmewygrp.mjs +0 -105
  96. package/dist/client/projects-Dmewygrp.mjs.map +0 -1
  97. package/dist/client/routeInfo-CHiJfum5.mjs +0 -73
  98. package/dist/client/routeInfo-CHiJfum5.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"_projectId-B_2sZKk-.mjs","names":["RouteError","SplitErrorComponent","error","errorComponent"],"sources":["../../src/client/routes/_auth/projects/$projectId.tsx?tsr-split=errorComponent"],"sourcesContent":["import { createFileRoute, Outlet, useLoaderData } from \"@tanstack/react-router\"\nimport { AppShell, Container, Stack } from \"@cloudoperators/juno-ui-components\"\nimport { SideNavBar } from \"@/client/routes/_auth/projects/-components/SideNavBar\"\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\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n availableServices={availableServices!}\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":";;;AAIiE,IAAAC,KAI9C,EAAEC,eACV,gBAAC,GAAA,EAAkBA,SAAAA,CAAAA"}
1
+ {"version":3,"file":"_projectId-B_2sZKk-.mjs","names":["RouteError","SplitErrorComponent","error","errorComponent"],"sources":["../../src/client/routes/_auth/projects/$projectId.tsx?tsr-split=errorComponent"],"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\"\nimport { useMemo } from \"react\"\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 const sections = useMemo(\n () => buildNavSections(projectId, availableServices!, enabledServices),\n [projectId, availableServices, enabledServices]\n )\n\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n sections={sections}\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":";;;AAKiE,IAAAC,KAK9C,EAAEC,eACV,gBAAC,GAAA,EAAkBA,SAAAA,CAAAA"}
@@ -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":";;;;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EAAI;EAAiBjB,SAAS;CAAM,CAAA,GAIpG,gBAAC,GAAA;EAAM,WAAU;EAAW,KAAI;EAAI,WAAU;;GAC5C,gBAAC,GAAA;IAAc,OAAOO,GAAca,QAAQR,EAAAA,EAAC,EAAA,IAAA,SAAA,CAAA;IAAsBH;IAAwBC;;GAC1FP,GAAOkB,yBAAyB,gBAAC,GAAA;IAAK,WAAWlB,EAAMkB;IAAuB,cAAc;;GAC5FH,EAAMI,SAAS,IACd,gBAAC,OAAA;IAAI,WAAU;cACZJ,EAAMK,KAAKC,MACV,gBAAC,GAAA,EAA0B,GAAIA,EAAAA,GAAbA,EAAKzB,EAAE,CAAA;QAI7B,gBAAC,KAAA;IAAE,WAAU;cACX,gBAAA,GAAA,EAAA,IAAA,SAAA,CAAA;;;;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-Dbck_MFa.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-CY8W0IF6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_projectId-CY8W0IF6.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\"\nimport { useMemo } from \"react\"\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 const sections = useMemo(\n () => buildNavSections(projectId, availableServices!, enabledServices),\n [projectId, availableServices, enabledServices]\n )\n\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n sections={sections}\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":";AAQA,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"}
@@ -0,0 +1,290 @@
1
+ import { B as e, M as t, O as n, P as r, W as i, X as a, Y as o, a as s, st as c, y as l } from "./build-BdRRmNf5.mjs";
2
+ import { t as u } from "./Slot-CWb612-_.mjs";
3
+ import { t as d } from "./_projectId-CY8W0IF6.mjs";
4
+ import { t as f } from "./helpers-1PpYf-fC.mjs";
5
+ import { t as p } from "./routeInfo-Dy9l-wFB.mjs";
6
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
7
+ import { useEffect as _, useMemo as v, useState as y } from "react";
8
+ import { Outlet as b, useLoaderData as x, useMatches as S, useNavigate as C, useParams as w, useRouteContext as T } from "@tanstack/react-router";
9
+ import { useLingui as E } from "@lingui/react";
10
+ import { i18n as D } from "@lingui/core";
11
+ //#region src/client/routes/_auth/projects/-components/SideNavBar.tsx
12
+ var O = ({ projectId: n, projectName: r, domainName: i, sections: a }) => {
13
+ let o = C(), d = S(), { provider: f } = w({ strict: !1 }), { slots: v } = T({ strict: !1 }), b = (e) => v?.serviceBadge ? /*#__PURE__*/ h(u, {
14
+ component: v.serviceBadge,
15
+ useShadowDOM: !1,
16
+ currentService: e
17
+ }) : null, x = [...d].reverse().find((e) => p(e.staticData)), E = x && p(x.staticData) ? x.staticData : void 0, D = E?.section ?? null, O = E?.service ?? null, [k, A] = y(() => Object.fromEntries(a.map((e) => [e.section, 0])));
18
+ return _(() => {
19
+ D && A((e) => ({
20
+ ...e,
21
+ [D]: (e[D] || 0) + 1
22
+ }));
23
+ }, [D]), /*#__PURE__*/ h(t, {
24
+ ariaLabel: "Project Side Navigation",
25
+ children: /*#__PURE__*/ g(m, { children: [/*#__PURE__*/ h(e, { children: /*#__PURE__*/ g(m, { children: [
26
+ /*#__PURE__*/ h(s, {
27
+ onClick: () => o({
28
+ to: "/projects/$projectId",
29
+ params: { projectId: n }
30
+ }),
31
+ label: /*#__PURE__*/ g(m, { children: [i && /*#__PURE__*/ g("p", {
32
+ className: "text-theme-light text-xs leading-4 font-bold",
33
+ children: [i, " /"]
34
+ }), /*#__PURE__*/ h("p", {
35
+ className: "leading-5 font-normal",
36
+ children: r
37
+ })] })
38
+ }),
39
+ /*#__PURE__*/ h(c, { spacing: "1" }),
40
+ a.map(({ section: e, label: t, services: n }) => /*#__PURE__*/ h(l, {
41
+ label: t,
42
+ open: !0,
43
+ children: n.map((t) => {
44
+ let n = D === e && (D === "storage" && O === "containers" ? t.params.provider === f : O === t.service);
45
+ return /*#__PURE__*/ h(s, {
46
+ onClick: () => t.navigate(o),
47
+ label: /*#__PURE__*/ g("span", {
48
+ className: "flex items-start gap-2",
49
+ children: [t.label, b(t.service)]
50
+ }),
51
+ selected: n
52
+ }, t.service);
53
+ })
54
+ }, `${e}-${k[e]}`))
55
+ ] }) }), v?.sideNavBanner && /*#__PURE__*/ h(u, { component: v.sideNavBanner })] })
56
+ });
57
+ };
58
+ //#endregion
59
+ //#region src/client/routes/_auth/projects/-components/buildNavSections.ts
60
+ function k(e, t, n) {
61
+ let r = f(t), i = (e) => !n || n.includes(e), a = [...r.image?.glance && i("images") ? [{
62
+ service: "images",
63
+ label: D._({ id: "an5hVd" }),
64
+ navigate: (t) => t({
65
+ to: "/projects/$projectId/compute/images",
66
+ params: { projectId: e }
67
+ }),
68
+ params: { projectId: e }
69
+ }] : [], ...r?.compute?.nova && i("flavors") ? [{
70
+ service: "flavors",
71
+ label: D._({ id: "neiJm0" }),
72
+ navigate: (t) => t({
73
+ to: "/projects/$projectId/compute/flavors",
74
+ params: { projectId: e }
75
+ }),
76
+ params: { projectId: e }
77
+ }] : []], o = r.network ? [...i("securitygroups") ? [{
78
+ service: "securitygroups",
79
+ label: D._({ id: "4opp4r" }),
80
+ navigate: (t) => t({
81
+ to: "/projects/$projectId/network/securitygroups",
82
+ params: { projectId: e }
83
+ }),
84
+ params: { projectId: e }
85
+ }] : [], ...i("floatingips") ? [{
86
+ service: "floatingips",
87
+ label: D._({ id: "u77/s4" }),
88
+ navigate: (t) => t({
89
+ to: "/projects/$projectId/network/floatingips",
90
+ params: { projectId: e }
91
+ }),
92
+ params: { projectId: e }
93
+ }] : []] : [], s = [...r?.["object-store"]?.swift && i("containers") ? [{
94
+ service: "containers",
95
+ label: D._({ id: "+OEi73" }),
96
+ navigate: (t) => t({
97
+ to: "/projects/$projectId/storage/$provider/$storageType",
98
+ params: {
99
+ projectId: e,
100
+ provider: "swift",
101
+ storageType: "containers"
102
+ }
103
+ }),
104
+ params: {
105
+ projectId: e,
106
+ provider: "swift",
107
+ storageType: "containers"
108
+ }
109
+ }] : [], ...i("ceph-containers") ? [{
110
+ service: "ceph-containers",
111
+ label: D._({ id: "KhNDX4" }),
112
+ navigate: (t) => t({
113
+ to: "/projects/$projectId/storage/$provider/$storageType",
114
+ params: {
115
+ projectId: e,
116
+ provider: "ceph",
117
+ storageType: "buckets"
118
+ }
119
+ }),
120
+ params: {
121
+ projectId: e,
122
+ provider: "ceph",
123
+ storageType: "buckets"
124
+ }
125
+ }] : []], c = (r.pca?.["clavis-beta"] || r.pca?.["clavis-dev"]) && i("pca") ? [{
126
+ service: "pca",
127
+ label: D._({ id: "miy5mb" }),
128
+ navigate: (t) => t({
129
+ to: "/projects/$projectId/services/pca",
130
+ params: { projectId: e }
131
+ }),
132
+ params: { projectId: e }
133
+ }] : [];
134
+ return [
135
+ {
136
+ section: "compute",
137
+ label: D._({ id: "rp0Bd0" }),
138
+ services: a
139
+ },
140
+ {
141
+ section: "network",
142
+ label: D._({ id: "OR475H" }),
143
+ services: o
144
+ },
145
+ {
146
+ section: "storage",
147
+ label: D._({ id: "BrrIs8" }),
148
+ services: s
149
+ },
150
+ {
151
+ section: "services",
152
+ label: D._({ id: "MILoeL" }),
153
+ services: c
154
+ }
155
+ ].filter((e) => e.services.length > 0);
156
+ }
157
+ //#endregion
158
+ //#region src/client/components/ProjectView/ProjectInfoBox.tsx
159
+ function A({ projectInfo: e }) {
160
+ let { i18n: t, _: n } = E(), r = C(), o = S(), { projectId: s } = w({ strict: !1 });
161
+ return /*#__PURE__*/ h(a, {
162
+ className: "relative z-1 mt-8 mb-4",
163
+ children: v(() => {
164
+ let n = {
165
+ Compute: t._({ id: "rp0Bd0" }),
166
+ Network: t._({ id: "OR475H" }),
167
+ Storage: t._({ id: "BrrIs8" }),
168
+ Services: t._({ id: "MILoeL" }),
169
+ Images: t._({ id: "an5hVd" }),
170
+ Flavors: t._({ id: "neiJm0" }),
171
+ "Security Groups": t._({ id: "4opp4r" }),
172
+ "Floating IPs": t._({ id: "u77/s4" }),
173
+ "PCA (Clavis)": t._({ id: "miy5mb" })
174
+ }, i = (e) => e === "swift" ? t._({ id: "+OEi73" }) : e === "ceph" ? t._({ id: "KhNDX4" }) : t._({ id: "BrrIs8" }), a = [];
175
+ a.push({
176
+ icon: "home",
177
+ label: t._({ id: "i0qMbr" }),
178
+ onClick: () => r({ to: "/projects" })
179
+ }), e.domain?.name && a.push({ label: e.domain.name });
180
+ let c = o.filter((e) => e.routeId !== "/_auth/projects/$projectId" && e.routeId.startsWith("/_auth/projects/$projectId")), l = c[c.length - 1], u = l && p(l.staticData) ? l.staticData : void 0;
181
+ if (!l || !u) return a.push({
182
+ label: e.name,
183
+ active: !0
184
+ }), a;
185
+ a.push({
186
+ label: e.name,
187
+ onClick: () => r({
188
+ to: "/projects/$projectId",
189
+ params: { projectId: s }
190
+ })
191
+ });
192
+ let d = l.params;
193
+ if (u.sectionCrumb?.to) {
194
+ let { labelKey: e, to: t } = u.sectionCrumb, i = e ? n[e] : void 0;
195
+ a.push({
196
+ label: i,
197
+ onClick: () => r({
198
+ to: t,
199
+ params: d
200
+ })
201
+ });
202
+ }
203
+ if (u.crumb) {
204
+ let { labelKey: e, to: t, useParamAsLabel: o } = u.crumb, s = o ? i(d[o]) : e ? n[e] : void 0;
205
+ if (u.isDetail) {
206
+ if (a.push({
207
+ label: s,
208
+ onClick: () => r({
209
+ to: t,
210
+ params: d
211
+ })
212
+ }), u.intermediateCrumb) {
213
+ let { to: e, useParamAsLabel: t, useParentTitleAsLabel: n } = u.intermediateCrumb, i = c[c.length - 2]?.meta?.find((e) => e != null && "title" in e)?.title, o = n ? i ?? (t ? d[t] : void 0) : t ? d[t] : void 0;
214
+ a.push(e ? {
215
+ label: o,
216
+ onClick: () => r({
217
+ to: e,
218
+ params: d
219
+ })
220
+ } : { label: o });
221
+ }
222
+ let e = l.meta?.find((e) => e != null && "title" in e)?.title;
223
+ e && a.push({
224
+ label: e,
225
+ active: !0
226
+ });
227
+ } else a.push(t ? {
228
+ label: s,
229
+ onClick: () => r({
230
+ to: t,
231
+ params: d
232
+ })
233
+ } : {
234
+ label: s,
235
+ active: !0
236
+ });
237
+ }
238
+ return a;
239
+ }, [
240
+ o,
241
+ e,
242
+ s,
243
+ r,
244
+ n
245
+ ]).map((e, t) => /*#__PURE__*/ h(i, {
246
+ label: e.label,
247
+ icon: e.icon,
248
+ onClick: e.onClick,
249
+ active: e.active
250
+ }, t))
251
+ });
252
+ }
253
+ //#endregion
254
+ //#region src/client/routes/_auth/projects/$projectId.tsx?tsr-split=component
255
+ function j() {
256
+ let { availableServices: e, projectId: t, crumbProject: i, crumbDomain: a } = x({ from: d.id }), { enabledServices: s } = T({ strict: !1 });
257
+ return /*#__PURE__*/ h(r, {
258
+ embedded: !0,
259
+ sideNavigation: /*#__PURE__*/ h(O, {
260
+ sections: v(() => k(t, e, s), [
261
+ t,
262
+ e,
263
+ s
264
+ ]),
265
+ projectId: t,
266
+ projectName: i?.name || t,
267
+ domainName: a?.name
268
+ }),
269
+ className: "h-min-screen",
270
+ children: /*#__PURE__*/ h(n, { children: /*#__PURE__*/ h(o, {
271
+ direction: "vertical",
272
+ distribution: "start",
273
+ alignment: "stretch",
274
+ className: "xl:flex-row",
275
+ gap: "6",
276
+ children: /*#__PURE__*/ g("div", {
277
+ className: "min-w-0 flex-1",
278
+ children: [/*#__PURE__*/ h(A, { projectInfo: {
279
+ id: t,
280
+ name: i?.name || t,
281
+ domain: i?.domain
282
+ } }), /*#__PURE__*/ h(b, {})]
283
+ })
284
+ }) })
285
+ });
286
+ }
287
+ //#endregion
288
+ export { j as component };
289
+
290
+ //# sourceMappingURL=_projectId-Dbck_MFa.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_projectId-Dbck_MFa.mjs","names":["useNavigate","useMatches","useParams","useRouteContext","useState","useEffect","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","forceOpenCounter","setForceOpenCounter","Object","fromEntries","map","s","prev","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","useMemo","Route","RouteComponent","availableServices","projectId","crumbProject","crumbDomain","from","id","enabledServices","strict","sections","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 } 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 // Track which sections should be forced open by incrementing a counter\n // This forces a remount of SideNavigationGroup since it doesn't expose onToggle\n const [forceOpenCounter, setForceOpenCounter] = useState<Record<string, number>>(() =>\n Object.fromEntries(sections.map((s) => [s.section, 0]))\n )\n\n // When navigating to a section, force it to expand by remounting\n useEffect(() => {\n if (activeSection) {\n setForceOpenCounter((prev) => ({ ...prev, [activeSection]: (prev[activeSection] || 0) + 1 }))\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}-${forceOpenCounter[section]}`} label={label} open={true}>\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\"\nimport { useMemo } from \"react\"\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 const sections = useMemo(\n () => buildNavSections(projectId, availableServices!, enabledServices),\n [projectId, availableServices, enabledServices]\n )\n\n return (\n <AppShell\n embedded\n sideNavigation={\n <SideNavBar\n sections={sections}\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,IAAaa,KAAc,EAAEC,cAAWC,gBAAaC,eAAYC,kBAA2B;CAC1F,IAAMC,IAAWlB,EAAAA,GACXmB,IAAUlB,EAAAA,GACV,EAAEmB,gBAAalB,EAAU,EAAEmB,Q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,EAAKpB;KAA/EqB,CAAAA,CAAAA;;AAI7B;;;ACnFA,SAASY,IAAAA;CACP,IAAM,EAAEC,sBAAmBC,cAAWC,iBAAcC,mBAAgBd,EAAc,EAAEe,MAAMN,EAAMO,GAAG,CAAA,GAC7F,EAAEC,uBAAoBhB,EAAgB,EAAEiB,QAAQ,GAAM,CAAA;CAO5D,OACE,gBAAC,GAAA;EACC,UAAQ;EACR,gBACE,gBAAC,GAAA;GACWC,UAVDX,QACTF,EAAiBM,GAAWD,GAAoBM,CAAAA,GACtD;IAACL;IAAWD;IAAmBM;IAQfE;GACCP;GACX,aAAaC,GAAcO,QAAQR;GACnC,YAAYE,GAAaM;;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;KACXJ,IAAIJ;KACJQ,MAAMP,GAAcO,QAAQR;KAC5BS,QAAQR,GAAcQ;IACxB,EAAA,CAAA,GAEF,gBAAC,GAAA,CAAA,CAAA,CAAA;;;;AAMb"}
@@ -1,10 +1,10 @@
1
1
  import { D as e, G as t, H as n, J as r, L as i, N as a, O as o, Q as s, S as c, U as l, W as u, X as d, Y as f, _ as p, ct as m, et as h, f as g, k as _, l as v, lt as y, m as b, ot as x, p as S, v as C, w, x as T, z as E } from "./build-BdRRmNf5.mjs";
2
2
  import { r as D } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as O } from "./_securityGroupId-fhK1CuZh.mjs";
3
+ import { t as O } from "./_securityGroupId-gSEZbBII.mjs";
4
4
  import { t as k } from "./useModal-DCs1OJh7.mjs";
5
5
  import { t as A } from "./useProjectId-DBc5lpoU.mjs";
6
6
  import "./hooks-dSArr2Ca.mjs";
7
- import { n as j, t as M } from "./useListWithFiltering-v2A0-SZb.mjs";
7
+ import { n as j, t as M } from "./useListWithFiltering-CVzhMyEA.mjs";
8
8
  import { t as N } from "./EditSecurityGroupModal-DKusxfta.mjs";
9
9
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
10
10
  import { useEffect as L, useMemo as R, useState as z } from "react";
@@ -1643,4 +1643,4 @@ function Te() {
1643
1643
  //#endregion
1644
1644
  export { Te as component };
1645
1645
 
1646
- //# sourceMappingURL=_securityGroupId-DYxmXUOP.mjs.map
1646
+ //# sourceMappingURL=_securityGroupId-CkN0CGVg.mjs.map