@burdenoff/microfe-labsofscience 2026.626.2 → 2026.629.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
- package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
- package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
- package/dist/labsofscience/components/QueryStates.js +40 -0
- package/dist/labsofscience/components/QueryStates.js.map +1 -0
- package/dist/labsofscience/components/StatusBadge.js +40 -23
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
- package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
- package/dist/labsofscience/pages/OverviewPage.js +195 -0
- package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
- package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
- package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
- package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
- package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
- package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
- package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
- package/dist/labsofscience/pages/shared/tags.js +16 -0
- package/dist/labsofscience/pages/shared/tags.js.map +1 -0
- package/dist/labsofscience/store/labsofscienceStore.js +6 -11
- package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
- package/dist/labsofscience/utils/formatters.js +28 -13
- package/dist/labsofscience/utils/formatters.js.map +1 -1
- package/package.json +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +0 -98
- package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
- package/dist/labsofscience/components/RatingDisplay.js +0 -35
- package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
- package/dist/labsofscience/mocks/data.js +0 -1517
- package/dist/labsofscience/mocks/data.js.map +0 -1
- package/dist/labsofscience/mocks/users.js +0 -34
- package/dist/labsofscience/mocks/users.js.map +0 -1
- package/dist/labsofscience/pages/HomePage.js +0 -940
- package/dist/labsofscience/pages/HomePage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
- package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LabsOfScienceProvider as e, useLabsOfScience as t } from "./labsofscience/context/LabsOfScienceContext.js";
|
|
2
2
|
import { cn as n } from "./labsofscience/utils/cn.js";
|
|
3
|
-
import {
|
|
4
|
-
import { LabsOfScienceRoot as
|
|
5
|
-
import { useLabsOfScienceStore as
|
|
3
|
+
import { formatDate as r, formatNumber as i, formatRelativeTime as a } from "./labsofscience/utils/formatters.js";
|
|
4
|
+
import { LabsOfScienceRoot as o } from "./labsofscience/LabsOfScienceRoot.js";
|
|
5
|
+
import { useLabsOfScienceStore as s } from "./labsofscience/store/labsofscienceStore.js";
|
|
6
6
|
import "./labsofscience/index.js";
|
|
7
|
-
export { e as LabsOfScienceProvider,
|
|
7
|
+
export { e as LabsOfScienceProvider, o as LabsOfScienceRoot, n as cn, r as formatDate, i as formatNumber, a as formatRelativeTime, t as useLabsOfScience, s as useLabsOfScienceStore };
|
|
@@ -3,175 +3,119 @@ import { LabsOfScienceRoutes as t } from "./LabsOfScienceRoutes.js";
|
|
|
3
3
|
import { useCallback as n, useEffect as r } from "react";
|
|
4
4
|
import { QueryClient as i, QueryClientProvider as a } from "@tanstack/react-query";
|
|
5
5
|
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { FeatureFlagProvider as
|
|
6
|
+
import { BookOpen as s, Boxes as c, Cpu as l, Database as u, FlaskConical as d, FolderKanban as f, GitBranch as p, LayoutDashboard as m, Microscope as h } from "lucide-react";
|
|
7
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
8
|
+
import { FeatureFlagProvider as _ } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
9
9
|
//#region src/labsofscience/LabsOfScienceRoot.tsx
|
|
10
|
-
var
|
|
10
|
+
var v = new i({ defaultOptions: { queries: {
|
|
11
11
|
staleTime: 300 * 1e3,
|
|
12
12
|
retry: 1
|
|
13
|
-
} } }),
|
|
14
|
-
let { registerNavItems:
|
|
15
|
-
let n =
|
|
13
|
+
} } }), y = (i) => {
|
|
14
|
+
let { registerNavItems: y, registerFooterItems: b, basePath: x = "/" } = i, { t: S } = o(), C = n((e, t) => {
|
|
15
|
+
let n = S(e);
|
|
16
16
|
return n === e ? t : n;
|
|
17
|
-
}, [
|
|
17
|
+
}, [S]), w = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
18
18
|
return r(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (y) return y([
|
|
20
20
|
{
|
|
21
|
-
id: "labsofscience-
|
|
22
|
-
label:
|
|
23
|
-
path:
|
|
24
|
-
icon: /* @__PURE__ */
|
|
21
|
+
id: "labsofscience-overview",
|
|
22
|
+
label: C("labsofscience.nav.overview", "Overview"),
|
|
23
|
+
path: w(x, ""),
|
|
24
|
+
icon: /* @__PURE__ */ g(m, { size: 20 }),
|
|
25
25
|
order: 1,
|
|
26
26
|
group: "main"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
id: "labsofscience-
|
|
30
|
-
label:
|
|
31
|
-
path:
|
|
32
|
-
icon: /* @__PURE__ */
|
|
29
|
+
id: "labsofscience-projects",
|
|
30
|
+
label: C("labsofscience.nav.projects", "Projects"),
|
|
31
|
+
path: w(x, "projects"),
|
|
32
|
+
icon: /* @__PURE__ */ g(f, { size: 20 }),
|
|
33
33
|
order: 10,
|
|
34
|
-
group: "
|
|
34
|
+
group: "research"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
id: "labsofscience-
|
|
38
|
-
label:
|
|
39
|
-
path:
|
|
40
|
-
icon: /* @__PURE__ */
|
|
37
|
+
id: "labsofscience-experiments",
|
|
38
|
+
label: C("labsofscience.nav.experiments", "Experiments"),
|
|
39
|
+
path: w(x, "experiments"),
|
|
40
|
+
icon: /* @__PURE__ */ g(d, { size: 20 }),
|
|
41
41
|
order: 11,
|
|
42
|
-
group: "
|
|
42
|
+
group: "research"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
id: "labsofscience-
|
|
46
|
-
label:
|
|
47
|
-
path:
|
|
48
|
-
icon: /* @__PURE__ */
|
|
45
|
+
id: "labsofscience-notebook",
|
|
46
|
+
label: C("labsofscience.nav.notebook", "Notebook"),
|
|
47
|
+
path: w(x, "notebook"),
|
|
48
|
+
icon: /* @__PURE__ */ g(s, { size: 20 }),
|
|
49
49
|
order: 12,
|
|
50
|
-
group: "
|
|
50
|
+
group: "research"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id: "labsofscience-
|
|
54
|
-
label:
|
|
55
|
-
path:
|
|
56
|
-
icon: /* @__PURE__ */
|
|
57
|
-
order:
|
|
58
|
-
group: "
|
|
53
|
+
id: "labsofscience-protocols",
|
|
54
|
+
label: C("labsofscience.nav.protocols", "Protocols"),
|
|
55
|
+
path: w(x, "protocols"),
|
|
56
|
+
icon: /* @__PURE__ */ g(h, { size: 20 }),
|
|
57
|
+
order: 13,
|
|
58
|
+
group: "research"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
id: "labsofscience-
|
|
62
|
-
label:
|
|
63
|
-
path:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
65
|
-
order:
|
|
66
|
-
group: "
|
|
61
|
+
id: "labsofscience-datasets",
|
|
62
|
+
label: C("labsofscience.nav.datasets", "Datasets"),
|
|
63
|
+
path: w(x, "datasets"),
|
|
64
|
+
icon: /* @__PURE__ */ g(u, { size: 20 }),
|
|
65
|
+
order: 20,
|
|
66
|
+
group: "data"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id: "labsofscience-
|
|
70
|
-
label:
|
|
71
|
-
path:
|
|
72
|
-
icon: /* @__PURE__ */
|
|
73
|
-
order:
|
|
74
|
-
group: "
|
|
69
|
+
id: "labsofscience-pipelines",
|
|
70
|
+
label: C("labsofscience.nav.pipelines", "Pipelines"),
|
|
71
|
+
path: w(x, "pipelines"),
|
|
72
|
+
icon: /* @__PURE__ */ g(p, { size: 20 }),
|
|
73
|
+
order: 21,
|
|
74
|
+
group: "data"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
id: "labsofscience-
|
|
78
|
-
label:
|
|
79
|
-
path:
|
|
80
|
-
icon: /* @__PURE__ */
|
|
77
|
+
id: "labsofscience-inventory",
|
|
78
|
+
label: C("labsofscience.nav.inventory", "Inventory"),
|
|
79
|
+
path: w(x, "inventory"),
|
|
80
|
+
icon: /* @__PURE__ */ g(c, { size: 20 }),
|
|
81
81
|
order: 30,
|
|
82
|
-
group: "
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: "labsofscience-investments",
|
|
86
|
-
label: A("labsofscience.nav.investments", "Investments"),
|
|
87
|
-
path: j(O, "investor/dashboard"),
|
|
88
|
-
icon: /* @__PURE__ */ C(b, { size: 20 }),
|
|
89
|
-
order: 40,
|
|
90
|
-
group: "investor"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "labsofscience-portfolio",
|
|
94
|
-
label: A("labsofscience.nav.portfolio", "Portfolio"),
|
|
95
|
-
path: j(O, "investor/portfolio"),
|
|
96
|
-
icon: /* @__PURE__ */ C(m, { size: 20 }),
|
|
97
|
-
order: 41,
|
|
98
|
-
group: "investor"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: "labsofscience-opportunities",
|
|
102
|
-
label: A("labsofscience.nav.opportunities", "Opportunities"),
|
|
103
|
-
path: j(O, "investor/opportunities"),
|
|
104
|
-
icon: /* @__PURE__ */ C(f, { size: 20 }),
|
|
105
|
-
order: 42,
|
|
106
|
-
group: "investor"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "labsofscience-admin",
|
|
110
|
-
label: A("labsofscience.nav.adminPanel", "Admin Panel"),
|
|
111
|
-
path: j(O, "admin/dashboard"),
|
|
112
|
-
icon: /* @__PURE__ */ C(g, { size: 20 }),
|
|
113
|
-
order: 50,
|
|
114
|
-
group: "admin"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "labsofscience-users",
|
|
118
|
-
label: A("labsofscience.nav.users", "Users"),
|
|
119
|
-
path: j(O, "admin/users"),
|
|
120
|
-
icon: /* @__PURE__ */ C(x, { size: 20 }),
|
|
121
|
-
order: 51,
|
|
122
|
-
group: "admin"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "labsofscience-analytics",
|
|
126
|
-
label: A("labsofscience.nav.analytics", "Analytics"),
|
|
127
|
-
path: j(O, "admin/analytics"),
|
|
128
|
-
icon: /* @__PURE__ */ C(s, { size: 20 }),
|
|
129
|
-
order: 52,
|
|
130
|
-
group: "admin"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: "labsofscience-financial",
|
|
134
|
-
label: A("labsofscience.nav.financial", "Financial"),
|
|
135
|
-
path: j(O, "admin/financial"),
|
|
136
|
-
icon: /* @__PURE__ */ C(S, { size: 20 }),
|
|
137
|
-
order: 53,
|
|
138
|
-
group: "admin"
|
|
82
|
+
group: "bench"
|
|
139
83
|
},
|
|
140
84
|
{
|
|
141
|
-
id: "labsofscience-
|
|
142
|
-
label:
|
|
143
|
-
path:
|
|
144
|
-
icon: /* @__PURE__ */
|
|
145
|
-
order:
|
|
146
|
-
group: "
|
|
85
|
+
id: "labsofscience-instruments",
|
|
86
|
+
label: C("labsofscience.nav.instruments", "Instruments"),
|
|
87
|
+
path: w(x, "instruments"),
|
|
88
|
+
icon: /* @__PURE__ */ g(l, { size: 20 }),
|
|
89
|
+
order: 31,
|
|
90
|
+
group: "bench"
|
|
147
91
|
}
|
|
148
92
|
]);
|
|
149
93
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
94
|
+
y,
|
|
95
|
+
x,
|
|
96
|
+
C
|
|
153
97
|
]), r(() => {
|
|
154
|
-
if (
|
|
98
|
+
if (b) return b([{
|
|
155
99
|
id: "labsofscience-status",
|
|
156
|
-
label:
|
|
100
|
+
label: C("labsofscience.footer.ready", "LabsOfScience Ready"),
|
|
157
101
|
type: "status",
|
|
158
102
|
order: 10,
|
|
159
103
|
section: "left"
|
|
160
104
|
}]);
|
|
161
|
-
}, [
|
|
162
|
-
client:
|
|
163
|
-
children: /* @__PURE__ */
|
|
105
|
+
}, [b, C]), /* @__PURE__ */ g(a, {
|
|
106
|
+
client: v,
|
|
107
|
+
children: /* @__PURE__ */ g(_, {
|
|
164
108
|
workspaceId: null,
|
|
165
109
|
gateway: "global",
|
|
166
110
|
defaultEnabled: !0,
|
|
167
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ g(e, {
|
|
168
112
|
...i,
|
|
169
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ g(t, {})
|
|
170
114
|
})
|
|
171
115
|
})
|
|
172
116
|
});
|
|
173
117
|
};
|
|
174
118
|
//#endregion
|
|
175
|
-
export {
|
|
119
|
+
export { y as LabsOfScienceRoot };
|
|
176
120
|
|
|
177
121
|
//# sourceMappingURL=LabsOfScienceRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabsOfScienceRoot.js","names":[],"sources":["../../src/labsofscience/LabsOfScienceRoot.tsx"],"sourcesContent":["/**\n * LabsOfScience Root Component\n * @module labsofscience\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Search,\n ShoppingBag,\n Heart,\n Store,\n Package,\n ClipboardList,\n TrendingUp,\n PieChart,\n BarChart3,\n Settings,\n Users,\n ShoppingCart,\n LineChart,\n Wallet,\n FileText,\n} from 'lucide-react';\nimport { LabsOfScienceProvider } from './context/LabsOfScienceContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { LabsOfScienceRoutes } from './LabsOfScienceRoutes';\nimport type { LabsOfScienceRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const LabsOfScienceRoot: FC<LabsOfScienceRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Main\n {\n id: 'labsofscience-home',\n label: t('labsofscience.nav.home', 'Home'),\n path: joinPath(basePath, ''),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // Customer Section\n {\n id: 'labsofscience-discover',\n label: t('labsofscience.nav.discover', 'Discover'),\n path: joinPath(basePath, 'customer/discover'),\n icon: <Search size={20} />,\n order: 10,\n group: 'customer',\n },\n {\n id: 'labsofscience-orders',\n label: t('labsofscience.nav.myOrders', 'My Orders'),\n path: joinPath(basePath, 'customer/orders'),\n icon: <ShoppingBag size={20} />,\n order: 11,\n group: 'customer',\n },\n {\n id: 'labsofscience-favorites',\n label: t('labsofscience.nav.favorites', 'Favorites'),\n path: joinPath(basePath, 'customer/favorites'),\n icon: <Heart size={20} />,\n order: 12,\n group: 'customer',\n },\n\n // Cart Owner Section\n {\n id: 'labsofscience-my-cart',\n label: t('labsofscience.nav.myCart', 'My Cart'),\n path: joinPath(basePath, 'cart-owner/dashboard'),\n icon: <Store size={20} />,\n order: 20,\n group: 'cart-owner',\n },\n {\n id: 'labsofscience-inventory',\n label: t('labsofscience.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'cart-owner/inventory'),\n icon: <Package size={20} />,\n order: 21,\n group: 'cart-owner',\n },\n {\n id: 'labsofscience-cart-orders',\n label: t('labsofscience.nav.cartOrders', 'Cart Orders'),\n path: joinPath(basePath, 'cart-owner/orders'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'cart-owner',\n },\n\n // Worker Section\n {\n id: 'labsofscience-tasks',\n label: t('labsofscience.nav.myTasks', 'My Tasks'),\n path: joinPath(basePath, 'worker/dashboard'),\n icon: <ClipboardList size={20} />,\n order: 30,\n group: 'worker',\n },\n\n // Investor Section\n {\n id: 'labsofscience-investments',\n label: t('labsofscience.nav.investments', 'Investments'),\n path: joinPath(basePath, 'investor/dashboard'),\n icon: <TrendingUp size={20} />,\n order: 40,\n group: 'investor',\n },\n {\n id: 'labsofscience-portfolio',\n label: t('labsofscience.nav.portfolio', 'Portfolio'),\n path: joinPath(basePath, 'investor/portfolio'),\n icon: <PieChart size={20} />,\n order: 41,\n group: 'investor',\n },\n {\n id: 'labsofscience-opportunities',\n label: t('labsofscience.nav.opportunities', 'Opportunities'),\n path: joinPath(basePath, 'investor/opportunities'),\n icon: <LineChart size={20} />,\n order: 42,\n group: 'investor',\n },\n\n // Admin Section\n {\n id: 'labsofscience-admin',\n label: t('labsofscience.nav.adminPanel', 'Admin Panel'),\n path: joinPath(basePath, 'admin/dashboard'),\n icon: <Settings size={20} />,\n order: 50,\n group: 'admin',\n },\n {\n id: 'labsofscience-users',\n label: t('labsofscience.nav.users', 'Users'),\n path: joinPath(basePath, 'admin/users'),\n icon: <Users size={20} />,\n order: 51,\n group: 'admin',\n },\n {\n id: 'labsofscience-analytics',\n label: t('labsofscience.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'admin/analytics'),\n icon: <BarChart3 size={20} />,\n order: 52,\n group: 'admin',\n },\n {\n id: 'labsofscience-financial',\n label: t('labsofscience.nav.financial', 'Financial'),\n path: joinPath(basePath, 'admin/financial'),\n icon: <Wallet size={20} />,\n order: 53,\n group: 'admin',\n },\n\n // System\n {\n id: 'labsofscience-settings',\n label: t('labsofscience.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <FileText size={20} />,\n order: 100,\n group: 'system',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'labsofscience-status',\n label: t('labsofscience.footer.ready', 'LabsOfScience Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <LabsOfScienceProvider {...props}>\n <LabsOfScienceRoutes />\n </LabsOfScienceProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAiCA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AA8KtD,QAzKA,QAAgB;AACT,QAmJL,QADgB,EAhJY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,0BAA0B,OAAO;IAC1C,MAAM,EAAS,GAAU,GAAG;I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P,OAAO;IACR;GACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAGnC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,sBAAsB;GAC7D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"LabsOfScienceRoot.js","names":[],"sources":["../../src/labsofscience/LabsOfScienceRoot.tsx"],"sourcesContent":["/**\n * LabsOfScience Root Component\n * @module labsofscience\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n FolderKanban,\n FlaskConical,\n Database,\n Microscope,\n Cpu,\n Boxes,\n BookOpen,\n GitBranch,\n} from 'lucide-react';\nimport { LabsOfScienceProvider } from './context/LabsOfScienceContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { LabsOfScienceRoutes } from './LabsOfScienceRoutes';\nimport type { LabsOfScienceRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const LabsOfScienceRoot: FC<LabsOfScienceRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Overview\n {\n id: 'labsofscience-overview',\n label: t('labsofscience.nav.overview', 'Overview'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 1,\n group: 'main',\n },\n\n // Research\n {\n id: 'labsofscience-projects',\n label: t('labsofscience.nav.projects', 'Projects'),\n path: joinPath(basePath, 'projects'),\n icon: <FolderKanban size={20} />,\n order: 10,\n group: 'research',\n },\n {\n id: 'labsofscience-experiments',\n label: t('labsofscience.nav.experiments', 'Experiments'),\n path: joinPath(basePath, 'experiments'),\n icon: <FlaskConical size={20} />,\n order: 11,\n group: 'research',\n },\n {\n id: 'labsofscience-notebook',\n label: t('labsofscience.nav.notebook', 'Notebook'),\n path: joinPath(basePath, 'notebook'),\n icon: <BookOpen size={20} />,\n order: 12,\n group: 'research',\n },\n {\n id: 'labsofscience-protocols',\n label: t('labsofscience.nav.protocols', 'Protocols'),\n path: joinPath(basePath, 'protocols'),\n icon: <Microscope size={20} />,\n order: 13,\n group: 'research',\n },\n\n // Data & analysis\n {\n id: 'labsofscience-datasets',\n label: t('labsofscience.nav.datasets', 'Datasets'),\n path: joinPath(basePath, 'datasets'),\n icon: <Database size={20} />,\n order: 20,\n group: 'data',\n },\n {\n id: 'labsofscience-pipelines',\n label: t('labsofscience.nav.pipelines', 'Pipelines'),\n path: joinPath(basePath, 'pipelines'),\n icon: <GitBranch size={20} />,\n order: 21,\n group: 'data',\n },\n\n // The bench\n {\n id: 'labsofscience-inventory',\n label: t('labsofscience.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'inventory'),\n icon: <Boxes size={20} />,\n order: 30,\n group: 'bench',\n },\n {\n id: 'labsofscience-instruments',\n label: t('labsofscience.nav.instruments', 'Instruments'),\n path: joinPath(basePath, 'instruments'),\n icon: <Cpu size={20} />,\n order: 31,\n group: 'bench',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'labsofscience-status',\n label: t('labsofscience.footer.ready', 'LabsOfScience Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <LabsOfScienceProvider {...props}>\n <LabsOfScienceRoutes />\n </LabsOfScienceProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AA0BA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAgHtD,QA3GA,QAAgB;AACT,QAqFL,QADgB,EAlFY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,GAAG;IAC5B,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;IACnC,OAAO;IACP,OAA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vB,OAAO;IACP,OAAO;IACR;GACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAGnC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,sBAAsB;GAC7D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
|
|
@@ -1,207 +1,83 @@
|
|
|
1
1
|
import { useLabsOfScience as e } from "./context/LabsOfScienceContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OverviewPage as t } from "./pages/OverviewPage.js";
|
|
3
3
|
import { Suspense as n, lazy as r } from "react";
|
|
4
|
-
import { Navigate as
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { Navigate as i, Route as a, Routes as o, useLocation as s } from "react-router-dom";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
//#region src/labsofscience/LabsOfScienceRoutes.tsx
|
|
7
|
-
var
|
|
8
|
-
className: "flex items-center justify-center
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
}),
|
|
11
|
-
let { basePath: r, isStandalone:
|
|
12
|
-
return
|
|
13
|
-
className: "flex
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
-
fallback: /* @__PURE__ */
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
7
|
+
var u = r(() => import("./pages/projects/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), d = r(() => import("./pages/projects/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), f = r(() => import("./pages/experiments/ExperimentsListPage.js").then((e) => ({ default: e.ExperimentsListPage }))), p = r(() => import("./pages/experiments/ExperimentDetailPage.js").then((e) => ({ default: e.ExperimentDetailPage }))), m = r(() => import("./pages/datasets/DatasetsListPage.js").then((e) => ({ default: e.DatasetsListPage }))), h = r(() => import("./pages/datasets/DatasetDetailPage.js").then((e) => ({ default: e.DatasetDetailPage }))), g = r(() => import("./pages/protocols/ProtocolsListPage.js").then((e) => ({ default: e.ProtocolsListPage }))), _ = r(() => import("./pages/protocols/ProtocolDetailPage.js").then((e) => ({ default: e.ProtocolDetailPage }))), v = r(() => import("./pages/instruments/InstrumentsListPage.js").then((e) => ({ default: e.InstrumentsListPage }))), y = r(() => import("./pages/instruments/InstrumentDetailPage.js").then((e) => ({ default: e.InstrumentDetailPage }))), b = r(() => import("./pages/inventory/InventoryListPage.js").then((e) => ({ default: e.InventoryListPage }))), x = r(() => import("./pages/inventory/InventoryDetailPage.js").then((e) => ({ default: e.InventoryDetailPage }))), S = r(() => import("./pages/notebook/NotebookListPage.js").then((e) => ({ default: e.NotebookListPage }))), C = r(() => import("./pages/pipelines/PipelinesPage.js").then((e) => ({ default: e.PipelinesPage }))), w = () => /* @__PURE__ */ c("div", {
|
|
8
|
+
className: "flex min-h-[400px] items-center justify-center",
|
|
9
|
+
children: /* @__PURE__ */ c("div", { className: "h-8 w-8 animate-spin rounded-full border-b-2 border-primary" })
|
|
10
|
+
}), T = () => {
|
|
11
|
+
let { basePath: r, isStandalone: T } = e(), E = s(), D = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
|
|
12
|
+
return D && !T && !(E.pathname === D || E.pathname.startsWith(D + "/")) ? null : /* @__PURE__ */ c("div", {
|
|
13
|
+
className: "flex min-h-full flex-col",
|
|
14
|
+
children: /* @__PURE__ */ c(n, {
|
|
15
|
+
fallback: /* @__PURE__ */ c(w, {}),
|
|
16
|
+
children: /* @__PURE__ */ l(o, { children: [
|
|
17
|
+
/* @__PURE__ */ c(a, {
|
|
18
18
|
index: !0,
|
|
19
|
-
element: /* @__PURE__ */
|
|
19
|
+
element: /* @__PURE__ */ c(t, {})
|
|
20
20
|
}),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
path: "
|
|
23
|
-
element: /* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ c(a, {
|
|
22
|
+
path: "projects",
|
|
23
|
+
element: /* @__PURE__ */ c(u, {})
|
|
24
24
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
path: "
|
|
27
|
-
element: /* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ c(a, {
|
|
26
|
+
path: "projects/:id",
|
|
27
|
+
element: /* @__PURE__ */ c(d, {})
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
path: "
|
|
31
|
-
element: /* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ c(a, {
|
|
30
|
+
path: "experiments",
|
|
31
|
+
element: /* @__PURE__ */ c(f, {})
|
|
32
32
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
path: "
|
|
35
|
-
element: /* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ c(a, {
|
|
34
|
+
path: "experiments/:id",
|
|
35
|
+
element: /* @__PURE__ */ c(p, {})
|
|
36
36
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
path: "
|
|
39
|
-
element: /* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ c(a, {
|
|
38
|
+
path: "datasets",
|
|
39
|
+
element: /* @__PURE__ */ c(m, {})
|
|
40
40
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
path: "
|
|
43
|
-
element: /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ c(a, {
|
|
42
|
+
path: "datasets/:id",
|
|
43
|
+
element: /* @__PURE__ */ c(h, {})
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
path: "
|
|
47
|
-
element: /* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ c(a, {
|
|
46
|
+
path: "protocols",
|
|
47
|
+
element: /* @__PURE__ */ c(g, {})
|
|
48
48
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
path: "
|
|
51
|
-
element: /* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ c(a, {
|
|
50
|
+
path: "protocols/:id",
|
|
51
|
+
element: /* @__PURE__ */ c(_, {})
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
path: "
|
|
55
|
-
element: /* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ c(a, {
|
|
54
|
+
path: "instruments",
|
|
55
|
+
element: /* @__PURE__ */ c(v, {})
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
path: "
|
|
59
|
-
element: /* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ c(a, {
|
|
58
|
+
path: "instruments/:id",
|
|
59
|
+
element: /* @__PURE__ */ c(y, {})
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
path: "
|
|
63
|
-
element: /* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c(a, {
|
|
62
|
+
path: "inventory",
|
|
63
|
+
element: /* @__PURE__ */ c(b, {})
|
|
64
64
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
path: "
|
|
67
|
-
element: /* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ c(a, {
|
|
66
|
+
path: "inventory/:id",
|
|
67
|
+
element: /* @__PURE__ */ c(x, {})
|
|
68
68
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
path: "
|
|
71
|
-
element: /* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ c(a, {
|
|
70
|
+
path: "notebook",
|
|
71
|
+
element: /* @__PURE__ */ c(S, {})
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
path: "
|
|
75
|
-
element: /* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ c(a, {
|
|
74
|
+
path: "pipelines",
|
|
75
|
+
element: /* @__PURE__ */ c(C, {})
|
|
76
76
|
}),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
path: "cart-owner/service-config",
|
|
79
|
-
element: /* @__PURE__ */ o(x, {})
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ o(i, {
|
|
82
|
-
path: "cart-owner/inventory",
|
|
83
|
-
element: /* @__PURE__ */ o(S, {})
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ o(i, {
|
|
86
|
-
path: "cart-owner/orders",
|
|
87
|
-
element: /* @__PURE__ */ o(C, {})
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ o(i, {
|
|
90
|
-
path: "cart-owner/analytics",
|
|
91
|
-
element: /* @__PURE__ */ o(w, {})
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ o(i, {
|
|
94
|
-
path: "cart-owner/staff",
|
|
95
|
-
element: /* @__PURE__ */ o(T, {})
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ o(i, {
|
|
98
|
-
path: "cart-owner/settings",
|
|
99
|
-
element: /* @__PURE__ */ o(E, {})
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ o(i, {
|
|
102
|
-
path: "cart-owner/profile",
|
|
103
|
-
element: /* @__PURE__ */ o(D, {})
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ o(i, {
|
|
106
|
-
path: "worker/dashboard",
|
|
107
|
-
element: /* @__PURE__ */ o(O, {})
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ o(i, {
|
|
110
|
-
path: "worker/orders",
|
|
111
|
-
element: /* @__PURE__ */ o(k, {})
|
|
112
|
-
}),
|
|
113
|
-
/* @__PURE__ */ o(i, {
|
|
114
|
-
path: "worker/schedule",
|
|
115
|
-
element: /* @__PURE__ */ o(re, {})
|
|
116
|
-
}),
|
|
117
|
-
/* @__PURE__ */ o(i, {
|
|
118
|
-
path: "worker/profile",
|
|
119
|
-
element: /* @__PURE__ */ o(A, {})
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ o(i, {
|
|
122
|
-
path: "worker/task/:taskId",
|
|
123
|
-
element: /* @__PURE__ */ o(j, {})
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ o(i, {
|
|
126
|
-
path: "investor/dashboard",
|
|
127
|
-
element: /* @__PURE__ */ o(M, {})
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ o(i, {
|
|
130
|
-
path: "investor/portfolio",
|
|
131
|
-
element: /* @__PURE__ */ o(N, {})
|
|
132
|
-
}),
|
|
133
|
-
/* @__PURE__ */ o(i, {
|
|
134
|
-
path: "investor/opportunities",
|
|
135
|
-
element: /* @__PURE__ */ o(P, {})
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ o(i, {
|
|
138
|
-
path: "investor/opportunity/:id",
|
|
139
|
-
element: /* @__PURE__ */ o(F, {})
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ o(i, {
|
|
142
|
-
path: "investor/investments/:id",
|
|
143
|
-
element: /* @__PURE__ */ o(F, {})
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ o(i, {
|
|
146
|
-
path: "investor/investments",
|
|
147
|
-
element: /* @__PURE__ */ o(I, {})
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ o(i, {
|
|
150
|
-
path: "investor/analytics",
|
|
151
|
-
element: /* @__PURE__ */ o(L, {})
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ o(i, {
|
|
154
|
-
path: "investor/profile",
|
|
155
|
-
element: /* @__PURE__ */ o(R, {})
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ o(i, {
|
|
158
|
-
path: "admin/dashboard",
|
|
159
|
-
element: /* @__PURE__ */ o(z, {})
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ o(i, {
|
|
162
|
-
path: "admin/users",
|
|
163
|
-
element: /* @__PURE__ */ o(B, {})
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ o(i, {
|
|
166
|
-
path: "admin/carts",
|
|
167
|
-
element: /* @__PURE__ */ o(V, {})
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ o(i, {
|
|
170
|
-
path: "admin/analytics",
|
|
171
|
-
element: /* @__PURE__ */ o(H, {})
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ o(i, {
|
|
174
|
-
path: "admin/orders",
|
|
175
|
-
element: /* @__PURE__ */ o(U, {})
|
|
176
|
-
}),
|
|
177
|
-
/* @__PURE__ */ o(i, {
|
|
178
|
-
path: "admin/profile",
|
|
179
|
-
element: /* @__PURE__ */ o(W, {})
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ o(i, {
|
|
182
|
-
path: "admin/settings",
|
|
183
|
-
element: /* @__PURE__ */ o(G, {})
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ o(i, {
|
|
186
|
-
path: "admin/financial",
|
|
187
|
-
element: /* @__PURE__ */ o(K, {})
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ o(i, {
|
|
190
|
-
path: "notifications",
|
|
191
|
-
element: /* @__PURE__ */ o(q, {})
|
|
192
|
-
}),
|
|
193
|
-
/* @__PURE__ */ o(i, {
|
|
194
|
-
path: "settings",
|
|
195
|
-
element: /* @__PURE__ */ o(J, {})
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ o(i, {
|
|
198
|
-
path: "help",
|
|
199
|
-
element: /* @__PURE__ */ o(Y, {})
|
|
200
|
-
}),
|
|
201
|
-
/* @__PURE__ */ o(i, {
|
|
77
|
+
/* @__PURE__ */ c(a, {
|
|
202
78
|
path: "*",
|
|
203
|
-
element: /* @__PURE__ */
|
|
204
|
-
to: "
|
|
79
|
+
element: /* @__PURE__ */ c(i, {
|
|
80
|
+
to: "",
|
|
205
81
|
replace: !0
|
|
206
82
|
})
|
|
207
83
|
})
|
|
@@ -210,6 +86,6 @@ var s = r(() => import("./pages/customer/CustomerDashboard.js").then((e) => ({ d
|
|
|
210
86
|
});
|
|
211
87
|
};
|
|
212
88
|
//#endregion
|
|
213
|
-
export {
|
|
89
|
+
export { T as LabsOfScienceRoutes };
|
|
214
90
|
|
|
215
91
|
//# sourceMappingURL=LabsOfScienceRoutes.js.map
|