@yuku123/z-team-component 0.2.53 → 0.2.55
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/dist/{ChangeLogView-Dm7C3S14.js → ChangeLogView-R6boINWk.js} +1 -1
- package/dist/{ComponentDoc-y1NfPcHG.js → ComponentDoc-DTJyJAy-.js} +121 -121
- package/dist/{InvitationManagementPage-Btw9iVOl.js → InvitationManagementPage-BZOxuoM5.js} +1 -1
- package/dist/{OnboardingPage-wF0OrgfD.js → OnboardingPage-Be3MXW9i.js} +2 -2
- package/dist/{ScheduledTasks-CzzgG3n8.js → ScheduledTasks-CxDbixJe.js} +806 -809
- package/dist/{SystemShell-BSCmnOxf.js → SystemShell-BEKwj3WF.js} +1 -1
- package/dist/{admin-logs-vR556ORQ.js → admin-logs-DMF0dtG1.js} +2 -2
- package/dist/{api-Jfnj1ybB.js → api-DhuqONeb.js} +210 -227
- package/dist/{api-Bs0qYxjL.js → api-DqNgdbLm.js} +1 -1
- package/dist/{createWorkspaceWsHandler-obuYWncQ.js → createWorkspaceWsHandler-BKcAIc4B.js} +5359 -5145
- package/dist/{index-DqUOCs_a.js → index-8Qtz0IKN.js} +2 -2
- package/dist/{index-Pk7OkJrk.js → index-B30K72xQ.js} +517 -320
- package/dist/{index-CnEWSsKt.js → index-B7cZdoRq.js} +1 -1
- package/dist/{index-DroZE6Bv.js → index-B8eiFO_f.js} +3 -3
- package/dist/{index-CYViRXQo.js → index-BKVWW3ba.js} +1 -1
- package/dist/{index-JLtVgwZv.js → index-BM6XpIcw.js} +1 -1
- package/dist/{index-BbkE7r8M.js → index-BOcKPM37.js} +610 -529
- package/dist/{index-gxEdw4X4.js → index-BP97Ev-W.js} +4 -4
- package/dist/{index-BtWtVMgY.js → index-C5O0cK8A.js} +6 -6
- package/dist/index-C8Wkx3H_.js +8960 -0
- package/dist/{index-yS7XIUis.js → index-CZ9xxAL0.js} +3 -3
- package/dist/{index-BNShjps9.js → index-CZxihNo5.js} +7 -7
- package/dist/{index-DmZdGNnh.js → index-CbUsvCMy.js} +4 -4
- package/dist/{index-Ck_D109M.js → index-Ct9MzvZV.js} +2 -2
- package/dist/{index-B3LhKHBx.js → index-CzePRAbT.js} +41 -35
- package/dist/{index-tADa82Fa.js → index-DQk6Pt6U.js} +3 -3
- package/dist/{index-Onqu_VQO.js → index-DQmgOqd1.js} +7 -7
- package/dist/{index-Dj5_8ulz.js → index-DV8rmjvN.js} +5 -5
- package/dist/{index-Di_vaPxC.js → index-DpNZTqcn.js} +3 -3
- package/dist/{index-C5WSr14Z.js → index-Otx98G8z.js} +1 -1
- package/dist/{index-BXiuxhgz.js → index-TPTesErt.js} +2 -2
- package/dist/{index-CxrBnzg2.js → index-mXMdvUYD.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-B0DZJnee.js → instance-Cr4_XM2r.js} +1 -1
- package/dist/pages.js +1 -1
- package/dist/{schedule-D3jTrI1R.js → schedule-BNLns-p4.js} +1 -1
- package/dist/{send-default-agent-team-message-CbqHaohM.js → send-default-agent-team-message-C9VWSWKJ.js} +1 -1
- package/dist/{sso-user-Dw_wwYa-.js → sso-user-Cme2tmGq.js} +1 -1
- package/dist/{training-CETtJBNQ.js → training-SjRAdtNQ.js} +1 -1
- package/dist/{useAppStore-s-CLa-nF.js → useAppStore-C63xiq3-.js} +1 -1
- package/dist/{webide-6j4OVoNA.js → webide-DDFxSedU.js} +4 -4
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
- package/dist/index-DUmgSTQu.js +0 -9179
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-WIsi8fln.js +0 -339
package/dist/index-DWsfQMp8.js
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
const d = typeof window < "u" && window.ZTEAM_DOWNLOAD_BASE || "", S = `${d}/latest-mac.json`, L = `${d}/latest-android.json`;
|
|
3
|
-
function T(a) {
|
|
4
|
-
return !a || a <= 0 ? "" : a < 1024 * 1024 ? `${(a / 1024).toFixed(0)} KB` : `${(a / (1024 * 1024)).toFixed(1)} MB`;
|
|
5
|
-
}
|
|
6
|
-
function A(a) {
|
|
7
|
-
if (!a) return "";
|
|
8
|
-
try {
|
|
9
|
-
const r = new Date(a);
|
|
10
|
-
return Number.isNaN(r.getTime()) ? a : `${r.getFullYear()}-${String(r.getMonth() + 1).padStart(
|
|
11
|
-
2,
|
|
12
|
-
"0"
|
|
13
|
-
)}-${String(r.getDate()).padStart(2, "0")}`;
|
|
14
|
-
} catch {
|
|
15
|
-
return a;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
async function E(a) {
|
|
19
|
-
if (!a) return null;
|
|
20
|
-
try {
|
|
21
|
-
const r = await fetch(a, {
|
|
22
|
-
headers: { Accept: "application/json" }
|
|
23
|
-
});
|
|
24
|
-
if (!r.ok) return null;
|
|
25
|
-
const t = await r.text();
|
|
26
|
-
if (!t.trim().startsWith("{")) return null;
|
|
27
|
-
const e = JSON.parse(t);
|
|
28
|
-
return !e || !e.version || !e.downloadUrl ? null : {
|
|
29
|
-
version: e.version,
|
|
30
|
-
arch: e.arch || "",
|
|
31
|
-
downloadUrl: e.downloadUrl,
|
|
32
|
-
fileName: e.fileName || "",
|
|
33
|
-
fileSize: Number(e.fileSize) || 0,
|
|
34
|
-
changelog: e.changelog || "",
|
|
35
|
-
releaseType: e.releaseType || "stable",
|
|
36
|
-
releaseTime: e.releaseTime || "",
|
|
37
|
-
...e.windows ? {
|
|
38
|
-
windows: w(e.windows)
|
|
39
|
-
} : {}
|
|
40
|
-
};
|
|
41
|
-
} catch {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function w(a) {
|
|
46
|
-
return {
|
|
47
|
-
version: a.version || "",
|
|
48
|
-
arch: a.arch || "",
|
|
49
|
-
downloadUrl: a.downloadUrl || "",
|
|
50
|
-
fileName: a.fileName || "",
|
|
51
|
-
fileSize: Number(a.fileSize) || 0,
|
|
52
|
-
changelog: a.changelog || "",
|
|
53
|
-
releaseType: a.releaseType || "stable",
|
|
54
|
-
releaseTime: a.releaseTime || ""
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function H(a, r) {
|
|
58
|
-
var t;
|
|
59
|
-
return a ? r === "windows" ? (t = a.windows) != null && t.downloadUrl ? a.windows : null : a.downloadUrl ? a : null : null;
|
|
60
|
-
}
|
|
61
|
-
const v = {
|
|
62
|
-
message: [
|
|
63
|
-
"M21 11.5a8.4 8.4 0 0 1-9 8.4 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.2a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 8.5-8.4h.5a8.5 8.5 0 0 1 8 8z"
|
|
64
|
-
],
|
|
65
|
-
network: [
|
|
66
|
-
"M18 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
67
|
-
"M6 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
68
|
-
"M18 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
69
|
-
"M8.6 13.5l6.8 4",
|
|
70
|
-
"M15.4 6.5l-6.8 4"
|
|
71
|
-
],
|
|
72
|
-
branch: [
|
|
73
|
-
"M6 3v12",
|
|
74
|
-
"M18 9a9 9 0 0 1-9 9"
|
|
75
|
-
],
|
|
76
|
-
shield: [
|
|
77
|
-
"M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.5 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z",
|
|
78
|
-
"m9 12 2 2 4-4"
|
|
79
|
-
],
|
|
80
|
-
swap: ["M8 3 4 7l4 4", "M4 7h16", "m16 21 4-4-4-4", "M20 17H4"],
|
|
81
|
-
users: [
|
|
82
|
-
"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
83
|
-
"M22 21v-2a4 4 0 0 0-3-3.9",
|
|
84
|
-
"M16 3.1a4 4 0 0 1 0 7.8"
|
|
85
|
-
],
|
|
86
|
-
book: [
|
|
87
|
-
"M12 7v14",
|
|
88
|
-
"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"
|
|
89
|
-
],
|
|
90
|
-
layers: [
|
|
91
|
-
"M12.8 2.2a2 2 0 0 0-1.6 0L2.6 6.1a1 1 0 0 0 0 1.8l8.6 3.9a2 2 0 0 0 1.6 0l8.6-3.9a1 1 0 0 0 0-1.8z",
|
|
92
|
-
"m22 12.5-9.2 4.2a2 2 0 0 1-1.6 0L2 12.5",
|
|
93
|
-
"m22 17.5-9.2 4.2a2 2 0 0 1-1.6 0L2 17.5"
|
|
94
|
-
],
|
|
95
|
-
laptop: [
|
|
96
|
-
"M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9H4z",
|
|
97
|
-
"M2 17h20l-1.5 1.8a1 1 0 0 1-1.3.4H4.8a1 1 0 0 1-1.3-.4z"
|
|
98
|
-
],
|
|
99
|
-
phone: [
|
|
100
|
-
"M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",
|
|
101
|
-
"M11 18h2"
|
|
102
|
-
],
|
|
103
|
-
globe: [
|
|
104
|
-
"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",
|
|
105
|
-
"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
|
|
106
|
-
"M2 12h20"
|
|
107
|
-
],
|
|
108
|
-
terminal: ["m4 17 6-6-6-6", "M12 19h8"],
|
|
109
|
-
bot: [
|
|
110
|
-
"M5 9h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2z",
|
|
111
|
-
"M12 9V5.5",
|
|
112
|
-
"M2.5 12v4",
|
|
113
|
-
"M21.5 12v4",
|
|
114
|
-
"M9.5 13h.01",
|
|
115
|
-
"M14.5 13h.01",
|
|
116
|
-
"M10 16.5h4"
|
|
117
|
-
],
|
|
118
|
-
zap: ["M13 2 4 14h7l-1 8 9-12h-7z"],
|
|
119
|
-
server: [
|
|
120
|
-
"M4 4h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",
|
|
121
|
-
"M4 14h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",
|
|
122
|
-
"M7 7h.01",
|
|
123
|
-
"M7 17h.01"
|
|
124
|
-
],
|
|
125
|
-
wrench: ["M14.7 6.3a4 4 0 0 0 5 5l-9 9a2.8 2.8 0 0 1-4-4z"],
|
|
126
|
-
search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16z", "m21 21-4.3-4.3"],
|
|
127
|
-
download: ["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", "m7 10 5 5 5-5", "M12 15V3"],
|
|
128
|
-
check: ["M20 6 9 17l-5-5"],
|
|
129
|
-
arrow: ["M5 12h14", "m12 5 7 7-7 7"],
|
|
130
|
-
external: ["M15 3h6v6", "M10 14 21 3", "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],
|
|
131
|
-
sparkle: ["M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z"]
|
|
132
|
-
}, m = {
|
|
133
|
-
windows: [
|
|
134
|
-
"M3 5.6 10 4.3v7.3H3z",
|
|
135
|
-
"M11 4.05 21 2.5v9.1H11z",
|
|
136
|
-
"M3 12.6h7v7.3l-7-1.3z",
|
|
137
|
-
"M11 12.6h10v9.1l-10-1.5z"
|
|
138
|
-
]
|
|
139
|
-
}, z = {
|
|
140
|
-
branch: [
|
|
141
|
-
[18, 6, 3],
|
|
142
|
-
[6, 18, 3]
|
|
143
|
-
]
|
|
144
|
-
}, g = {
|
|
145
|
-
bot: [[12, 3.6, 1.15]]
|
|
146
|
-
};
|
|
147
|
-
function N({
|
|
148
|
-
name: a,
|
|
149
|
-
size: r = 20,
|
|
150
|
-
strokeWidth: t = 1.7,
|
|
151
|
-
className: e,
|
|
152
|
-
style: u
|
|
153
|
-
}) {
|
|
154
|
-
const i = m[a], h = v[a], s = z[a], M = g[a];
|
|
155
|
-
return !i && !h ? /* @__PURE__ */ l(
|
|
156
|
-
"svg",
|
|
157
|
-
{
|
|
158
|
-
viewBox: "0 0 24 24",
|
|
159
|
-
width: r,
|
|
160
|
-
height: r,
|
|
161
|
-
className: e,
|
|
162
|
-
style: u,
|
|
163
|
-
"aria-hidden": "true",
|
|
164
|
-
children: /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "3", fill: "currentColor" })
|
|
165
|
-
}
|
|
166
|
-
) : /* @__PURE__ */ f(
|
|
167
|
-
"svg",
|
|
168
|
-
{
|
|
169
|
-
viewBox: "0 0 24 24",
|
|
170
|
-
width: r,
|
|
171
|
-
height: r,
|
|
172
|
-
className: e,
|
|
173
|
-
style: u,
|
|
174
|
-
fill: "none",
|
|
175
|
-
stroke: "currentColor",
|
|
176
|
-
strokeWidth: t,
|
|
177
|
-
strokeLinecap: "round",
|
|
178
|
-
strokeLinejoin: "round",
|
|
179
|
-
"aria-hidden": "true",
|
|
180
|
-
focusable: "false",
|
|
181
|
-
children: [
|
|
182
|
-
i == null ? void 0 : i.map((n) => /* @__PURE__ */ l("path", { d: n, fill: "currentColor", stroke: "none" }, n)),
|
|
183
|
-
h == null ? void 0 : h.map((n) => /* @__PURE__ */ l("path", { d: n }, n)),
|
|
184
|
-
s == null ? void 0 : s.map(([n, o, c]) => /* @__PURE__ */ l("circle", { cx: n, cy: o, r: c }, `${n}-${o}`)),
|
|
185
|
-
M == null ? void 0 : M.map(([n, o, c]) => /* @__PURE__ */ l(
|
|
186
|
-
"circle",
|
|
187
|
-
{
|
|
188
|
-
cx: n,
|
|
189
|
-
cy: o,
|
|
190
|
-
r: c,
|
|
191
|
-
fill: "currentColor",
|
|
192
|
-
stroke: "none"
|
|
193
|
-
},
|
|
194
|
-
`f-${n}-${o}`
|
|
195
|
-
))
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
export {
|
|
201
|
-
L as A,
|
|
202
|
-
N as L,
|
|
203
|
-
S as M,
|
|
204
|
-
T as a,
|
|
205
|
-
A as b,
|
|
206
|
-
E as f,
|
|
207
|
-
H as p
|
|
208
|
-
};
|
package/dist/index-WIsi8fln.js
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useState as o, useEffect as h, useCallback as k, useMemo as B } from "react";
|
|
3
|
-
import { h as l } from "./history-BlrA1eaW.js";
|
|
4
|
-
import { f as x, p as N, L as d, M, A as S, a as W, b as R } from "./index-DWsfQMp8.js";
|
|
5
|
-
const E = "_page_z9ex0_8", F = "_bgWash_z9ex0_48", C = "_bgGrid_z9ex0_59", G = "_navbar_z9ex0_74", O = "_navInner_z9ex0_84", H = "_navBrand_z9ex0_95", Z = "_navMark_z9ex0_102", $ = "_navBrandText_z9ex0_116", U = "_navBack_z9ex0_123", K = "_hero_z9ex0_143", j = "_eyebrow_z9ex0_151", X = "_eyebrowDot_z9ex0_166", Q = "_heroTitle_z9ex0_174", V = "_heroLead_z9ex0_183", q = "_grid_z9ex0_192", J = "_card_z9ex0_203", Y = "_cardFocused_z9ex0_219", ee = "_cardHead_z9ex0_224", ae = "_cardIcon_z9ex0_230", ne = "_cardHeadText_z9ex0_243", te = "_cardTitle_z9ex0_248", re = "_cardEn_z9ex0_256", se = "_cardBadges_z9ex0_262", ce = "_badge_z9ex0_270", oe = "_badgeDevice_z9ex0_271", de = "_badge_ready_z9ex0_286", ie = "_badge_beta_z9ex0_292", le = "_badge_soon_z9ex0_298", _e = "_badge_free_z9ex0_304", me = "_badge_instant_z9ex0_310", he = "_cardDesc_z9ex0_316", be = "_metaRow_z9ex0_323", ge = "_metaItem_z9ex0_330", ue = "_changelog_z9ex0_343", fe = "_changelogLabel_z9ex0_351", ke = "_changelogText_z9ex0_358", xe = "_steps_z9ex0_365", Ne = "_cardAction_z9ex0_381", ve = "_btnPrimary_z9ex0_385", we = "_btnGhost_z9ex0_386", ye = "_btnDisabled_z9ex0_387", ze = "_cardNote_z9ex0_432", pe = "_footer_z9ex0_439", Te = "_footerLink_z9ex0_455", e = {
|
|
6
|
-
page: E,
|
|
7
|
-
bgWash: F,
|
|
8
|
-
bgGrid: C,
|
|
9
|
-
navbar: G,
|
|
10
|
-
navInner: O,
|
|
11
|
-
navBrand: H,
|
|
12
|
-
navMark: Z,
|
|
13
|
-
navBrandText: $,
|
|
14
|
-
navBack: U,
|
|
15
|
-
hero: K,
|
|
16
|
-
eyebrow: j,
|
|
17
|
-
eyebrowDot: X,
|
|
18
|
-
heroTitle: Q,
|
|
19
|
-
heroLead: V,
|
|
20
|
-
grid: q,
|
|
21
|
-
card: J,
|
|
22
|
-
cardFocused: Y,
|
|
23
|
-
cardHead: ee,
|
|
24
|
-
cardIcon: ae,
|
|
25
|
-
cardHeadText: ne,
|
|
26
|
-
cardTitle: te,
|
|
27
|
-
cardEn: re,
|
|
28
|
-
cardBadges: se,
|
|
29
|
-
badge: ce,
|
|
30
|
-
badgeDevice: oe,
|
|
31
|
-
badge_ready: de,
|
|
32
|
-
badge_beta: ie,
|
|
33
|
-
badge_soon: le,
|
|
34
|
-
badge_free: _e,
|
|
35
|
-
badge_instant: me,
|
|
36
|
-
cardDesc: he,
|
|
37
|
-
metaRow: be,
|
|
38
|
-
metaItem: ge,
|
|
39
|
-
changelog: ue,
|
|
40
|
-
changelogLabel: fe,
|
|
41
|
-
changelogText: ke,
|
|
42
|
-
steps: xe,
|
|
43
|
-
cardAction: Ne,
|
|
44
|
-
btnPrimary: ve,
|
|
45
|
-
btnGhost: we,
|
|
46
|
-
btnDisabled: ye,
|
|
47
|
-
cardNote: ze,
|
|
48
|
-
footer: pe,
|
|
49
|
-
footerLink: Te
|
|
50
|
-
}, Ae = {
|
|
51
|
-
ready: "正式版",
|
|
52
|
-
beta: "内测中",
|
|
53
|
-
soon: "即将发布",
|
|
54
|
-
free: "免安装",
|
|
55
|
-
instant: "即刻可用"
|
|
56
|
-
}, m = [
|
|
57
|
-
{
|
|
58
|
-
key: "macos",
|
|
59
|
-
icon: "laptop",
|
|
60
|
-
name: "macOS 桌面客户端",
|
|
61
|
-
en: "ZTeamAgent · Apple Silicon",
|
|
62
|
-
state: "ready",
|
|
63
|
-
desc: "本地 Agent 沙箱、火箭跳转、自动更新。桌面端与生产 Agent 集群双向打通,敏感操作不出本地。"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
key: "windows",
|
|
67
|
-
icon: "windows",
|
|
68
|
-
name: "Windows 桌面客户端",
|
|
69
|
-
en: "ZTeamAgent · Windows 10+",
|
|
70
|
-
state: "ready",
|
|
71
|
-
desc: "与 macOS 同源交付:本地 Agent 沙箱、火箭跳转、自动更新一套不打折。安装包为 x64 setup 格式。"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
key: "ios",
|
|
75
|
-
icon: "phone",
|
|
76
|
-
name: "iOS App",
|
|
77
|
-
en: "Z-Team · iPhone / iPad",
|
|
78
|
-
state: "beta",
|
|
79
|
-
desc: "iOS 版通过 TestFlight 分发内测版本,测试通过后上架 App Store。后续版本由 TestFlight 自动推送。"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: "android",
|
|
83
|
-
icon: "bot",
|
|
84
|
-
name: "Android App",
|
|
85
|
-
en: "Z-Team · APK 直装包",
|
|
86
|
-
state: "soon",
|
|
87
|
-
desc: "APK 直装包,支持手机浏览器直接下载安装。若提示「未知来源」,需在系统设置中允许浏览器安装应用。"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
key: "web",
|
|
91
|
-
icon: "globe",
|
|
92
|
-
name: "Web 版",
|
|
93
|
-
en: "浏览器 · 全平台",
|
|
94
|
-
state: "free",
|
|
95
|
-
desc: "无需安装,浏览器直接进入完整工作台。手机浏览器自动进入移动端界面,数据与客户端完全同步。"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
key: "cli",
|
|
99
|
-
icon: "terminal",
|
|
100
|
-
name: "CLI Agent",
|
|
101
|
-
en: "claude-code 等多运行时",
|
|
102
|
-
state: "instant",
|
|
103
|
-
desc: "接入既有 CLI 运行时,在命令行里把任务交给 Agent 执行,结论回到会话。详见操作手册的接入章节。"
|
|
104
|
-
}
|
|
105
|
-
];
|
|
106
|
-
function Le(s, c) {
|
|
107
|
-
return c && c.releaseType === "beta" ? "beta" : s.state;
|
|
108
|
-
}
|
|
109
|
-
function De(s, c) {
|
|
110
|
-
return c && c.releaseType === "beta" ? "内测版" : Ae[s.state];
|
|
111
|
-
}
|
|
112
|
-
function Ie() {
|
|
113
|
-
const s = navigator.userAgent;
|
|
114
|
-
return /iPad|iPhone|iPod/.test(s) ? "ios" : /Android/i.test(s) ? "android" : /Mac OS X|Macintosh/.test(s) ? "macos" : "web";
|
|
115
|
-
}
|
|
116
|
-
function v() {
|
|
117
|
-
if (typeof window > "u") return null;
|
|
118
|
-
const s = new URLSearchParams(window.location.search).get("platform");
|
|
119
|
-
return s && m.some((c) => c.key === s) ? s : null;
|
|
120
|
-
}
|
|
121
|
-
function Re() {
|
|
122
|
-
const [s, c] = o(null), [b, w] = o(null), [g, u] = o(!1), [y, f] = o(!1), [_, z] = o(
|
|
123
|
-
v
|
|
124
|
-
), [p, Pe] = o(() => Ie());
|
|
125
|
-
h(() => {
|
|
126
|
-
let a = !0;
|
|
127
|
-
return x(M).then((t) => {
|
|
128
|
-
a && (c(t), u(!0));
|
|
129
|
-
}).catch(() => a && u(!0)), x(S).then((t) => {
|
|
130
|
-
a && (w(t), f(!0));
|
|
131
|
-
}).catch(() => a && f(!0)), () => {
|
|
132
|
-
a = !1;
|
|
133
|
-
};
|
|
134
|
-
}, []), h(() => {
|
|
135
|
-
const a = () => z(v());
|
|
136
|
-
return window.addEventListener("popstate", a), () => window.removeEventListener("popstate", a);
|
|
137
|
-
}, []), h(() => {
|
|
138
|
-
if (!_) return;
|
|
139
|
-
const a = document.getElementById(`dl-${_}`);
|
|
140
|
-
if (!a) return;
|
|
141
|
-
const t = window.setTimeout(
|
|
142
|
-
() => a.scrollIntoView({ behavior: "smooth", block: "center" }),
|
|
143
|
-
120
|
|
144
|
-
);
|
|
145
|
-
return () => window.clearTimeout(t);
|
|
146
|
-
}, [_]);
|
|
147
|
-
const T = k(() => {
|
|
148
|
-
const a = /iPad|iPhone|iPod|Android/i.test(navigator.userAgent);
|
|
149
|
-
l.push(a ? "/phone" : "/workspace");
|
|
150
|
-
}, []), i = k(
|
|
151
|
-
(a) => a === "macos" ? N(s, "macos") : a === "windows" ? N(s, "windows") : a === "android" ? b : null,
|
|
152
|
-
[s, b]
|
|
153
|
-
), A = (a) => {
|
|
154
|
-
const t = i(a.key);
|
|
155
|
-
return a.key === "macos" ? t ? /* @__PURE__ */ r(
|
|
156
|
-
"a",
|
|
157
|
-
{
|
|
158
|
-
className: e.btnPrimary,
|
|
159
|
-
href: t.downloadUrl,
|
|
160
|
-
target: "_blank",
|
|
161
|
-
rel: "noreferrer",
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
|
|
164
|
-
"下载 DMG · v",
|
|
165
|
-
t.version
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: g ? "版本清单未获取" : "版本清单加载中…" }) : a.key === "windows" ? t ? /* @__PURE__ */ r(
|
|
169
|
-
"a",
|
|
170
|
-
{
|
|
171
|
-
className: e.btnPrimary,
|
|
172
|
-
href: t.downloadUrl,
|
|
173
|
-
target: "_blank",
|
|
174
|
-
rel: "noreferrer",
|
|
175
|
-
children: [
|
|
176
|
-
/* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
|
|
177
|
-
"下载 Windows 版 · v",
|
|
178
|
-
t.version
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: g ? "版本清单未获取" : "版本清单加载中…" }) : a.key === "android" ? t ? /* @__PURE__ */ r(
|
|
182
|
-
"a",
|
|
183
|
-
{
|
|
184
|
-
className: e.btnPrimary,
|
|
185
|
-
href: t.downloadUrl,
|
|
186
|
-
target: "_blank",
|
|
187
|
-
rel: "noreferrer",
|
|
188
|
-
children: [
|
|
189
|
-
/* @__PURE__ */ n(d, { name: "download", size: 15, strokeWidth: 2 }),
|
|
190
|
-
"下载 APK · v",
|
|
191
|
-
t.version
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: y ? "即将发布 · 敬请期待" : "版本清单加载中…" }) : a.key === "ios" ? /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: "内测资格申请中 · 敬请期待" }) : a.key === "web" ? /* @__PURE__ */ r("button", { className: e.btnPrimary, onClick: T, children: [
|
|
195
|
-
/* @__PURE__ */ n(d, { name: "arrow", size: 15, strokeWidth: 2 }),
|
|
196
|
-
"立即进入工作台"
|
|
197
|
-
] }) : a.key === "cli" ? /* @__PURE__ */ n(
|
|
198
|
-
"button",
|
|
199
|
-
{
|
|
200
|
-
className: e.btnGhost,
|
|
201
|
-
onClick: () => l.push("/docs"),
|
|
202
|
-
children: "查看接入方式"
|
|
203
|
-
}
|
|
204
|
-
) : /* @__PURE__ */ n("button", { className: e.btnDisabled, disabled: !0, children: "安装包制作中" });
|
|
205
|
-
}, L = (a) => {
|
|
206
|
-
const t = i(a.key);
|
|
207
|
-
return t ? /* @__PURE__ */ r("div", { className: e.metaRow, children: [
|
|
208
|
-
/* @__PURE__ */ r("span", { className: e.metaItem, children: [
|
|
209
|
-
/* @__PURE__ */ n(d, { name: "check", size: 13, strokeWidth: 2.2 }),
|
|
210
|
-
"v",
|
|
211
|
-
t.version
|
|
212
|
-
] }),
|
|
213
|
-
t.fileSize > 0 && /* @__PURE__ */ n("span", { className: e.metaItem, children: W(t.fileSize) }),
|
|
214
|
-
t.releaseTime && /* @__PURE__ */ n("span", { className: e.metaItem, children: R(t.releaseTime) }),
|
|
215
|
-
t.arch && /* @__PURE__ */ n("span", { className: e.metaItem, children: t.arch })
|
|
216
|
-
] }) : null;
|
|
217
|
-
}, D = B(
|
|
218
|
-
() => m.filter((a) => a.key === "web" || a.key === "cli" ? !0 : !!i(a.key)).length,
|
|
219
|
-
[i]
|
|
220
|
-
);
|
|
221
|
-
return /* @__PURE__ */ r("div", { className: e.page, children: [
|
|
222
|
-
/* @__PURE__ */ n("div", { className: e.bgWash }),
|
|
223
|
-
/* @__PURE__ */ n("div", { className: e.bgGrid }),
|
|
224
|
-
/* @__PURE__ */ n("nav", { className: e.navbar, children: /* @__PURE__ */ r("div", { className: e.navInner, children: [
|
|
225
|
-
/* @__PURE__ */ r(
|
|
226
|
-
"div",
|
|
227
|
-
{
|
|
228
|
-
className: e.navBrand,
|
|
229
|
-
onClick: () => l.push("/welcome"),
|
|
230
|
-
role: "button",
|
|
231
|
-
tabIndex: 0,
|
|
232
|
-
children: [
|
|
233
|
-
/* @__PURE__ */ n("span", { className: e.navMark, children: "ZT" }),
|
|
234
|
-
/* @__PURE__ */ n("span", { className: e.navBrandText, children: "Z Team" })
|
|
235
|
-
]
|
|
236
|
-
}
|
|
237
|
-
),
|
|
238
|
-
/* @__PURE__ */ n(
|
|
239
|
-
"button",
|
|
240
|
-
{
|
|
241
|
-
className: e.navBack,
|
|
242
|
-
onClick: () => l.push("/welcome"),
|
|
243
|
-
children: "返回产品首页"
|
|
244
|
-
}
|
|
245
|
-
)
|
|
246
|
-
] }) }),
|
|
247
|
-
/* @__PURE__ */ r("header", { className: e.hero, children: [
|
|
248
|
-
/* @__PURE__ */ r("span", { className: e.eyebrow, children: [
|
|
249
|
-
/* @__PURE__ */ n("span", { className: e.eyebrowDot }),
|
|
250
|
-
"下载中心"
|
|
251
|
-
] }),
|
|
252
|
-
/* @__PURE__ */ n("h1", { className: e.heroTitle, children: "全平台客户端" }),
|
|
253
|
-
/* @__PURE__ */ r("p", { className: e.heroLead, children: [
|
|
254
|
-
m.length,
|
|
255
|
-
" 个终端、同一条消息协议、同一套账号。 桌面端跑本地 Agent,移动端随手跟进,Web 与 CLI 随时接入。 当前 ",
|
|
256
|
-
D,
|
|
257
|
-
" 个终端可直接下载或使用。"
|
|
258
|
-
] })
|
|
259
|
-
] }),
|
|
260
|
-
/* @__PURE__ */ n("main", { className: e.grid, children: m.map((a) => {
|
|
261
|
-
const t = i(a.key), I = a.key === p, P = _ === a.key;
|
|
262
|
-
return /* @__PURE__ */ r(
|
|
263
|
-
"section",
|
|
264
|
-
{
|
|
265
|
-
id: `dl-${a.key}`,
|
|
266
|
-
className: `${e.card} ${P ? e.cardFocused : ""}`,
|
|
267
|
-
children: [
|
|
268
|
-
/* @__PURE__ */ r("div", { className: e.cardHead, children: [
|
|
269
|
-
/* @__PURE__ */ n("span", { className: e.cardIcon, children: /* @__PURE__ */ n(
|
|
270
|
-
d,
|
|
271
|
-
{
|
|
272
|
-
name: a.icon,
|
|
273
|
-
size: 21,
|
|
274
|
-
strokeWidth: 1.8
|
|
275
|
-
}
|
|
276
|
-
) }),
|
|
277
|
-
/* @__PURE__ */ r("div", { className: e.cardHeadText, children: [
|
|
278
|
-
/* @__PURE__ */ n("h2", { className: e.cardTitle, children: a.name }),
|
|
279
|
-
/* @__PURE__ */ n("div", { className: e.cardEn, children: a.en })
|
|
280
|
-
] }),
|
|
281
|
-
/* @__PURE__ */ r("div", { className: e.cardBadges, children: [
|
|
282
|
-
I && /* @__PURE__ */ n("span", { className: e.badgeDevice, children: "当前设备" }),
|
|
283
|
-
/* @__PURE__ */ n(
|
|
284
|
-
"span",
|
|
285
|
-
{
|
|
286
|
-
className: `${e.badge} ${e[`badge_${Le(a, t)}`]}`,
|
|
287
|
-
children: De(a, t)
|
|
288
|
-
}
|
|
289
|
-
)
|
|
290
|
-
] })
|
|
291
|
-
] }),
|
|
292
|
-
/* @__PURE__ */ n("p", { className: e.cardDesc, children: a.desc }),
|
|
293
|
-
L(a),
|
|
294
|
-
(t == null ? void 0 : t.changelog) && /* @__PURE__ */ r("div", { className: e.changelog, children: [
|
|
295
|
-
/* @__PURE__ */ n("span", { className: e.changelogLabel, children: "本次更新" }),
|
|
296
|
-
/* @__PURE__ */ n("p", { className: e.changelogText, children: t.changelog })
|
|
297
|
-
] }),
|
|
298
|
-
a.key === "ios" && /* @__PURE__ */ r("ol", { className: e.steps, children: [
|
|
299
|
-
/* @__PURE__ */ r("li", { children: [
|
|
300
|
-
"在 App Store 搜索并安装",
|
|
301
|
-
" ",
|
|
302
|
-
/* @__PURE__ */ n("b", { children: "TestFlight" }),
|
|
303
|
-
"(苹果官方测试平台)"
|
|
304
|
-
] }),
|
|
305
|
-
/* @__PURE__ */ r("li", { children: [
|
|
306
|
-
"用 iPhone 打开",
|
|
307
|
-
/* @__PURE__ */ n("b", { children: "邀请链接" }),
|
|
308
|
-
",点击「接受」 加入内测"
|
|
309
|
-
] }),
|
|
310
|
-
/* @__PURE__ */ r("li", { children: [
|
|
311
|
-
"在 TestFlight 中安装 Z-Team,后续版本",
|
|
312
|
-
/* @__PURE__ */ n("b", { children: "自动推送" })
|
|
313
|
-
] })
|
|
314
|
-
] }),
|
|
315
|
-
/* @__PURE__ */ n("div", { className: e.cardAction, children: A(a) }),
|
|
316
|
-
a.key === "macos" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "下载后拖入「应用程序」即可使用,客户端支持自动检查更新" }),
|
|
317
|
-
a.key === "web" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "平台 SSO 登录后使用,数据与客户端完全同步" }),
|
|
318
|
-
a.key === "android" && /* @__PURE__ */ n("p", { className: e.cardNote, children: "建议用手机浏览器打开本页直接下载安装" })
|
|
319
|
-
]
|
|
320
|
-
},
|
|
321
|
-
a.key
|
|
322
|
-
);
|
|
323
|
-
}) }),
|
|
324
|
-
/* @__PURE__ */ r("footer", { className: e.footer, children: [
|
|
325
|
-
/* @__PURE__ */ n("span", { children: "© 2026 Z Team · 组织级 AI 协同平台" }),
|
|
326
|
-
/* @__PURE__ */ n(
|
|
327
|
-
"button",
|
|
328
|
-
{
|
|
329
|
-
className: e.footerLink,
|
|
330
|
-
onClick: () => l.push("/welcome"),
|
|
331
|
-
children: "返回产品首页"
|
|
332
|
-
}
|
|
333
|
-
)
|
|
334
|
-
] })
|
|
335
|
-
] });
|
|
336
|
-
}
|
|
337
|
-
export {
|
|
338
|
-
Re as default
|
|
339
|
-
};
|