@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- 修正 Semi 覆盖样式在打包后失效的问题(AdFlow Staging 上发现:整站回到 Semi 默认的蓝灰中性色、3px 圆角、32px 页面标题)。
|
|
6
|
+
Semi 把设计变量定义在 `body` 上,而消费方打包后 `@douyinfe/semi-ui` 的 `_base/base.css` 排在本包样式之后,同级选择器谁后谁赢;
|
|
7
|
+
变量块改写在 `html body` 上,页面标题、侧栏菜单项、标签页字重等与 Semi 同级的规则各加一级,不再依赖样式表先后。
|
|
8
|
+
- 圆角:Semi 的 large 从 12px 改为 8px(卡片、弹窗与 Arco 时代一致);正文行高 1.5。
|
|
9
|
+
- 图标默认跟随文字字号(Semi 默认固定 16px,Arco 是 1em),元信息行里的小图标不再比字大。
|
|
10
|
+
- 侧栏菜单项 40px、图标 18px(Semi 给 Nav 图标加了 size="large");个人中心左侧菜单与账号菜单的图标、文字、箭头恢复 10px 间距
|
|
11
|
+
(Semi 把按钮子元素包进 `.semi-button-content`,间距要写在它上面)。
|
|
12
|
+
|
|
3
13
|
## 0.1.0
|
|
4
14
|
|
|
5
15
|
- 由 AdFlow 用户端(`saas/24city-adflow` `apps/web`,2026-11-09)的工作台外壳、账号菜单、个人中心、会员引导、页面骨架和
|
package/README.md
CHANGED
|
@@ -157,6 +157,10 @@ Lottie 在模块加载时会用到 canvas,没有垫片时整个包都引不进
|
|
|
157
157
|
|
|
158
158
|
### 用 Semi 时的几个坑
|
|
159
159
|
|
|
160
|
+
- Semi 把设计变量定义在 `body` 上,而打包后 `@douyinfe/semi-ui` 的 `_base/base.css` 往往排在本包样式之后:覆盖 Semi 的规则不能只靠同级选择器与引入顺序。
|
|
161
|
+
本包的变量写在 `html body` 上,组件覆盖在 Semi 的选择器之上再加一级;产品自己的模块样式若要盖住 Semi 的某条规则,同样要比它多一个类。
|
|
162
|
+
- Semi 的 `Input` 把 `className` 放在 `.semi-input-wrapper` 自己身上(Arco 在外面还有一层),模块样式要写成 `.mine:global(.semi-input-wrapper)` 而不是后代选择器。
|
|
163
|
+
- Arco 的 `type="text"` 按钮是主色文字,Semi 对应的是 `theme="borderless" type="primary"`;`type="tertiary"` 是灰色。
|
|
160
164
|
- Semi 的图标渲染为 `role="img"` 并带英文 `aria-label`,放在按钮文字旁会污染按钮的读屏名称:装饰性图标一律加 `aria-hidden="true"`。
|
|
161
165
|
- 弹窗默认脚部按钮带英文 `aria-label`(confirm / cancel):本包在 `/semi` 里清掉了默认值;自己传 `okButtonProps` 时用 `modalButtonProps({...})` 合并。
|
|
162
166
|
- `RadioGroup` 不传 `name` 时所有分组共用 `name="default"`,同页多个分组会互相抢选中:每个分组给独立的 `name`;它也不接受 `role`,需要
|
package/dist/account/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, a as t, c as o, b as n, i as r, d as i, l as u, n as c, r as l, e as g, f as p, u as A, g as S, w as P } from "../chunks/logout-signal-CiD_zY5M.js";
|
|
2
|
-
import { A as C, C as d, L as f, P as h, a as m, b as y, Q as N, R as T, S as E, c as O, T as b, U, d as F, p as _, e as x, f as v, g as w, y as B } from "../chunks/upgrade-modal-
|
|
3
|
-
import { A as I, a as q, b as D, E as K, F as M, P as Q, c as G, d as H, U as k, e as W, W as Y, f as j, g as z, h as J, i as V, j as X, k as Z, l as $, m as aa, n as sa, o as ea, p as ta, q as oa, r as na, s as ra, t as ia, u as ua, v as ca, w as la, x as ga, y as pa, z as Aa, B as Sa, C as Pa, D as La, G as Ca, H as da, I as fa, J as ha, K as ma, L as ya, M as Na, N as Ta, O as Ea, Q as Oa } from "../chunks/wallet-badge-
|
|
2
|
+
import { A as C, C as d, L as f, P as h, a as m, b as y, Q as N, R as T, S as E, c as O, T as b, U, d as F, p as _, e as x, f as v, g as w, y as B } from "../chunks/upgrade-modal-DzdKuEkJ.js";
|
|
3
|
+
import { A as I, a as q, b as D, E as K, F as M, P as Q, c as G, d as H, U as k, e as W, W as Y, f as j, g as z, h as J, i as V, j as X, k as Z, l as $, m as aa, n as sa, o as ea, p as ta, q as oa, r as na, s as ra, t as ia, u as ua, v as ca, w as la, x as ga, y as pa, z as Aa, B as Sa, C as Pa, D as La, G as Ca, H as da, I as fa, J as ha, K as ma, L as ya, M as Na, N as Ta, O as Ea, Q as Oa } from "../chunks/wallet-badge-CnyMLpUO.js";
|
|
4
4
|
import { A as Ua } from "../chunks/auth-provider-CqiyTeOt.js";
|
|
5
5
|
import { notifyCustomerSessionChanged as _a, subscribeCustomerSessionChanges as xa } from "@24city/web-runtime/session-sync";
|
|
6
6
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Layout as f, Button as
|
|
2
|
+
import { useState as v, useEffect as R } from "react";
|
|
3
|
+
import { Layout as f, Button as x, Typography as F, Space as Q, Nav as G } from "@douyinfe/semi-ui";
|
|
4
4
|
import { IconSidebar as $ } from "@douyinfe/semi-icons";
|
|
5
5
|
import { useLocation as Y, useNavigate as q, Outlet as D } from "react-router";
|
|
6
|
-
import { h as J, B as V, o as X, e as Z, W as z, b as ee } from "./wallet-badge-
|
|
6
|
+
import { h as J, B as V, o as X, e as Z, W as z, b as ee } from "./wallet-badge-CnyMLpUO.js";
|
|
7
7
|
import { u as A, b as te, a as ne } from "./context-CaVim6ZO.js";
|
|
8
8
|
import { u as ae } from "./use-media-query-DvyinWNg.js";
|
|
9
|
-
const oe = "
|
|
9
|
+
const oe = "_layout_15fx1_6", se = "_header_15fx1_13", le = "_headerLeft_15fx1_34", re = "_logo_15fx1_42", ce = "_logoMark_15fx1_57", ie = "_logoText_15fx1_64", de = "_modules_15fx1_73", ue = "_module_15fx1_73", me = "_moduleText_15fx1_110", _e = "_moduleIcon_15fx1_130", he = "_moduleInk_15fx1_134", pe = "_headerRight_15fx1_154", fe = "_body_15fx1_163", xe = "_sider_15fx1_169", ye = "_siderInner_15fx1_183", ke = "_panel_15fx1_190", ge = "_expandButton_15fx1_227", Ne = "_menu_15fx1_243", ve = "_menuGroup_15fx1_254", be = "_menuGroupTitle_15fx1_263", Ie = "_menuList_15fx1_274", Ce = "_collapseButton_15fx1_390", Me = "_mask_15fx1_411", Be = "_content_15fx1_420", we = "_contentCentered_15fx1_426", Le = "_contentInner_15fx1_438", Te = "_letterMark_15fx1_491", e = {
|
|
10
10
|
layout: oe,
|
|
11
11
|
header: se,
|
|
12
12
|
headerLeft: le,
|
|
@@ -20,25 +20,25 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
20
20
|
moduleInk: he,
|
|
21
21
|
headerRight: pe,
|
|
22
22
|
body: fe,
|
|
23
|
-
sider:
|
|
24
|
-
siderInner:
|
|
25
|
-
panel:
|
|
26
|
-
expandButton:
|
|
27
|
-
menu:
|
|
28
|
-
menuGroup:
|
|
23
|
+
sider: xe,
|
|
24
|
+
siderInner: ye,
|
|
25
|
+
panel: ke,
|
|
26
|
+
expandButton: ge,
|
|
27
|
+
menu: Ne,
|
|
28
|
+
menuGroup: ve,
|
|
29
29
|
menuGroupTitle: be,
|
|
30
30
|
menuList: Ie,
|
|
31
|
-
collapseButton:
|
|
32
|
-
mask:
|
|
33
|
-
content:
|
|
34
|
-
contentCentered:
|
|
31
|
+
collapseButton: Ce,
|
|
32
|
+
mask: Me,
|
|
33
|
+
content: Be,
|
|
34
|
+
contentCentered: we,
|
|
35
35
|
contentInner: Le,
|
|
36
36
|
letterMark: Te
|
|
37
37
|
}, Se = (a, l) => a === l || a.startsWith(`${l}/`), Ge = (a, l) => a.flatMap((o) => o.items).find((o) => new URL(o.to, "http://console.local").pathname === l), $e = (a, l) => {
|
|
38
38
|
var o;
|
|
39
39
|
return (o = [...a].map((r) => ({ module: r, path: new URL(r.to, "http://console.local").pathname })).filter(({ path: r }) => Se(l, r)).sort((r, u) => u.path.length - r.path.length)[0]) == null ? void 0 : o.module;
|
|
40
40
|
}, Re = () => {
|
|
41
|
-
const [a, l] =
|
|
41
|
+
const [a, l] = v(!1);
|
|
42
42
|
return R(() => {
|
|
43
43
|
const o = () => l(window.scrollY > 0);
|
|
44
44
|
return o(), window.addEventListener("scroll", o, { passive: !0 }), () => window.removeEventListener("scroll", o);
|
|
@@ -66,39 +66,39 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
66
66
|
extra: P
|
|
67
67
|
}) => {
|
|
68
68
|
var S;
|
|
69
|
-
const { config: I } = te(),
|
|
69
|
+
const { config: I } = te(), C = A(), y = Y(), k = q(), M = I.routes.app, h = J(M, V(ne())), B = X(M, y.pathname), p = B ? [] : r ?? [], w = p.length > 0, W = l ?? ((S = $e(a, y.pathname)) == null ? void 0 : S.key), m = Ge([...p, h], y.pathname), L = u ?? (m == null ? void 0 : m.key), i = ae("(min-width: 992px)"), j = Re(), [_, g] = v(!i), [N, d] = v(!1), H = new Map([...p, h].flatMap((n) => n.items.map((s) => [s.key, s])));
|
|
70
70
|
R(() => {
|
|
71
|
-
|
|
71
|
+
g(!i), d(!1);
|
|
72
72
|
}, [i]);
|
|
73
73
|
const T = (n) => {
|
|
74
74
|
const s = H.get(n);
|
|
75
|
-
s &&
|
|
75
|
+
s && k(s.to), d(!1);
|
|
76
76
|
};
|
|
77
77
|
return /* @__PURE__ */ c(f, { className: e.layout, children: [
|
|
78
78
|
/* @__PURE__ */ c(f.Header, { className: e.header, "data-scrolled": j ? "true" : "false", children: [
|
|
79
79
|
/* @__PURE__ */ c("div", { className: e.headerLeft, children: [
|
|
80
80
|
/* @__PURE__ */ c(
|
|
81
|
-
|
|
81
|
+
x,
|
|
82
82
|
{
|
|
83
83
|
theme: "borderless",
|
|
84
84
|
type: "tertiary",
|
|
85
85
|
className: e.logo,
|
|
86
|
-
"aria-label": `${
|
|
87
|
-
onClick: () =>
|
|
86
|
+
"aria-label": `${C.shortName} 首页`,
|
|
87
|
+
onClick: () => k(I.routes.publicHome),
|
|
88
88
|
children: [
|
|
89
89
|
/* @__PURE__ */ t(Ae, {}),
|
|
90
|
-
/* @__PURE__ */ t(F.Text, { className: e.logoText, children:
|
|
90
|
+
/* @__PURE__ */ t(F.Text, { className: e.logoText, children: C.shortName })
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
a.length ? /* @__PURE__ */ t("div", { className: e.modules, role: "navigation", "aria-label": "产品模块", children: a.map((n) => /* @__PURE__ */ c(
|
|
95
|
-
|
|
95
|
+
x,
|
|
96
96
|
{
|
|
97
97
|
theme: "borderless",
|
|
98
98
|
type: "tertiary",
|
|
99
99
|
className: e.module,
|
|
100
100
|
"aria-current": W === n.key ? "page" : void 0,
|
|
101
|
-
onClick: () =>
|
|
101
|
+
onClick: () => k(o ? o(n) : n.to),
|
|
102
102
|
children: [
|
|
103
103
|
/* @__PURE__ */ c("span", { className: e.moduleText, children: [
|
|
104
104
|
n.icon ? /* @__PURE__ */ t("span", { className: e.moduleIcon, children: /* @__PURE__ */ t(n.icon, {}) }) : null,
|
|
@@ -117,12 +117,12 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
117
117
|
] }) })
|
|
118
118
|
] }),
|
|
119
119
|
/* @__PURE__ */ c(f, { className: e.body, children: [
|
|
120
|
-
|
|
120
|
+
w ? /* @__PURE__ */ t("aside", { className: e.sider, "data-collapsed": _ ? "true" : "false", children: /* @__PURE__ */ c(
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
123
|
className: e.siderInner,
|
|
124
124
|
"data-collapsed": _ ? "true" : "false",
|
|
125
|
-
"data-peek":
|
|
125
|
+
"data-peek": N ? "true" : "false",
|
|
126
126
|
onMouseEnter: () => {
|
|
127
127
|
_ && i && d(!0);
|
|
128
128
|
},
|
|
@@ -131,16 +131,16 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
131
131
|
},
|
|
132
132
|
children: [
|
|
133
133
|
_ ? /* @__PURE__ */ t(
|
|
134
|
-
|
|
134
|
+
x,
|
|
135
135
|
{
|
|
136
136
|
theme: "light",
|
|
137
137
|
type: "tertiary",
|
|
138
138
|
className: e.expandButton,
|
|
139
139
|
icon: /* @__PURE__ */ t($, { "aria-hidden": "true" }),
|
|
140
140
|
"aria-label": "展开侧边栏",
|
|
141
|
-
"aria-expanded":
|
|
141
|
+
"aria-expanded": N,
|
|
142
142
|
onClick: () => {
|
|
143
|
-
i ? (
|
|
143
|
+
i ? (g(!1), d(!1)) : d((n) => !n);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
) : null,
|
|
@@ -167,14 +167,14 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
167
167
|
)
|
|
168
168
|
] }, n.key)) }),
|
|
169
169
|
i ? /* @__PURE__ */ t(
|
|
170
|
-
|
|
170
|
+
x,
|
|
171
171
|
{
|
|
172
172
|
theme: "borderless",
|
|
173
173
|
type: "tertiary",
|
|
174
174
|
className: e.collapseButton,
|
|
175
175
|
icon: /* @__PURE__ */ t($, { "aria-hidden": "true" }),
|
|
176
176
|
onClick: () => {
|
|
177
|
-
|
|
177
|
+
g((n) => !n), d(!1);
|
|
178
178
|
},
|
|
179
179
|
children: _ ? "固定侧边栏" : "收起侧边栏"
|
|
180
180
|
}
|
|
@@ -183,8 +183,8 @@ const oe = "_layout_fwvg5_6", se = "_header_fwvg5_13", le = "_headerLeft_fwvg5_3
|
|
|
183
183
|
]
|
|
184
184
|
}
|
|
185
185
|
) }) : null,
|
|
186
|
-
|
|
187
|
-
/* @__PURE__ */ t(f.Content, { className:
|
|
186
|
+
N && !i && w ? /* @__PURE__ */ t("div", { className: e.mask, "aria-hidden": "true", onClick: () => d(!1) }) : null,
|
|
187
|
+
/* @__PURE__ */ t(f.Content, { className: B ? `${e.content} ${e.contentCentered}` : e.content, children: /* @__PURE__ */ t("div", { className: e.contentInner, children: K ?? /* @__PURE__ */ t(D, {}) }) })
|
|
188
188
|
] }),
|
|
189
189
|
P
|
|
190
190
|
] });
|
|
@@ -4,7 +4,7 @@ var i = (e, t, o) => d(e, typeof t != "symbol" ? t + "" : t, o);
|
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { Component as c } from "react";
|
|
6
6
|
import { Card as m, Button as p } from "@douyinfe/semi-ui";
|
|
7
|
-
import { F as n, c as f } from "./page-
|
|
7
|
+
import { F as n, c as f } from "./page-BaitnD--.js";
|
|
8
8
|
const a = () => /* @__PURE__ */ r("div", { role: "alert", children: /* @__PURE__ */ r(
|
|
9
9
|
f,
|
|
10
10
|
{
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Empty as m, Spin as f, Card as d, Button as N, Skeleton as i, Space as I, Typography as h } from "@douyinfe/semi-ui";
|
|
3
|
+
import { IllustrationSuccess as b, IllustrationSuccessDark as v, IllustrationIdle as P, IllustrationIdleDark as x, IllustrationNotFound as C, IllustrationNotFoundDark as E, IllustrationNoAccess as T, IllustrationNoAccessDark as y, IllustrationFailure as D, IllustrationFailureDark as H, IllustrationNoContentDark as S, IllustrationNoContent as F } from "@douyinfe/semi-illustrations";
|
|
4
|
+
const M = "_fullPage_8980g_3", w = "_fullPageCard_8980g_13", L = "_page_8980g_18", A = "_pageHeader_8980g_26", j = "_pageHeaderMain_8980g_34", $ = "_pageTitle_8980g_42", B = "_pageDescription_8980g_51", R = "_pageExtra_8980g_58", U = "_toolbar_8980g_77", q = "_status_8980g_86", z = "_statusExtra_8980g_90", G = "_skeleton_8980g_96", J = "_skeletonImage_8980g_100", K = "_skeletonText_8980g_105", O = "_loadingCard_8980g_117", a = {
|
|
5
|
+
fullPage: M,
|
|
6
|
+
fullPageCard: w,
|
|
7
|
+
page: L,
|
|
8
|
+
pageHeader: A,
|
|
9
|
+
pageHeaderMain: j,
|
|
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: [D, H],
|
|
22
|
+
forbidden: [T, y],
|
|
23
|
+
"not-found": [C, E],
|
|
24
|
+
info: [P, x],
|
|
25
|
+
success: [b, v]
|
|
26
|
+
}, k = ({ status: t, title: s, description: r, extra: o, 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
|
+
m,
|
|
30
|
+
{
|
|
31
|
+
className: c ? `${a.status} ${c}` : a.status,
|
|
32
|
+
image: u ? /* @__PURE__ */ e(u, { style: _ }) : /* @__PURE__ */ e(f, { size: "large" }),
|
|
33
|
+
darkModeImage: p ? /* @__PURE__ */ e(p, { style: _ }) : void 0,
|
|
34
|
+
title: s,
|
|
35
|
+
description: r,
|
|
36
|
+
children: o || g ? /* @__PURE__ */ n("div", { className: a.statusExtra, children: [
|
|
37
|
+
o,
|
|
38
|
+
g
|
|
39
|
+
] }) : null
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}, Z = ({ title: t, description: s, extra: r, testId: o, children: l }) => /* @__PURE__ */ n("section", { className: a.page, "data-testid": o, children: [
|
|
43
|
+
/* @__PURE__ */ n("div", { className: a.pageHeader, children: [
|
|
44
|
+
/* @__PURE__ */ n("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
|
+
r ? /* @__PURE__ */ e("div", { className: a.pageExtra, children: r }) : 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(i, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(i.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(k, { 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
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
loading: !0,
|
|
55
|
+
active: !0,
|
|
56
|
+
placeholder: /* @__PURE__ */ n(I, { vertical: !0, align: "start", spacing: 12, className: a.skeleton, children: [
|
|
57
|
+
s ? /* @__PURE__ */ e(i.Image, { className: a.skeletonImage }) : null,
|
|
58
|
+
/* @__PURE__ */ e(i.Paragraph, { rows: t, className: a.skeletonText })
|
|
59
|
+
] })
|
|
60
|
+
}
|
|
61
|
+
) }) }), le = ({ title: t, message: s, retryLabel: r = "重新加载", retrying: o = !1, onRetry: l }) => /* @__PURE__ */ e(d, { bordered: !1, children: /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(
|
|
62
|
+
k,
|
|
63
|
+
{
|
|
64
|
+
status: "error",
|
|
65
|
+
title: t,
|
|
66
|
+
description: s,
|
|
67
|
+
extra: l ? /* @__PURE__ */ e(N, { theme: "solid", type: "primary", loading: o, onClick: l, children: r }) : void 0
|
|
68
|
+
}
|
|
69
|
+
) }) }), re = ({ description: t, action: s }) => /* @__PURE__ */ e(d, { bordered: !1, children: /* @__PURE__ */ e(
|
|
70
|
+
m,
|
|
71
|
+
{
|
|
72
|
+
className: a.status,
|
|
73
|
+
image: /* @__PURE__ */ e(F, { style: { width: 120, height: 120 } }),
|
|
74
|
+
darkModeImage: /* @__PURE__ */ e(S, { 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
|
+
re 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
|
+
k as c
|
|
89
|
+
};
|
|
@@ -4,7 +4,7 @@ import { useMemo as i } from "react";
|
|
|
4
4
|
import { CustomerRuntimeConfigProvider as f } from "@24city/web-runtime/runtime-config-provider";
|
|
5
5
|
import { A as d } from "./auth-provider-CqiyTeOt.js";
|
|
6
6
|
import { b as m, A as p } from "./logout-signal-CiD_zY5M.js";
|
|
7
|
-
import { E as C } from "./error-boundary-
|
|
7
|
+
import { E as C } from "./error-boundary-D3qiD7ov.js";
|
|
8
8
|
import { C as y } from "./context-CaVim6ZO.js";
|
|
9
9
|
import { parseCustomerRuntimeConfig as h, loadCustomerRuntimeConfig as v } from "@24city/web-runtime/core/runtime-config";
|
|
10
10
|
const R = () => new c({
|
|
@@ -2,7 +2,7 @@ import { jsx as n, jsxs as w } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as m, Typography as x } from "@douyinfe/semi-ui";
|
|
3
3
|
import { useNavigate as h } from "react-router";
|
|
4
4
|
import { b as v } from "./context-CaVim6ZO.js";
|
|
5
|
-
import { F as d, c as u } from "./page-
|
|
5
|
+
import { F as d, c as u } from "./page-BaitnD--.js";
|
|
6
6
|
const E = () => {
|
|
7
7
|
const { config: r } = v(), t = h();
|
|
8
8
|
return /* @__PURE__ */ n(d, { children: /* @__PURE__ */ n(
|