@24city/web-console 0.1.0 → 0.1.1
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/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/dist/account/index.js +2 -2
- package/dist/chunks/{console-layout-CcUiJPf0.js → console-layout-BibioK5M.js} +33 -33
- package/dist/chunks/{error-boundary-BgTZsJA_.js → error-boundary-D3qiD7ov.js} +1 -1
- package/dist/chunks/page-BaitnD--.js +89 -0
- package/dist/chunks/{stale-build-D4N21gap.js → stale-build-DUKkQHuu.js} +1 -1
- package/dist/chunks/{text-link-7A--UEc3.js → text-link-FTsBp_QU.js} +1 -1
- package/dist/chunks/upgrade-modal-DzdKuEkJ.js +667 -0
- package/dist/chunks/wallet-badge-CnyMLpUO.js +565 -0
- package/dist/index.js +7 -7
- package/dist/layout/index.js +1 -1
- package/dist/page/index.js +3 -3
- package/dist/runtime/index.js +1 -1
- package/dist/styles.css +286 -254
- package/package.json +1 -1
- package/dist/chunks/page-BhfOrziX.js +0 -89
- package/dist/chunks/upgrade-modal-BbsM2VE2.js +0 -667
- package/dist/chunks/wallet-badge-D7AFqTLx.js +0 -565
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { Empty as k, Spin as y, Card as d, Button as f, Skeleton as n, Space as N, Typography as h } from "@douyinfe/semi-ui";
|
|
3
|
-
import { IllustrationSuccess as I, IllustrationSuccessDark as j, IllustrationIdle as b, IllustrationIdleDark as v, IllustrationNotFound as P, IllustrationNotFoundDark as x, IllustrationNoAccess as C, IllustrationNoAccessDark as E, IllustrationFailure as T, IllustrationFailureDark as D, IllustrationNoContentDark as H, IllustrationNoContent as S } from "@douyinfe/semi-illustrations";
|
|
4
|
-
const F = "_fullPage_ijyik_3", M = "_fullPageCard_ijyik_13", w = "_page_ijyik_18", L = "_pageHeader_ijyik_26", A = "_pageHeaderMain_ijyik_34", $ = "_pageTitle_ijyik_41", B = "_pageDescription_ijyik_49", R = "_pageExtra_ijyik_56", U = "_toolbar_ijyik_75", q = "_status_ijyik_84", z = "_statusExtra_ijyik_88", G = "_skeleton_ijyik_94", J = "_skeletonImage_ijyik_98", K = "_skeletonText_ijyik_103", O = "_loadingCard_ijyik_115", a = {
|
|
5
|
-
fullPage: F,
|
|
6
|
-
fullPageCard: M,
|
|
7
|
-
page: w,
|
|
8
|
-
pageHeader: L,
|
|
9
|
-
pageHeaderMain: A,
|
|
10
|
-
pageTitle: $,
|
|
11
|
-
pageDescription: B,
|
|
12
|
-
pageExtra: R,
|
|
13
|
-
toolbar: U,
|
|
14
|
-
status: q,
|
|
15
|
-
statusExtra: z,
|
|
16
|
-
skeleton: G,
|
|
17
|
-
skeletonImage: J,
|
|
18
|
-
skeletonText: K,
|
|
19
|
-
loadingCard: O
|
|
20
|
-
}, Q = {
|
|
21
|
-
error: [T, D],
|
|
22
|
-
forbidden: [C, E],
|
|
23
|
-
"not-found": [P, x],
|
|
24
|
-
info: [b, v],
|
|
25
|
-
success: [I, j]
|
|
26
|
-
}, m = ({ status: t, title: s, description: i, extra: r, size: l = 140, className: c, children: g }) => {
|
|
27
|
-
const [u, p] = t === "loading" ? [null, null] : Q[t], _ = { width: l, height: l };
|
|
28
|
-
return /* @__PURE__ */ e(
|
|
29
|
-
k,
|
|
30
|
-
{
|
|
31
|
-
className: c ? `${a.status} ${c}` : a.status,
|
|
32
|
-
image: u ? /* @__PURE__ */ e(u, { style: _ }) : /* @__PURE__ */ e(y, { size: "large" }),
|
|
33
|
-
darkModeImage: p ? /* @__PURE__ */ e(p, { style: _ }) : void 0,
|
|
34
|
-
title: s,
|
|
35
|
-
description: i,
|
|
36
|
-
children: r || g ? /* @__PURE__ */ o("div", { className: a.statusExtra, children: [
|
|
37
|
-
r,
|
|
38
|
-
g
|
|
39
|
-
] }) : null
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
}, Z = ({ title: t, description: s, extra: i, testId: r, children: l }) => /* @__PURE__ */ o("section", { className: a.page, "data-testid": r, children: [
|
|
43
|
-
/* @__PURE__ */ o("div", { className: a.pageHeader, children: [
|
|
44
|
-
/* @__PURE__ */ o("div", { className: a.pageHeaderMain, children: [
|
|
45
|
-
/* @__PURE__ */ e(h.Title, { heading: 1, className: a.pageTitle, children: t }),
|
|
46
|
-
s ? /* @__PURE__ */ e(h.Paragraph, { className: a.pageDescription, children: s }) : null
|
|
47
|
-
] }),
|
|
48
|
-
i ? /* @__PURE__ */ e("div", { className: a.pageExtra, children: i }) : null
|
|
49
|
-
] }),
|
|
50
|
-
l
|
|
51
|
-
] }), V = ({ children: t }) => /* @__PURE__ */ e("main", { className: a.fullPage, children: /* @__PURE__ */ e(d, { className: a.fullPageCard, bordered: !1, children: t }) }), ee = () => /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("div", { "aria-busy": "true", children: /* @__PURE__ */ e(n, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(n.Paragraph, { rows: 4 }) }) }) }), ae = ({ children: t }) => /* @__PURE__ */ e("div", { className: a.toolbar, children: t }), te = ({ message: t = "当前会话或空间不可用,请重新登录。" }) => /* @__PURE__ */ e(d, { bordered: !1, children: /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(m, { status: "forbidden", title: "当前会话或空间不可用", description: t }) }) }), se = ({ rows: t = 3, image: s = !1 }) => /* @__PURE__ */ e("div", { "aria-busy": "true", children: /* @__PURE__ */ e(d, { bordered: !1, className: a.loadingCard, children: /* @__PURE__ */ e(
|
|
52
|
-
n,
|
|
53
|
-
{
|
|
54
|
-
loading: !0,
|
|
55
|
-
active: !0,
|
|
56
|
-
placeholder: /* @__PURE__ */ o(N, { vertical: !0, align: "start", spacing: 12, className: a.skeleton, children: [
|
|
57
|
-
s ? /* @__PURE__ */ e(n.Image, { className: a.skeletonImage }) : null,
|
|
58
|
-
/* @__PURE__ */ e(n.Paragraph, { rows: t, className: a.skeletonText })
|
|
59
|
-
] })
|
|
60
|
-
}
|
|
61
|
-
) }) }), le = ({ title: t, message: s, retryLabel: i = "重新加载", retrying: r = !1, onRetry: l }) => /* @__PURE__ */ e(d, { bordered: !1, children: /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(
|
|
62
|
-
m,
|
|
63
|
-
{
|
|
64
|
-
status: "error",
|
|
65
|
-
title: t,
|
|
66
|
-
description: s,
|
|
67
|
-
extra: l ? /* @__PURE__ */ e(f, { theme: "solid", type: "primary", loading: r, onClick: l, children: i }) : void 0
|
|
68
|
-
}
|
|
69
|
-
) }) }), ie = ({ description: t, action: s }) => /* @__PURE__ */ e(d, { bordered: !1, children: /* @__PURE__ */ e(
|
|
70
|
-
k,
|
|
71
|
-
{
|
|
72
|
-
className: a.status,
|
|
73
|
-
image: /* @__PURE__ */ e(S, { style: { width: 120, height: 120 } }),
|
|
74
|
-
darkModeImage: /* @__PURE__ */ e(H, { style: { width: 120, height: 120 } }),
|
|
75
|
-
description: t,
|
|
76
|
-
children: s ? /* @__PURE__ */ e("div", { className: a.statusExtra, children: s }) : null
|
|
77
|
-
}
|
|
78
|
-
) });
|
|
79
|
-
export {
|
|
80
|
-
ie as E,
|
|
81
|
-
V as F,
|
|
82
|
-
se as L,
|
|
83
|
-
Z as P,
|
|
84
|
-
te as S,
|
|
85
|
-
ae as T,
|
|
86
|
-
le as a,
|
|
87
|
-
ee as b,
|
|
88
|
-
m as c
|
|
89
|
-
};
|