diff --git a/instances/devhub.near/widget/devhub/page/proposals.jsx b/instances/devhub.near/widget/devhub/page/proposals.jsx
index 635bc388d..bc53a07e5 100644
--- a/instances/devhub.near/widget/devhub/page/proposals.jsx
+++ b/instances/devhub.near/widget/devhub/page/proposals.jsx
@@ -1,96 +1,8 @@
-const announcement = (
-
-
-
-
-
-
-
- Welcome to
-
- DevDAO’s New Proposal Feed!
-
-
- This dedicated space replaces the
-
- old activity feed
-
- , making it easier to submit and track funding requests from DevDAO, the
- primary organization behind DevHub. To submit a formal proposal, click
- New Proposal. See our{" "}
-
- guidelines
-
- for details. For discussions and brainstorming, please utilize the
- relevant{" "}
-
- communities
-
- .
-
-
-
-);
-const categoryOptions = [
- {
- title: "DevDAO Operations",
- value: "DevDAO Operations",
- },
- {
- title: "DevDAO Platform",
- value: "DevDAO Platform",
- },
- {
- title: "Events & Hackathons",
- value: "Events & Hackathons",
- },
- {
- title: "Engagement & Awareness",
- value: "Engagement & Awareness",
- },
- {
- title: "Decentralized DevRel",
- value: "Decentralized DevRel",
- },
- {
- title: "Universities & Bootcamps",
- value: "Universities & Bootcamps",
- },
- {
- title: "Tooling & Infrastructure",
- value: "Tooling & Infrastructure",
- },
- {
- title: "Other",
- value: "Other",
- },
-];
return (
);
diff --git a/instances/events-committee.near/widget/app.jsx b/instances/events-committee.near/widget/app.jsx
index ffd22fb97..e873d793d 100644
--- a/instances/events-committee.near/widget/app.jsx
+++ b/instances/events-committee.near/widget/app.jsx
@@ -14,9 +14,10 @@ const { AppLayout } = VM.require(
"${REPL_EVENTS}/widget/devhub.components.templates.AppLayout"
);
-const { Theme } = VM.require("${REPL_EVENTS}/widget/config.css");
+const { Theme } = VM.require("${REPL_EVENTS}/widget/config.theme");
+const { CssContainer } = VM.require("${REPL_EVENTS}/widget/config.css");
-if (!AppLayout || !Theme) {
+if (!AppLayout || !Theme || !CssContainer) {
return
Loading modules...
;
}
@@ -92,8 +93,10 @@ function Page() {
return (
-
-
-
+
+
+
+
+
);
diff --git a/instances/events-committee.near/widget/config/css.jsx b/instances/events-committee.near/widget/config/css.jsx
index da3b91768..394c3acf3 100644
--- a/instances/events-committee.near/widget/config/css.jsx
+++ b/instances/events-committee.near/widget/config/css.jsx
@@ -1,6 +1,4 @@
-const Theme = styled.div`
- --theme-color: rgb(3, 186, 22);
-
+const CssContainer = styled.div`
.theme-btn {
background-color: var(--theme-color) !important;
border: none;
@@ -16,4 +14,4 @@ const Theme = styled.div`
}
`;
-return { Theme };
+return { CssContainer };
diff --git a/instances/events-committee.near/widget/config/data.jsx b/instances/events-committee.near/widget/config/data.jsx
new file mode 100644
index 000000000..b16e70e46
--- /dev/null
+++ b/instances/events-committee.near/widget/config/data.jsx
@@ -0,0 +1,52 @@
+const proposalFeedAnnouncement = (
+
+
+
+
+
+
+
+ Welcome to the Events Committee Proposal Feed!
+
+ This dedicated space makes it easy to submit and track funding proposals
+ from the Events Committee, the cross-team organization responsible for
+ hosting and sponsoring developer-focused events. You are welcome to
+ respond to any RFPs that are accepting submissions or submit an
+ independent proposal.
+
+
+
+);
+
+const categoryOptions = [
+ { title: "Bounty", value: "Bounty", color: [124, 102, 220] },
+ {
+ title: "Bounty booster",
+ value: "Bounty booster",
+ color: [220, 194, 102],
+ },
+ { title: "Hackathon", value: "Hackathon", color: [4, 164, 110] },
+ { title: "Hackbox", value: "Hackbox", color: [220, 102, 102] },
+ {
+ title: "Event sponsorship",
+ value: "Event sponsorship",
+ color: [13, 174, 187],
+ },
+ { title: "Meetup", value: "Meetup", color: [220, 152, 102] },
+ {
+ title: "Travel expenses",
+ value: "Travel expenses",
+ color: [211, 102, 220],
+ },
+ { title: "Other", value: "Other", color: [155, 161, 166] },
+];
+
+return {
+ contract: "events-committee.near",
+ proposalFeedIndexerQueryName:
+ "thomasguntenaar_near_event_committee_prod_v1_proposals_with_latest_snapshot",
+ indexerHasuraRole: "thomasguntenaar_near",
+ isEvents: true,
+ proposalFeedAnnouncement,
+ availableCategoryOptions: categoryOptions,
+};
diff --git a/instances/events-committee.near/widget/config/theme.jsx b/instances/events-committee.near/widget/config/theme.jsx
new file mode 100644
index 000000000..2d4b5c023
--- /dev/null
+++ b/instances/events-committee.near/widget/config/theme.jsx
@@ -0,0 +1,5 @@
+const Theme = styled.div`
+ --theme-color: rgb(3, 186, 22);
+`;
+
+return { Theme };
diff --git a/instances/events-committee.near/widget/devhub/page/proposals.jsx b/instances/events-committee.near/widget/devhub/page/proposals.jsx
index 0603bed0c..3b4a79dec 100644
--- a/instances/events-committee.near/widget/devhub/page/proposals.jsx
+++ b/instances/events-committee.near/widget/devhub/page/proposals.jsx
@@ -1,53 +1,8 @@
-const announcement = (
-
-
-
-
-
-
-
- Welcome to the Events Committee Proposal Feed!
-
- This dedicated space makes it easy to submit and track funding proposals
- from the Events Committee, the cross-team organization responsible for
- hosting and sponsoring developer-focused events. You are welcome to
- respond to any RFPs that are accepting submissions or submit an
- independent proposal.
-
-
-
-);
-
-const labels = [
- { title: "Bounty", value: "Bounty", color: [124, 102, 220] },
- {
- title: "Bounty booster",
- value: "Bounty booster",
- color: [220, 194, 102],
- },
- { title: "Hackathon", value: "Hackathon", color: [4, 164, 110] },
- { title: "Hackbox", value: "Hackbox", color: [220, 102, 102] },
- {
- title: "Event sponsorship",
- value: "Event sponsorship",
- color: [13, 174, 187],
- },
- { title: "Meetup", value: "Meetup", color: [220, 152, 102] },
- {
- title: "Travel expenses",
- value: "Travel expenses",
- color: [211, 102, 220],
- },
- { title: "Other", value: "Other", color: [155, 161, 166] },
-];
-
return (
);
diff --git a/instances/infrastructure-committee.near/widget/app.jsx b/instances/infrastructure-committee.near/widget/app.jsx
index 6dd2772d7..a808c2b8a 100644
--- a/instances/infrastructure-committee.near/widget/app.jsx
+++ b/instances/infrastructure-committee.near/widget/app.jsx
@@ -11,10 +11,14 @@ const { AppLayout } = VM.require(
);
const { Theme } = VM.require(
+ `${REPL_INFRASTRUCTURE_COMMITTEE}/widget/config.theme`
+);
+
+const { CssContainer } = VM.require(
`${REPL_INFRASTRUCTURE_COMMITTEE}/widget/config.css`
);
-if (!AppLayout || !Theme) {
+if (!AppLayout || !Theme || !CssContainer) {
return
Loading modules...
;
}
@@ -109,8 +113,10 @@ function Page() {
return (
-
-
-
+
+
+
+
+
);
diff --git a/instances/infrastructure-committee.near/widget/components/proposals/Proposals.jsx b/instances/infrastructure-committee.near/widget/components/proposals/Proposals.jsx
index b1d213a88..eb97875f5 100644
--- a/instances/infrastructure-committee.near/widget/components/proposals/Proposals.jsx
+++ b/instances/infrastructure-committee.near/widget/components/proposals/Proposals.jsx
@@ -1,35 +1,8 @@
-const { getGlobalLabels } = VM.require(
- `${REPL_INFRASTRUCTURE_COMMITTEE}/widget/components.core.lib.contract`
-) || { getGlobalLabels: () => {} };
-
-const announcement = (
-
-
-
-
-
-
-
- Welcome to the Infrastructure Committee Proposal Feed!
-
- This dedicated space makes it easy to submit and track funding proposals
- from the Infrastructure Committee, the primary organization overseeing
- improvements pertaining to wallets, indexers, RPC services, explorers,
- oracles, bridges, NEAR Protocol features, and related ecosystem
- upgrades. You are welcome to respond to any RFPs that are accepting
- submissions or submit an independent proposal.
-
-
-
-);
-
return (
);
diff --git a/instances/infrastructure-committee.near/widget/config/css.jsx b/instances/infrastructure-committee.near/widget/config/css.jsx
index 40cd90bbc..4925f7dfe 100644
--- a/instances/infrastructure-committee.near/widget/config/css.jsx
+++ b/instances/infrastructure-committee.near/widget/config/css.jsx
@@ -1,6 +1,4 @@
-const Theme = styled.div`
- --theme-color: rgb(60, 105, 125);
-
+const CssContainer = styled.div`
.theme-btn {
background-color: var(--theme-color) !important;
border: none;
@@ -21,4 +19,4 @@ const Theme = styled.div`
}
`;
-return { Theme };
+return { CssContainer };
diff --git a/instances/infrastructure-committee.near/widget/config/data.jsx b/instances/infrastructure-committee.near/widget/config/data.jsx
new file mode 100644
index 000000000..b1a84eaa2
--- /dev/null
+++ b/instances/infrastructure-committee.near/widget/config/data.jsx
@@ -0,0 +1,71 @@
+const { getGlobalLabels } = VM.require(
+ `${REPL_INFRASTRUCTURE_COMMITTEE}/widget/components.core.lib.contract`
+) || { getGlobalLabels: () => {} };
+
+const proposalFeedAnnouncement = (
+
+
+
+
+
+
+
+ Welcome to the Infrastructure Committee Proposal Feed!
+
+ This dedicated space makes it easy to submit and track funding proposals
+ from the Infrastructure Committee, the primary organization overseeing
+ improvements pertaining to wallets, indexers, RPC services, explorers,
+ oracles, bridges, NEAR Protocol features, and related ecosystem
+ upgrades. You are welcome to respond to any RFPs that are accepting
+ submissions or submit an independent proposal.
+
+
+
+);
+
+const categoryOptions = [
+ {
+ title: "DevDAO Operations",
+ value: "DevDAO Operations",
+ },
+ {
+ title: "DevDAO Platform",
+ value: "DevDAO Platform",
+ },
+ {
+ title: "Events & Hackathons",
+ value: "Events & Hackathons",
+ },
+ {
+ title: "Engagement & Awareness",
+ value: "Engagement & Awareness",
+ },
+ {
+ title: "Decentralized DevRel",
+ value: "Decentralized DevRel",
+ },
+ {
+ title: "Universities & Bootcamps",
+ value: "Universities & Bootcamps",
+ },
+ {
+ title: "Tooling & Infrastructure",
+ value: "Tooling & Infrastructure",
+ },
+ {
+ title: "Other",
+ value: "Other",
+ },
+];
+
+return {
+ contract: "infrastructure-committee.near",
+ proposalFeedIndexerQueryName:
+ "polyprogrammist_near_devhub_ic_v1_proposals_with_latest_snapshot",
+ rfpFeedIndexerQueryName:
+ "polyprogrammist_near_devhub_ic_v1_rfps_with_latest_snapshot",
+ indexerHasuraRole: "polyprogrammist_near",
+ isInfra: true,
+ proposalFeedAnnouncement,
+ aavailableCategoryOptions: getGlobalLabels(),
+};
diff --git a/instances/infrastructure-committee.near/widget/config/theme.jsx b/instances/infrastructure-committee.near/widget/config/theme.jsx
new file mode 100644
index 000000000..137c824a0
--- /dev/null
+++ b/instances/infrastructure-committee.near/widget/config/theme.jsx
@@ -0,0 +1,5 @@
+const Theme = styled.div`
+ --theme-color: rgb(60, 105, 125);
+`;
+
+return { Theme };