@burdenoff/microfe-ecoimpacthub 2026.509.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/ecoimpacthub/EcoImpactHubRoot.d.ts +5 -0
- package/dist/ecoimpacthub/EcoImpactHubRoot.d.ts.map +1 -0
- package/dist/ecoimpacthub/EcoImpactHubRoot.js +126 -0
- package/dist/ecoimpacthub/EcoImpactHubRoot.js.map +1 -0
- package/dist/ecoimpacthub/EcoImpactHubRoutes.d.ts +2 -0
- package/dist/ecoimpacthub/EcoImpactHubRoutes.d.ts.map +1 -0
- package/dist/ecoimpacthub/EcoImpactHubRoutes.js +55 -0
- package/dist/ecoimpacthub/EcoImpactHubRoutes.js.map +1 -0
- package/dist/ecoimpacthub/index.d.ts +5 -0
- package/dist/ecoimpacthub/index.d.ts.map +1 -0
- package/dist/ecoimpacthub/index.js +3 -0
- package/dist/ecoimpacthub/pages/ActionTrackerPage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/ActionTrackerPage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/ActionTrackerPage.js +449 -0
- package/dist/ecoimpacthub/pages/ActionTrackerPage.js.map +1 -0
- package/dist/ecoimpacthub/pages/ChallengesPage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/ChallengesPage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/ChallengesPage.js +242 -0
- package/dist/ecoimpacthub/pages/ChallengesPage.js.map +1 -0
- package/dist/ecoimpacthub/pages/CitizenSciencePage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/CitizenSciencePage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/CitizenSciencePage.js +443 -0
- package/dist/ecoimpacthub/pages/CitizenSciencePage.js.map +1 -0
- package/dist/ecoimpacthub/pages/CommunityPage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/CommunityPage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/CommunityPage.js +377 -0
- package/dist/ecoimpacthub/pages/CommunityPage.js.map +1 -0
- package/dist/ecoimpacthub/pages/DashboardPage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/DashboardPage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/DashboardPage.js +380 -0
- package/dist/ecoimpacthub/pages/DashboardPage.js.map +1 -0
- package/dist/ecoimpacthub/pages/LearningPage.d.ts +2 -0
- package/dist/ecoimpacthub/pages/LearningPage.d.ts.map +1 -0
- package/dist/ecoimpacthub/pages/LearningPage.js +276 -0
- package/dist/ecoimpacthub/pages/LearningPage.js.map +1 -0
- package/dist/ecoimpacthub/providers/EcoImpactHubProvider.d.ts +6 -0
- package/dist/ecoimpacthub/providers/EcoImpactHubProvider.d.ts.map +1 -0
- package/dist/ecoimpacthub/providers/EcoImpactHubProvider.js +27 -0
- package/dist/ecoimpacthub/providers/EcoImpactHubProvider.js.map +1 -0
- package/dist/ecoimpacthub/store/ecoimpacthubStore.d.ts +135 -0
- package/dist/ecoimpacthub/store/ecoimpacthubStore.d.ts.map +1 -0
- package/dist/ecoimpacthub/store/ecoimpacthubStore.js +551 -0
- package/dist/ecoimpacthub/store/ecoimpacthubStore.js.map +1 -0
- package/dist/ecoimpacthub/types/index.d.ts +51 -0
- package/dist/ecoimpacthub/types/index.d.ts.map +1 -0
- package/dist/ecoimpacthub/utils/cn.d.ts +4 -0
- package/dist/ecoimpacthub/utils/cn.d.ts.map +1 -0
- package/dist/ecoimpacthub/utils/i18n.d.ts +6 -0
- package/dist/ecoimpacthub/utils/i18n.d.ts.map +1 -0
- package/dist/ecoimpacthub/utils/i18n.js +15 -0
- package/dist/ecoimpacthub/utils/i18n.js.map +1 -0
- package/dist/ecoimpacthub/utils/navigation.d.ts +2 -0
- package/dist/ecoimpacthub/utils/navigation.d.ts.map +1 -0
- package/dist/ecoimpacthub/utils/navigation.js +8 -0
- package/dist/ecoimpacthub/utils/navigation.js.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/package.json +107 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# microfe-ecoimpacthub
|
|
2
|
+
|
|
3
|
+
Part of the [Burdenoff](https://burdenoff.com) platform by
|
|
4
|
+
[AlgoShred](https://github.com/algoshred).
|
|
5
|
+
|
|
6
|
+
## Getting Started
|
|
7
|
+
|
|
8
|
+
See `AGENTS.md` for development commands and architecture details.
|
|
9
|
+
|
|
10
|
+
## License
|
|
11
|
+
|
|
12
|
+
Proprietary — Copyright Burdenoff Consultancy Services Pvt. Ltd.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/dev/main.tsx"],"names":[],"mappings":"AAIA,OAAO,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcoImpactHubRoot.d.ts","sourceRoot":"","sources":["../../src/ecoimpacthub/EcoImpactHubRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAiBhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAqHtD,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { EcoImpactHubProvider as e } from "./providers/EcoImpactHubProvider.js";
|
|
2
|
+
import { tWithFallback as t } from "./utils/i18n.js";
|
|
3
|
+
import { EcoImpactHubRoutes as n } from "./EcoImpactHubRoutes.js";
|
|
4
|
+
import { joinPath as r } from "./utils/navigation.js";
|
|
5
|
+
import { useEffect as i } from "react";
|
|
6
|
+
import { BookOpen as a, FileText as o, LayoutDashboard as s, Leaf as c, Microscope as l, Target as u, Trophy as d, User as f, Users as p } from "lucide-react";
|
|
7
|
+
import { FeatureFlagProvider as m } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
8
|
+
import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
10
|
+
//#region src/ecoimpacthub/EcoImpactHubRoot.tsx
|
|
11
|
+
var _ = (_) => {
|
|
12
|
+
let { registerNavItems: v, registerFooterItems: y, basePath: b = "/" } = _, { t: x } = h(), S = (e, n) => t(x, e, n);
|
|
13
|
+
return i(() => {
|
|
14
|
+
if (v) return v({
|
|
15
|
+
id: "ecoimpacthub",
|
|
16
|
+
label: S("ecoimpacthub.nav.root", "EcoImpactHub"),
|
|
17
|
+
path: b,
|
|
18
|
+
icon: /* @__PURE__ */ g(c, { size: 20 }),
|
|
19
|
+
order: 80,
|
|
20
|
+
group: "products",
|
|
21
|
+
children: [
|
|
22
|
+
{
|
|
23
|
+
id: "ecoimpacthub-dashboard",
|
|
24
|
+
label: S("ecoimpacthub.nav.dashboard", "Dashboard"),
|
|
25
|
+
path: b,
|
|
26
|
+
icon: /* @__PURE__ */ g(s, { size: 16 }),
|
|
27
|
+
order: 0
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "ecoimpacthub-action-tracker",
|
|
31
|
+
label: S("ecoimpacthub.nav.actionTracker", "Action Tracker"),
|
|
32
|
+
path: r(b, "action-tracker"),
|
|
33
|
+
icon: /* @__PURE__ */ g(u, { size: 16 }),
|
|
34
|
+
order: 1
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "ecoimpacthub-challenges",
|
|
38
|
+
label: S("ecoimpacthub.nav.challenges", "Challenges"),
|
|
39
|
+
path: r(b, "challenges"),
|
|
40
|
+
icon: /* @__PURE__ */ g(d, { size: 16 }),
|
|
41
|
+
order: 2
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "ecoimpacthub-citizen-science",
|
|
45
|
+
label: S("ecoimpacthub.nav.citizenScience", "Citizen Science"),
|
|
46
|
+
path: r(b, "citizen-science"),
|
|
47
|
+
icon: /* @__PURE__ */ g(l, { size: 16 }),
|
|
48
|
+
order: 3
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "ecoimpacthub-community",
|
|
52
|
+
label: S("ecoimpacthub.nav.community", "Community"),
|
|
53
|
+
path: r(b, "community"),
|
|
54
|
+
icon: /* @__PURE__ */ g(p, { size: 16 }),
|
|
55
|
+
order: 4
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "ecoimpacthub-learning",
|
|
59
|
+
label: S("ecoimpacthub.nav.learning", "Learning"),
|
|
60
|
+
path: r(b, "learning"),
|
|
61
|
+
icon: /* @__PURE__ */ g(a, { size: 16 }),
|
|
62
|
+
order: 5
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "ecoimpacthub-profile",
|
|
66
|
+
label: S("ecoimpacthub.nav.profile", "Profile"),
|
|
67
|
+
path: r(b, "profile"),
|
|
68
|
+
icon: /* @__PURE__ */ g(f, { size: 16 }),
|
|
69
|
+
order: 6
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "ecoimpacthub-home",
|
|
73
|
+
label: S("ecoimpacthub.nav.home", "Home"),
|
|
74
|
+
path: r(b, "home"),
|
|
75
|
+
icon: /* @__PURE__ */ g(c, { size: 16 }),
|
|
76
|
+
order: 7
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "ecoimpacthub-privacy",
|
|
80
|
+
label: S("ecoimpacthub.nav.privacy", "Privacy"),
|
|
81
|
+
path: r(b, "privacy"),
|
|
82
|
+
icon: /* @__PURE__ */ g(o, { size: 16 }),
|
|
83
|
+
order: 8
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: "ecoimpacthub-terms",
|
|
87
|
+
label: S("ecoimpacthub.nav.terms", "Terms"),
|
|
88
|
+
path: r(b, "terms"),
|
|
89
|
+
icon: /* @__PURE__ */ g(o, { size: 16 }),
|
|
90
|
+
order: 9
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "ecoimpacthub-cookies",
|
|
94
|
+
label: S("ecoimpacthub.nav.cookies", "Cookies"),
|
|
95
|
+
path: r(b, "cookies"),
|
|
96
|
+
icon: /* @__PURE__ */ g(o, { size: 16 }),
|
|
97
|
+
order: 10
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
});
|
|
101
|
+
}, [
|
|
102
|
+
v,
|
|
103
|
+
b,
|
|
104
|
+
x
|
|
105
|
+
]), i(() => {
|
|
106
|
+
if (y) return y([{
|
|
107
|
+
id: "ecoimpacthub-status",
|
|
108
|
+
label: S("ecoimpacthub.footer.ready", "EcoImpactHub Ready"),
|
|
109
|
+
type: "status",
|
|
110
|
+
section: "left",
|
|
111
|
+
order: 10
|
|
112
|
+
}]);
|
|
113
|
+
}, [y, x]), /* @__PURE__ */ g(m, {
|
|
114
|
+
workspaceId: null,
|
|
115
|
+
gateway: "global",
|
|
116
|
+
defaultEnabled: !0,
|
|
117
|
+
children: /* @__PURE__ */ g(e, {
|
|
118
|
+
..._,
|
|
119
|
+
children: /* @__PURE__ */ g(n, {})
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
export { _ as EcoImpactHubRoot };
|
|
125
|
+
|
|
126
|
+
//# sourceMappingURL=EcoImpactHubRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcoImpactHubRoot.js","names":[],"sources":["../../src/ecoimpacthub/EcoImpactHubRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport {\n LayoutDashboard,\n Leaf,\n Trophy,\n Microscope,\n Users,\n BookOpen,\n Target,\n User,\n FileText,\n} from 'lucide-react';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { EcoImpactHubRoutes } from './EcoImpactHubRoutes';\nimport { EcoImpactHubProvider } from './providers/EcoImpactHubProvider';\nimport type { NavItem, EcoImpactHubRootProps } from './types';\nimport { tWithFallback } from './utils/i18n';\nimport { joinPath } from './utils/navigation';\n\nexport const EcoImpactHubRoot: FC<EcoImpactHubRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t } = useI18n();\n const translate = (key: string, fallback: string) => tWithFallback(t, key, fallback);\n\n useEffect(() => {\n if (!registerNavItems) return;\n const navItem: NavItem = {\n id: 'ecoimpacthub',\n label: translate('ecoimpacthub.nav.root', 'EcoImpactHub'),\n path: basePath,\n icon: <Leaf size={20} />,\n order: 80,\n group: 'products',\n children: [\n {\n id: 'ecoimpacthub-dashboard',\n label: translate('ecoimpacthub.nav.dashboard', 'Dashboard'),\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 0,\n },\n {\n id: 'ecoimpacthub-action-tracker',\n label: translate('ecoimpacthub.nav.actionTracker', 'Action Tracker'),\n path: joinPath(basePath, 'action-tracker'),\n icon: <Target size={16} />,\n order: 1,\n },\n {\n id: 'ecoimpacthub-challenges',\n label: translate('ecoimpacthub.nav.challenges', 'Challenges'),\n path: joinPath(basePath, 'challenges'),\n icon: <Trophy size={16} />,\n order: 2,\n },\n {\n id: 'ecoimpacthub-citizen-science',\n label: translate('ecoimpacthub.nav.citizenScience', 'Citizen Science'),\n path: joinPath(basePath, 'citizen-science'),\n icon: <Microscope size={16} />,\n order: 3,\n },\n {\n id: 'ecoimpacthub-community',\n label: translate('ecoimpacthub.nav.community', 'Community'),\n path: joinPath(basePath, 'community'),\n icon: <Users size={16} />,\n order: 4,\n },\n {\n id: 'ecoimpacthub-learning',\n label: translate('ecoimpacthub.nav.learning', 'Learning'),\n path: joinPath(basePath, 'learning'),\n icon: <BookOpen size={16} />,\n order: 5,\n },\n {\n id: 'ecoimpacthub-profile',\n label: translate('ecoimpacthub.nav.profile', 'Profile'),\n path: joinPath(basePath, 'profile'),\n icon: <User size={16} />,\n order: 6,\n },\n {\n id: 'ecoimpacthub-home',\n label: translate('ecoimpacthub.nav.home', 'Home'),\n path: joinPath(basePath, 'home'),\n icon: <Leaf size={16} />,\n order: 7,\n },\n {\n id: 'ecoimpacthub-privacy',\n label: translate('ecoimpacthub.nav.privacy', 'Privacy'),\n path: joinPath(basePath, 'privacy'),\n icon: <FileText size={16} />,\n order: 8,\n },\n {\n id: 'ecoimpacthub-terms',\n label: translate('ecoimpacthub.nav.terms', 'Terms'),\n path: joinPath(basePath, 'terms'),\n icon: <FileText size={16} />,\n order: 9,\n },\n {\n id: 'ecoimpacthub-cookies',\n label: translate('ecoimpacthub.nav.cookies', 'Cookies'),\n path: joinPath(basePath, 'cookies'),\n icon: <FileText size={16} />,\n order: 10,\n },\n ],\n };\n return registerNavItems(navItem);\n }, [registerNavItems, basePath, t]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'ecoimpacthub-status',\n label: translate('ecoimpacthub.footer.ready', 'EcoImpactHub Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, t]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <EcoImpactHubProvider {...props}>\n <EcoImpactHubRoutes />\n </EcoImpactHubProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcoImpactHubRoutes.d.ts","sourceRoot":"","sources":["../../src/ecoimpacthub/EcoImpactHubRoutes.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,kBAAkB,4CAcjC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DashboardPage as e } from "./pages/DashboardPage.js";
|
|
2
|
+
import { Suspense as t, lazy as n } from "react";
|
|
3
|
+
import { Loader2 as r } from "lucide-react";
|
|
4
|
+
import { Navigate as i, Route as a, Routes as o } from "react-router-dom";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
//#region src/ecoimpacthub/EcoImpactHubRoutes.tsx
|
|
7
|
+
var l = n(() => import("./pages/ChallengesPage.js").then((e) => ({ default: e.ChallengesPage }))), u = n(() => import("./pages/CitizenSciencePage.js").then((e) => ({ default: e.CitizenSciencePage }))), d = n(() => import("./pages/CommunityPage.js").then((e) => ({ default: e.CommunityPage }))), f = n(() => import("./pages/ActionTrackerPage.js").then((e) => ({ default: e.ActionTrackerPage }))), p = n(() => import("./pages/LearningPage.js").then((e) => ({ default: e.LearningPage })));
|
|
8
|
+
function m() {
|
|
9
|
+
return /* @__PURE__ */ s("div", {
|
|
10
|
+
className: "flex min-h-[320px] items-center justify-center",
|
|
11
|
+
children: /* @__PURE__ */ s(r, { className: "h-8 w-8 animate-spin text-primary" })
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function h() {
|
|
15
|
+
return /* @__PURE__ */ s(t, {
|
|
16
|
+
fallback: /* @__PURE__ */ s(m, {}),
|
|
17
|
+
children: /* @__PURE__ */ c(o, { children: [
|
|
18
|
+
/* @__PURE__ */ s(a, {
|
|
19
|
+
index: !0,
|
|
20
|
+
element: /* @__PURE__ */ s(e, {})
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ s(a, {
|
|
23
|
+
path: "challenges",
|
|
24
|
+
element: /* @__PURE__ */ s(l, {})
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ s(a, {
|
|
27
|
+
path: "citizen-science",
|
|
28
|
+
element: /* @__PURE__ */ s(u, {})
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ s(a, {
|
|
31
|
+
path: "community",
|
|
32
|
+
element: /* @__PURE__ */ s(d, {})
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ s(a, {
|
|
35
|
+
path: "action-tracker",
|
|
36
|
+
element: /* @__PURE__ */ s(f, {})
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ s(a, {
|
|
39
|
+
path: "learning",
|
|
40
|
+
element: /* @__PURE__ */ s(p, {})
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ s(a, {
|
|
43
|
+
path: "*",
|
|
44
|
+
element: /* @__PURE__ */ s(i, {
|
|
45
|
+
to: "",
|
|
46
|
+
replace: !0
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
] })
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { h as EcoImpactHubRoutes };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=EcoImpactHubRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcoImpactHubRoutes.js","names":[],"sources":["../../src/ecoimpacthub/EcoImpactHubRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router-dom';\nimport { Loader2 } from 'lucide-react';\nimport { DashboardPage as IndexPage } from './pages/DashboardPage';\n\nconst ChallengesPage = lazy(() =>\n import('./pages/ChallengesPage').then((m) => ({ default: m.ChallengesPage }))\n);\nconst CitizenSciencePage = lazy(() =>\n import('./pages/CitizenSciencePage').then((m) => ({ default: m.CitizenSciencePage }))\n);\nconst CommunityPage = lazy(() =>\n import('./pages/CommunityPage').then((m) => ({ default: m.CommunityPage }))\n);\nconst ActionTrackerPage = lazy(() =>\n import('./pages/ActionTrackerPage').then((m) => ({ default: m.ActionTrackerPage }))\n);\nconst LearningPage = lazy(() =>\n import('./pages/LearningPage').then((m) => ({ default: m.LearningPage }))\n);\n\nfunction PageLoader() {\n return (\n <div className=\"flex min-h-[320px] items-center justify-center\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n );\n}\n\nexport function EcoImpactHubRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<IndexPage />} />\n <Route path=\"challenges\" element={<ChallengesPage />} />\n <Route path=\"citizen-science\" element={<CitizenSciencePage />} />\n <Route path=\"community\" element={<CommunityPage />} />\n <Route path=\"action-tracker\" element={<ActionTrackerPage />} />\n <Route path=\"learning\" element={<LearningPage />} />\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AAKA,IAAM,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAqB,QACzB,OAAO,iCAA8B,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACtF,EACK,IAAgB,QACpB,OAAO,4BAAyB,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAC5E,EACK,IAAoB,QACxB,OAAO,gCAA6B,MAAM,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CACpF,EACK,IAAe,QACnB,OAAO,2BAAwB,MAAM,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAC1E;AAED,SAAS,IAAa;AACpB,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAS,WAAU,qCAAsC,CAAA;EACrD,CAAA;;AAIV,SAAgB,IAAqB;AACnC,QACE,kBAAC,GAAD;EAAU,UAAU,kBAAC,GAAD,EAAc,CAAA;YAChC,kBAAC,GAAD,EAAA,UAAA;GACE,kBAAC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAAC,GAAD,EAAa,CAAA;IAAI,CAAA;GACvC,kBAAC,GAAD;IAAO,MAAK;IAAa,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GACxD,kBAAC,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAiB,CAAA;IAAI,CAAA;GACtD,kBAAC,GAAD;IAAO,MAAK;IAAiB,SAAS,kBAAC,GAAD,EAAqB,CAAA;IAAI,CAAA;GAC/D,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,EAAgB,CAAA;IAAI,CAAA;GACpD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { EcoImpactHubRoot } from './EcoImpactHubRoot';
|
|
2
|
+
export type { EcoImpactHubRootProps, NavItem, FooterItem } from './types';
|
|
3
|
+
export { useEcoImpactHub } from './providers/EcoImpactHubProvider';
|
|
4
|
+
export { useEcoImpactHubStore } from './store/ecoimpacthubStore';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ecoimpacthub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionTrackerPage.d.ts","sourceRoot":"","sources":["../../../src/ecoimpacthub/pages/ActionTrackerPage.tsx"],"names":[],"mappings":"AAiCA,wBAAgB,iBAAiB,4CA6XhC"}
|