rujira.ui 1.0.14 → 1.0.15
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/lib/cjs/components/footer/Footer.js +171 -2
- package/lib/cjs/components/header/Header.js +19 -19
- package/lib/cjs/components/header/ResolveLink.js +2 -4
- package/lib/cjs/components/icons/Icons.js +20 -2
- package/lib/cjs/components/pills/Pill.js +9 -0
- package/lib/cjs/components/progress/Progress.js +4 -2
- package/lib/cjs/context/GlobalModal.js +1 -1
- package/lib/cjs/i18n/config.js +5 -0
- package/lib/cjs/i18n/locales/de/common.json +1 -1
- package/lib/cjs/i18n/locales/de/header.json +2 -1
- package/lib/cjs/i18n/locales/de/home.json +146 -0
- package/lib/cjs/i18n/locales/de/strategies.json +0 -1
- package/lib/cjs/i18n/locales/de/trade.json +1 -0
- package/lib/cjs/i18n/locales/en/common.json +1 -1
- package/lib/cjs/i18n/locales/en/header.json +2 -1
- package/lib/cjs/i18n/locales/en/home.json +146 -0
- package/lib/cjs/i18n/locales/en/strategies.json +0 -1
- package/lib/cjs/i18n/locales/en/trade.json +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/wallets/providers/cosmos.js +14 -10
- package/lib/cjs/wallets/providers/ctrl.js +3 -0
- package/lib/cjs/wallets/providers/eip1193.js +81 -73
- package/lib/cjs/wallets/providers/eip712.js +1 -1
- package/lib/cjs/wallets/providers/keplr.js +13 -17
- package/lib/cjs/wallets/providers/okx.js +12 -17
- package/lib/cjs/wallets/providers/tronlink.js +40 -27
- package/lib/cjs/wallets/providers/utils.js +2 -0
- package/lib/cjs/wallets/providers/utxo.js +27 -3
- package/lib/cjs/wallets/providers/vulticonnect.js +2 -0
- package/lib/cjs/wallets/providers/vultisig/common.js +2 -0
- package/lib/cjs/wallets/providers/vultisig/cosmos.js +53 -0
- package/lib/cjs/wallets/providers/vultisig/evm.js +56 -0
- package/lib/cjs/wallets/providers/vultisig/native.js +39 -0
- package/lib/cjs/wallets/providers/vultisig/signature.js +31 -0
- package/lib/cjs/wallets/providers/vultisig/ton.js +25 -0
- package/lib/cjs/wallets/providers/vultisig/tron.js +34 -0
- package/lib/cjs/wallets/providers/vultisig/utxo.js +76 -0
- package/lib/cjs/wallets/providers/vultisig/xrp.js +33 -0
- package/lib/cjs/wallets/providers/vultisig.js +104 -5
- package/lib/cjs/wallets/providers/xaman.js +26 -15
- package/lib/esm/components/footer/Footer.d.ts +3 -1
- package/lib/esm/components/footer/Footer.d.ts.map +1 -1
- package/lib/esm/components/footer/Footer.js +172 -3
- package/lib/esm/components/header/Header.d.ts +7 -4
- package/lib/esm/components/header/Header.d.ts.map +1 -1
- package/lib/esm/components/header/Header.js +20 -20
- package/lib/esm/components/header/ResolveLink.d.ts +2 -0
- package/lib/esm/components/header/ResolveLink.d.ts.map +1 -1
- package/lib/esm/components/header/ResolveLink.js +2 -4
- package/lib/esm/components/icons/Icons.d.ts +6 -0
- package/lib/esm/components/icons/Icons.d.ts.map +1 -1
- package/lib/esm/components/icons/Icons.js +18 -0
- package/lib/esm/components/pills/Pill.d.ts +7 -0
- package/lib/esm/components/pills/Pill.d.ts.map +1 -0
- package/lib/esm/components/pills/Pill.js +5 -0
- package/lib/esm/components/progress/Progress.d.ts +3 -1
- package/lib/esm/components/progress/Progress.d.ts.map +1 -1
- package/lib/esm/components/progress/Progress.js +4 -2
- package/lib/esm/context/GlobalModal.js +1 -1
- package/lib/esm/i18n/config.d.ts.map +1 -1
- package/lib/esm/i18n/config.js +5 -0
- package/lib/esm/i18n/locales/de/common.json +1 -1
- package/lib/esm/i18n/locales/de/header.json +2 -1
- package/lib/esm/i18n/locales/de/home.json +146 -0
- package/lib/esm/i18n/locales/de/strategies.json +0 -1
- package/lib/esm/i18n/locales/de/trade.json +1 -0
- package/lib/esm/i18n/locales/en/common.json +1 -1
- package/lib/esm/i18n/locales/en/header.json +2 -1
- package/lib/esm/i18n/locales/en/home.json +146 -0
- package/lib/esm/i18n/locales/en/strategies.json +0 -1
- package/lib/esm/i18n/locales/en/trade.json +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/wallets/providers/cosmos.d.ts +1 -0
- package/lib/esm/wallets/providers/cosmos.d.ts.map +1 -1
- package/lib/esm/wallets/providers/cosmos.js +12 -9
- package/lib/esm/wallets/providers/ctrl.d.ts.map +1 -1
- package/lib/esm/wallets/providers/ctrl.js +3 -0
- package/lib/esm/wallets/providers/eip1193.d.ts +12 -10
- package/lib/esm/wallets/providers/eip1193.d.ts.map +1 -1
- package/lib/esm/wallets/providers/eip1193.js +77 -72
- package/lib/esm/wallets/providers/eip712.js +1 -1
- package/lib/esm/wallets/providers/keplr.d.ts.map +1 -1
- package/lib/esm/wallets/providers/keplr.js +13 -17
- package/lib/esm/wallets/providers/okx.d.ts.map +1 -1
- package/lib/esm/wallets/providers/okx.js +12 -17
- package/lib/esm/wallets/providers/tronlink.d.ts +15 -1
- package/lib/esm/wallets/providers/tronlink.d.ts.map +1 -1
- package/lib/esm/wallets/providers/tronlink.js +37 -26
- package/lib/esm/wallets/providers/utils.d.ts +1 -1
- package/lib/esm/wallets/providers/utils.d.ts.map +1 -1
- package/lib/esm/wallets/providers/utils.js +2 -0
- package/lib/esm/wallets/providers/utxo.d.ts +16 -7
- package/lib/esm/wallets/providers/utxo.d.ts.map +1 -1
- package/lib/esm/wallets/providers/utxo.js +25 -3
- package/lib/esm/wallets/providers/vulticonnect.d.ts.map +1 -1
- package/lib/esm/wallets/providers/vulticonnect.js +2 -0
- package/lib/esm/wallets/providers/vultisig/common.d.ts +3 -0
- package/lib/esm/wallets/providers/vultisig/common.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/common.js +1 -0
- package/lib/esm/wallets/providers/vultisig/cosmos.d.ts +12 -0
- package/lib/esm/wallets/providers/vultisig/cosmos.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/cosmos.js +49 -0
- package/lib/esm/wallets/providers/vultisig/evm.d.ts +15 -0
- package/lib/esm/wallets/providers/vultisig/evm.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/evm.js +52 -0
- package/lib/esm/wallets/providers/vultisig/native.d.ts +20 -0
- package/lib/esm/wallets/providers/vultisig/native.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/native.js +34 -0
- package/lib/esm/wallets/providers/vultisig/signature.d.ts +7 -0
- package/lib/esm/wallets/providers/vultisig/signature.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/signature.js +24 -0
- package/lib/esm/wallets/providers/vultisig/ton.d.ts +9 -0
- package/lib/esm/wallets/providers/vultisig/ton.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/ton.js +20 -0
- package/lib/esm/wallets/providers/vultisig/tron.d.ts +15 -0
- package/lib/esm/wallets/providers/vultisig/tron.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/tron.js +30 -0
- package/lib/esm/wallets/providers/vultisig/utxo.d.ts +21 -0
- package/lib/esm/wallets/providers/vultisig/utxo.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/utxo.js +71 -0
- package/lib/esm/wallets/providers/vultisig/xrp.d.ts +10 -0
- package/lib/esm/wallets/providers/vultisig/xrp.d.ts.map +1 -0
- package/lib/esm/wallets/providers/vultisig/xrp.js +28 -0
- package/lib/esm/wallets/providers/vultisig.d.ts +16 -3
- package/lib/esm/wallets/providers/vultisig.d.ts.map +1 -1
- package/lib/esm/wallets/providers/vultisig.js +104 -5
- package/lib/esm/wallets/providers/xaman.d.ts +7 -0
- package/lib/esm/wallets/providers/xaman.d.ts.map +1 -1
- package/lib/esm/wallets/providers/xaman.js +23 -14
- package/package.json +3 -2
- package/src/components/footer/Footer.tsx +316 -102
- package/src/components/header/Header.tsx +95 -28
- package/src/components/header/ResolveLink.tsx +3 -7
- package/src/components/icons/Icons.tsx +59 -0
- package/src/components/pills/Pill.tsx +16 -0
- package/src/components/progress/Progress.tsx +8 -2
- package/src/context/GlobalModal.tsx +1 -1
- package/src/i18n/config.ts +5 -0
- package/src/i18n/locales/de/common.json +1 -1
- package/src/i18n/locales/de/header.json +2 -1
- package/src/i18n/locales/de/home.json +146 -0
- package/src/i18n/locales/de/strategies.json +0 -1
- package/src/i18n/locales/de/trade.json +1 -0
- package/src/i18n/locales/en/common.json +1 -1
- package/src/i18n/locales/en/header.json +2 -1
- package/src/i18n/locales/en/home.json +146 -0
- package/src/i18n/locales/en/strategies.json +0 -1
- package/src/i18n/locales/en/trade.json +1 -0
- package/src/index.ts +1 -0
- package/src/scss/components/_button.scss +3 -3
- package/src/scss/components/_footer.scss +149 -16
- package/src/scss/components/_header.scss +22 -1
- package/src/scss/index.scss +1 -0
- package/src/scss/styledcomponents/_pill.scss +22 -0
- package/src/wallets/providers/cosmos.ts +21 -14
- package/src/wallets/providers/ctrl.ts +3 -0
- package/src/wallets/providers/eip1193.ts +105 -85
- package/src/wallets/providers/eip712.ts +1 -1
- package/src/wallets/providers/keplr.ts +15 -22
- package/src/wallets/providers/okx.ts +13 -21
- package/src/wallets/providers/tronlink.ts +57 -27
- package/src/wallets/providers/utils.ts +2 -1
- package/src/wallets/providers/utxo.ts +64 -5
- package/src/wallets/providers/vulticonnect.ts +2 -0
- package/src/wallets/providers/vultisig/common.ts +3 -0
- package/src/wallets/providers/vultisig/cosmos.ts +64 -0
- package/src/wallets/providers/vultisig/evm.ts +89 -0
- package/src/wallets/providers/vultisig/native.ts +48 -0
- package/src/wallets/providers/vultisig/signature.ts +38 -0
- package/src/wallets/providers/vultisig/ton.ts +26 -0
- package/src/wallets/providers/vultisig/tron.ts +36 -0
- package/src/wallets/providers/vultisig/utxo.ts +92 -0
- package/src/wallets/providers/vultisig/xrp.ts +36 -0
- package/src/wallets/providers/vultisig.ts +137 -8
- package/src/wallets/providers/xaman.ts +33 -14
|
@@ -6,10 +6,179 @@ const clsx_1 = require("clsx");
|
|
|
6
6
|
const ResolveLink_1 = require("../header/ResolveLink");
|
|
7
7
|
const Icons_1 = require("../icons/Icons");
|
|
8
8
|
const RujiraLogo_1 = require("../logos/RujiraLogo");
|
|
9
|
-
const
|
|
9
|
+
const SITE_URL = "https://rujira.network";
|
|
10
|
+
const DOCS_URL = "https://docs.rujira.network";
|
|
11
|
+
const DISCORD_URL = "https://discord.com/invite/XPvsxhWKfb";
|
|
12
|
+
const TELEGRAM_URL = "https://t.me/Rujira_Community";
|
|
13
|
+
const REDDIT_URL = "https://www.reddit.com/r/RujiraNetworkOfficial/";
|
|
14
|
+
const footerSections = [
|
|
15
|
+
{
|
|
16
|
+
title: "Products",
|
|
17
|
+
links: [
|
|
18
|
+
{ kind: "internal", label: "Cross-chain Swaps", to: "swap" },
|
|
19
|
+
{ kind: "internal", label: "Orderbook DEX", to: "trade" },
|
|
20
|
+
{ kind: "internal", label: "Earn Opportunities", to: "strategies" },
|
|
21
|
+
{ kind: "internal", label: "Money Market", to: "borrow" },
|
|
22
|
+
{
|
|
23
|
+
kind: "internal",
|
|
24
|
+
label: "Automated Trading",
|
|
25
|
+
to: "/trade/BTC/USDC?orders=range&order=tracking&range=t",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
kind: "internal",
|
|
29
|
+
label: "bRUNE",
|
|
30
|
+
to: "/strategies/staking/bRUNE",
|
|
31
|
+
},
|
|
32
|
+
{ kind: "internal", label: "Indices", to: "index" },
|
|
33
|
+
{ kind: "internal", label: "Recurring Buys", to: "trade" },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: "Learn",
|
|
38
|
+
links: [
|
|
39
|
+
{
|
|
40
|
+
kind: "external",
|
|
41
|
+
label: "Architecture",
|
|
42
|
+
href: `${SITE_URL}/architecture`,
|
|
43
|
+
},
|
|
44
|
+
{ kind: "external", label: "RUJI Token", href: `${SITE_URL}/rujitoken` },
|
|
45
|
+
{
|
|
46
|
+
kind: "external",
|
|
47
|
+
label: "Enshrined Oracles",
|
|
48
|
+
href: `${SITE_URL}/enshrined-oracles`,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "external",
|
|
52
|
+
label: "Secured Assets",
|
|
53
|
+
href: `${SITE_URL}/secured-assets`,
|
|
54
|
+
},
|
|
55
|
+
{ kind: "internal", label: "FAQ", to: "faq" },
|
|
56
|
+
{ kind: "internal", label: "Articles", to: "articles" },
|
|
57
|
+
{ kind: "external", label: "Roadmap", href: `${SITE_URL}/roadmap` },
|
|
58
|
+
{ kind: "external", label: "Documentation", href: DOCS_URL },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: "Ecosystem",
|
|
63
|
+
links: [
|
|
64
|
+
{ kind: "internal", label: "Ecosystem", to: "ecosystem" },
|
|
65
|
+
{
|
|
66
|
+
kind: "external",
|
|
67
|
+
label: "Deving Zone",
|
|
68
|
+
href: "http://deving.zone/r/rujira",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
kind: "external",
|
|
72
|
+
label: "Rujira Data",
|
|
73
|
+
href: "https://rujiradata.com/",
|
|
74
|
+
},
|
|
75
|
+
{ kind: "external", label: "Rune Tools", href: "https://rune.tools" },
|
|
76
|
+
{
|
|
77
|
+
kind: "external",
|
|
78
|
+
label: "Blockchain Explorer",
|
|
79
|
+
href: "https://thorchain.net",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
kind: "external",
|
|
83
|
+
label: "Brand Assets",
|
|
84
|
+
href: `${DOCS_URL}/resources/branding`,
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: "Developers",
|
|
90
|
+
links: [
|
|
91
|
+
{
|
|
92
|
+
kind: "external",
|
|
93
|
+
label: "Developer Tools",
|
|
94
|
+
href: `${DOCS_URL}/developers/getting-started`,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
kind: "external",
|
|
98
|
+
label: "Documentation",
|
|
99
|
+
href: DOCS_URL,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
kind: "external",
|
|
103
|
+
label: "GitLab",
|
|
104
|
+
href: "https://gitlab.com/thorchain/rujira",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
kind: "external",
|
|
108
|
+
label: "Rujira.ui",
|
|
109
|
+
href: "https://gitlab.com/thorchain/rujira-ui",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: "Support",
|
|
115
|
+
links: [
|
|
116
|
+
{ kind: "internal", label: "Knowledge Hub", to: "support" },
|
|
117
|
+
{
|
|
118
|
+
kind: "external",
|
|
119
|
+
label: "Developer Help",
|
|
120
|
+
href: DISCORD_URL,
|
|
121
|
+
},
|
|
122
|
+
{ kind: "internal", label: "Terms of Use", to: "/tou" },
|
|
123
|
+
{ kind: "internal", label: "Privacy Policy", to: "/privacypolicy" },
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
const communityLinks = [
|
|
128
|
+
{ label: "Twitter", href: "https://x.com/RujiraNetwork", Icon: Icons_1.X },
|
|
129
|
+
{ label: "Telegram", href: TELEGRAM_URL, Icon: Icons_1.Telegram },
|
|
130
|
+
{ label: "Discord", href: DISCORD_URL, Icon: Icons_1.Discord },
|
|
131
|
+
];
|
|
132
|
+
const socialLinks = [
|
|
133
|
+
{
|
|
134
|
+
label: "Instagram",
|
|
135
|
+
href: "https://www.instagram.com/rujiranetwork/",
|
|
136
|
+
Icon: Icons_1.Instagram,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: "LinkedIn",
|
|
140
|
+
href: "https://www.linkedin.com/company/rujira-network/",
|
|
141
|
+
Icon: Icons_1.LinkedIn,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: "TikTok",
|
|
145
|
+
href: "https://www.tiktok.com/@rujiranetwork",
|
|
146
|
+
Icon: Icons_1.TikTok,
|
|
147
|
+
},
|
|
148
|
+
{ label: "Reddit", href: REDDIT_URL, Icon: Icons_1.Reddit },
|
|
149
|
+
{
|
|
150
|
+
label: "YouTube",
|
|
151
|
+
href: "https://www.youtube.com/@RujiraNetwork",
|
|
152
|
+
Icon: Icons_1.YouTube,
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
const FooterLinkItem = (props) => {
|
|
156
|
+
const { domain, routerElement } = props;
|
|
157
|
+
switch (props.kind) {
|
|
158
|
+
case "internal":
|
|
159
|
+
return ((0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, className: "rujira__footer-link", domain: domain, to: props.to, children: props.label }));
|
|
160
|
+
case "static":
|
|
161
|
+
return ((0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routerElement, className: "rujira__footer-link", domain: domain, to: props.to, isStatic: true, children: props.label }));
|
|
162
|
+
case "external":
|
|
163
|
+
return ((0, jsx_runtime_1.jsx)("a", { href: props.href, className: "rujira__footer-link", rel: "noopener noreferrer", target: "_blank", children: props.label }));
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const Footer = ({ className, domain = "", routerElement, staticRoutes = [], }) => {
|
|
10
167
|
return ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)({
|
|
11
168
|
rujira__footer: true,
|
|
12
169
|
[`${className}`]: className,
|
|
13
|
-
}), children: (0, jsx_runtime_1.jsxs)("div", { className: "rujira__inner", children: [(0, jsx_runtime_1.jsxs)("div", { className: "
|
|
170
|
+
}), children: (0, jsx_runtime_1.jsxs)("div", { className: "rujira__inner", children: [(0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-grid", children: [footerSections.map(({ title, links }) => ((0, jsx_runtime_1.jsxs)("section", { className: "rujira__footer-section", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: title }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": title, children: (0, jsx_runtime_1.jsx)("ul", { className: "rujira__footer-list", children: links.map((link) => {
|
|
171
|
+
const isStatic = staticRoutes?.includes("to" in link ? link.to : link.href);
|
|
172
|
+
const linkWithKind = isStatic
|
|
173
|
+
? {
|
|
174
|
+
...link,
|
|
175
|
+
kind: "static",
|
|
176
|
+
to: "to" in link ? link.to : link.href,
|
|
177
|
+
}
|
|
178
|
+
: link;
|
|
179
|
+
return ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(FooterLinkItem, { ...linkWithKind, domain: domain, routerElement: routerElement }) }, link.label));
|
|
180
|
+
}) }) })] }, title))), (0, jsx_runtime_1.jsxs)("section", { className: "rujira__footer-section rujira__footer-section--social", children: [(0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-social-group", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: "Community" }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": "Rujira community links", className: "rujira__footer-socials", children: communityLinks.map(({ href, Icon, label }) => ((0, jsx_runtime_1.jsx)("a", { href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, title: label, children: (0, jsx_runtime_1.jsx)(Icon, { className: "rujira__footer-social-icon", "aria-hidden": "true" }) }, label))) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-social-group", children: [(0, jsx_runtime_1.jsx)("h4", { className: "rujira__footer-title", children: "Socials" }), (0, jsx_runtime_1.jsx)("nav", { "aria-label": "Rujira social links", className: "rujira__footer-socials", children: socialLinks.map(({ href, Icon, label }) => ((0, jsx_runtime_1.jsx)("a", { href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, title: label, children: (0, jsx_runtime_1.jsx)(Icon, { className: (0, clsx_1.default)("rujira__footer-social-icon", {
|
|
181
|
+
"rujira__footer-social-icon--tiktok": label === "TikTok",
|
|
182
|
+
}), "aria-hidden": "true" }) }, label))) })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "rujira__footer-bottom", children: [(0, jsx_runtime_1.jsx)(RujiraLogo_1.RujiraLogo, { animate: true, textColor: "#fff", className: "rujira__footer-logo" }), (0, jsx_runtime_1.jsx)("p", { className: "rujira__footer-copy", children: "All Rujira brand is in public domain. No rights reserved." })] })] }) }));
|
|
14
183
|
};
|
|
15
184
|
exports.Footer = Footer;
|
|
@@ -32,7 +32,7 @@ const Pending_1 = require("./Pending");
|
|
|
32
32
|
const ResolveLink_1 = require("./ResolveLink");
|
|
33
33
|
__exportStar(require("./Accounts"), exports);
|
|
34
34
|
__exportStar(require("./QuickLauncher"), exports);
|
|
35
|
-
const Header = ({ accountProvider, className, domain = "", routingElement, wallets, ProviderIcon, onDeposit, deposits, getAccountValue, customActions, }) => {
|
|
35
|
+
const Header = ({ accountProvider, className, domain = "", routingElement, wallets, ProviderIcon, onDeposit, deposits, getAccountValue, customActions, staticRoutes, }) => {
|
|
36
36
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
37
37
|
const [hover, setHover] = (0, react_2.useState)(false);
|
|
38
38
|
const [isScrolled, setIsScrolled] = (0, react_2.useState)(false);
|
|
@@ -59,11 +59,11 @@ const Header = ({ accountProvider, className, domain = "", routingElement, walle
|
|
|
59
59
|
return ((0, jsx_runtime_1.jsxs)(exports.Container, { style: { backgroundColor: `rgba(15, 17, 23, ${(scrollY / 56) * 0.9})` }, className: (0, clsx_1.default)({
|
|
60
60
|
[`${className}`]: className,
|
|
61
61
|
"rujira-header--scrolled": isScrolled,
|
|
62
|
-
}), children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routingElement, to: ".", children: (0, jsx_runtime_1.jsx)(exports.Logo, {}) }), (0, jsx_runtime_1.jsx)(exports.MainNav, { domain: domain, accountProvider: accountProvider, routingElement: routingElement }), (0, jsx_runtime_1.jsxs)("div", { className: "
|
|
62
|
+
}), children: [(0, jsx_runtime_1.jsx)(ResolveLink_1.ResolveLink, { as: routingElement, to: ".", children: (0, jsx_runtime_1.jsx)(exports.Logo, {}) }), (0, jsx_runtime_1.jsx)(exports.MainNav, { domain: domain, accountProvider: accountProvider, routingElement: routingElement, staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsxs)("div", { className: "flex ai-c gradient-card-container rujira-header__right", children: [deposits && (0, jsx_runtime_1.jsx)(Pending_1.PendingDeposits, { ...deposits }), onDeposit && ((0, jsx_runtime_1.jsxs)("button", { id: "deposit", className: "transparent rujira-header__deposit condensed", onMouseOver: () => setHover(true), onMouseOut: () => setHover(false), onClick: () => {
|
|
63
63
|
accounts?.length === 0 ? ConnectModal() : onDeposit();
|
|
64
64
|
}, children: [(0, jsx_runtime_1.jsx)("img", { src: hover ? deposit_gif_1.default : deposit_png_1.default, alt: "Deposit" }), (0, jsx_runtime_1.jsx)("span", { children: t("deposit") })] })), (0, jsx_runtime_1.jsx)(Accounts_1.Accounts, { provider: accountProvider, ProviderIcon: ProviderIcon, routingElement: routingElement, wallets: wallets, getValue: getAccountValue,
|
|
65
65
|
//hideNetworkSwitch={hideNetworkSwitch}
|
|
66
|
-
customActions: customActions })] }), (0, jsx_runtime_1.jsx)(exports.MobileNav, { domain: domain, routingElement: routingElement, accountProvider: accountProvider })] }));
|
|
66
|
+
customActions: customActions })] }), (0, jsx_runtime_1.jsx)(exports.MobileNav, { domain: domain, routingElement: routingElement, accountProvider: accountProvider, staticRoutes: staticRoutes })] }));
|
|
67
67
|
};
|
|
68
68
|
exports.Header = Header;
|
|
69
69
|
const Container = ({ children, className, style = {} }) => {
|
|
@@ -80,7 +80,7 @@ const Logo = () => {
|
|
|
80
80
|
exports.Logo = Logo;
|
|
81
81
|
const MainNav = ({ domain,
|
|
82
82
|
//accountProvider,
|
|
83
|
-
routingElement, }) => {
|
|
83
|
+
routingElement, staticRoutes, }) => {
|
|
84
84
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
85
85
|
//const { accounts } = accountProvider;
|
|
86
86
|
const [showTrade, setShowTrade] = (0, react_2.useState)(false);
|
|
@@ -142,10 +142,10 @@ routingElement, }) => {
|
|
|
142
142
|
showEntertainment,
|
|
143
143
|
showLearn,
|
|
144
144
|
]);
|
|
145
|
-
return ((0, jsx_runtime_1.jsxs)("nav", { className: "rujira-header__nav", children: [(0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowTrade(true), onMouseOut: () => setShowTrade(false), children: [t("trade"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showTrade && ((0, jsx_runtime_1.jsx)(SubTrade, { useRef: trade, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEarn(true), onMouseOut: () => setShowEarn(false), children: [t("earn"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEarn && ((0, jsx_runtime_1.jsx)(SubEarn, { useRef: earn, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowBorrow(true), onMouseOut: () => setShowBorrow(false), children: [t("borrow"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showBorrow && ((0, jsx_runtime_1.jsx)(SubBorrow, { useRef: borrow, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowUtilities(true), onMouseOut: () => setShowUtilities(false), children: [t("utilities"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showUtilities && ((0, jsx_runtime_1.jsx)(SubUtilities, { useRef: utilities, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEntertainment(true), onMouseOut: () => setShowEntertainment(false), children: [t("entertainment"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEntertainment && ((0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: entertainment, domain: domain, routingElement: routingElement })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowLearn(true), onMouseOut: () => setShowLearn(false), children: [t("learnAndHelp"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showLearn && ((0, jsx_runtime_1.jsx)(SubLearn, { useRef: learn, domain: domain, routingElement: routingElement })) })] })] }));
|
|
145
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { className: "rujira-header__nav", children: [(0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowTrade(true), onMouseOut: () => setShowTrade(false), children: [t("trade"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showTrade && ((0, jsx_runtime_1.jsx)(SubTrade, { useRef: trade, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEarn(true), onMouseOut: () => setShowEarn(false), children: [t("earn"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEarn && ((0, jsx_runtime_1.jsx)(SubEarn, { useRef: earn, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowBorrow(true), onMouseOut: () => setShowBorrow(false), children: [t("borrow"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showBorrow && ((0, jsx_runtime_1.jsx)(SubBorrow, { useRef: borrow, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowUtilities(true), onMouseOut: () => setShowUtilities(false), children: [t("utilities"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showUtilities && ((0, jsx_runtime_1.jsx)(SubUtilities, { useRef: utilities, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowEntertainment(true), onMouseOut: () => setShowEntertainment(false), children: [t("entertainment"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showEntertainment && ((0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: entertainment, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] }), (0, jsx_runtime_1.jsxs)("span", { onMouseOver: () => setShowLearn(true), onMouseOut: () => setShowLearn(false), children: [t("learnAndHelp"), (0, jsx_runtime_1.jsx)(Icons_1.AngleDown, {}), (0, jsx_runtime_1.jsx)(react_1.AnimatePresence, { children: showLearn && ((0, jsx_runtime_1.jsx)(SubLearn, { useRef: learn, domain: domain, routingElement: routingElement, staticRoutes: staticRoutes })) })] })] }));
|
|
146
146
|
};
|
|
147
147
|
exports.MainNav = MainNav;
|
|
148
|
-
const MobileNav = ({ domain, routingElement, accountProvider, }) => {
|
|
148
|
+
const MobileNav = ({ domain, routingElement, accountProvider, staticRoutes, }) => {
|
|
149
149
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
150
150
|
const [showDrawer, setShowDrawer] = (0, react_2.useState)(false);
|
|
151
151
|
const { accounts } = accountProvider;
|
|
@@ -167,31 +167,31 @@ const MobileNav = ({ domain, routingElement, accountProvider, }) => {
|
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
}, true);
|
|
170
|
-
return ((0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Root, { direction: "left", open: showDrawer, onOpenChange: (open) => setShowDrawer(open), children: [(0, jsx_runtime_1.jsx)("button", { className: "rujira-header__hamburger", onClick: () => setShowDrawer(true), children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 64H448v48H0V64zM0 224H448v48H0V224zM448 384v48H0V384H448z", fill: "currentColor" }) }) }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Portal, { children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Overlay, { className: "drawer__overlay" }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Content, { className: "drawer__content drawer__content--left", children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Description, { className: "visually-hidden", children: "Main navigation menu" }), (0, jsx_runtime_1.jsx)(vaul_1.Drawer.Title, { className: "visually-hidden", children: "Main Menu" }), (0, jsx_runtime_1.jsxs)("div", { className: "drawer__card mobile-drawer", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: ".", className: "flex ai-c", children: [(0, jsx_runtime_1.jsx)(Icons_1.Home, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("home") }) })] }), accounts && accounts.length > 0 && ((0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "portfolio", className: "flex ai-c mt-2", children: [(0, jsx_runtime_1.jsx)(Icons_1.Coins, { className: "color-grey h-3.5 w-a block mr-2 no-shrink" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("portfolio") }) })] })), (0, jsx_runtime_1.jsx)("h4", { children: t("trade") }), (0, jsx_runtime_1.jsx)(SubTrade, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("earn") }), (0, jsx_runtime_1.jsx)(SubEarn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("borrow") }), (0, jsx_runtime_1.jsx)(SubBorrow, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("utilities") }), (0, jsx_runtime_1.jsx)(SubUtilities, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("entertainment") }), (0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" }), (0, jsx_runtime_1.jsx)("h4", { children: t("learnAndHelp") }), (0, jsx_runtime_1.jsx)(SubLearn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "" })] })] })] })] }));
|
|
170
|
+
return ((0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Root, { direction: "left", open: showDrawer, onOpenChange: (open) => setShowDrawer(open), children: [(0, jsx_runtime_1.jsx)("button", { className: "rujira-header__hamburger", onClick: () => setShowDrawer(true), children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 64H448v48H0V64zM0 224H448v48H0V224zM448 384v48H0V384H448z", fill: "currentColor" }) }) }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Portal, { children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Overlay, { className: "drawer__overlay" }), (0, jsx_runtime_1.jsxs)(vaul_1.Drawer.Content, { className: "drawer__content drawer__content--left", children: [(0, jsx_runtime_1.jsx)(vaul_1.Drawer.Description, { className: "visually-hidden", children: "Main navigation menu" }), (0, jsx_runtime_1.jsx)(vaul_1.Drawer.Title, { className: "visually-hidden", children: "Main Menu" }), (0, jsx_runtime_1.jsxs)("div", { className: "drawer__card mobile-drawer", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: ".", className: "flex ai-c", children: [(0, jsx_runtime_1.jsx)(Icons_1.Home, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("home") }) })] }), accounts && accounts.length > 0 && ((0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "portfolio", className: "flex ai-c mt-2", children: [(0, jsx_runtime_1.jsx)(Icons_1.Coins, { className: "color-grey h-3.5 w-a block mr-2 no-shrink" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("portfolio") }) })] })), (0, jsx_runtime_1.jsx)("h4", { children: t("trade") }), (0, jsx_runtime_1.jsx)(SubTrade, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("earn") }), (0, jsx_runtime_1.jsx)(SubEarn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("borrow") }), (0, jsx_runtime_1.jsx)(SubBorrow, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("utilities") }), (0, jsx_runtime_1.jsx)(SubUtilities, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("entertainment") }), (0, jsx_runtime_1.jsx)(SubEntertainment, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes }), (0, jsx_runtime_1.jsx)("h4", { children: t("learnAndHelp") }), (0, jsx_runtime_1.jsx)(SubLearn, { useRef: (0, react_2.useRef)(null), domain: domain, routingElement: routingElement, className: "", staticRoutes: staticRoutes })] })] })] })] }));
|
|
171
171
|
};
|
|
172
172
|
exports.MobileNav = MobileNav;
|
|
173
173
|
const Popup = ({ children, useRef, className = "rujira-header__popup sub-nav fw-400 p-2", }) => ((0, jsx_runtime_1.jsx)(react_1.motion.div, { ref: useRef, className: className, initial: { opacity: 0, marginTop: -4 }, animate: { opacity: 1, marginTop: 0 }, exit: { opacity: 0, marginTop: -4 }, children: children }));
|
|
174
|
-
const SubTrade = ({ domain, routingElement, useRef, className }) => {
|
|
174
|
+
const SubTrade = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
175
175
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
176
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "swap", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Swap, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("tokenSwap") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("tokenSwapDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Chart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("spotTrading") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("spotTradingDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "
|
|
176
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("swap"), domain: domain, to: "swap", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Swap, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("tokenSwap") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("tokenSwapDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("trade"), domain: domain, to: "trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Chart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("spotTrading") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("spotTradingDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("perps/trade"), domain: domain, to: "perps/trade", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUpDown, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("perps") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("perpsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("index"), domain: domain, to: "index", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.PieChart, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("index") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("indexDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("options"), domain: domain, to: "options", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUp, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("options") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("optionsDesc") })] })] })] }) }));
|
|
177
177
|
};
|
|
178
|
-
const SubEarn = ({ domain, routingElement, useRef, className }) => {
|
|
178
|
+
const SubEarn = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
179
179
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
180
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "strategies/staking/RUJI", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Stake, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("stake") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("stakeDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "strategies", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Building, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("strategies") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("strategiesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "liquidate", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gavel, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("liquidate") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("liquidateDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "launchpad", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Seedling, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("launchpad") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("launchpadDesc") })] })] })] }) }));
|
|
180
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("strategies/staking/RUJI"), domain: domain, to: "strategies/staking/RUJI", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Stake, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("stake") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("stakeDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("strategies"), domain: domain, to: "strategies", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Building, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("strategies") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("strategiesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("liquidate"), domain: domain, to: "liquidate", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gavel, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("liquidate") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("liquidateDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("launchpad"), domain: domain, to: "launchpad", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Seedling, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("launchpad") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("launchpadDesc") })] })] })] }) }));
|
|
181
181
|
};
|
|
182
|
-
const SubBorrow = ({ domain, routingElement, useRef, className }) => {
|
|
182
|
+
const SubBorrow = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
183
183
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
184
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "borrow", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.MoneyTransfer, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("borrowMenu") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("borrowDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "mint", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Deposit, { className: "color-grey h-a w-3 block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("mintStablecoin") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("mintStablecoinDesc") })] })] })] }) }));
|
|
184
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("borrow"), domain: domain, to: "borrow", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.MoneyTransfer, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("borrowMenu") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("borrowDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("mint"), domain: domain, to: "mint", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Deposit, { className: "color-grey h-a w-3 block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("mintStablecoin") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("mintStablecoinDesc") })] })] })] }) }));
|
|
185
185
|
};
|
|
186
|
-
const SubUtilities = ({ domain, routingElement, useRef, className, }) => {
|
|
186
|
+
const SubUtilities = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
187
187
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
188
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)("a", { href: "https://ai.autorujira.app/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600", children: [t("rujiAi"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("rujiAiDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "analytics", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartMixed, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("analytics") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("analyticsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "buy", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.CreditCard, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("buyCrypto") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("buyCryptoDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://daodao.zone", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Users, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("daodao"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("daodaoDesc") })] })] })] }) }));
|
|
188
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)("a", { href: "https://ai.autorujira.app/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600", children: [t("rujiAi"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("rujiAiDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("analytics"), domain: domain, to: "analytics", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartMixed, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("analytics") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("analyticsDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("buy"), domain: domain, to: "buy", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.CreditCard, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("buyCrypto") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("buyCryptoDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://daodao.zone", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Users, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("daodao"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("daodaoDesc") })] })] })] }) }));
|
|
189
189
|
};
|
|
190
|
-
const SubEntertainment = ({ domain, routingElement, useRef, className, }) => {
|
|
190
|
+
const SubEntertainment = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
191
191
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
192
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "leaderboard", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Trophy, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("leagues") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("leaguesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "games", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gamepad, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("games") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("gamesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "predict", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUser, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("predict") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("predictDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "omniverse", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Nodes, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("omniverse") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("omniverseDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "nfts", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.NFT, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("collections") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("collectionsDesc") })] })] })] }) }));
|
|
192
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("leaderboard"), domain: domain, to: "leaderboard", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Trophy, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("leagues") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("leaguesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("games"), domain: domain, to: "games", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Gamepad, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("games") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("gamesDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("predict"), domain: domain, to: "predict", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.ChartUser, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("predict") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("predictDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("omniverse"), domain: domain, to: "omniverse", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Nodes, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("omniverse") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("omniverseDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("nfts"), domain: domain, to: "nfts", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.NFT, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600 flex ai-c", children: t("collections") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("collectionsDesc") })] })] })] }) }));
|
|
193
193
|
};
|
|
194
|
-
const SubLearn = ({ domain, routingElement, useRef, className }) => {
|
|
194
|
+
const SubLearn = ({ domain, routingElement, useRef, className, staticRoutes, }) => {
|
|
195
195
|
const { t } = (0, i18n_1.useTranslation)("header");
|
|
196
|
-
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, domain: domain, to: "
|
|
196
|
+
return ((0, jsx_runtime_1.jsx)(Popup, { useRef: useRef, className: className, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid w-60 mt-1", children: [(0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("get-started"), domain: domain, to: "get-started", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Graduate, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("getStarted") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("getStartedDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("support"), domain: domain, to: "support", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Support, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("support") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("educationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://docs.rujira.network/", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Code, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("documentation"), " ", (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("documentationDesc") })] })] }), (0, jsx_runtime_1.jsxs)("a", { href: "https://docs.rujira.network/developers/getting-started", target: "_blank", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.Terminal, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h4", { className: "fs-14 fw-600 flex ai-c", children: [t("developers"), (0, jsx_runtime_1.jsx)(Icons_1.External, { className: "h-1.5 w-a ml-1" })] }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("developersDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("faq"), domain: domain, to: "faq", className: "flex", children: [(0, jsx_runtime_1.jsx)(Icons_1.Info, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("commonQuestions") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("supportDesc") })] })] }), (0, jsx_runtime_1.jsxs)(ResolveLink_1.ResolveLink, { as: routingElement, isStatic: staticRoutes?.includes("articles"), domain: domain, to: "articles", className: "flex ai-s", children: [(0, jsx_runtime_1.jsx)(Icons_1.History, { className: "color-grey h-3.5 w-a block mr-2 no-shrink mt-0" }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h4", { className: "fs-14 fw-600", children: t("articles") }), (0, jsx_runtime_1.jsx)("p", { className: "fs-12 mt-0.5", children: t("articlesDesc") })] })] })] }) }));
|
|
197
197
|
};
|
|
@@ -5,10 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const fixedForwardRef = react_1.forwardRef;
|
|
7
7
|
const UnwrappedAnyComponent = (props, ref) => {
|
|
8
|
-
const { as: Comp = "a", children, domain, ...rest } = props;
|
|
9
|
-
if (!
|
|
10
|
-
window.location.hostname === "rujira.network" ||
|
|
11
|
-
domain === "") {
|
|
8
|
+
const { as: Comp = "a", children, domain, isStatic, ...rest } = props;
|
|
9
|
+
if (!isStatic && props.as !== "a") {
|
|
12
10
|
return ((0, jsx_runtime_1.jsx)(Comp, { ...rest, ref: ref, children: children }));
|
|
13
11
|
}
|
|
14
12
|
return ((0, jsx_runtime_1.jsx)("a", { href: props.to || props.href, ...rest, children: children }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GitLab = exports.GitHub = exports.Gear = exports.Gavel = exports.Gamepad = exports.Eye = exports.EyeSlash = exports.ExclamationTriangle = exports.ExclamationCircle = exports.External = exports.Ellipsis = exports.Edit = exports.Earth = exports.Discord = exports.Deposit = exports.CreditCard = exports.Combine = exports.Copy = exports.Coins = exports.Code = exports.ClaimSolid = exports.ClaimAll = exports.Claim = exports.CirclesXMark = exports.CircleXMark = exports.CircleUser = exports.CirclePen = exports.Check = exports.ChartUser = exports.ChartUp = exports.ChartUpDown = exports.ChartMixed = exports.Chart = exports.Building = exports.Bolt = exports.Book = exports.BinarySlash = exports.Binary = exports.ArrowUpRight = exports.ArrowUp = exports.ArrowRight = exports.ArrowRightLeft = exports.ArrowLeft = exports.ArrowDown = exports.AngleUpDown = exports.AngleUp = exports.AnglesRight = exports.AngleRight = exports.AngleLeft = exports.AngleDown = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.Xmark = exports.X = exports.Withdraw = exports.Wink = exports.Window = exports.Wallet = exports.Users = exports.Unlocked = exports.Undo = exports.Trophy = exports.TrendUp = exports.TrendDown = exports.Tortoise = exports.Timer = void 0;
|
|
4
|
+
exports.Star = exports.StarSolid = exports.Stake = exports.StakePlus = exports.StakeMinus = exports.Split = exports.SortUp = exports.SortDown = exports.SortDesc = exports.Sliders = exports.Sort = exports.ShieldX = exports.ShieldCheck = exports.Share = exports.Seedling = exports.Rotate = exports.Rocket = exports.Rabbit = exports.Plus = exports.Play = exports.PieChart = exports.Pause = exports.Orca = exports.NFT = exports.NoGas = exports.Nodes = exports.MoneyTransfer = exports.MinusCircle = exports.Minus = exports.MessageCode = exports.Merge = exports.YouTube = exports.TikTok = exports.Reddit = exports.LinkedIn = exports.Instagram = exports.Medium = exports.Locked = exports.LinkConnect = exports.LinkDisconnect = exports.LinkAngle = exports.Key = exports.Info = exports.Href = exports.Home = exports.History = exports.Grid = exports.Graduate = exports.Glass = exports.GlassChart = void 0;
|
|
5
|
+
exports.Xmark = exports.X = exports.Withdraw = exports.Wink = exports.Window = exports.Wallet = exports.Users = exports.Unlocked = exports.Undo = exports.Trophy = exports.TrendUp = exports.TrendDown = exports.Tortoise = exports.Timer = exports.Terminal = exports.Telegram = exports.Swap = exports.Support = exports.Stopwatch = exports.StarAlt = void 0;
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const SVG = ({ d, children, ...rest }) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", ...rest, children: [d && (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "nonzero", d: d }), children] }));
|
|
@@ -198,6 +198,21 @@ exports.Locked.displayName = "Locked";
|
|
|
198
198
|
const _Medium = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M180.5 138C80.813 138 0 219.371 0 319.738s80.819 181.738 180.5 181.738S361 420.111 361 319.738 280.191 138 180.5 138Zm288.25 10.646c-49.845 0-90.245 76.619-90.245 171.095s40.406 171.1 90.251 171.1c49.845 0 90.251-76.619 90.251-171.1H559c0-94.503-40.4-171.095-90.248-171.095h-.002Zm139.506 17.821c-17.526 0-31.735 68.628-31.735 153.274s14.2 153.274 31.735 153.274S640 404.369 640 319.738c0-84.649-14.215-153.271-31.742-153.271h-.002Z" }));
|
|
199
199
|
exports.Medium = (0, react_1.memo)(_Medium);
|
|
200
200
|
exports.Medium.displayName = "Medium";
|
|
201
|
+
const _Instagram = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334" }));
|
|
202
|
+
exports.Instagram = (0, react_1.memo)(_Instagram);
|
|
203
|
+
exports.Instagram.displayName = "Instagram";
|
|
204
|
+
const _LinkedIn = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 20 20", d: "M2.88906 1.01562C1.51417 1.01562 0.615234 1.91845 0.615234 3.10509C0.615234 4.26552 1.48739 5.19409 2.8363 5.19409H2.8624C4.26418 5.19409 5.13657 4.26552 5.13657 3.10509C5.11036 1.91845 4.26418 1.01562 2.88906 1.01562Z M0.852539 6.84473H4.87193V18.9372H0.852539V6.84473Z M14.7375 6.56152C12.5692 6.56152 11.1152 8.59903 11.1152 8.59903V6.84534H7.0957V18.9379H11.115V12.1849C11.115 11.8234 11.1412 11.4625 11.2474 11.2039C11.538 10.482 12.1992 9.73417 13.3096 9.73417C14.764 9.73417 15.3457 10.8431 15.3457 12.4687V18.9379H19.3648V12.0042C19.3648 8.28992 17.3818 6.56152 14.7375 6.56152Z" }));
|
|
205
|
+
exports.LinkedIn = (0, react_1.memo)(_LinkedIn);
|
|
206
|
+
exports.LinkedIn.displayName = "LinkedIn";
|
|
207
|
+
const _Reddit = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M6.167 8a.83.83 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661m1.843 3.647c.315 0 1.403-.038 1.976-.611a.23.23 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83s.83-.381.83-.83a.831.831 0 0 0-1.66 0z M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.2.2 0 0 0-.153.028.2.2 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224q-.03.17-.029.353c0 1.795 2.091 3.256 4.669 3.256s4.668-1.451 4.668-3.256c0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165" }));
|
|
208
|
+
exports.Reddit = (0, react_1.memo)(_Reddit);
|
|
209
|
+
exports.Reddit.displayName = "Reddit";
|
|
210
|
+
const _TikTok = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "4 4 14 15", d: "M13.2 5.2c.6 1.7 1.9 2.9 3.6 3.3v2.1c-1.5-.1-2.7-.7-3.6-1.7v4.9a3.9 3.9 0 1 1-3.9-3.9v2a1.9 1.9 0 1 0 1.9 1.9V5.2h2Z" }));
|
|
211
|
+
exports.TikTok = (0, react_1.memo)(_TikTok);
|
|
212
|
+
exports.TikTok.displayName = "TikTok";
|
|
213
|
+
const _YouTube = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, viewBox: "0 0 16 16", d: "M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z" }));
|
|
214
|
+
exports.YouTube = (0, react_1.memo)(_YouTube);
|
|
215
|
+
exports.YouTube.displayName = "YouTube";
|
|
201
216
|
const _Merge = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M64 144c0-8.8 7.2-16 16-16h127.7c15.4 0 29.8 7.3 38.8 19.8l108.9 149.6c3 4.1 7.8 6.6 12.9 6.6h153.1l-52.7-52.7c-6.2-6.2-6.2-16.4 0-22.6 6.2-6.2 16.4-6.2 22.6 0l80 80c6.2 6.2 6.2 16.4 0 22.6l-80 80c-6.2 6.2-16.4 6.2-22.6 0-6.2-6.2-6.2-16.4 0-22.6l52.7-52.7H368.3c-5.1 0-9.9 2.4-12.9 6.6L246.5 492.2c-9 12.4-23.5 19.8-38.8 19.8H80c-8.8 0-16-7.2-16-16s7.2-16 16-16h127.7c5.1 0 9.9-2.4 12.9-6.6l108.9-149.6c1-1.3 2-2.6 3-3.8-1.1-1.2-2.1-2.5-3-3.8L220.6 166.6c-3-4.1-7.8-6.6-12.9-6.6H80c-8.8 0-16-7.2-16-16Z" }));
|
|
202
217
|
exports.Merge = (0, react_1.memo)(_Merge);
|
|
203
218
|
exports.Merge.displayName = "Merge";
|
|
@@ -291,6 +306,9 @@ exports.StarSolid.displayName = "StarSolid";
|
|
|
291
306
|
const _Star = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "m258.475 232.8 61.4-126.5 61.4 126.5c4.6 9.5 13.6 16.1 24.1 17.7l137.4 20.3-99.8 98.8c-7.4 7.3-10.8 17.8-9 28.1l23.5 139.5-122.5-65.5c-9.4-5-20.7-5-30.2 0l-122.6 65.5 23.5-139.5c1.7-10.3-1.6-20.7-9-28.1l-99.7-98.8 137.4-20.3c10.5-1.5 19.5-8.2 24.1-17.7Zm198.4 340.3c8.1 4.3 17.9 3.7 25.3-1.7 7.4-5.4 11.2-14.5 9.7-23.5l-26.3-155.5 111.2-110.2c6.5-6.4 8.7-15.9 5.9-24.5-2.8-8.6-10.3-14.9-19.3-16.3l-153.3-22.6-68.6-141.3c-4-8.3-12.4-13.5-21.6-13.5-9.2 0-17.6 5.2-21.6 13.5l-68.6 141.3-153.2 22.7c-9 1.3-16.5 7.6-19.3 16.3-2.8 8.7-.5 18.1 5.9 24.5l111.1 110.1-26.2 155.5c-1.5 9 2.2 18.1 9.7 23.5 7.5 5.4 17.3 6 25.3 1.7l137-73.2 137 73.2h-.1Z" }));
|
|
292
307
|
exports.Star = (0, react_1.memo)(_Star);
|
|
293
308
|
exports.Star.displayName = "Star";
|
|
309
|
+
const _StarAlt = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "m320 0 55.211 264.789L640 320l-264.789 55.211L320 640l-55.211-264.789L0 320l264.789-55.211z" }));
|
|
310
|
+
exports.StarAlt = (0, react_1.memo)(_StarAlt);
|
|
311
|
+
exports.StarAlt.displayName = "StarAlt";
|
|
294
312
|
const _Stopwatch = (props) => ((0, jsx_runtime_1.jsx)(SVG, { ...props, d: "M224 80c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16s-7.2 16-16 16h-64v64.6c49.4 3.8 94 24.8 127.7 57l37-37c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6l-38.2 38.2C512 276.6 528 320.4 528 368c0 114.9-93.1 208-208 208s-208-93.1-208-208c0-109.5 84.6-199.2 192-207.4V96h-64c-8.8 0-16-7.2-16-16Zm-80 288c0 97.202 78.798 176 176 176s176-78.798 176-176-78.798-176-176-176-176 78.798-176 176Zm192-96v112c0 8.8-7.2 16-16 16s-16-7.2-16-16V272c0-8.8 7.2-16 16-16s16 7.2 16 16Z" }));
|
|
295
313
|
exports.Stopwatch = (0, react_1.memo)(_Stopwatch);
|
|
296
314
|
exports.Stopwatch.displayName = "Stopwatch";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pill = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const clsx_1 = require("clsx");
|
|
6
|
+
const Pill = ({ className, icon, label, ...props }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...props, className: (0, clsx_1.default)("pill", className), children: [icon, (0, jsx_runtime_1.jsx)("span", { children: label })] }));
|
|
8
|
+
};
|
|
9
|
+
exports.Pill = Pill;
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Progress = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const clsx_1 = require("clsx");
|
|
6
|
-
const Progress = ({ percentage, height = 4, className, showLabels, label, labelMin = "0", labelMax = "100", }) => {
|
|
6
|
+
const Progress = ({ percentage, fillStart = 0, height = 4, className, fillClassName, showLabels, label, labelMin = "0", labelMax = "100", }) => {
|
|
7
7
|
if (percentage < 0)
|
|
8
8
|
percentage = 0;
|
|
9
9
|
if (percentage > 100)
|
|
10
10
|
percentage = 100;
|
|
11
|
-
|
|
11
|
+
if (fillStart + percentage > 100)
|
|
12
|
+
percentage = 100 - fillStart;
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, clsx_1.default)({ progress: true, [`${className}`]: className }), children: [(0, jsx_runtime_1.jsxs)("div", { className: "progress__height", children: [(0, jsx_runtime_1.jsx)("div", { className: "progress__track", style: { height: height } }), (0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)("progress__percentage", fillClassName), style: { left: `${fillStart}%`, width: `${percentage}%`, ...(fillClassName ? { backgroundImage: "none" } : {}) } })] }), showLabels && ((0, jsx_runtime_1.jsxs)("div", { className: "progress__labels", children: [(0, jsx_runtime_1.jsx)("div", { children: labelMin }), (0, jsx_runtime_1.jsx)("div", { style: { left: `${percentage}%` }, children: label || percentage }), (0, jsx_runtime_1.jsx)("div", { children: labelMax })] }))] }));
|
|
12
14
|
};
|
|
13
15
|
exports.Progress = Progress;
|
|
@@ -34,7 +34,7 @@ const GlobalModal = ({ children, }) => {
|
|
|
34
34
|
setModalProps(modalProps);
|
|
35
35
|
};
|
|
36
36
|
const hideModal = () => {
|
|
37
|
-
document.body.style.overflow = "
|
|
37
|
+
document.body.style.overflow = "";
|
|
38
38
|
setModalProps({});
|
|
39
39
|
};
|
|
40
40
|
const dest = document.getElementById("modal");
|
package/lib/cjs/i18n/config.js
CHANGED
|
@@ -8,6 +8,7 @@ const borrow_json_1 = require("./locales/de/borrow.json");
|
|
|
8
8
|
const common_json_1 = require("./locales/de/common.json");
|
|
9
9
|
const ecosystem_json_1 = require("./locales/de/ecosystem.json");
|
|
10
10
|
const header_json_1 = require("./locales/de/header.json");
|
|
11
|
+
const home_json_1 = require("./locales/de/home.json");
|
|
11
12
|
const index_json_1 = require("./locales/de/index.json");
|
|
12
13
|
const leagues_json_1 = require("./locales/de/leagues.json");
|
|
13
14
|
const merge_json_1 = require("./locales/de/merge.json");
|
|
@@ -19,6 +20,7 @@ const borrow_json_2 = require("./locales/en/borrow.json");
|
|
|
19
20
|
const common_json_2 = require("./locales/en/common.json");
|
|
20
21
|
const ecosystem_json_2 = require("./locales/en/ecosystem.json");
|
|
21
22
|
const header_json_2 = require("./locales/en/header.json");
|
|
23
|
+
const home_json_2 = require("./locales/en/home.json");
|
|
22
24
|
const index_json_2 = require("./locales/en/index.json");
|
|
23
25
|
const leagues_json_2 = require("./locales/en/leagues.json");
|
|
24
26
|
const merge_json_2 = require("./locales/en/merge.json");
|
|
@@ -61,6 +63,7 @@ i18next_1.default.use(react_i18next_1.initReactI18next).init({
|
|
|
61
63
|
index: index_json_2.default,
|
|
62
64
|
borrow: borrow_json_2.default,
|
|
63
65
|
header: header_json_2.default,
|
|
66
|
+
home: home_json_2.default,
|
|
64
67
|
ecosystem: ecosystem_json_2.default,
|
|
65
68
|
merge: merge_json_2.default,
|
|
66
69
|
leagues: leagues_json_2.default,
|
|
@@ -74,6 +77,7 @@ i18next_1.default.use(react_i18next_1.initReactI18next).init({
|
|
|
74
77
|
index: index_json_1.default,
|
|
75
78
|
borrow: borrow_json_1.default,
|
|
76
79
|
header: header_json_1.default,
|
|
80
|
+
home: home_json_1.default,
|
|
77
81
|
ecosystem: ecosystem_json_1.default,
|
|
78
82
|
merge: merge_json_1.default,
|
|
79
83
|
leagues: leagues_json_1.default,
|
|
@@ -91,6 +95,7 @@ i18next_1.default.use(react_i18next_1.initReactI18next).init({
|
|
|
91
95
|
"index",
|
|
92
96
|
"borrow",
|
|
93
97
|
"header",
|
|
98
|
+
"home",
|
|
94
99
|
"ecosystem",
|
|
95
100
|
"merge",
|
|
96
101
|
"leagues",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"vultisigEmailLabel": "E-Mail",
|
|
115
115
|
"vultisigVerifyCodeLabel": "Bestätige den Fast Vault Code, der an {{email}} gesendet wurde",
|
|
116
116
|
"vultisigVerify": "Bestätigen",
|
|
117
|
-
"vultisigReadOnlyWarning": "
|
|
117
|
+
"vultisigReadOnlyWarning": "Das Signieren mit Vultisig Vaults ist vorübergehend nur für Rujira und andere Cosmos-Chains aktiviert. Vaults können erstellt, gesichert und in jede andere Vultisig-kompatible Wallet importiert werden.",
|
|
118
118
|
"vultisigConnectProviderError": "useConnect muss innerhalb von ConnectProvider verwendet werden",
|
|
119
119
|
"mergeNow": "Jetzt Mergen",
|
|
120
120
|
"iUnderstandContinue": "Ich verstehe, Fortfahren",
|
|
@@ -82,5 +82,6 @@
|
|
|
82
82
|
"referralValidUntil": "Dieser Empfehlungslink ist gültig bis ...",
|
|
83
83
|
"close": "Schließen",
|
|
84
84
|
"addressCopied": "Adresse in die Zwischenablage kopiert",
|
|
85
|
-
"copyAddress": "Adresse kopieren..."
|
|
85
|
+
"copyAddress": "Adresse kopieren...",
|
|
86
|
+
"commonQuestions": "Häufig gestellte Fragen"
|
|
86
87
|
}
|