@arcblock/ux 3.0.41 → 3.0.43
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/NavMenu/images/did.svg.js +2 -2
- package/lib/NavMenu/products.js +183 -187
- package/lib/NavMenu/sub-item-group.js +7 -1
- package/package.json +7 -7
- package/src/NavMenu/images/did.svg +5 -3
- package/src/NavMenu/products.tsx +157 -163
- package/src/NavMenu/sub-item-group.tsx +7 -1
- package/lib/NavMenu/images/ai-kit.svg.js +0 -7
- package/lib/NavMenu/images/did-connect.svg.js +0 -5
- package/lib/NavMenu/images/did-name-service.svg.js +0 -5
- package/src/NavMenu/images/did-connect.svg +0 -26
- package/src/NavMenu/images/did-name-service.svg +0 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as C from "react";
|
2
|
-
const
|
2
|
+
const e = (H) => /* @__PURE__ */ C.createElement("svg", { viewBox: "0 0 90 65", xmlns: "http://www.w3.org/2000/svg", ...H }, /* @__PURE__ */ C.createElement("path", { d: "M79.4248 0.700195C85.1132 0.700234 89.7244 5.31169 89.7246 11V54.2344C89.7244 59.9227 85.1132 64.5341 79.4248 64.5342H11.1562C5.46786 64.5342 0.856682 59.9227 0.856445 54.2344V54.0186H5.45605V54.2344C5.45629 57.3822 8.00837 59.9336 11.1562 59.9336H79.4248C82.5726 59.9336 85.1248 57.3822 85.125 54.2344V11C85.1248 7.8522 82.5727 5.29984 79.4248 5.2998H11.1562C8.00837 5.2998 5.45629 7.85217 5.45605 11V11.4893H0.856445V11C0.856676 5.31166 5.46786 0.700195 11.1562 0.700195H79.4248ZM11.293 17.6914C14.2375 17.6914 16.7876 18.3114 18.9434 19.5508C21.1254 20.762 22.8219 22.4798 24.0312 24.7051C25.2406 26.9304 25.8447 29.5504 25.8447 32.5645C25.8447 35.5502 25.2405 38.1418 24.0312 40.3389C22.8219 42.536 21.1255 44.2399 18.9434 45.4512C16.7875 46.6624 14.2375 47.2686 11.293 47.2686H1V17.6914H11.293ZM35.2061 47.2686H29.8818V17.6914H35.2061V47.2686ZM50.8828 17.6914C53.8272 17.6914 56.3774 18.3114 58.5332 19.5508C60.7151 20.7619 62.4108 22.48 63.6201 24.7051C64.8295 26.9304 65.4346 29.5505 65.4346 32.5645C65.4346 35.5503 64.8295 38.1417 63.6201 40.3389C62.4108 42.5359 60.7152 44.2399 58.5332 45.4512C56.3774 46.6624 53.8272 47.2685 50.8828 47.2686H40.5898V17.6914H50.8828ZM73.4785 36.7568C75.1235 36.7568 76.457 38.0913 76.457 39.7363C76.4568 41.3811 75.1234 42.7148 73.4785 42.7148C71.8338 42.7147 70.5003 41.381 70.5 39.7363C70.5 38.0914 71.8336 36.757 73.4785 36.7568ZM6.32422 42.4941H11.1357C14.1064 42.4941 16.3934 41.6204 17.9971 39.874C19.6008 38.0994 20.4023 35.663 20.4023 32.5645C20.4023 29.4378 19.6008 26.9727 17.9971 25.1699C16.3934 23.3674 14.1063 22.4659 11.1357 22.4658H6.32422V42.4941ZM45.9141 42.4941H50.7246C53.6954 42.4941 55.9832 41.6205 57.5869 39.874C59.1905 38.0994 59.9922 35.6628 59.9922 32.5645C59.9922 29.4378 59.1906 26.9727 57.5869 25.1699C55.9832 23.3672 53.6954 22.4658 50.7246 22.4658H45.9141V42.4941ZM73.4785 22.8574C75.1235 22.8574 76.457 24.1909 76.457 25.8359C76.457 27.4809 75.1235 28.8145 73.4785 28.8145C71.8336 28.8143 70.5 27.4808 70.5 25.8359C70.5 24.191 71.8337 22.8576 73.4785 22.8574Z", fill: "currentColor" }));
|
3
3
|
export {
|
4
|
-
|
4
|
+
e as default
|
5
5
|
};
|
package/lib/NavMenu/products.js
CHANGED
@@ -1,34 +1,31 @@
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
2
|
-
import { useRef as
|
3
|
-
import { Link as
|
4
|
-
import { useMemoizedFn as
|
5
|
-
import { Box as
|
6
|
-
import
|
7
|
-
import { Item as
|
8
|
-
import { styled as
|
9
|
-
import { useNavMenuContext as
|
10
|
-
import { translate as
|
11
|
-
import { useLocaleContext as
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import
|
20
|
-
import
|
21
|
-
import
|
22
|
-
import
|
23
|
-
import
|
24
|
-
import
|
25
|
-
import
|
26
|
-
import
|
27
|
-
import
|
28
|
-
|
29
|
-
import b from "./images/arcsphere.svg.js";
|
30
|
-
import z from "./images/aistro.png";
|
31
|
-
const V = {
|
2
|
+
import { useRef as $, useState as D, useEffect as k } from "react";
|
3
|
+
import { Link as p } from "react-router-dom";
|
4
|
+
import { useMemoizedFn as S, useCreation as G } from "ahooks";
|
5
|
+
import { Box as h, useTheme as E } from "@mui/material";
|
6
|
+
import B from "./sub-item-group.js";
|
7
|
+
import { Item as T } from "./nav-menu.js";
|
8
|
+
import { styled as I } from "../Theme/index.js";
|
9
|
+
import { useNavMenuContext as F } from "./nav-menu-context.js";
|
10
|
+
import { translate as K } from "../Locale/util.js";
|
11
|
+
import { useLocaleContext as L } from "../Locale/context.js";
|
12
|
+
import M from "./images/nft-studio.svg.js";
|
13
|
+
import _ from "./images/creator-studio.svg.js";
|
14
|
+
import O from "./images/blocklet-launcher.svg.js";
|
15
|
+
import P from "./images/blocklet-store.svg.js";
|
16
|
+
import R from "./images/web3-kit.svg.js";
|
17
|
+
import H from "./images/blocklet-framework.svg.js";
|
18
|
+
import z from "./images/abt-network.svg.js";
|
19
|
+
import V from "./images/blocklet-server.svg.js";
|
20
|
+
import j from "./images/OCAP.svg.js";
|
21
|
+
import q from "./images/did.svg.js";
|
22
|
+
import U from "./images/did-wallet.svg.js";
|
23
|
+
import J from "./images/vc.svg.js";
|
24
|
+
import Q from "./images/payment-kit.png";
|
25
|
+
import X from "./images/aigne.svg.js";
|
26
|
+
import v from "./images/arcsphere.svg.js";
|
27
|
+
import Y from "./images/aistro.png";
|
28
|
+
const A = 260, Z = {
|
32
29
|
en: {
|
33
30
|
groups: {
|
34
31
|
applications: "Applications",
|
@@ -221,11 +218,9 @@ const V = {
|
|
221
218
|
}
|
222
219
|
}
|
223
220
|
}
|
224
|
-
},
|
225
|
-
width: 80vw;
|
226
|
-
max-width: 900px;
|
221
|
+
}, ee = I(h)`
|
227
222
|
padding: 8px;
|
228
|
-
background: ${({ theme:
|
223
|
+
background: ${({ theme: r }) => r.palette.grey[100]};
|
229
224
|
border-radius: 8px;
|
230
225
|
|
231
226
|
&.is-inline {
|
@@ -244,276 +239,277 @@ const V = {
|
|
244
239
|
.MuiGrid-container + .MuiGrid-container {
|
245
240
|
margin-top: 0px;
|
246
241
|
}
|
247
|
-
|
248
|
-
|
242
|
+
`, oe = I(h, { shouldForwardProp: (r) => r !== "maxContent" })(
|
243
|
+
({ theme: r, maxContent: n }) => ({
|
244
|
+
display: "grid",
|
245
|
+
gap: r.spacing(1),
|
246
|
+
gridTemplateColumns: `repeat(1, ${n}px)`,
|
247
|
+
[r.breakpoints.up("md")]: {
|
248
|
+
gridTemplateColumns: `repeat(2, ${n}px)`
|
249
|
+
},
|
250
|
+
[r.breakpoints.up("lg")]: {
|
251
|
+
gridTemplateColumns: `repeat(3, ${n}px)`
|
252
|
+
}
|
253
|
+
})
|
254
|
+
);
|
255
|
+
function C({ color: r = "black", backgroundColor: n = "transparent", children: l }) {
|
249
256
|
return /* @__PURE__ */ e(
|
250
|
-
|
257
|
+
h,
|
251
258
|
{
|
252
259
|
component: "span",
|
253
260
|
sx: {
|
254
261
|
display: "inline-flex",
|
255
262
|
alignItems: "center",
|
256
263
|
justifyContent: "center",
|
257
|
-
color:
|
258
|
-
backgroundColor:
|
264
|
+
color: r,
|
265
|
+
backgroundColor: n,
|
259
266
|
borderRadius: "4px"
|
260
267
|
},
|
261
|
-
children:
|
268
|
+
children: l
|
262
269
|
}
|
263
270
|
);
|
264
271
|
}
|
265
|
-
function
|
266
|
-
|
272
|
+
function m({ color: r = "black", backgroundColor: n = "transparent" }) {
|
273
|
+
return /* @__PURE__ */ e(C, { color: r, backgroundColor: n, children: /* @__PURE__ */ e(q, { style: { width: "100%" } }) });
|
274
|
+
}
|
275
|
+
function d({ color: r = "black", backgroundColor: n = "transparent" }) {
|
276
|
+
return /* @__PURE__ */ e(C, { color: r, backgroundColor: n, children: /* @__PURE__ */ e(X, { style: { width: "100%", height: "100%" } }) });
|
277
|
+
}
|
278
|
+
function t({ to: r, children: n, className: l = "" }) {
|
279
|
+
return (() => {
|
280
|
+
try {
|
281
|
+
return new URL(r).origin !== window.location.origin;
|
282
|
+
} catch {
|
283
|
+
return !1;
|
284
|
+
}
|
285
|
+
})() ? /* @__PURE__ */ e(p, { to: r, target: "_blank", rel: "noreferrer noopener", className: l, children: n }) : /* @__PURE__ */ e(p, { to: r, className: l, children: n });
|
286
|
+
}
|
287
|
+
function $e({ className: r = "", type: n, ...l }) {
|
288
|
+
const { mode: w } = F(), b = E(), { locale: i = "en" } = L() || {}, a = $(null), { palette: g } = b, o = S((c, s = {}) => K(Z, c, i, "en", s)), [y, N] = D(A), u = S(() => {
|
289
|
+
if (!a.current) return;
|
290
|
+
const c = a.current.querySelectorAll(".navmenu-item__content");
|
291
|
+
let s = A;
|
292
|
+
c.forEach((W) => {
|
293
|
+
const f = W.getBoundingClientRect().width + 64;
|
294
|
+
f > s && (s = f);
|
295
|
+
}), N(s);
|
296
|
+
});
|
297
|
+
k(() => {
|
298
|
+
u();
|
299
|
+
}, [b, i, n, u]), k(() => {
|
300
|
+
if (!a.current) return;
|
301
|
+
const c = a.current.querySelector(".navmenu-item__content");
|
302
|
+
if (!c) return;
|
303
|
+
const s = new ResizeObserver(() => {
|
304
|
+
u();
|
305
|
+
});
|
306
|
+
return s.observe(c), () => {
|
307
|
+
s.disconnect();
|
308
|
+
};
|
309
|
+
}, [u]);
|
310
|
+
const x = G(() => n === "ARCBLOCK" ? [
|
267
311
|
{
|
268
312
|
type: "Group",
|
269
|
-
label:
|
313
|
+
label: o("groups.applications"),
|
270
314
|
children: [
|
271
315
|
{
|
272
|
-
label: /* @__PURE__ */ e(
|
273
|
-
description:
|
274
|
-
icon: /* @__PURE__ */ e(
|
316
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.nftstudio.rocks/${i}`, children: "NFT Studio" }),
|
317
|
+
description: o("products.nftStudio.description"),
|
318
|
+
icon: /* @__PURE__ */ e(M, {})
|
275
319
|
},
|
276
320
|
{
|
277
321
|
label: /* @__PURE__ */ e(
|
278
|
-
|
322
|
+
p,
|
279
323
|
{
|
280
|
-
to: `https://www.arcblock.io/content/collections/${
|
324
|
+
to: `https://www.arcblock.io/content/collections/${i}/creator-studio`,
|
281
325
|
target: "_blank",
|
282
326
|
rel: "noreferrer noopener",
|
283
327
|
children: "Creator Studio"
|
284
328
|
}
|
285
329
|
),
|
286
|
-
description:
|
287
|
-
icon: /* @__PURE__ */ e(
|
330
|
+
description: o("products.creatorStudio.description"),
|
331
|
+
icon: /* @__PURE__ */ e(_, {})
|
288
332
|
},
|
289
333
|
{
|
290
|
-
label: /* @__PURE__ */ e(
|
291
|
-
description:
|
292
|
-
icon: /* @__PURE__ */ e(
|
334
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/", children: "AIGNE" }),
|
335
|
+
description: o("products.aigne.description"),
|
336
|
+
icon: /* @__PURE__ */ e(d, { color: g.mode === "dark" ? "white" : "black" })
|
293
337
|
},
|
294
338
|
{
|
295
|
-
label: /* @__PURE__ */ e(
|
296
|
-
description:
|
297
|
-
icon: /* @__PURE__ */ e(
|
339
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${i}`, children: "ArcSphere" }),
|
340
|
+
description: o("products.arcsphere.description"),
|
341
|
+
icon: /* @__PURE__ */ e(v, {})
|
298
342
|
}
|
299
343
|
]
|
300
344
|
},
|
301
345
|
{
|
302
346
|
type: "Group",
|
303
|
-
label:
|
347
|
+
label: o("groups.components"),
|
304
348
|
children: [
|
305
349
|
{
|
306
|
-
label: /* @__PURE__ */ e(
|
307
|
-
description:
|
308
|
-
icon: /* @__PURE__ */ e(
|
309
|
-
},
|
310
|
-
{
|
311
|
-
label: /* @__PURE__ */ e(o, { to: "https://www.aigne.io/hub", target: "_blank", rel: "noreferrer noopener", children: "AI Kit" }),
|
312
|
-
description: r("products.aiKit.description"),
|
313
|
-
icon: /* @__PURE__ */ e(G, {})
|
350
|
+
label: /* @__PURE__ */ e(t, { to: `https://launcher.arcblock.io/${i}`, children: "Blocklet Launcher" }),
|
351
|
+
description: o("products.blockletLauncher.description"),
|
352
|
+
icon: /* @__PURE__ */ e(O, {})
|
314
353
|
},
|
315
354
|
{
|
316
|
-
label: /* @__PURE__ */ e(
|
317
|
-
description:
|
318
|
-
icon: /* @__PURE__ */ e("img", { src:
|
355
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${i}/payment-kit`, children: "Payment Kit" }),
|
356
|
+
description: o("products.paymentKit.description"),
|
357
|
+
icon: /* @__PURE__ */ e("img", { src: Q, alt: "Payment Kit" })
|
319
358
|
},
|
320
359
|
{
|
321
|
-
label: /* @__PURE__ */ e(
|
322
|
-
description:
|
323
|
-
icon: /* @__PURE__ */ e(
|
360
|
+
label: /* @__PURE__ */ e(t, { to: `https://store.blocklet.dev/?locale=${i}`, children: "Blocklet Store" }),
|
361
|
+
description: o("products.blockletStore.description"),
|
362
|
+
icon: /* @__PURE__ */ e(P, {})
|
324
363
|
},
|
325
364
|
{
|
326
|
-
label: /* @__PURE__ */ e(
|
327
|
-
description:
|
328
|
-
icon: /* @__PURE__ */ e(
|
365
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.web3kit.rocks/${i}`, children: "Web3 Kit" }),
|
366
|
+
description: o("products.web3Kit.description"),
|
367
|
+
icon: /* @__PURE__ */ e(R, {})
|
329
368
|
}
|
330
369
|
]
|
331
370
|
},
|
332
371
|
{
|
333
372
|
type: "Group",
|
334
|
-
label:
|
373
|
+
label: o("groups.computeStorage"),
|
335
374
|
children: [
|
336
375
|
{
|
337
376
|
label: /* @__PURE__ */ e(
|
338
|
-
|
377
|
+
p,
|
339
378
|
{
|
340
|
-
to: `https://www.arcblock.io/content/collections/${
|
379
|
+
to: `https://www.arcblock.io/content/collections/${i}/blocklet`,
|
341
380
|
target: "_blank",
|
342
381
|
rel: "noreferrer noopener",
|
343
382
|
children: "Blocklet Framework"
|
344
383
|
}
|
345
384
|
),
|
346
|
-
description:
|
347
|
-
icon: /* @__PURE__ */ e(
|
385
|
+
description: o("products.blockletFramework.description"),
|
386
|
+
icon: /* @__PURE__ */ e(H, {})
|
348
387
|
},
|
349
388
|
{
|
350
|
-
label: /* @__PURE__ */ e(
|
351
|
-
description:
|
352
|
-
icon: /* @__PURE__ */ e(
|
389
|
+
label: /* @__PURE__ */ e(p, { to: `https://www.didspaces.com/${i}`, target: "_blank", rel: "noreferrer noopener", children: "DID Spaces" }),
|
390
|
+
description: o("products.didSpaces.description"),
|
391
|
+
icon: /* @__PURE__ */ e(m, { color: "#876bf4" })
|
353
392
|
},
|
354
393
|
{
|
355
|
-
label: /* @__PURE__ */ e(
|
356
|
-
description:
|
357
|
-
icon: /* @__PURE__ */ e(
|
394
|
+
label: /* @__PURE__ */ e(p, { to: "https://main.abtnetwork.io/", target: "_blank", rel: "noreferrer noopener", children: "ABT Network" }),
|
395
|
+
description: o("products.abtNetwork.description"),
|
396
|
+
icon: /* @__PURE__ */ e(z, {})
|
358
397
|
},
|
359
398
|
{
|
360
|
-
label: /* @__PURE__ */ e(
|
361
|
-
|
362
|
-
|
363
|
-
to: `https://www.blocklet.io/${t}/blocklet-server`,
|
364
|
-
target: "_blank",
|
365
|
-
rel: "noreferrer noopener",
|
366
|
-
children: "Blocklet Server"
|
367
|
-
}
|
368
|
-
),
|
369
|
-
description: r("products.blockletServer.description"),
|
370
|
-
icon: /* @__PURE__ */ e(E, {})
|
399
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${i}/blocklet-server`, children: "Blocklet Server" }),
|
400
|
+
description: o("products.blockletServer.description"),
|
401
|
+
icon: /* @__PURE__ */ e(V, {})
|
371
402
|
},
|
372
403
|
{
|
373
|
-
label: /* @__PURE__ */ e(
|
374
|
-
|
375
|
-
|
376
|
-
to: `https://www.arcblock.io/content/collections/${t}/ocap`,
|
377
|
-
target: "_blank",
|
378
|
-
rel: "noreferrer noopener",
|
379
|
-
children: "ОСАР"
|
380
|
-
}
|
381
|
-
),
|
382
|
-
description: r("products.ocap.description"),
|
383
|
-
icon: /* @__PURE__ */ e(L, {})
|
404
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcblock.io/content/collections/${i}/ocap`, children: "ОСАР" }),
|
405
|
+
description: o("products.ocap.description"),
|
406
|
+
icon: /* @__PURE__ */ e(j, {})
|
384
407
|
}
|
385
408
|
]
|
386
409
|
},
|
387
410
|
{
|
388
411
|
type: "Group",
|
389
|
-
label:
|
412
|
+
label: o("groups.identity"),
|
390
413
|
children: [
|
391
414
|
{
|
392
|
-
label: /* @__PURE__ */ e(
|
393
|
-
|
394
|
-
|
395
|
-
to: `https://www.arcblock.io/content/collections/${t}/did`,
|
396
|
-
target: "_blank",
|
397
|
-
rel: "noreferrer noopener",
|
398
|
-
children: "DID"
|
399
|
-
}
|
400
|
-
),
|
401
|
-
description: r("products.did.description"),
|
402
|
-
icon: /* @__PURE__ */ e(s, {})
|
415
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcblock.io/content/collections/${i}/did`, children: "DID" }),
|
416
|
+
description: o("products.did.description"),
|
417
|
+
icon: /* @__PURE__ */ e(m, { color: "#5b96f3" })
|
403
418
|
},
|
404
419
|
{
|
405
|
-
label: /* @__PURE__ */ e(
|
406
|
-
description:
|
407
|
-
icon: /* @__PURE__ */ e(
|
420
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.didwallet.io/${i}`, children: "DID Wallet" }),
|
421
|
+
description: o("products.didWallet.description"),
|
422
|
+
icon: /* @__PURE__ */ e(U, {})
|
408
423
|
},
|
409
424
|
{
|
410
|
-
label: /* @__PURE__ */ e(
|
411
|
-
description:
|
412
|
-
icon: /* @__PURE__ */ e(
|
425
|
+
label: /* @__PURE__ */ e(p, { to: `https://www.didnames.io/${i}`, target: "_blank", rel: "noreferrer noopener", children: "DID Names" }),
|
426
|
+
description: o("products.didNameService.description"),
|
427
|
+
icon: /* @__PURE__ */ e(m, { color: "#678ab0" })
|
413
428
|
},
|
414
429
|
{
|
415
|
-
label: /* @__PURE__ */ e(
|
416
|
-
|
417
|
-
|
418
|
-
to: `https://www.arcblock.io/content/collections/${t}/verifiable-credential`,
|
419
|
-
target: "_blank",
|
420
|
-
rel: "noreferrer noopener",
|
421
|
-
children: "VC"
|
422
|
-
}
|
423
|
-
),
|
424
|
-
description: r("products.vc.description"),
|
425
|
-
icon: /* @__PURE__ */ e(M, {})
|
430
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcblock.io/content/collections/${i}/verifiable-credential`, children: "VC" }),
|
431
|
+
description: o("products.vc.description"),
|
432
|
+
icon: /* @__PURE__ */ e(J, {})
|
426
433
|
},
|
427
434
|
{
|
428
|
-
label: /* @__PURE__ */ e(
|
429
|
-
description:
|
430
|
-
icon: /* @__PURE__ */ e(
|
435
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.didconnect.io/${i}`, children: "DID Connect" }),
|
436
|
+
description: o("products.didConnect.description"),
|
437
|
+
icon: /* @__PURE__ */ e(m, { color: "#5bbec5" })
|
431
438
|
}
|
432
439
|
]
|
433
440
|
}
|
434
|
-
] :
|
441
|
+
] : n === "AIGNE" ? [
|
435
442
|
{
|
436
443
|
type: "Group",
|
437
|
-
label:
|
444
|
+
label: o("groups.applications"),
|
438
445
|
children: [
|
439
446
|
{
|
440
|
-
label: /* @__PURE__ */ e(
|
441
|
-
description:
|
442
|
-
icon: /* @__PURE__ */ e(
|
447
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${i}`, children: "ArcSphere" }),
|
448
|
+
description: o("products.arcsphere.description"),
|
449
|
+
icon: /* @__PURE__ */ e(v, {})
|
443
450
|
},
|
444
451
|
{
|
445
|
-
label: /* @__PURE__ */ e(
|
446
|
-
description:
|
447
|
-
icon: /* @__PURE__ */ e("img", { src:
|
452
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.aistro.io/${i}`, children: "Aistro" }),
|
453
|
+
description: o("products.aistro.description"),
|
454
|
+
icon: /* @__PURE__ */ e("img", { src: Y, alt: "Aistro" })
|
448
455
|
},
|
449
456
|
{
|
450
|
-
label: /* @__PURE__ */ e(
|
451
|
-
description:
|
452
|
-
icon: /* @__PURE__ */ e(
|
457
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/doc-smith", children: "AIGNE CodeSmith" }),
|
458
|
+
description: o("products.aigneCodeSmith.description"),
|
459
|
+
icon: /* @__PURE__ */ e(d, { color: "#56a596", backgroundColor: "#e9fcf6" })
|
453
460
|
},
|
454
461
|
{
|
455
|
-
label: /* @__PURE__ */ e(
|
456
|
-
description:
|
457
|
-
icon: /* @__PURE__ */ e(
|
462
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/code-smith", children: "AIGNE DocSmith" }),
|
463
|
+
description: o("products.aigneDocSmith.description"),
|
464
|
+
icon: /* @__PURE__ */ e(d, { color: "#e46f38", backgroundColor: "#f7e0d7" })
|
458
465
|
},
|
459
466
|
{
|
460
|
-
label: /* @__PURE__ */ e(
|
461
|
-
description:
|
462
|
-
icon: /* @__PURE__ */ e(
|
467
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/web-smith", children: "AIGNE WebSmith" }),
|
468
|
+
description: o("products.aigneWebSmith.description"),
|
469
|
+
icon: /* @__PURE__ */ e(d, { color: "#7c45eb", backgroundColor: "#f0e9ff" })
|
463
470
|
}
|
464
471
|
]
|
465
472
|
},
|
466
473
|
{
|
467
474
|
type: "Group",
|
468
|
-
label:
|
475
|
+
label: o("groups.frameworkTools"),
|
469
476
|
children: [
|
470
477
|
{
|
471
|
-
label: /* @__PURE__ */ e(
|
472
|
-
description:
|
473
|
-
icon: /* @__PURE__ */ e(
|
478
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/cli", children: "AIGNE CLI" }),
|
479
|
+
description: o("products.aigneCLI.description"),
|
480
|
+
icon: /* @__PURE__ */ e(d, { color: "#d05d4e", backgroundColor: "#faeaea" })
|
474
481
|
},
|
475
482
|
{
|
476
|
-
label: /* @__PURE__ */ e(
|
477
|
-
description:
|
478
|
-
icon: /* @__PURE__ */ e(
|
483
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/observability", children: "AIGNE Observability" }),
|
484
|
+
description: o("products.aigneObservability.description"),
|
485
|
+
icon: /* @__PURE__ */ e(d, { color: "#6ba456", backgroundColor: "#edfae8" })
|
479
486
|
},
|
480
487
|
{
|
481
|
-
label: /* @__PURE__ */ e(
|
482
|
-
description:
|
483
|
-
icon: /* @__PURE__ */ e(
|
488
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/studio", children: "AIGNE Studio" }),
|
489
|
+
description: o("products.aigneStudio.description"),
|
490
|
+
icon: /* @__PURE__ */ e(d, { color: "#676cbf", backgroundColor: "#edeeff" })
|
484
491
|
},
|
485
492
|
{
|
486
|
-
label: /* @__PURE__ */ e(
|
487
|
-
description:
|
488
|
-
icon: /* @__PURE__ */ e(
|
493
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/framework", children: "AIGNE Framework" }),
|
494
|
+
description: o("products.aigneFramework.description"),
|
495
|
+
icon: /* @__PURE__ */ e(d, { color: "#5086d0", backgroundColor: "#eef4ff" })
|
489
496
|
}
|
490
497
|
]
|
491
498
|
},
|
492
499
|
{
|
493
500
|
type: "Group",
|
494
|
-
label:
|
501
|
+
label: o("groups.modelsAdapters"),
|
495
502
|
children: [
|
496
503
|
{
|
497
|
-
label: /* @__PURE__ */ e(
|
498
|
-
description:
|
499
|
-
icon: /* @__PURE__ */ e(
|
504
|
+
label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/hub", children: "AIGNE Hub" }),
|
505
|
+
description: o("products.aigneHub.description"),
|
506
|
+
icon: /* @__PURE__ */ e(d, { color: "#e4930b", backgroundColor: "#fbf4d4" })
|
500
507
|
}
|
501
508
|
]
|
502
509
|
}
|
503
|
-
] : [], [
|
504
|
-
return /* @__PURE__ */ e(
|
505
|
-
d,
|
506
|
-
{
|
507
|
-
size: {
|
508
|
-
xs: 12,
|
509
|
-
md: 6,
|
510
|
-
lg: 4
|
511
|
-
},
|
512
|
-
children: /* @__PURE__ */ e(I, { variant: "panel", style: { padding: "8px" }, ...p })
|
513
|
-
},
|
514
|
-
p.description
|
515
|
-
)) }) }, c.label)) });
|
510
|
+
] : [], [o, i, g]);
|
511
|
+
return /* @__PURE__ */ e(ee, { ref: a, className: `nav-menu-products is-${w} ${r}`, ...l, children: x.map((c) => /* @__PURE__ */ e(B, { label: c.label, children: /* @__PURE__ */ e(oe, { maxContent: y, children: c.children.map((s) => /* @__PURE__ */ e(T, { variant: "panel", style: { padding: "8px" }, ...s })) }) }, c.label)) });
|
516
512
|
}
|
517
513
|
export {
|
518
|
-
|
514
|
+
$e as default
|
519
515
|
};
|
@@ -19,7 +19,13 @@ const u = l(r)`
|
|
19
19
|
padding: 0;
|
20
20
|
}
|
21
21
|
`;
|
22
|
-
function d({
|
22
|
+
function d({
|
23
|
+
label: o,
|
24
|
+
children: a,
|
25
|
+
className: n = "",
|
26
|
+
sx: t,
|
27
|
+
...p
|
28
|
+
}) {
|
23
29
|
return /* @__PURE__ */ s(u, { className: `nav-menu-sub-item-group ${n}`, sx: { ...t }, ...p, children: [
|
24
30
|
/* @__PURE__ */ e(r, { className: "group-label", children: o }),
|
25
31
|
/* @__PURE__ */ e(r, { component: "ul", className: "nav", children: a })
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.43",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -60,16 +60,16 @@
|
|
60
60
|
"react": "^19.0.0",
|
61
61
|
"react-router-dom": "^6.22.3"
|
62
62
|
},
|
63
|
-
"gitHead": "
|
63
|
+
"gitHead": "8c5736c8aa0cde4ebebc4c5e7c666034bbdded65",
|
64
64
|
"dependencies": {
|
65
|
-
"@arcblock/bridge": "3.0.
|
65
|
+
"@arcblock/bridge": "3.0.43",
|
66
66
|
"@arcblock/did": "^1.21.0",
|
67
67
|
"@arcblock/did-motif": "^1.1.14",
|
68
|
-
"@arcblock/icons": "3.0.
|
69
|
-
"@arcblock/nft-display": "3.0.
|
70
|
-
"@arcblock/react-hooks": "3.0.
|
68
|
+
"@arcblock/icons": "3.0.43",
|
69
|
+
"@arcblock/nft-display": "3.0.43",
|
70
|
+
"@arcblock/react-hooks": "3.0.43",
|
71
71
|
"@blocklet/js-sdk": "^1.16.46",
|
72
|
-
"@blocklet/theme": "3.0.
|
72
|
+
"@blocklet/theme": "3.0.43",
|
73
73
|
"@fontsource/roboto": "~5.1.1",
|
74
74
|
"@fontsource/ubuntu-mono": "^5.2.6",
|
75
75
|
"@iconify-icons/logos": "^1.2.36",
|
@@ -1,3 +1,5 @@
|
|
1
|
-
<svg
|
2
|
-
<path
|
3
|
-
|
1
|
+
<svg viewBox="0 0 90 65" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path
|
3
|
+
d="M79.4248 0.700195C85.1132 0.700234 89.7244 5.31169 89.7246 11V54.2344C89.7244 59.9227 85.1132 64.5341 79.4248 64.5342H11.1562C5.46786 64.5342 0.856682 59.9227 0.856445 54.2344V54.0186H5.45605V54.2344C5.45629 57.3822 8.00837 59.9336 11.1562 59.9336H79.4248C82.5726 59.9336 85.1248 57.3822 85.125 54.2344V11C85.1248 7.8522 82.5727 5.29984 79.4248 5.2998H11.1562C8.00837 5.2998 5.45629 7.85217 5.45605 11V11.4893H0.856445V11C0.856676 5.31166 5.46786 0.700195 11.1562 0.700195H79.4248ZM11.293 17.6914C14.2375 17.6914 16.7876 18.3114 18.9434 19.5508C21.1254 20.762 22.8219 22.4798 24.0312 24.7051C25.2406 26.9304 25.8447 29.5504 25.8447 32.5645C25.8447 35.5502 25.2405 38.1418 24.0312 40.3389C22.8219 42.536 21.1255 44.2399 18.9434 45.4512C16.7875 46.6624 14.2375 47.2686 11.293 47.2686H1V17.6914H11.293ZM35.2061 47.2686H29.8818V17.6914H35.2061V47.2686ZM50.8828 17.6914C53.8272 17.6914 56.3774 18.3114 58.5332 19.5508C60.7151 20.7619 62.4108 22.48 63.6201 24.7051C64.8295 26.9304 65.4346 29.5505 65.4346 32.5645C65.4346 35.5503 64.8295 38.1417 63.6201 40.3389C62.4108 42.5359 60.7152 44.2399 58.5332 45.4512C56.3774 46.6624 53.8272 47.2685 50.8828 47.2686H40.5898V17.6914H50.8828ZM73.4785 36.7568C75.1235 36.7568 76.457 38.0913 76.457 39.7363C76.4568 41.3811 75.1234 42.7148 73.4785 42.7148C71.8338 42.7147 70.5003 41.381 70.5 39.7363C70.5 38.0914 71.8336 36.757 73.4785 36.7568ZM6.32422 42.4941H11.1357C14.1064 42.4941 16.3934 41.6204 17.9971 39.874C19.6008 38.0994 20.4023 35.663 20.4023 32.5645C20.4023 29.4378 19.6008 26.9727 17.9971 25.1699C16.3934 23.3674 14.1063 22.4659 11.1357 22.4658H6.32422V42.4941ZM45.9141 42.4941H50.7246C53.6954 42.4941 55.9832 41.6205 57.5869 39.874C59.1905 38.0994 59.9922 35.6628 59.9922 32.5645C59.9922 29.4378 59.1906 26.9727 57.5869 25.1699C55.9832 23.3672 53.6954 22.4658 50.7246 22.4658H45.9141V42.4941ZM73.4785 22.8574C75.1235 22.8574 76.457 24.1909 76.457 25.8359C76.457 27.4809 75.1235 28.8145 73.4785 28.8145C71.8336 28.8143 70.5 27.4808 70.5 25.8359C70.5 24.191 71.8337 22.8576 73.4785 22.8574Z"
|
4
|
+
fill="currentColor" />
|
5
|
+
</svg>
|
package/src/NavMenu/products.tsx
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
import { useRef } from 'react';
|
1
|
+
import { useRef, useEffect, useState } from 'react';
|
2
2
|
import { Link } from 'react-router-dom';
|
3
3
|
import { useCreation, useMemoizedFn } from 'ahooks';
|
4
|
-
import { Box, BoxProps,
|
4
|
+
import { Box, BoxProps, useTheme } from '@mui/material';
|
5
5
|
import SubItemGroup from './sub-item-group';
|
6
6
|
import { Item } from './nav-menu';
|
7
7
|
import { styled } from '../Theme';
|
8
8
|
import { useNavMenuContext } from './nav-menu-context';
|
9
9
|
import { translate } from '../Locale/util';
|
10
10
|
import { useLocaleContext } from '../Locale/context';
|
11
|
-
|
12
11
|
// Arcblock Icons
|
13
|
-
import AIKitSvg from './images/ai-kit.svg?react';
|
14
12
|
import NftStudioSvg from './images/nft-studio.svg?react';
|
15
13
|
import CreatorStudioSvg from './images/creator-studio.svg?react';
|
16
14
|
import BlockletLauncherSvg from './images/blocklet-launcher.svg?react';
|
@@ -22,16 +20,15 @@ import BlockletServerSvg from './images/blocklet-server.svg?react';
|
|
22
20
|
import OCAPSvg from './images/OCAP.svg?react';
|
23
21
|
import DidSvg from './images/did.svg?react';
|
24
22
|
import DidWalletSvg from './images/did-wallet.svg?react';
|
25
|
-
import DidNameServiceSvg from './images/did-name-service.svg?react';
|
26
23
|
import VCSvg from './images/vc.svg?react';
|
27
|
-
import DidConnectSvg from './images/did-connect.svg?react';
|
28
24
|
import PaymentKitPng from './images/payment-kit.png';
|
29
|
-
|
30
25
|
// AIGNE Icons
|
31
26
|
import AigneSvg from './images/aigne.svg?react';
|
32
27
|
import ArcSphereSvg from './images/arcsphere.svg?react';
|
33
28
|
import AistroPng from './images/aistro.png';
|
34
29
|
|
30
|
+
const MIN_ITEM_CONTENT_WIDTH = 260;
|
31
|
+
|
35
32
|
const translations = {
|
36
33
|
en: {
|
37
34
|
groups: {
|
@@ -228,8 +225,6 @@ const translations = {
|
|
228
225
|
};
|
229
226
|
|
230
227
|
const Wrapper = styled(Box)`
|
231
|
-
width: 80vw;
|
232
|
-
max-width: 900px;
|
233
228
|
padding: 8px;
|
234
229
|
background: ${({ theme }) => theme.palette.grey[100]};
|
235
230
|
border-radius: 8px;
|
@@ -252,7 +247,28 @@ const Wrapper = styled(Box)`
|
|
252
247
|
}
|
253
248
|
`;
|
254
249
|
|
255
|
-
|
250
|
+
const GridBox = styled(Box, { shouldForwardProp: (prop) => prop !== 'maxContent' })<{ maxContent: number }>(
|
251
|
+
({ theme, maxContent }) => ({
|
252
|
+
display: 'grid',
|
253
|
+
gap: theme.spacing(1),
|
254
|
+
gridTemplateColumns: `repeat(1, ${maxContent}px)`,
|
255
|
+
|
256
|
+
[theme.breakpoints.up('md')]: {
|
257
|
+
gridTemplateColumns: `repeat(2, ${maxContent}px)`,
|
258
|
+
},
|
259
|
+
|
260
|
+
[theme.breakpoints.up('lg')]: {
|
261
|
+
gridTemplateColumns: `repeat(3, ${maxContent}px)`,
|
262
|
+
},
|
263
|
+
})
|
264
|
+
);
|
265
|
+
|
266
|
+
interface IconWrapperProps {
|
267
|
+
color?: string;
|
268
|
+
backgroundColor?: string;
|
269
|
+
children: React.ReactNode;
|
270
|
+
}
|
271
|
+
function IconWrapper({ color = 'black', backgroundColor = 'transparent', children }: IconWrapperProps) {
|
256
272
|
return (
|
257
273
|
<Box
|
258
274
|
component="span"
|
@@ -264,22 +280,117 @@ function AigneIcon({ color = 'black', backgroundColor = 'transparent' }: { color
|
|
264
280
|
backgroundColor,
|
265
281
|
borderRadius: '4px',
|
266
282
|
}}>
|
267
|
-
|
283
|
+
{children}
|
268
284
|
</Box>
|
269
285
|
);
|
270
286
|
}
|
271
287
|
|
288
|
+
function DIDIcon({ color = 'black', backgroundColor = 'transparent' }: { color?: string; backgroundColor?: string }) {
|
289
|
+
return (
|
290
|
+
<IconWrapper color={color} backgroundColor={backgroundColor}>
|
291
|
+
<DidSvg style={{ width: '100%' }} />
|
292
|
+
</IconWrapper>
|
293
|
+
);
|
294
|
+
}
|
295
|
+
|
296
|
+
function AigneIcon({ color = 'black', backgroundColor = 'transparent' }: { color?: string; backgroundColor?: string }) {
|
297
|
+
return (
|
298
|
+
<IconWrapper color={color} backgroundColor={backgroundColor}>
|
299
|
+
<AigneSvg style={{ width: '100%', height: '100%' }} />
|
300
|
+
</IconWrapper>
|
301
|
+
);
|
302
|
+
}
|
303
|
+
|
304
|
+
// 智能 Link 组件,根据 URL origin 决定是否在新标签页打开
|
305
|
+
interface SmartLinkProps {
|
306
|
+
to: string;
|
307
|
+
children: React.ReactNode;
|
308
|
+
className?: string;
|
309
|
+
}
|
310
|
+
function SmartLink({ to, children, className = '' }: SmartLinkProps) {
|
311
|
+
const isExternal = () => {
|
312
|
+
try {
|
313
|
+
const url = new URL(to);
|
314
|
+
return url.origin !== window.location.origin;
|
315
|
+
} catch {
|
316
|
+
// 如果 to 不是有效的 URL,则认为是内部链接
|
317
|
+
return false;
|
318
|
+
}
|
319
|
+
};
|
320
|
+
|
321
|
+
if (isExternal()) {
|
322
|
+
return (
|
323
|
+
<Link to={to} target="_blank" rel="noreferrer noopener" className={className}>
|
324
|
+
{children}
|
325
|
+
</Link>
|
326
|
+
);
|
327
|
+
}
|
328
|
+
|
329
|
+
return (
|
330
|
+
<Link to={to} className={className}>
|
331
|
+
{children}
|
332
|
+
</Link>
|
333
|
+
);
|
334
|
+
}
|
335
|
+
|
272
336
|
export type ProductsType = 'AIGNE' | 'ARCBLOCK';
|
273
337
|
export interface ProductsProps extends BoxProps {
|
274
338
|
type: ProductsType;
|
275
339
|
}
|
276
|
-
export default function Products({ className, type, ...rest }: ProductsProps) {
|
340
|
+
export default function Products({ className = '', type, ...rest }: ProductsProps) {
|
277
341
|
const { mode } = useNavMenuContext();
|
278
|
-
const
|
279
|
-
const wrapperRef = useRef<HTMLDivElement>(null);
|
342
|
+
const theme = useTheme();
|
280
343
|
const { locale = 'en' } = useLocaleContext() || {};
|
344
|
+
const wrapperRef = useRef<HTMLDivElement>(null);
|
345
|
+
|
346
|
+
const { palette } = theme;
|
281
347
|
const t = useMemoizedFn((key, data = {}) => translate(translations, key, locale, 'en', data));
|
282
348
|
|
349
|
+
// 添加状态来存储最大内容宽度
|
350
|
+
const [maxContentWidth, setMaxContentWidth] = useState(MIN_ITEM_CONTENT_WIDTH);
|
351
|
+
|
352
|
+
// 计算 item 最大宽度
|
353
|
+
const calculateMaxContentWidth = useMemoizedFn(() => {
|
354
|
+
if (!wrapperRef.current) return;
|
355
|
+
|
356
|
+
const contentElements = wrapperRef.current.querySelectorAll('.navmenu-item__content');
|
357
|
+
let maxWidth = MIN_ITEM_CONTENT_WIDTH; // 默认最小宽度
|
358
|
+
|
359
|
+
contentElements.forEach((element) => {
|
360
|
+
const curWidth = element.getBoundingClientRect().width + 64; // 增加 icon 以及 padding 的宽度
|
361
|
+
if (curWidth > maxWidth) {
|
362
|
+
maxWidth = curWidth;
|
363
|
+
}
|
364
|
+
});
|
365
|
+
|
366
|
+
setMaxContentWidth(maxWidth);
|
367
|
+
});
|
368
|
+
|
369
|
+
// 监听主题、语言、类型变化时重新计算最大宽度
|
370
|
+
useEffect(() => {
|
371
|
+
calculateMaxContentWidth();
|
372
|
+
}, [theme, locale, type, calculateMaxContentWidth]);
|
373
|
+
|
374
|
+
// 监听 navmenu-item__content 元素宽度变化
|
375
|
+
useEffect(() => {
|
376
|
+
if (!wrapperRef.current) return;
|
377
|
+
|
378
|
+
const itemContent = wrapperRef.current.querySelector('.navmenu-item__content');
|
379
|
+
if (!itemContent) return;
|
380
|
+
|
381
|
+
const resizeObserver = new ResizeObserver(() => {
|
382
|
+
calculateMaxContentWidth();
|
383
|
+
});
|
384
|
+
|
385
|
+
// 监听 item 内容宽度变化(字体改变引起)
|
386
|
+
resizeObserver.observe(itemContent);
|
387
|
+
|
388
|
+
// eslint-disable-next-line consistent-return
|
389
|
+
return () => {
|
390
|
+
resizeObserver.disconnect();
|
391
|
+
};
|
392
|
+
}, [calculateMaxContentWidth]);
|
393
|
+
|
283
394
|
const groups = useCreation(() => {
|
284
395
|
if (type === 'ARCBLOCK') {
|
285
396
|
return [
|
@@ -288,11 +399,7 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
288
399
|
label: t('groups.applications'),
|
289
400
|
children: [
|
290
401
|
{
|
291
|
-
label:
|
292
|
-
<Link to={`https://www.nftstudio.rocks/${locale}`} target="_blank" rel="noreferrer noopener">
|
293
|
-
NFT Studio
|
294
|
-
</Link>
|
295
|
-
),
|
402
|
+
label: <SmartLink to={`https://www.nftstudio.rocks/${locale}`}>NFT Studio</SmartLink>,
|
296
403
|
description: t('products.nftStudio.description'),
|
297
404
|
icon: <NftStudioSvg />,
|
298
405
|
},
|
@@ -309,20 +416,12 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
309
416
|
icon: <CreatorStudioSvg />,
|
310
417
|
},
|
311
418
|
{
|
312
|
-
label:
|
313
|
-
<Link to="https://www.aigne.io/" target="_blank" rel="noreferrer noopener">
|
314
|
-
AIGNE
|
315
|
-
</Link>
|
316
|
-
),
|
419
|
+
label: <SmartLink to="https://www.aigne.io/">AIGNE</SmartLink>,
|
317
420
|
description: t('products.aigne.description'),
|
318
421
|
icon: <AigneIcon color={palette.mode === 'dark' ? 'white' : 'black'} />,
|
319
422
|
},
|
320
423
|
{
|
321
|
-
label:
|
322
|
-
<Link to={`https://www.arcsphere.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
323
|
-
ArcSphere
|
324
|
-
</Link>
|
325
|
-
),
|
424
|
+
label: <SmartLink to={`https://www.arcsphere.io/${locale}`}>ArcSphere</SmartLink>,
|
326
425
|
description: t('products.arcsphere.description'),
|
327
426
|
icon: <ArcSphereSvg />,
|
328
427
|
},
|
@@ -333,47 +432,22 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
333
432
|
label: t('groups.components'),
|
334
433
|
children: [
|
335
434
|
{
|
336
|
-
label:
|
337
|
-
<Link to={`https://launcher.arcblock.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
338
|
-
Blocklet Launcher
|
339
|
-
</Link>
|
340
|
-
),
|
435
|
+
label: <SmartLink to={`https://launcher.arcblock.io/${locale}`}>Blocklet Launcher</SmartLink>,
|
341
436
|
description: t('products.blockletLauncher.description'),
|
342
437
|
icon: <BlockletLauncherSvg />,
|
343
438
|
},
|
344
439
|
{
|
345
|
-
label:
|
346
|
-
<Link to="https://www.aigne.io/hub" target="_blank" rel="noreferrer noopener">
|
347
|
-
AI Kit
|
348
|
-
</Link>
|
349
|
-
),
|
350
|
-
description: t('products.aiKit.description'),
|
351
|
-
icon: <AIKitSvg />,
|
352
|
-
},
|
353
|
-
{
|
354
|
-
label: (
|
355
|
-
<Link to={`https://www.blocklet.io/${locale}/payment-kit`} target="_blank" rel="noreferrer noopener">
|
356
|
-
Payment Kit
|
357
|
-
</Link>
|
358
|
-
),
|
440
|
+
label: <SmartLink to={`https://www.blocklet.io/${locale}/payment-kit`}>Payment Kit</SmartLink>,
|
359
441
|
description: t('products.paymentKit.description'),
|
360
442
|
icon: <img src={PaymentKitPng} alt="Payment Kit" />,
|
361
443
|
},
|
362
444
|
{
|
363
|
-
label:
|
364
|
-
<Link to={`https://store.blocklet.dev/?locale=${locale}`} target="_blank" rel="noreferrer noopener">
|
365
|
-
Blocklet Store
|
366
|
-
</Link>
|
367
|
-
),
|
445
|
+
label: <SmartLink to={`https://store.blocklet.dev/?locale=${locale}`}>Blocklet Store</SmartLink>,
|
368
446
|
description: t('products.blockletStore.description'),
|
369
447
|
icon: <BlockletStoreSvg />,
|
370
448
|
},
|
371
449
|
{
|
372
|
-
label:
|
373
|
-
<Link to={`https://www.web3kit.rocks/${locale}`} target="_blank" rel="noreferrer noopener">
|
374
|
-
Web3 Kit
|
375
|
-
</Link>
|
376
|
-
),
|
450
|
+
label: <SmartLink to={`https://www.web3kit.rocks/${locale}`}>Web3 Kit</SmartLink>,
|
377
451
|
description: t('products.web3Kit.description'),
|
378
452
|
icon: <Web3KitSvg />,
|
379
453
|
},
|
@@ -402,7 +476,7 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
402
476
|
</Link>
|
403
477
|
),
|
404
478
|
description: t('products.didSpaces.description'),
|
405
|
-
icon: <
|
479
|
+
icon: <DIDIcon color="#876bf4" />,
|
406
480
|
},
|
407
481
|
{
|
408
482
|
label: (
|
@@ -414,26 +488,12 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
414
488
|
icon: <AbtNetworkSvg />,
|
415
489
|
},
|
416
490
|
{
|
417
|
-
label:
|
418
|
-
<Link
|
419
|
-
to={`https://www.blocklet.io/${locale}/blocklet-server`}
|
420
|
-
target="_blank"
|
421
|
-
rel="noreferrer noopener">
|
422
|
-
Blocklet Server
|
423
|
-
</Link>
|
424
|
-
),
|
491
|
+
label: <SmartLink to={`https://www.blocklet.io/${locale}/blocklet-server`}>Blocklet Server</SmartLink>,
|
425
492
|
description: t('products.blockletServer.description'),
|
426
493
|
icon: <BlockletServerSvg />,
|
427
494
|
},
|
428
495
|
{
|
429
|
-
label:
|
430
|
-
<Link
|
431
|
-
to={`https://www.arcblock.io/content/collections/${locale}/ocap`}
|
432
|
-
target="_blank"
|
433
|
-
rel="noreferrer noopener">
|
434
|
-
ОСАР
|
435
|
-
</Link>
|
436
|
-
),
|
496
|
+
label: <SmartLink to={`https://www.arcblock.io/content/collections/${locale}/ocap`}>ОСАР</SmartLink>,
|
437
497
|
description: t('products.ocap.description'),
|
438
498
|
icon: <OCAPSvg />,
|
439
499
|
},
|
@@ -444,23 +504,12 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
444
504
|
label: t('groups.identity'),
|
445
505
|
children: [
|
446
506
|
{
|
447
|
-
label:
|
448
|
-
<Link
|
449
|
-
to={`https://www.arcblock.io/content/collections/${locale}/did`}
|
450
|
-
target="_blank"
|
451
|
-
rel="noreferrer noopener">
|
452
|
-
DID
|
453
|
-
</Link>
|
454
|
-
),
|
507
|
+
label: <SmartLink to={`https://www.arcblock.io/content/collections/${locale}/did`}>DID</SmartLink>,
|
455
508
|
description: t('products.did.description'),
|
456
|
-
icon: <
|
509
|
+
icon: <DIDIcon color="#5b96f3" />,
|
457
510
|
},
|
458
511
|
{
|
459
|
-
label:
|
460
|
-
<Link to={`https://www.didwallet.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
461
|
-
DID Wallet
|
462
|
-
</Link>
|
463
|
-
),
|
512
|
+
label: <SmartLink to={`https://www.didwallet.io/${locale}`}>DID Wallet</SmartLink>,
|
464
513
|
description: t('products.didWallet.description'),
|
465
514
|
icon: <DidWalletSvg />,
|
466
515
|
},
|
@@ -471,28 +520,21 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
471
520
|
</Link>
|
472
521
|
),
|
473
522
|
description: t('products.didNameService.description'),
|
474
|
-
icon: <
|
523
|
+
icon: <DIDIcon color="#678ab0" />,
|
475
524
|
},
|
476
525
|
{
|
477
526
|
label: (
|
478
|
-
<
|
479
|
-
to={`https://www.arcblock.io/content/collections/${locale}/verifiable-credential`}
|
480
|
-
target="_blank"
|
481
|
-
rel="noreferrer noopener">
|
527
|
+
<SmartLink to={`https://www.arcblock.io/content/collections/${locale}/verifiable-credential`}>
|
482
528
|
VC
|
483
|
-
</
|
529
|
+
</SmartLink>
|
484
530
|
),
|
485
531
|
description: t('products.vc.description'),
|
486
532
|
icon: <VCSvg />,
|
487
533
|
},
|
488
534
|
{
|
489
|
-
label:
|
490
|
-
<Link to={`https://www.didconnect.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
491
|
-
DID Connect
|
492
|
-
</Link>
|
493
|
-
),
|
535
|
+
label: <SmartLink to={`https://www.didconnect.io/${locale}`}>DID Connect</SmartLink>,
|
494
536
|
description: t('products.didConnect.description'),
|
495
|
-
icon: <
|
537
|
+
icon: <DIDIcon color="#5bbec5" />,
|
496
538
|
},
|
497
539
|
],
|
498
540
|
},
|
@@ -506,47 +548,27 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
506
548
|
label: t('groups.applications'),
|
507
549
|
children: [
|
508
550
|
{
|
509
|
-
label:
|
510
|
-
<Link to={`https://www.arcsphere.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
511
|
-
ArcSphere
|
512
|
-
</Link>
|
513
|
-
),
|
551
|
+
label: <SmartLink to={`https://www.arcsphere.io/${locale}`}>ArcSphere</SmartLink>,
|
514
552
|
description: t('products.arcsphere.description'),
|
515
553
|
icon: <ArcSphereSvg />,
|
516
554
|
},
|
517
555
|
{
|
518
|
-
label:
|
519
|
-
<Link to={`https://www.aistro.io/${locale}`} target="_blank" rel="noreferrer noopener">
|
520
|
-
Aistro
|
521
|
-
</Link>
|
522
|
-
),
|
556
|
+
label: <SmartLink to={`https://www.aistro.io/${locale}`}>Aistro</SmartLink>,
|
523
557
|
description: t('products.aistro.description'),
|
524
558
|
icon: <img src={AistroPng} alt="Aistro" />,
|
525
559
|
},
|
526
560
|
{
|
527
|
-
label:
|
528
|
-
<Link to="https://www.aigne.io/doc-smith" target="_blank" rel="noreferrer noopener">
|
529
|
-
AIGNE CodeSmith
|
530
|
-
</Link>
|
531
|
-
),
|
561
|
+
label: <SmartLink to="https://www.aigne.io/doc-smith">AIGNE CodeSmith</SmartLink>,
|
532
562
|
description: t('products.aigneCodeSmith.description'),
|
533
563
|
icon: <AigneIcon color="#56a596" backgroundColor="#e9fcf6" />,
|
534
564
|
},
|
535
565
|
{
|
536
|
-
label:
|
537
|
-
<Link to="https://www.aigne.io/code-smith" target="_blank" rel="noreferrer noopener">
|
538
|
-
AIGNE DocSmith
|
539
|
-
</Link>
|
540
|
-
),
|
566
|
+
label: <SmartLink to="https://www.aigne.io/code-smith">AIGNE DocSmith</SmartLink>,
|
541
567
|
description: t('products.aigneDocSmith.description'),
|
542
568
|
icon: <AigneIcon color="#e46f38" backgroundColor="#f7e0d7" />,
|
543
569
|
},
|
544
570
|
{
|
545
|
-
label:
|
546
|
-
<Link to="https://www.aigne.io/web-smith" target="_blank" rel="noreferrer noopener">
|
547
|
-
AIGNE WebSmith
|
548
|
-
</Link>
|
549
|
-
),
|
571
|
+
label: <SmartLink to="https://www.aigne.io/web-smith">AIGNE WebSmith</SmartLink>,
|
550
572
|
description: t('products.aigneWebSmith.description'),
|
551
573
|
icon: <AigneIcon color="#7c45eb" backgroundColor="#f0e9ff" />,
|
552
574
|
},
|
@@ -557,38 +579,22 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
557
579
|
label: t('groups.frameworkTools'),
|
558
580
|
children: [
|
559
581
|
{
|
560
|
-
label:
|
561
|
-
<Link to="https://www.aigne.io/cli" target="_blank" rel="noreferrer noopener">
|
562
|
-
AIGNE CLI
|
563
|
-
</Link>
|
564
|
-
),
|
582
|
+
label: <SmartLink to="https://www.aigne.io/cli">AIGNE CLI</SmartLink>,
|
565
583
|
description: t('products.aigneCLI.description'),
|
566
584
|
icon: <AigneIcon color="#d05d4e" backgroundColor="#faeaea" />,
|
567
585
|
},
|
568
586
|
{
|
569
|
-
label:
|
570
|
-
<Link to="https://www.aigne.io/observability" target="_blank" rel="noreferrer noopener">
|
571
|
-
AIGNE Observability
|
572
|
-
</Link>
|
573
|
-
),
|
587
|
+
label: <SmartLink to="https://www.aigne.io/observability">AIGNE Observability</SmartLink>,
|
574
588
|
description: t('products.aigneObservability.description'),
|
575
589
|
icon: <AigneIcon color="#6ba456" backgroundColor="#edfae8" />,
|
576
590
|
},
|
577
591
|
{
|
578
|
-
label:
|
579
|
-
<Link to="https://www.aigne.io/studio" target="_blank" rel="noreferrer noopener">
|
580
|
-
AIGNE Studio
|
581
|
-
</Link>
|
582
|
-
),
|
592
|
+
label: <SmartLink to="https://www.aigne.io/studio">AIGNE Studio</SmartLink>,
|
583
593
|
description: t('products.aigneStudio.description'),
|
584
594
|
icon: <AigneIcon color="#676cbf" backgroundColor="#edeeff" />,
|
585
595
|
},
|
586
596
|
{
|
587
|
-
label:
|
588
|
-
<Link to="https://www.aigne.io/framework" target="_blank" rel="noreferrer noopener">
|
589
|
-
AIGNE Framework
|
590
|
-
</Link>
|
591
|
-
),
|
597
|
+
label: <SmartLink to="https://www.aigne.io/framework">AIGNE Framework</SmartLink>,
|
592
598
|
description: t('products.aigneFramework.description'),
|
593
599
|
icon: <AigneIcon color="#5086d0" backgroundColor="#eef4ff" />,
|
594
600
|
},
|
@@ -599,11 +605,7 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
599
605
|
label: t('groups.modelsAdapters'),
|
600
606
|
children: [
|
601
607
|
{
|
602
|
-
label:
|
603
|
-
<Link to="https://www.aigne.io/hub" target="_blank" rel="noreferrer noopener">
|
604
|
-
AIGNE Hub
|
605
|
-
</Link>
|
606
|
-
),
|
608
|
+
label: <SmartLink to="https://www.aigne.io/hub">AIGNE Hub</SmartLink>,
|
607
609
|
description: t('products.aigneHub.description'),
|
608
610
|
icon: <AigneIcon color="#e4930b" backgroundColor="#fbf4d4" />,
|
609
611
|
},
|
@@ -616,22 +618,14 @@ export default function Products({ className, type, ...rest }: ProductsProps) {
|
|
616
618
|
}, [t, locale, palette]);
|
617
619
|
|
618
620
|
return (
|
619
|
-
<Wrapper ref={wrapperRef} className={`is-${mode} ${className}`} {...rest}>
|
621
|
+
<Wrapper ref={wrapperRef} className={`nav-menu-products is-${mode} ${className}`} {...rest}>
|
620
622
|
{groups.map((group) => (
|
621
623
|
<SubItemGroup key={group.label} label={group.label}>
|
622
|
-
<
|
624
|
+
<GridBox maxContent={maxContentWidth}>
|
623
625
|
{group.children.map((item) => (
|
624
|
-
<
|
625
|
-
key={item.description}
|
626
|
-
size={{
|
627
|
-
xs: 12,
|
628
|
-
md: 6,
|
629
|
-
lg: 4,
|
630
|
-
}}>
|
631
|
-
<Item variant="panel" style={{ padding: '8px' }} {...item} />
|
632
|
-
</Grid>
|
626
|
+
<Item variant="panel" style={{ padding: '8px' }} {...item} />
|
633
627
|
))}
|
634
|
-
</
|
628
|
+
</GridBox>
|
635
629
|
</SubItemGroup>
|
636
630
|
))}
|
637
631
|
</Wrapper>
|
@@ -24,7 +24,13 @@ export interface NavMenuSubItemGroupProps extends BoxProps {
|
|
24
24
|
label: React.ReactNode;
|
25
25
|
}
|
26
26
|
|
27
|
-
export default function NavMenuSubItemGroup({
|
27
|
+
export default function NavMenuSubItemGroup({
|
28
|
+
label,
|
29
|
+
children,
|
30
|
+
className = '',
|
31
|
+
sx,
|
32
|
+
...rest
|
33
|
+
}: NavMenuSubItemGroupProps) {
|
28
34
|
return (
|
29
35
|
<Group className={`nav-menu-sub-item-group ${className}`} sx={{ ...sx }} {...rest}>
|
30
36
|
<Box className="group-label">{label}</Box>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as e from "react";
|
2
|
-
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_697_8408)" }, /* @__PURE__ */ e.createElement("g", { filter: "url(#filter0_i_697_8408)" }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.6107 0H11.3921V2.15049H10.3086V0H9.08994V2.15049H8.0064V0H6.78779V2.15049H5.70689V0H4.48828V2.18296C3.30266 2.36596 2.36589 3.30282 2.18301 4.48848H0V5.70709H2.15059V6.78779H0V8.0064H2.15059V9.08994H0V10.3086H2.15059V11.3921H0V12.6107H2.15059V13.6942H0V14.9128H2.15059V15.9936H0V17.2122H2.15059V18.2957H0V19.5143H2.18344C2.36736 20.6987 3.30359 21.6342 4.48828 21.817V24H5.70689V21.8495H6.78779V24H8.0064V21.8495H9.08994V24H10.3086V21.8495H11.3921V24H12.6107V21.8495H13.6942V24H14.9128V21.8495H15.9936V24H17.2122V21.8495H18.2956V24H19.5142V21.8167C20.6978 21.633 21.633 20.6979 21.8168 19.5143H24.0002V18.2957H21.8496V17.2122H24.0002V15.9936H21.8496V14.9128H24.0002V13.6942H21.8496V12.6107H24.0002V11.3921H21.8496V10.3086H24.0002V9.08994H21.8496V8.0064H24.0002V6.78779H21.8496V5.70709H24.0002V4.48848H21.8172C21.6344 3.30358 20.6987 2.36717 19.5142 2.18331V0H18.2956V2.15049H17.2122V0H15.9936V2.15049H14.9128V0H13.6942V2.15049H12.6107V0Z", fill: "#1D9BF0" })), /* @__PURE__ */ e.createElement("path", { d: "M17.1019 4.91309H6.90091C5.80307 4.91309 4.91309 5.80306 4.91309 6.90091V17.1019C4.91309 18.1998 5.80307 19.0898 6.90091 19.0898H17.1019C18.1998 19.0898 19.0898 18.1998 19.0898 17.1019V6.90091C19.0898 5.80306 18.1998 4.91309 17.1019 4.91309Z", fill: "url(#paint0_linear_697_8408)" }), /* @__PURE__ */ e.createElement("path", { d: "M8.38712 7.91833C8.3866 7.74758 8.33623 7.58069 8.24219 7.43817C8.14815 7.29565 8.01455 7.18368 7.85777 7.11603V4.9104H7.16851V7.11603C7.02346 7.17827 6.89798 7.27862 6.80538 7.40644C6.71278 7.53426 6.65652 7.68477 6.64258 7.84199C6.62863 7.99921 6.65753 8.15727 6.72619 8.29939C6.79485 8.44151 6.90071 8.56238 7.03254 8.64917C7.16437 8.73596 7.31725 8.78544 7.47493 8.79234C7.63262 8.79924 7.78923 8.76331 7.92814 8.68836C8.06704 8.61342 8.18306 8.50225 8.26388 8.36667C8.34469 8.23109 8.38728 8.07616 8.38712 7.91833Z", fill: "#3AC8A0" }), /* @__PURE__ */ e.createElement("path", { d: "M8.38691 11.1301C8.18179 11.1294 7.98299 11.2011 7.82554 11.3325C7.66808 11.464 7.56206 11.6468 7.52615 11.8488C7.49024 12.0507 7.52674 12.2589 7.62923 12.4366C7.73171 12.6143 7.8936 12.7501 8.08639 12.8201V19.0896H8.77841V12.7788C8.95621 12.6921 9.0992 12.5474 9.18387 12.3686C9.26854 12.1899 9.28985 11.9876 9.24429 11.7951C9.19873 11.6026 9.08902 11.4313 8.9332 11.3095C8.77737 11.1876 8.58472 11.1224 8.38691 11.1246V11.1301Z", fill: "#E85F3D" }), /* @__PURE__ */ e.createElement("path", { d: "M11.9436 14.6729C11.7424 14.6727 11.5474 14.7419 11.3914 14.8688C11.2353 14.9957 11.1278 15.1725 11.087 15.3695C11.0462 15.5664 11.0746 15.7714 11.1673 15.9499C11.2601 16.1283 11.4116 16.2694 11.5962 16.3491V19.0896H12.2882V16.3491C12.4726 16.2695 12.624 16.1287 12.7167 15.9505C12.8095 15.7723 12.8381 15.5676 12.7976 15.3708C12.7572 15.1741 12.6502 14.9972 12.4946 14.8701C12.3391 14.743 12.1445 14.6733 11.9436 14.6729Z", fill: "#3AC8A0" }), /* @__PURE__ */ e.createElement("path", { d: "M17.3056 10.4823C17.1528 10.4814 17.0025 10.5208 16.8699 10.5965C16.7372 10.6722 16.6268 10.7816 16.5499 10.9136C16.473 11.0456 16.4323 11.1955 16.4319 11.3483C16.4314 11.501 16.4713 11.6512 16.5474 11.7837L15.02 13.8073V19.0898H15.7093V14.0389L17.0878 12.2027C17.1557 12.2181 17.225 12.2264 17.2946 12.2275C17.4133 12.2342 17.5321 12.2166 17.6438 12.1758C17.7555 12.1349 17.8576 12.0717 17.944 11.99C18.0304 11.9084 18.0993 11.8099 18.1463 11.7007C18.1934 11.5915 18.2176 11.4738 18.2176 11.3549C18.2176 11.236 18.1934 11.1184 18.1463 11.0092C18.0993 10.9 18.0304 10.8015 17.944 10.7198C17.8576 10.6381 17.7555 10.575 17.6438 10.5341C17.5321 10.4933 17.4133 10.4757 17.2946 10.4823H17.3056Z", fill: "#E85F3D" }), /* @__PURE__ */ e.createElement("path", { d: "M12.8728 10.2452C12.8117 10.246 12.7508 10.2525 12.6908 10.2645L11.3123 8.43658V4.91309H10.623V8.67644L12.1311 10.6753C12.0318 10.8403 11.9899 11.0335 12.0121 11.2248C12.0342 11.416 12.119 11.5946 12.2534 11.7325C12.3877 11.8705 12.564 11.96 12.7546 11.9872C12.9453 12.0144 13.1395 11.9776 13.307 11.8827C13.4746 11.7877 13.6059 11.64 13.6806 11.4625C13.7552 11.285 13.769 11.0878 13.7197 10.9016C13.6704 10.7155 13.5608 10.5509 13.4081 10.4337C13.2554 10.3164 13.0681 10.253 12.8755 10.2535L12.8728 10.2452Z", fill: "#E85F3D" }), /* @__PURE__ */ e.createElement("path", { d: "M15.682 9.66621C15.8829 9.66575 16.0775 9.5961 16.2331 9.46897C16.3886 9.34185 16.4956 9.16502 16.5361 8.96824C16.5766 8.77146 16.548 8.56675 16.4552 8.38857C16.3624 8.21039 16.2111 8.06962 16.0267 7.98994V4.91309H15.3374V7.98994C15.153 8.06962 15.0016 8.21039 14.9089 8.38857C14.8161 8.56675 14.7875 8.77146 14.828 8.96824C14.8684 9.16502 14.9754 9.34185 15.131 9.46897C15.2865 9.5961 15.4811 9.66575 15.682 9.66621Z", fill: "#3AC8A0" }), /* @__PURE__ */ e.createElement("mask", { id: "mask0_697_8408", style: {
|
3
|
-
maskType: "luminance"
|
4
|
-
}, maskUnits: "userSpaceOnUse", x: 6, y: 7, width: 12, height: 10 }, /* @__PURE__ */ e.createElement("path", { d: "M15.25 10.5H8.75C8.47386 10.5 8.25 10.7239 8.25 11V16C8.25 16.2761 8.47386 16.5 8.75 16.5H15.25C15.5261 16.5 15.75 16.2761 15.75 16V11C15.75 10.7239 15.5261 10.5 15.25 10.5Z", fill: "white" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.75 11C7.75 10.4477 8.19772 10 8.75 10H15.25C15.8023 10 16.25 10.4477 16.25 11V16C16.25 16.5523 15.8023 17 15.25 17H8.75C8.19772 17 7.75 16.5523 7.75 16V11ZM15.25 11H8.75V16H15.25V11Z", fill: "white" }), /* @__PURE__ */ e.createElement("path", { d: "M10.25 13C10.5261 13 10.75 12.7761 10.75 12.5C10.75 12.2239 10.5261 12 10.25 12C9.97386 12 9.75 12.2239 9.75 12.5C9.75 12.7761 9.97386 13 10.25 13Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M13.75 13C14.0261 13 14.25 12.7761 14.25 12.5C14.25 12.2239 14.0261 12 13.75 12C13.4739 12 13.25 12.2239 13.25 12.5C13.25 12.7761 13.4739 13 13.75 13Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M11 14C10.8674 14 10.7402 14.0527 10.6464 14.1464C10.5527 14.2402 10.5 14.3674 10.5 14.5C10.5 14.6326 10.5527 14.7598 10.6464 14.8536C10.7402 14.9473 10.8674 15 11 15V14ZM13 15C13.1326 15 13.2598 14.9473 13.3536 14.8536C13.4473 14.7598 13.5 14.6326 13.5 14.5C13.5 14.3674 13.4473 14.2402 13.3536 14.1464C13.2598 14.0527 13.1326 14 13 14V15ZM11 15H13V14H11V15Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 8C12.2761 8 12.5 8.22386 12.5 8.5V10.5C12.5 10.7761 12.2761 11 12 11C11.7239 11 11.5 10.7761 11.5 10.5V8.5C11.5 8.22386 11.7239 8 12 8ZM7 12C7.27614 12 7.5 12.2239 7.5 12.5V14.5C7.5 14.7761 7.27614 15 7 15C6.72386 15 6.5 14.7761 6.5 14.5V12.5C6.5 12.2239 6.72386 12 7 12ZM17 12C17.2761 12 17.5 12.2239 17.5 12.5V14.5C17.5 14.7761 17.2761 15 17 15C16.7239 15 16.5 14.7761 16.5 14.5V12.5C16.5 12.2239 16.7239 12 17 12Z", fill: "white" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8Z", fill: "white" })), /* @__PURE__ */ e.createElement("g", { mask: "url(#mask0_697_8408)" }, /* @__PURE__ */ e.createElement("path", { d: "M6 6H18V18H6V6Z", fill: "white" }))), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("filter", { id: "filter0_i_697_8408", x: 0, y: 0, width: 24.4, height: 24.4, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ e.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }), /* @__PURE__ */ e.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ e.createElement("feMorphology", { radius: 0.8, operator: "erode", in: "SourceAlpha", result: "effect1_innerShadow_697_8408" }), /* @__PURE__ */ e.createElement("feOffset", { dx: 0.4, dy: 0.4 }), /* @__PURE__ */ e.createElement("feGaussianBlur", { stdDeviation: 0.6 }), /* @__PURE__ */ e.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: -1, k3: 1 }), /* @__PURE__ */ e.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0" }), /* @__PURE__ */ e.createElement("feBlend", { mode: "normal", in2: "shape", result: "effect1_innerShadow_697_8408" })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint0_linear_697_8408", x1: 16.0831, y1: 19.9581, x2: 16.1471, y2: 6.2774, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { stopColor: "#369CFC" }), /* @__PURE__ */ e.createElement("stop", { offset: 1, stopColor: "#1E65B5" })), /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_697_8408" }, /* @__PURE__ */ e.createElement("rect", { width: 24, height: 24, fill: "white" }))));
|
5
|
-
export {
|
6
|
-
l as default
|
7
|
-
};
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as e from "react";
|
2
|
-
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 120, height: 120, viewBox: "0 0 120 120", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_3296_9140)" }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M101.959 20.8735L72.662 3.82938C64.8959 -0.688569 55.331 -0.688569 47.5649 3.82938L18.2682 20.8735C10.4948 25.3958 5.70551 33.7578 5.70551 42.8072V76.8629C5.70551 85.9123 10.4948 94.2743 18.2682 98.7966L47.5649 115.841C55.331 120.359 64.8959 120.359 72.662 115.841L101.959 98.7966C109.732 94.2743 114.521 85.9123 114.521 76.8629V42.8072C114.521 33.7578 109.732 25.3958 101.959 20.8735ZM50.8097 9.40691L21.513 26.451L21.513 26.451C15.7411 29.8089 12.1582 36.0376 12.1582 42.8072V76.8629C12.1582 83.6325 15.7411 89.8612 21.513 93.2191L50.8098 110.263L50.8099 110.263C56.57 113.614 63.6569 113.614 69.4171 110.263L69.4172 110.263L98.7138 93.2191L101.959 98.7966L98.7139 93.2191C104.486 89.8612 108.069 83.6325 108.069 76.8629V42.8072C108.069 36.0376 104.486 29.8089 98.7139 26.451L98.7138 26.4509L69.4172 9.40691C69.4172 9.40689 69.4172 9.40688 69.4171 9.40686C63.6569 6.05586 56.57 6.05587 50.8098 9.40687C50.8098 9.40688 50.8097 9.40689 50.8097 9.40691Z", fill: "#1DC1C7", fillOpacity: 0.2 }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M82.0826 102.666L99.4114 92.4231C104.932 89.16 108.284 83.1918 108.197 76.7797L107.911 55.6256L114.364 55.5385L114.649 76.6925C114.767 85.4173 110.206 93.5379 102.695 97.978L85.3661 108.221L82.0826 102.666Z", fill: "url(#paint0_linear_3296_9140)" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M90.3926 21.8192L69.4215 9.54234C63.9043 6.31251 57.0831 6.27189 51.5278 9.4358L33.1066 19.9274L29.9132 14.3204L48.3344 3.82874C55.8931 -0.476256 65.1745 -0.420993 72.6814 3.9737L93.6526 16.2506L90.3926 21.8192Z", fill: "url(#paint1_linear_3296_9140)" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M35.7856 100.9L21.0133 92.255C15.5288 89.0455 12.1582 83.1677 12.1582 76.8131L12.1582 55.2889L5.7055 55.2889L5.7055 76.8131C5.7055 85.4596 10.2917 93.4572 17.7543 97.8242L32.5265 106.469L35.7856 100.9Z", fill: "url(#paint2_linear_3296_9140)" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M51.6013 20.4789C56.9601 17.3635 63.5602 17.3635 68.9189 20.4789L89.1344 32.2319C94.4984 35.3503 97.8031 41.1164 97.8031 47.3565V70.8401C97.8031 77.0802 94.4984 82.8463 89.1344 85.9647L68.9189 97.7176C63.5602 100.833 56.9601 100.833 51.6013 97.7176L31.3857 85.9647C26.0219 82.8463 22.7172 77.0802 22.7172 70.8401V47.3565C22.7172 41.1164 26.0219 35.3503 31.3857 32.2319L51.6013 20.4789ZM62.9873 43.3996L66.2716 41.5034H78.2272V76.584H66.5396C66.364 76.584 66.1916 76.5378 66.0396 76.45L53.4206 69.1644V48.9229L54.9435 48.0437L57.6252 49.5919L56.1022 50.4712V67.6162L66.9902 73.9023H75.5456V44.185H66.9902L65.669 44.9478L62.9873 43.3996ZM64.4937 50.4712V67.6162L62.9748 68.4931L65.6565 70.0413L67.1753 69.1644V48.9229L54.3243 41.5034H42.3687V76.584H54.3243L57.6126 74.6854L54.931 73.1372L53.6057 73.9023H45.0503V44.185H53.6057L64.4937 50.4712Z", fill: "#1DC1C7" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("linearGradient", { id: "paint0_linear_3296_9140", x1: 101.68, y1: 65.2004, x2: 102.525, y2: 103.38, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { stopColor: "#1DC1C7" }), /* @__PURE__ */ e.createElement("stop", { offset: 1, stopColor: "#1DC1C7", stopOpacity: 0 })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint1_linear_3296_9140", x1: 55.5247, y1: 3.3569, x2: 87.5637, y2: 21.4236, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { stopColor: "#1DC1C7" }), /* @__PURE__ */ e.createElement("stop", { offset: 1, stopColor: "#1DC1C7", stopOpacity: 0 })), /* @__PURE__ */ e.createElement("linearGradient", { id: "paint2_linear_3296_9140", x1: 17.7504, y1: 54.493, x2: 18.9074, y2: 101.333, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { stopColor: "#1DC1C7", stopOpacity: 0 }), /* @__PURE__ */ e.createElement("stop", { offset: 1, stopColor: "#1DC1C7" })), /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_3296_9140" }, /* @__PURE__ */ e.createElement("rect", { width: 120, height: 120, fill: "white" }))));
|
3
|
-
export {
|
4
|
-
l as default
|
5
|
-
};
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as C from "react";
|
2
|
-
const L = (e) => /* @__PURE__ */ C.createElement("svg", { width: 512, height: 512, viewBox: "0 0 512 512", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M255.755 462.967C299.832 442.833 336.333 409.027 359.852 366.983C327.934 353.201 292.741 345.565 255.755 345.565C247.188 345.565 238.717 345.975 230.361 346.776L167.308 360.816C162.011 362.708 156.792 364.766 151.658 366.983C175.177 409.027 211.678 442.833 255.755 462.967ZM255.755 153.973C290.371 153.973 323.417 147.285 353.676 135.129C330.169 97.9025 296.143 67.9742 255.755 49.5256C215.367 67.9743 181.341 97.9025 157.834 135.129C188.092 147.285 221.137 153.973 255.755 153.973ZM307.765 54.5489C334.213 73.7632 356.736 98.0527 373.902 125.987C383.969 120.912 393.665 115.208 402.939 108.928C377.033 83.0455 344.343 63.9534 307.765 54.5489ZM256.835 26.0038C256.476 25.8547 256.116 25.7064 255.755 25.559C255.394 25.7064 255.034 25.8547 254.675 26.0038C128.011 26.5856 25.5098 129.446 25.5098 256.246C25.5098 383.047 128.011 485.907 254.675 486.489C255.034 486.638 255.394 486.786 255.755 486.934C256.115 486.786 256.476 486.638 256.835 486.489C383.499 485.907 486 383.047 486 256.246C486 129.446 383.499 26.5858 256.835 26.0038ZM307.765 457.944C347.911 447.622 383.375 425.63 410.324 395.799C400.599 388.715 390.369 382.282 379.699 376.565C361.946 408.694 337.304 436.484 307.765 457.944ZM424.211 378.699C449.236 344.332 464 302.013 464 256.246C464 206.69 446.69 161.177 417.786 125.423C407.218 132.746 396.13 139.372 384.588 145.235C401.252 178.661 410.626 216.359 410.626 256.246C410.626 292.046 403.075 326.082 389.48 356.848C401.606 363.308 413.21 370.618 424.211 378.699ZM203.745 457.944C174.206 436.484 149.564 408.694 131.811 376.565C121.141 382.282 110.911 388.715 101.185 395.799C128.135 425.63 163.599 447.622 203.745 457.944ZM87.299 378.7C98.3002 370.618 109.904 363.308 122.03 356.848C108.435 326.081 100.884 292.046 100.884 256.246C100.884 216.359 110.258 178.661 126.922 145.235C115.38 139.372 104.292 132.746 93.7235 125.423C64.8199 161.177 47.5098 206.69 47.5098 256.246C47.5098 302.013 62.2738 344.332 87.299 378.7ZM108.571 108.927C134.477 83.0454 167.167 63.9532 203.745 54.5488C177.297 73.7632 154.774 98.0527 137.608 125.987C127.541 120.912 117.845 115.208 108.571 108.927ZM269.649 193.786L282.837 186.172H330.843V327.034H283.105C282.929 327.034 282.757 326.988 282.605 326.9L231.235 297.242V215.965L237.351 212.434L248.118 218.651L242.003 222.181V291.025L285.722 316.266H320.075V196.94H285.722L280.417 200.003L269.649 193.786ZM275.698 222.181V291.025L269.599 294.546L280.367 300.763L286.466 297.242V215.965L234.864 186.172H186.858V327.034H234.864L248.068 319.411L237.3 313.194L231.979 316.266H197.626V196.94H231.979L275.698 222.181Z", fill: "#3773F2" }));
|
3
|
-
export {
|
4
|
-
L as default
|
5
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<g clip-path="url(#clip0_3296_9140)">
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M101.959 20.8735L72.662 3.82938C64.8959 -0.688569 55.331 -0.688569 47.5649 3.82938L18.2682 20.8735C10.4948 25.3958 5.70551 33.7578 5.70551 42.8072V76.8629C5.70551 85.9123 10.4948 94.2743 18.2682 98.7966L47.5649 115.841C55.331 120.359 64.8959 120.359 72.662 115.841L101.959 98.7966C109.732 94.2743 114.521 85.9123 114.521 76.8629V42.8072C114.521 33.7578 109.732 25.3958 101.959 20.8735ZM50.8097 9.40691L21.513 26.451L21.513 26.451C15.7411 29.8089 12.1582 36.0376 12.1582 42.8072V76.8629C12.1582 83.6325 15.7411 89.8612 21.513 93.2191L50.8098 110.263L50.8099 110.263C56.57 113.614 63.6569 113.614 69.4171 110.263L69.4172 110.263L98.7138 93.2191L101.959 98.7966L98.7139 93.2191C104.486 89.8612 108.069 83.6325 108.069 76.8629V42.8072C108.069 36.0376 104.486 29.8089 98.7139 26.451L98.7138 26.4509L69.4172 9.40691C69.4172 9.40689 69.4172 9.40688 69.4171 9.40686C63.6569 6.05586 56.57 6.05587 50.8098 9.40687C50.8098 9.40688 50.8097 9.40689 50.8097 9.40691Z" fill="#1DC1C7" fill-opacity="0.2"></path>
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M82.0826 102.666L99.4114 92.4231C104.932 89.16 108.284 83.1918 108.197 76.7797L107.911 55.6256L114.364 55.5385L114.649 76.6925C114.767 85.4173 110.206 93.5379 102.695 97.978L85.3661 108.221L82.0826 102.666Z" fill="url(#paint0_linear_3296_9140)"></path>
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M90.3926 21.8192L69.4215 9.54234C63.9043 6.31251 57.0831 6.27189 51.5278 9.4358L33.1066 19.9274L29.9132 14.3204L48.3344 3.82874C55.8931 -0.476256 65.1745 -0.420993 72.6814 3.9737L93.6526 16.2506L90.3926 21.8192Z" fill="url(#paint1_linear_3296_9140)"></path>
|
6
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.7856 100.9L21.0133 92.255C15.5288 89.0455 12.1582 83.1677 12.1582 76.8131L12.1582 55.2889L5.7055 55.2889L5.7055 76.8131C5.7055 85.4596 10.2917 93.4572 17.7543 97.8242L32.5265 106.469L35.7856 100.9Z" fill="url(#paint2_linear_3296_9140)"></path>
|
7
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M51.6013 20.4789C56.9601 17.3635 63.5602 17.3635 68.9189 20.4789L89.1344 32.2319C94.4984 35.3503 97.8031 41.1164 97.8031 47.3565V70.8401C97.8031 77.0802 94.4984 82.8463 89.1344 85.9647L68.9189 97.7176C63.5602 100.833 56.9601 100.833 51.6013 97.7176L31.3857 85.9647C26.0219 82.8463 22.7172 77.0802 22.7172 70.8401V47.3565C22.7172 41.1164 26.0219 35.3503 31.3857 32.2319L51.6013 20.4789ZM62.9873 43.3996L66.2716 41.5034H78.2272V76.584H66.5396C66.364 76.584 66.1916 76.5378 66.0396 76.45L53.4206 69.1644V48.9229L54.9435 48.0437L57.6252 49.5919L56.1022 50.4712V67.6162L66.9902 73.9023H75.5456V44.185H66.9902L65.669 44.9478L62.9873 43.3996ZM64.4937 50.4712V67.6162L62.9748 68.4931L65.6565 70.0413L67.1753 69.1644V48.9229L54.3243 41.5034H42.3687V76.584H54.3243L57.6126 74.6854L54.931 73.1372L53.6057 73.9023H45.0503V44.185H53.6057L64.4937 50.4712Z" fill="#1DC1C7"></path>
|
8
|
-
</g>
|
9
|
-
<defs>
|
10
|
-
<linearGradient id="paint0_linear_3296_9140" x1="101.68" y1="65.2004" x2="102.525" y2="103.38" gradientUnits="userSpaceOnUse">
|
11
|
-
<stop stop-color="#1DC1C7"></stop>
|
12
|
-
<stop offset="1" stop-color="#1DC1C7" stop-opacity="0"></stop>
|
13
|
-
</linearGradient>
|
14
|
-
<linearGradient id="paint1_linear_3296_9140" x1="55.5247" y1="3.3569" x2="87.5637" y2="21.4236" gradientUnits="userSpaceOnUse">
|
15
|
-
<stop stop-color="#1DC1C7"></stop>
|
16
|
-
<stop offset="1" stop-color="#1DC1C7" stop-opacity="0"></stop>
|
17
|
-
</linearGradient>
|
18
|
-
<linearGradient id="paint2_linear_3296_9140" x1="17.7504" y1="54.493" x2="18.9074" y2="101.333" gradientUnits="userSpaceOnUse">
|
19
|
-
<stop stop-color="#1DC1C7" stop-opacity="0"></stop>
|
20
|
-
<stop offset="1" stop-color="#1DC1C7"></stop>
|
21
|
-
</linearGradient>
|
22
|
-
<clipPath id="clip0_3296_9140">
|
23
|
-
<rect width="120" height="120" fill="white"></rect>
|
24
|
-
</clipPath>
|
25
|
-
</defs>
|
26
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M255.755 462.967C299.832 442.833 336.333 409.027 359.852 366.983C327.934 353.201 292.741 345.565 255.755 345.565C247.188 345.565 238.717 345.975 230.361 346.776L167.308 360.816C162.011 362.708 156.792 364.766 151.658 366.983C175.177 409.027 211.678 442.833 255.755 462.967ZM255.755 153.973C290.371 153.973 323.417 147.285 353.676 135.129C330.169 97.9025 296.143 67.9742 255.755 49.5256C215.367 67.9743 181.341 97.9025 157.834 135.129C188.092 147.285 221.137 153.973 255.755 153.973ZM307.765 54.5489C334.213 73.7632 356.736 98.0527 373.902 125.987C383.969 120.912 393.665 115.208 402.939 108.928C377.033 83.0455 344.343 63.9534 307.765 54.5489ZM256.835 26.0038C256.476 25.8547 256.116 25.7064 255.755 25.559C255.394 25.7064 255.034 25.8547 254.675 26.0038C128.011 26.5856 25.5098 129.446 25.5098 256.246C25.5098 383.047 128.011 485.907 254.675 486.489C255.034 486.638 255.394 486.786 255.755 486.934C256.115 486.786 256.476 486.638 256.835 486.489C383.499 485.907 486 383.047 486 256.246C486 129.446 383.499 26.5858 256.835 26.0038ZM307.765 457.944C347.911 447.622 383.375 425.63 410.324 395.799C400.599 388.715 390.369 382.282 379.699 376.565C361.946 408.694 337.304 436.484 307.765 457.944ZM424.211 378.699C449.236 344.332 464 302.013 464 256.246C464 206.69 446.69 161.177 417.786 125.423C407.218 132.746 396.13 139.372 384.588 145.235C401.252 178.661 410.626 216.359 410.626 256.246C410.626 292.046 403.075 326.082 389.48 356.848C401.606 363.308 413.21 370.618 424.211 378.699ZM203.745 457.944C174.206 436.484 149.564 408.694 131.811 376.565C121.141 382.282 110.911 388.715 101.185 395.799C128.135 425.63 163.599 447.622 203.745 457.944ZM87.299 378.7C98.3002 370.618 109.904 363.308 122.03 356.848C108.435 326.081 100.884 292.046 100.884 256.246C100.884 216.359 110.258 178.661 126.922 145.235C115.38 139.372 104.292 132.746 93.7235 125.423C64.8199 161.177 47.5098 206.69 47.5098 256.246C47.5098 302.013 62.2738 344.332 87.299 378.7ZM108.571 108.927C134.477 83.0454 167.167 63.9532 203.745 54.5488C177.297 73.7632 154.774 98.0527 137.608 125.987C127.541 120.912 117.845 115.208 108.571 108.927ZM269.649 193.786L282.837 186.172H330.843V327.034H283.105C282.929 327.034 282.757 326.988 282.605 326.9L231.235 297.242V215.965L237.351 212.434L248.118 218.651L242.003 222.181V291.025L285.722 316.266H320.075V196.94H285.722L280.417 200.003L269.649 193.786ZM275.698 222.181V291.025L269.599 294.546L280.367 300.763L286.466 297.242V215.965L234.864 186.172H186.858V327.034H234.864L248.068 319.411L237.3 313.194L231.979 316.266H197.626V196.94H231.979L275.698 222.181Z" fill="#3773F2"></path>
|
3
|
-
</svg>
|