@arcblock/ux 3.0.39 → 3.0.42
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/Layout/dashboard/index.d.ts +2 -0
- package/lib/Layout/dashboard/index.js +33 -32
- package/lib/NavMenu/images/aigne.svg.js +2 -4
- package/lib/NavMenu/images/aistro.png +0 -0
- package/lib/NavMenu/images/did.svg.js +2 -2
- package/lib/NavMenu/index.d.ts +1 -1
- package/lib/NavMenu/products.d.ts +3 -2
- package/lib/NavMenu/products.js +284 -147
- package/lib/NavMenu/style.js +5 -4
- package/lib/NavMenu/sub-item-group.js +7 -1
- package/lib/UserCard/index.js +9 -5
- package/package.json +7 -7
- package/src/Layout/dashboard/index.tsx +4 -1
- package/src/NavMenu/images/aigne.svg +6 -8
- package/src/NavMenu/images/aistro.png +0 -0
- package/src/NavMenu/images/did.svg +5 -3
- package/src/NavMenu/index.ts +1 -1
- package/src/NavMenu/products.tsx +429 -253
- package/src/NavMenu/style.ts +2 -1
- package/src/NavMenu/sub-item-group.tsx +7 -1
- package/src/UserCard/index.tsx +3 -3
- package/lib/NavMenu/images/ai-kit.svg.js +0 -7
- package/lib/NavMenu/images/aistro.svg.js +0 -5
- 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/aistro.svg +0 -14
- package/src/NavMenu/images/did-connect.svg +0 -26
- package/src/NavMenu/images/did-name-service.svg +0 -3
package/lib/NavMenu/products.js
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
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 O from "./images/did-connect.svg.js";
|
|
30
|
-
import V from "./images/payment-kit.png";
|
|
31
|
-
const E = {
|
|
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",
|
|
35
32
|
components: "Components",
|
|
36
33
|
computeStorage: "Compute/Storage",
|
|
37
|
-
identity: "Identity"
|
|
34
|
+
identity: "Identity",
|
|
35
|
+
frameworkTools: "Framework & tools",
|
|
36
|
+
modelsAdapters: "Models adapters"
|
|
38
37
|
},
|
|
39
38
|
products: {
|
|
40
39
|
nftStudio: {
|
|
@@ -44,7 +43,7 @@ const E = {
|
|
|
44
43
|
description: "All-in-one creator tool"
|
|
45
44
|
},
|
|
46
45
|
aigne: {
|
|
47
|
-
description: "
|
|
46
|
+
description: "The Agentic Ecosystem for AI Apps"
|
|
48
47
|
},
|
|
49
48
|
arcsphere: {
|
|
50
49
|
description: "AI native browser"
|
|
@@ -96,6 +95,30 @@ const E = {
|
|
|
96
95
|
},
|
|
97
96
|
didConnect: {
|
|
98
97
|
description: "Passwordless login"
|
|
98
|
+
},
|
|
99
|
+
aigneCodeSmith: {
|
|
100
|
+
description: "Review and improve your code with AI"
|
|
101
|
+
},
|
|
102
|
+
aigneDocSmith: {
|
|
103
|
+
description: "Generate and update docs with AI"
|
|
104
|
+
},
|
|
105
|
+
aigneWebSmith: {
|
|
106
|
+
description: "Build and deploy AI-powered web apps"
|
|
107
|
+
},
|
|
108
|
+
aigneCLI: {
|
|
109
|
+
description: "Develop agents from the command line"
|
|
110
|
+
},
|
|
111
|
+
aigneObservability: {
|
|
112
|
+
description: "Understand and inspect agent behavior"
|
|
113
|
+
},
|
|
114
|
+
aigneStudio: {
|
|
115
|
+
description: "Create agents visually, no code needed"
|
|
116
|
+
},
|
|
117
|
+
aigneFramework: {
|
|
118
|
+
description: "The functional core of agentic AI"
|
|
119
|
+
},
|
|
120
|
+
aigneHub: {
|
|
121
|
+
description: "One API. Any Model"
|
|
99
122
|
}
|
|
100
123
|
}
|
|
101
124
|
},
|
|
@@ -104,7 +127,9 @@ const E = {
|
|
|
104
127
|
applications: "应用",
|
|
105
128
|
components: "组件",
|
|
106
129
|
computeStorage: "计算/存储",
|
|
107
|
-
identity: "身份"
|
|
130
|
+
identity: "身份",
|
|
131
|
+
frameworkTools: "框架与工具",
|
|
132
|
+
modelsAdapters: "模型适配器"
|
|
108
133
|
},
|
|
109
134
|
products: {
|
|
110
135
|
nftStudio: {
|
|
@@ -114,7 +139,7 @@ const E = {
|
|
|
114
139
|
description: "一体化创作工具"
|
|
115
140
|
},
|
|
116
141
|
aigne: {
|
|
117
|
-
description: "
|
|
142
|
+
description: "AI 应用的代理生态系统"
|
|
118
143
|
},
|
|
119
144
|
arcsphere: {
|
|
120
145
|
description: "AI 原生浏览器"
|
|
@@ -166,14 +191,36 @@ const E = {
|
|
|
166
191
|
},
|
|
167
192
|
didConnect: {
|
|
168
193
|
description: "无密码登录"
|
|
194
|
+
},
|
|
195
|
+
aigneCodeSmith: {
|
|
196
|
+
description: "使用 AI 审查并优化你的代码"
|
|
197
|
+
},
|
|
198
|
+
aigneDocSmith: {
|
|
199
|
+
description: "用 AI 生成和更新项目文档"
|
|
200
|
+
},
|
|
201
|
+
aigneWebSmith: {
|
|
202
|
+
description: "构建并部署 AI 驱动的 Web 应用"
|
|
203
|
+
},
|
|
204
|
+
aigneCLI: {
|
|
205
|
+
description: "通过命令行开发 Agent"
|
|
206
|
+
},
|
|
207
|
+
aigneObservability: {
|
|
208
|
+
description: "理解并分析 Agent 的行为"
|
|
209
|
+
},
|
|
210
|
+
aigneStudio: {
|
|
211
|
+
description: "零代码构建 Agent"
|
|
212
|
+
},
|
|
213
|
+
aigneFramework: {
|
|
214
|
+
description: "Agent AI 的功能核心框架"
|
|
215
|
+
},
|
|
216
|
+
aigneHub: {
|
|
217
|
+
description: "一套 API,连接所有模型"
|
|
169
218
|
}
|
|
170
219
|
}
|
|
171
220
|
}
|
|
172
|
-
},
|
|
173
|
-
width: 80vw;
|
|
174
|
-
max-width: 900px;
|
|
221
|
+
}, ee = I(h)`
|
|
175
222
|
padding: 8px;
|
|
176
|
-
background: ${({ theme:
|
|
223
|
+
background: ${({ theme: r }) => r.palette.grey[100]};
|
|
177
224
|
border-radius: 8px;
|
|
178
225
|
|
|
179
226
|
&.is-inline {
|
|
@@ -192,187 +239,277 @@ const E = {
|
|
|
192
239
|
.MuiGrid-container + .MuiGrid-container {
|
|
193
240
|
margin-top: 0px;
|
|
194
241
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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 }) {
|
|
256
|
+
return /* @__PURE__ */ e(
|
|
257
|
+
h,
|
|
258
|
+
{
|
|
259
|
+
component: "span",
|
|
260
|
+
sx: {
|
|
261
|
+
display: "inline-flex",
|
|
262
|
+
alignItems: "center",
|
|
263
|
+
justifyContent: "center",
|
|
264
|
+
color: r,
|
|
265
|
+
backgroundColor: n,
|
|
266
|
+
borderRadius: "4px"
|
|
267
|
+
},
|
|
268
|
+
children: l
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}
|
|
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" ? [
|
|
198
311
|
{
|
|
199
312
|
type: "Group",
|
|
200
|
-
label:
|
|
313
|
+
label: o("groups.applications"),
|
|
201
314
|
children: [
|
|
202
315
|
{
|
|
203
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.nftstudio.rocks/${
|
|
204
|
-
description:
|
|
205
|
-
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, {})
|
|
206
319
|
},
|
|
207
320
|
{
|
|
208
321
|
label: /* @__PURE__ */ e(
|
|
209
|
-
|
|
322
|
+
p,
|
|
210
323
|
{
|
|
211
|
-
to: `https://www.arcblock.io/content/collections/${
|
|
324
|
+
to: `https://www.arcblock.io/content/collections/${i}/creator-studio`,
|
|
212
325
|
target: "_blank",
|
|
213
326
|
rel: "noreferrer noopener",
|
|
214
327
|
children: "Creator Studio"
|
|
215
328
|
}
|
|
216
329
|
),
|
|
217
|
-
description:
|
|
218
|
-
icon: /* @__PURE__ */ e(
|
|
330
|
+
description: o("products.creatorStudio.description"),
|
|
331
|
+
icon: /* @__PURE__ */ e(_, {})
|
|
219
332
|
},
|
|
220
333
|
{
|
|
221
|
-
label: /* @__PURE__ */ e(t, { to:
|
|
222
|
-
description:
|
|
223
|
-
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" })
|
|
224
337
|
},
|
|
225
338
|
{
|
|
226
|
-
label: /* @__PURE__ */ e(t, { to:
|
|
227
|
-
description:
|
|
228
|
-
icon: /* @__PURE__ */ e(
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "ArcSphere" }),
|
|
232
|
-
description: r("products.arcsphere.description"),
|
|
233
|
-
icon: /* @__PURE__ */ e(C, {})
|
|
339
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${i}`, children: "ArcSphere" }),
|
|
340
|
+
description: o("products.arcsphere.description"),
|
|
341
|
+
icon: /* @__PURE__ */ e(v, {})
|
|
234
342
|
}
|
|
235
343
|
]
|
|
236
344
|
},
|
|
237
345
|
{
|
|
238
346
|
type: "Group",
|
|
239
|
-
label:
|
|
347
|
+
label: o("groups.components"),
|
|
240
348
|
children: [
|
|
241
349
|
{
|
|
242
|
-
label: /* @__PURE__ */ e(t, { to: `https://launcher.arcblock.io/${
|
|
243
|
-
description:
|
|
244
|
-
icon: /* @__PURE__ */ e(
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.aikit.rocks/${o}`, target: "_blank", rel: "noreferrer noopener", children: "AI Kit" }),
|
|
248
|
-
description: r("products.aiKit.description"),
|
|
249
|
-
icon: /* @__PURE__ */ e(A, {})
|
|
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, {})
|
|
250
353
|
},
|
|
251
354
|
{
|
|
252
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${
|
|
253
|
-
description:
|
|
254
|
-
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" })
|
|
255
358
|
},
|
|
256
359
|
{
|
|
257
|
-
label: /* @__PURE__ */ e(t, { to: `https://store.blocklet.dev/?locale=${
|
|
258
|
-
description:
|
|
259
|
-
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, {})
|
|
260
363
|
},
|
|
261
364
|
{
|
|
262
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.web3kit.rocks/${
|
|
263
|
-
description:
|
|
264
|
-
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, {})
|
|
265
368
|
}
|
|
266
369
|
]
|
|
267
370
|
},
|
|
268
371
|
{
|
|
269
372
|
type: "Group",
|
|
270
|
-
label:
|
|
373
|
+
label: o("groups.computeStorage"),
|
|
271
374
|
children: [
|
|
272
375
|
{
|
|
273
376
|
label: /* @__PURE__ */ e(
|
|
274
|
-
|
|
377
|
+
p,
|
|
275
378
|
{
|
|
276
|
-
to: `https://www.arcblock.io/content/collections/${
|
|
379
|
+
to: `https://www.arcblock.io/content/collections/${i}/blocklet`,
|
|
277
380
|
target: "_blank",
|
|
278
381
|
rel: "noreferrer noopener",
|
|
279
382
|
children: "Blocklet Framework"
|
|
280
383
|
}
|
|
281
384
|
),
|
|
282
|
-
description:
|
|
283
|
-
icon: /* @__PURE__ */ e(
|
|
385
|
+
description: o("products.blockletFramework.description"),
|
|
386
|
+
icon: /* @__PURE__ */ e(H, {})
|
|
284
387
|
},
|
|
285
388
|
{
|
|
286
|
-
label: /* @__PURE__ */ e(
|
|
287
|
-
description:
|
|
288
|
-
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" })
|
|
289
392
|
},
|
|
290
393
|
{
|
|
291
|
-
label: /* @__PURE__ */ e(
|
|
292
|
-
description:
|
|
293
|
-
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, {})
|
|
294
397
|
},
|
|
295
398
|
{
|
|
296
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${
|
|
297
|
-
description:
|
|
298
|
-
icon: /* @__PURE__ */ 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, {})
|
|
299
402
|
},
|
|
300
403
|
{
|
|
301
|
-
label: /* @__PURE__ */ e(
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
to: `https://www.arcblock.io/content/collections/${o}/ocap`,
|
|
305
|
-
target: "_blank",
|
|
306
|
-
rel: "noreferrer noopener",
|
|
307
|
-
children: "ОСАР"
|
|
308
|
-
}
|
|
309
|
-
),
|
|
310
|
-
description: r("products.ocap.description"),
|
|
311
|
-
icon: /* @__PURE__ */ e(M, {})
|
|
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, {})
|
|
312
407
|
}
|
|
313
408
|
]
|
|
314
409
|
},
|
|
315
410
|
{
|
|
316
411
|
type: "Group",
|
|
317
|
-
label:
|
|
412
|
+
label: o("groups.identity"),
|
|
318
413
|
children: [
|
|
319
414
|
{
|
|
320
|
-
label: /* @__PURE__ */ e(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
to: `https://www.arcblock.io/content/collections/${o}/did`,
|
|
324
|
-
target: "_blank",
|
|
325
|
-
rel: "noreferrer noopener",
|
|
326
|
-
children: "DID"
|
|
327
|
-
}
|
|
328
|
-
),
|
|
329
|
-
description: r("products.did.description"),
|
|
330
|
-
icon: /* @__PURE__ */ e(d, {})
|
|
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" })
|
|
331
418
|
},
|
|
332
419
|
{
|
|
333
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.didwallet.io/${
|
|
334
|
-
description:
|
|
335
|
-
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, {})
|
|
336
423
|
},
|
|
337
424
|
{
|
|
338
|
-
label: /* @__PURE__ */ e(
|
|
339
|
-
description:
|
|
340
|
-
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" })
|
|
341
428
|
},
|
|
342
429
|
{
|
|
343
|
-
label: /* @__PURE__ */ e(
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
to: `https://www.arcblock.io/content/collections/${o}/verifiable-credential`,
|
|
347
|
-
target: "_blank",
|
|
348
|
-
rel: "noreferrer noopener",
|
|
349
|
-
children: "VC"
|
|
350
|
-
}
|
|
351
|
-
),
|
|
352
|
-
description: r("products.vc.description"),
|
|
353
|
-
icon: /* @__PURE__ */ e(z, {})
|
|
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, {})
|
|
354
433
|
},
|
|
355
434
|
{
|
|
356
|
-
label: /* @__PURE__ */ e(t, { to: `https://www.didconnect.io/${
|
|
357
|
-
description:
|
|
358
|
-
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" })
|
|
359
438
|
}
|
|
360
439
|
]
|
|
361
440
|
}
|
|
362
|
-
]
|
|
363
|
-
return /* @__PURE__ */ e(R, { ref: m, className: `is-${a} ${c}`, ...s, children: b.map((i) => /* @__PURE__ */ e(f, { label: i.label, children: /* @__PURE__ */ e(l, { container: !0, columnSpacing: 1, rowSpacing: 1, children: i.children.map((n) => /* @__PURE__ */ e(
|
|
364
|
-
l,
|
|
441
|
+
] : n === "AIGNE" ? [
|
|
365
442
|
{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
443
|
+
type: "Group",
|
|
444
|
+
label: o("groups.applications"),
|
|
445
|
+
children: [
|
|
446
|
+
{
|
|
447
|
+
label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${i}`, children: "ArcSphere" }),
|
|
448
|
+
description: o("products.arcsphere.description"),
|
|
449
|
+
icon: /* @__PURE__ */ e(v, {})
|
|
450
|
+
},
|
|
451
|
+
{
|
|
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" })
|
|
455
|
+
},
|
|
456
|
+
{
|
|
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" })
|
|
460
|
+
},
|
|
461
|
+
{
|
|
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" })
|
|
465
|
+
},
|
|
466
|
+
{
|
|
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" })
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
type: "Group",
|
|
475
|
+
label: o("groups.frameworkTools"),
|
|
476
|
+
children: [
|
|
477
|
+
{
|
|
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" })
|
|
481
|
+
},
|
|
482
|
+
{
|
|
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" })
|
|
486
|
+
},
|
|
487
|
+
{
|
|
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" })
|
|
491
|
+
},
|
|
492
|
+
{
|
|
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" })
|
|
496
|
+
}
|
|
497
|
+
]
|
|
372
498
|
},
|
|
373
|
-
|
|
374
|
-
|
|
499
|
+
{
|
|
500
|
+
type: "Group",
|
|
501
|
+
label: o("groups.modelsAdapters"),
|
|
502
|
+
children: [
|
|
503
|
+
{
|
|
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" })
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
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)) });
|
|
375
512
|
}
|
|
376
513
|
export {
|
|
377
|
-
|
|
514
|
+
$e as default
|
|
378
515
|
};
|
package/lib/NavMenu/style.js
CHANGED
|
@@ -23,7 +23,7 @@ const o = i("nav", {
|
|
|
23
23
|
flexDirection: "column",
|
|
24
24
|
alignItems: "stretch"
|
|
25
25
|
}
|
|
26
|
-
})),
|
|
26
|
+
})), e = i("li", {
|
|
27
27
|
shouldForwardProp: (n) => n !== "$activeTextColor"
|
|
28
28
|
})(({ $activeTextColor: n, theme: t }) => ({
|
|
29
29
|
display: "flex",
|
|
@@ -67,7 +67,7 @@ const o = i("nav", {
|
|
|
67
67
|
justifyContent: "center",
|
|
68
68
|
marginRight: "4px",
|
|
69
69
|
"& > *": {
|
|
70
|
-
width: "
|
|
70
|
+
width: "22px",
|
|
71
71
|
height: "22px",
|
|
72
72
|
maxHeight: "22px",
|
|
73
73
|
fontSize: "1.5em"
|
|
@@ -110,6 +110,7 @@ const o = i("nav", {
|
|
|
110
110
|
padding: "8px 16px",
|
|
111
111
|
borderRadius: "8px",
|
|
112
112
|
".navmenu-item__icon": {
|
|
113
|
+
flexShrink: 0,
|
|
113
114
|
width: "32px",
|
|
114
115
|
height: "32px",
|
|
115
116
|
marginRight: "16px",
|
|
@@ -155,7 +156,7 @@ const o = i("nav", {
|
|
|
155
156
|
lineHeight: "48px",
|
|
156
157
|
flexWrap: "wrap"
|
|
157
158
|
}
|
|
158
|
-
})), s = i(
|
|
159
|
+
})), s = i(e)(({ theme: n }) => ({
|
|
159
160
|
".navmenu-item": {
|
|
160
161
|
marginLeft: 0,
|
|
161
162
|
overflow: "hidden"
|
|
@@ -229,7 +230,7 @@ const o = i("nav", {
|
|
|
229
230
|
}
|
|
230
231
|
}));
|
|
231
232
|
export {
|
|
232
|
-
|
|
233
|
+
e as NavMenuItem,
|
|
233
234
|
r as NavMenuRoot,
|
|
234
235
|
o as NavMenuStyled,
|
|
235
236
|
s as NavMenuSub,
|
|
@@ -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/lib/UserCard/index.js
CHANGED
|
@@ -25,11 +25,15 @@ function B(e) {
|
|
|
25
25
|
const n = P(() => {
|
|
26
26
|
if (!i)
|
|
27
27
|
return null;
|
|
28
|
-
const { avatar: a = "", ...d } = i
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
const { avatar: a = "", ...d } = i;
|
|
29
|
+
if (a) {
|
|
30
|
+
const h = a.split("?")[1] || "";
|
|
31
|
+
return {
|
|
32
|
+
...d,
|
|
33
|
+
avatar: h ? a : `${a}?imageFilter=resize&w=48&h=48`
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return i;
|
|
33
37
|
}, [i]);
|
|
34
38
|
if (!n)
|
|
35
39
|
return /* @__PURE__ */ t(w, { did: e.did, size: e.avatarSize, useProxyFallback: !0, ...e.avatarProps });
|