From 5b0195991a6ab4b8d7afbaa594362cf55ca3fd5c Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 30 Jul 2024 08:34:22 +0800 Subject: [PATCH 1/3] add steer and skyrangers --- public/img/icon-skyrangers.png | Bin 0 -> 6139 bytes public/img/icon-steer.png | Bin 0 -> 3301 bytes src/components/DashboardS2/Tabs/EcoDApps.tsx | 124 ++++++++++++++++--- src/pages/DashboardS2/index2.tsx | 10 +- vite.config.ts | 4 +- 5 files changed, 117 insertions(+), 21 deletions(-) create mode 100644 public/img/icon-skyrangers.png create mode 100644 public/img/icon-steer.png diff --git a/public/img/icon-skyrangers.png b/public/img/icon-skyrangers.png new file mode 100644 index 0000000000000000000000000000000000000000..01e9501dae5ee50fa097ff51e72e1da7dc168c46 GIT binary patch literal 6139 zcmV?5d=Q<0|ATSHgqKkV>kOJQ?2d zX#WBUJE5H7!J^7Z0mepvxZiX`j08xd%SaksMn^N6bM4+c-&%Y3nKO0_0^?S-rq4Ou zd+&Ao*07O=Ga@nQp& z#}aEF=f`6Dy$#w1wrvyG_6ui0C%AP#iAAmcard~332X4=`DcE)6JPT9QUb2{(T~TB zwL55$lD9$2Pzy(Pi%tc#-f}i@_Xq7ldW)v6YmH6aSDu;(5kGnUS6|$sUr4~xO#3}@8tDUiao=0pHdeyl%+4r@o;>@jofEjq ziNR8h>l`C0gz{OcMl4q>9G&K@Iyd-o& zi+-FAoUp2~;M*M=Mo>Ap_vJ4wpa@3|KA~Fl!iiOaC~{AxLWw8ASw+q$l5{R^We{c} z1es99jG`=}OjgH|d*rW45*;&_&GOn{f&BvS|7tlOi$;VEJQ&-t&UH7Va%kVnUs%A> zPyYE4Yr~(pxtuG?soIZHH*`~*mUSbwW|ND~YS`1vX6qRZX zaS|h+FYwH(QW}kVn>%9ORc(75%WR<+A8DM9b*$SsQT^z^zN;3n^yuRy69v1Bu>~1V zV@G4mof=P?%luSg*-S>yFiYp6b;4{0Nz$Y%ClqP`TkqJ4`|i09YuB$wp|cZ}N)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)Fl&c(OW&);eC6`G1)z()_>Cm|Baq0k_wl&K9#a+g1XPDSEfX6N? zy!6r-?K5=Qj)Z1O%$qE3mnCvABwkb+H9bg?q%{$+Jen)tR82O@6|VmqHaK~bjilEi z3=ijB0`9hj0pC^la!3cfWj-)2aq#1`oi$TsHgj1?kjdEi5~*5^@$Yw75}o)0@4jnL zjW+N*X-qMQ$U2r%k|0P@u3TTVbt1MmYZ6SABw1FP_Qk6A*XR&zZzkDiY6a) zxCC4iR9Dv&wr)}QFRP20lC@2&8tnw4 zUL8Pg_HnfgKz~19U0X60bIj#KLDnVF%2ncJVz5+;lJWV{_vREdKL;8K+Lq z;_bJYXisud6t+8w^IOJ9DrHf3@$IY!@FJxTcRFaRsEEi-ptE z8j<6x%|F;9j|*^0bYaNi?Acj&Tx4I=xcOk<>@Z`3q_FkgHr6I_OlAQv{|Hx;;QE$Y zvur=ygDj3ab(I{E4nP~u7C4|Rj#rUuvlzJ);@xv4oIX8+^B>UG%Iu=)tZzfO@gN;i z;B8ertexAenlsUhSx*5RumW8m$bMzQXH8IYT{9`dA9*Cp!c}ofRK(~QB}Hk*%EvaH zb`@PmiOuylvvx(+{CMAFFUOTfXfr(`MMRMUBT|aR4n;yP|CC;6I(?M|%nos1pCq`! zX3tqs(RFNK{UBY#!^-52TBd3?6c9NVm;>6Nq{;!OM>@(OZKBkEMP~P|1f0;SbE5C{ z4fn9I)UR!D$Y*AO3lHKE-LP}fvoEWr!9*nou?lLr@gYD%mFcGg`VKA6Wj}gRYPMpg z#*MFTj;|J2-L=vqIwG0%KT1`4Xr(O>u`lbTb(F6CY+6s=rwXv1WPF@VkLBoEIEPHy jmE%^Lvnl^qf_nNtmBC$wMn73200000NkvXXu0mjf(0Mjf literal 0 HcmV?d00001 diff --git a/src/components/DashboardS2/Tabs/EcoDApps.tsx b/src/components/DashboardS2/Tabs/EcoDApps.tsx index 0462da84..15b7a944 100644 --- a/src/components/DashboardS2/Tabs/EcoDApps.tsx +++ b/src/components/DashboardS2/Tabs/EcoDApps.tsx @@ -9,6 +9,10 @@ import useNovaPoints from "@/hooks/useNovaPoints"; import { formatNumberWithUnit } from "@/utils"; import { Button, + Dropdown, + DropdownItem, + DropdownMenu, + DropdownTrigger, Modal, ModalBody, ModalContent, @@ -247,6 +251,7 @@ interface EcoDAppItem { description: string; action: string; actionLink?: string; + actionLinks?: string[]; descriptionTooltip?: string; }[]; idFeatured?: boolean; @@ -304,7 +309,7 @@ const EcoDApp = (props: { handleLink(data.link); }} > - {data.name} + {data.name}
{data.handler}
@@ -440,20 +445,54 @@ const EcoDApp = (props: {
Action
-
-
handleLink(detail.actionLink || data.link)} - > - {detail.action} + {detail.actionLinks ? ( + + +
+
+ {detail.action} +
+ +
+
+ + {detail.actionLinks.map((link, index) => ( + handleLink(link)} + > + {link} + + ))} + +
+ ) : ( +
+
handleLink(detail.actionLink || data.link)} + > + {detail.action} +
+
- -
+ )}
))} @@ -1009,6 +1048,63 @@ export default function EcoDApps({ }, ], }, + { + category: "spotdex", + iconURL: "/img/icon-steer.png", + name: "Steer", + link: "https://app.steer.finance/novaswap", + handler: "@steerprotocol", + type: "DEX", + rewardsIcon: [ + { name: "Nova Points", iconURL: "/img/icon-rewards-nova.svg" }, + ], + rewards: "20x Boost", + holdingPoints: getHoldingPointsByProject("steer"), + totalPoints: getTotalPointsByProject("steer"), + details: [ + { + booster: ( +
+

20x for ETH, WETH, Merged WBTC, USDT, USDC

+

+ 10x for canonically bridged tokens eligible to earn points +

+
+ ), + description: `You earn points based on the liquidity you've supplied to the pool over a specific period, with the points multiplied accordingly.`, + action: "Provide Liquidity", + }, + ], + }, + { + category: "gamefi", + iconURL: "/img/icon-skyrangers.png", + name: "Sky Rangers", + link: "https://statics.skyrangers.io/", + handler: "@OfficialSkyRang", + type: "DEX", + rewardsIcon: [ + { name: "Nova Points", iconURL: "/img/icon-rewards-nova.svg" }, + ], + rewards: "Interaction", + holdingPoints: getHoldingPointsByProject("skyrangers"), + totalPoints: getTotalPointsByProject("skyrangers"), + details: [ + { + booster: ( +
+

Open Blindbox, NFT Level Up, ZKL Deposit, ZKL Withdraw

+
+ ), + description: `With a total 5x of any supported actions, you can receive 1 Nova Points.`, + action: "Play now", + actionLinks: [ + "https://statics.skyrangers.io/", + "https://t.me/SkyRangers_bot", + ], + }, + ], + }, ]; return tabActive diff --git a/src/pages/DashboardS2/index2.tsx b/src/pages/DashboardS2/index2.tsx index 89f20a08..5d635cb1 100644 --- a/src/pages/DashboardS2/index2.tsx +++ b/src/pages/DashboardS2/index2.tsx @@ -339,11 +339,11 @@ export default function Dashboard() { name: "Lending", category: "lending", }, - // { - // iconURL: "/img/icon-sector-6.svg", - // name: "GameFi", - // category: "gamefi", - // }, + { + iconURL: "/img/icon-sector-6.svg", + name: "GameFi", + category: "gamefi", + }, { iconURL: "/img/icon-sector-7.svg", name: "Others", diff --git a/vite.config.ts b/vite.config.ts index 9bc30499..80419bc0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -47,8 +47,8 @@ export default defineConfig({ port: 3001, proxy: { "/app-api": { - target: "https://goerli.app.zklink.io", - // target: "https://app-api.zklink.io", + // target: "https://goerli.app.zklink.io", + target: "https://app-api.zklink.io", changeOrigin: true, rewrite: (path) => path.replace(/^\/app-api/, ""), }, From 790fff7bf1e0bdab0631455ee0c7c649f186dc50 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 30 Jul 2024 10:18:17 +0800 Subject: [PATCH 2/3] show gamefi --- src/pages/DashboardS2/index2.tsx | 8 ++++---- src/pages/Leaderboard/index.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/DashboardS2/index2.tsx b/src/pages/DashboardS2/index2.tsx index 5d635cb1..1f3925cc 100644 --- a/src/pages/DashboardS2/index2.tsx +++ b/src/pages/DashboardS2/index2.tsx @@ -511,10 +511,10 @@ export default function Dashboard() { name: "Lending Points", category: "lending", }, - // { - // name: "GameFi Points", - // category: "gamefi", - // }, + { + name: "GameFi Points", + category: "gamefi", + }, { name: "Others Points", category: "other", diff --git a/src/pages/Leaderboard/index.tsx b/src/pages/Leaderboard/index.tsx index 0a4ac6ad..7cf57208 100644 --- a/src/pages/Leaderboard/index.tsx +++ b/src/pages/Leaderboard/index.tsx @@ -457,7 +457,7 @@ export default function Leaderboard() { iconURL: "/img/icon-sector-4.svg", }, { name: "Lending", category: "lending", iconURL: "/img/icon-sector-5.svg" }, - // { name: "GameFi", category: "gamefi" }, + { name: "GameFi", category: "gamefi" }, { name: "Other", category: "other", iconURL: "/img/icon-sector-7.svg" }, ]; From 3fa05a2ba58f1f853ffc643e5a4d7e4173b05ae4 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 31 Jul 2024 14:50:00 +0800 Subject: [PATCH 3/3] update text --- src/components/DashboardS2/Tabs/Assets.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DashboardS2/Tabs/Assets.tsx b/src/components/DashboardS2/Tabs/Assets.tsx index 24169ded..c911a783 100644 --- a/src/components/DashboardS2/Tabs/Assets.tsx +++ b/src/components/DashboardS2/Tabs/Assets.tsx @@ -458,7 +458,7 @@ export default function Assets(props: IAssetsTableProps) {
Token
Points Booster
Nova TVL
-
Your Deposit
+
Your Holding