Skip to content

Commit

Permalink
Legacy app Cleanup (#279)
Browse files Browse the repository at this point in the history
* Cleanup

* Add back daos fetch
  • Loading branch information
itexpert120 authored May 3, 2024
1 parent 8fc5332 commit 54e57d3
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 486 deletions.
210 changes: 6 additions & 204 deletions apps/builddao/widget/app.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const { CSS } = VM.require("${config_account}/widget/components.CSS") || {
CSS: () => <></>,
};

const config = {
theme: {
// add key values to define colors
Expand Down Expand Up @@ -100,213 +104,11 @@ const config = {
},
};

const Root = styled.div`
--stroke-color: rgba(255, 255, 255, 0.2);
--bg-1: #000;
--bg-1-hover: #010002;
--bg-1-hover-transparent: rgba(13, 2, 15, 0);
--bg-2: #23242b;
--label-color: #fff;
--font-color: #fff;
--font-muted-color: #cdd0d5;
--black: #000;
--system-red: #fd2a5c;
--yellow: #eca227;
--compose-bg: #23242b;
--post-bg: #23242b;
--post-bg-hover: #1d1f25;
--post-bg-transparent: rgba(23, 24, 28, 0);
--button-primary-bg: #eca227;
--button-outline-bg: transparent;
--button-default-bg: #23242b;
--button-primary-color: #000;
--button-outline-color: #fff;
--button-default-color: #fff;
--button-primary-hover-bg: #e49b48;
--button-outline-hover-bg: rgba(255, 255, 255, 0.2);
--button-default-hover-bg: #17181c;
/* Poppins Font */
@font-face {
font-family: "Poppins";
font-weight: 100;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Thin.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Thin.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Thin.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Thin.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Thin.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 200;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraLight.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraLight.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraLight.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraLight.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraLight.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 300;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Light.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Light.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Light.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Light.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Light.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 400;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Regular.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Regular.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Regular.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Regular.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Regular.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 500;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Medium.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Medium.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Medium.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Medium.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Medium.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 600;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-SemiBold.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-SemiBold.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-SemiBold.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-SemiBold.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-SemiBold.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 700;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Bold.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Bold.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Bold.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Bold.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Bold.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 800;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraBold.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraBold.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraBold.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraBold.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-ExtraBold.ttf")
format("truetype");
font-display: swap;
}
@font-face {
font-family: "Poppins";
font-weight: 900;
font-style: normal;
src: url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Black.eot");
src:
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Black.eot?#iefix")
format("embedded-opentype"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Black.woff2")
format("woff2"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Black.woff")
format("woff"),
url("https://cdn.jsdelivr.net/gh/webfontworld/Poppins/Poppins-Black.ttf")
format("truetype");
font-display: swap;
}
/* Inter Font */
@font-face {
font-family: InterVariable;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("https://rsms.me/inter/font-files/InterVariable.woff2?v=4.0")
format("woff2");
}
@font-face {
font-family: InterVariable;
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("https://rsms.me/inter/font-files/InterVariable-Italic.woff2?v=4.0")
format("woff2");
}
/* Typeahead Fix */
.rbt-token-removeable {
background: #007bff;
color: #fff;
}
`;

return (
<Root>
<CSS>
<Widget
src="${config_account}/widget/app.view"
props={{ config, ...props }}
/>
</Root>
</CSS>
);
Loading

0 comments on commit 54e57d3

Please sign in to comment.