@yuku123/z-team-component 0.2.80 → 0.2.81

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.
Files changed (51) hide show
  1. package/dist/ChangeLogView-_bRZ55Yi.js +542 -0
  2. package/dist/ComponentDoc-BWciPDcn.js +3998 -0
  3. package/dist/InvitationManagementPage-X9t4igh7.js +495 -0
  4. package/dist/OnboardingPage-D2sVawTW.js +393 -0
  5. package/dist/ScheduledTasks-CdCX5FlH.js +9407 -0
  6. package/dist/SystemShell-Bd0UpmAs.js +689 -0
  7. package/dist/_commonjsHelpers-B52_cu2H.js +26 -0
  8. package/dist/api-BKjWEmUY.js +20 -0
  9. package/dist/api-CIhVblfa.js +2155 -0
  10. package/dist/browser-jb_PFvU3.js +1538 -0
  11. package/dist/createWorkspaceWsHandler-BWP5S5X3.js +12951 -0
  12. package/dist/ctc-sso-DtJHC-2M.js +117 -0
  13. package/dist/echarts-B1OU1xr4.js +16 -0
  14. package/dist/history-BlrA1eaW.js +41 -0
  15. package/dist/index-B_LJRFsK.js +339 -0
  16. package/dist/index-BgIheStI.js +133 -0
  17. package/dist/index-Bn6u-XqL.js +242 -0
  18. package/dist/index-BohoJQPr.js +7631 -0
  19. package/dist/index-BydWNuk5.js +1229 -0
  20. package/dist/index-C815hPWS.js +430 -0
  21. package/dist/index-CPXlkVYF.js +118 -0
  22. package/dist/index-CUVdeb8y.js +638 -0
  23. package/dist/index-CdsD23Cm.js +914 -0
  24. package/dist/index-CijskN6t.js +316 -0
  25. package/dist/index-CkhoaNnF.js +137 -0
  26. package/dist/index-Cvx6rrxD.js +956 -0
  27. package/dist/index-Cwr5Slv1.js +480 -0
  28. package/dist/index-CxFAICql.js +42050 -0
  29. package/dist/index-D6i_zovv.js +574 -0
  30. package/dist/index-D8aigFpH.js +9583 -0
  31. package/dist/index-DK70mOTz.js +143 -0
  32. package/dist/index-DSoOHdTf.js +178 -0
  33. package/dist/index-DT80Pwa_.js +5893 -0
  34. package/dist/index-DWsfQMp8.js +208 -0
  35. package/dist/index-DZoJnRKu.js +112 -0
  36. package/dist/index-DhDdFRHC.js +279 -0
  37. package/dist/index-DimSOV0E.js +1143 -0
  38. package/dist/index-Dm3wmB0K.js +435 -0
  39. package/dist/index-DsP2ysav.js +93 -0
  40. package/dist/index-Dwm0j8qF.js +2936 -0
  41. package/dist/index-DzS6-D3M.js +1640 -0
  42. package/dist/index-RVaaSElI.js +2700 -0
  43. package/dist/index-cdB5K3gx.js +814 -0
  44. package/dist/index-nU-V276i.js +170 -0
  45. package/dist/index-uF04Ucsi.js +8 -0
  46. package/dist/index.js +10 -0
  47. package/dist/index.module-CAa-2T7m.js +72 -0
  48. package/dist/index.module-UI0iz8K0.js +42 -0
  49. package/dist/{menuPermission-D9NGpBZP.js → menuPermission-Uzk46Gto.js} +1 -1
  50. package/dist/pages.js +1 -1
  51. package/package.json +1 -1
@@ -0,0 +1,542 @@
1
+ import { jsxs as n, jsx as a, Fragment as te } from "react/jsx-runtime";
2
+ import { h as ve, j as ae, r as Ne, k as Te } from "./api-CIhVblfa.js";
3
+ import { message as ie, Button as V, DatePicker as De, Spin as j, Empty as ne, Tag as re } from "antd";
4
+ import S from "dayjs";
5
+ import "./echarts-B1OU1xr4.js";
6
+ import { useState as p, useCallback as x, useEffect as I, useMemo as H, useRef as se } from "react";
7
+ import * as Se from "echarts/core";
8
+ const we = "_screen_irfbu_12", Ce = "_banner_irfbu_49", Le = "_shareBtn_irfbu_60", Be = "_bannerInner_irfbu_88", xe = "_bannerLeft_irfbu_97", Ie = "_bannerTitle_irfbu_103", Re = "_bannerSubtitle_irfbu_111", Ae = "_stats_irfbu_117", He = "_statItem_irfbu_124", Ee = "_statNum_irfbu_131", Oe = "_statLabel_irfbu_139", ke = "_statDivider_irfbu_144", We = "_chartSection_irfbu_151", $e = "_chartInner_irfbu_157", Me = "_chartHeader_irfbu_165", Ve = "_chartHeaderLeft_irfbu_173", je = "_chartRangeWrap_irfbu_179", ze = "_rangeBtns_irfbu_186", Pe = "_rangeBtn_irfbu_186", Ge = "_rangeBtnActive_irfbu_211", qe = "_chartRangePicker_irfbu_224", Fe = "_chartTitle_irfbu_238", Ye = "_chartSubtitle_irfbu_245", Ke = "_chartBody_irfbu_251", Xe = "_chartLoading_irfbu_255", Ze = "_chartEmpty_irfbu_256", Je = "_main_irfbu_266", Qe = "_timeline_irfbu_277", Ue = "_timelineHeader_irfbu_289", et = "_timelineScroll_irfbu_298", tt = "_timelineItem_irfbu_304", at = "_timelineItemActive_irfbu_319", it = "_timelineDot_irfbu_324", nt = "_timelineContent_irfbu_339", rt = "_timelineTop_irfbu_344", st = "_versionTag_irfbu_351", ct = "_versionDate_irfbu_357", lt = "_timelineSummary_irfbu_362", ot = "_timelineMeta_irfbu_372", dt = "_latestBadge_irfbu_378", mt = "_detail_irfbu_392", ht = "_detailHeader_irfbu_404", ut = "_detailTitleRow_irfbu_410", ft = "_detailVersion_irfbu_416", _t = "_detailDate_irfbu_423", pt = "_detailSummary_irfbu_428", gt = "_detailScroll_irfbu_435", bt = "_pointGrid_irfbu_442", yt = "_pointCard_irfbu_448", vt = "_pointHead_irfbu_463", Nt = "_pointTitle_irfbu_471", Tt = "_pointHeadRight_irfbu_479", Dt = "_committerTag_irfbu_488", St = "_pointTag_irfbu_499", wt = "_pointDetail_irfbu_505", Ct = "_loadingWrap_irfbu_513", Lt = "_emptyWrap_irfbu_520", Bt = "_authBox_irfbu_530", xt = "_authHint_irfbu_534", It = "_embedScreen_irfbu_543", e = {
9
+ screen: we,
10
+ banner: Ce,
11
+ shareBtn: Le,
12
+ bannerInner: Be,
13
+ bannerLeft: xe,
14
+ bannerTitle: Ie,
15
+ bannerSubtitle: Re,
16
+ stats: Ae,
17
+ statItem: He,
18
+ statNum: Ee,
19
+ statLabel: Oe,
20
+ statDivider: ke,
21
+ chartSection: We,
22
+ chartInner: $e,
23
+ chartHeader: Me,
24
+ chartHeaderLeft: Ve,
25
+ chartRangeWrap: je,
26
+ rangeBtns: ze,
27
+ rangeBtn: Pe,
28
+ rangeBtnActive: Ge,
29
+ chartRangePicker: qe,
30
+ chartTitle: Fe,
31
+ chartSubtitle: Ye,
32
+ chartBody: Ke,
33
+ chartLoading: Xe,
34
+ chartEmpty: Ze,
35
+ main: Je,
36
+ timeline: Qe,
37
+ timelineHeader: Ue,
38
+ timelineScroll: et,
39
+ timelineItem: tt,
40
+ timelineItemActive: at,
41
+ timelineDot: it,
42
+ timelineContent: nt,
43
+ timelineTop: rt,
44
+ versionTag: st,
45
+ versionDate: ct,
46
+ timelineSummary: lt,
47
+ timelineMeta: ot,
48
+ latestBadge: dt,
49
+ detail: mt,
50
+ detailHeader: ht,
51
+ detailTitleRow: ut,
52
+ detailVersion: ft,
53
+ detailDate: _t,
54
+ detailSummary: pt,
55
+ detailScroll: gt,
56
+ pointGrid: bt,
57
+ pointCard: yt,
58
+ pointHead: vt,
59
+ pointTitle: Nt,
60
+ pointHeadRight: Tt,
61
+ committerTag: Dt,
62
+ pointTag: St,
63
+ pointDetail: wt,
64
+ loadingWrap: Ct,
65
+ emptyWrap: Lt,
66
+ authBox: Bt,
67
+ authHint: xt,
68
+ embedScreen: It
69
+ }, Rt = {
70
+ 新功能: "green",
71
+ 优化: "blue",
72
+ 修复: "orange",
73
+ 重构: "purple",
74
+ 其他: "default"
75
+ }, z = {
76
+ 新功能: "#52c41a",
77
+ 优化: "#2f70f1",
78
+ 修复: "#fa8c16",
79
+ 重构: "#722ed1",
80
+ 其他: "#8c8c8c"
81
+ }, ce = 8;
82
+ function At(u) {
83
+ const w = String((u == null ? void 0 : u.userMessage) || (u == null ? void 0 : u.message) || "");
84
+ return /未登录|Token无效|登录已失效|登录失效|登录过期|重新登录/.test(w);
85
+ }
86
+ function Ht({
87
+ option: u,
88
+ height: w = 320
89
+ }) {
90
+ const N = se(null), d = se(null);
91
+ return I(() => {
92
+ if (!N.current) return;
93
+ d.current || (d.current = Se.init(N.current)), d.current.setOption(u, !0);
94
+ const b = () => {
95
+ var y;
96
+ return (y = d.current) == null ? void 0 : y.resize();
97
+ };
98
+ return window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
99
+ }, [u]), I(
100
+ () => () => {
101
+ var b;
102
+ (b = d.current) == null || b.dispose(), d.current = null;
103
+ },
104
+ []
105
+ ), /* @__PURE__ */ a("div", { ref: N, style: { width: "100%", height: `${w}px` } });
106
+ }
107
+ function Vt({
108
+ variant: u = "page"
109
+ }) {
110
+ const [w, N] = p(!1), [d, b] = p([]), [y, E] = p(null), [f, P] = p(null), [le, G] = p(!1), [O, oe] = p(
111
+ {}
112
+ ), [de, q] = p(!1), [C, F] = p(!1), [R, L] = p([
113
+ S().subtract(6, "day").startOf("day"),
114
+ S().endOf("day")
115
+ ]), [k, Y] = p("7"), K = x(async () => {
116
+ N(!0);
117
+ try {
118
+ const i = await ve("z-team"), o = [...(Array.isArray(i) ? i : []).filter(
119
+ (c) => c && typeof c == "object"
120
+ )].sort(
121
+ (c, l) => new Date(l.commitDate).getTime() - new Date(c.commitDate).getTime()
122
+ );
123
+ b(o), F(!1), o.length > 0 ? E(o[0].id) : (E(null), P(null));
124
+ } catch (i) {
125
+ console.error("[ChangeLogView] load versions error:", i), At(i) && F(!0);
126
+ } finally {
127
+ N(!1);
128
+ }
129
+ }, []), X = x(async (i) => {
130
+ G(!0);
131
+ try {
132
+ const r = await ae(i, void 0, "z-team");
133
+ P(r && typeof r == "object" ? r : null);
134
+ } catch (r) {
135
+ console.error("[ChangeLogView] load detail error:", r);
136
+ } finally {
137
+ G(!1);
138
+ }
139
+ }, []);
140
+ I(() => {
141
+ K();
142
+ }, [K]), I(() => {
143
+ y != null && X(y);
144
+ }, [y, X]);
145
+ const W = H(() => {
146
+ const i = d.length, r = d.reduce(
147
+ (c, l) => c + (l.pointCount ?? 0),
148
+ 0
149
+ );
150
+ let o = 0;
151
+ if (d.length >= 2) {
152
+ const c = d.map((l) => new Date(l.commitDate).getTime()).filter((l) => !Number.isNaN(l));
153
+ c.length >= 2 && (o = Math.round(
154
+ (Math.max(...c) - Math.min(...c)) / 864e5
155
+ ));
156
+ }
157
+ return { versionCount: i, pointTotal: r, spanDays: o };
158
+ }, [d]), v = H(() => {
159
+ if (!R) return d;
160
+ const [i, r] = R, o = i.startOf("day").valueOf(), c = r.endOf("day").valueOf();
161
+ return d.filter((l) => {
162
+ const T = new Date(l.commitDate).getTime();
163
+ return !Number.isNaN(T) && T >= o && T <= c;
164
+ });
165
+ }, [d, R]);
166
+ I(() => {
167
+ if (v.length === 0) return;
168
+ let i = !1;
169
+ return q(!0), Promise.all(
170
+ v.map(
171
+ (r) => ae(r.id, void 0, "z-team").catch((o) => (console.warn(
172
+ `[ChangeLogView] failed to load detail for version ${r.version}`,
173
+ o
174
+ ), null))
175
+ )
176
+ ).then((r) => {
177
+ if (i) return;
178
+ const o = {};
179
+ r.forEach((c, l) => {
180
+ c && typeof c == "object" && v[l] && (o[v[l].id] = c);
181
+ }), oe(o);
182
+ }).finally(() => {
183
+ i || q(!1);
184
+ }), () => {
185
+ i = !0;
186
+ };
187
+ }, [v]);
188
+ const { chartOption: me, hasChartData: he } = H(() => {
189
+ const i = [...v].sort(
190
+ (t, s) => new Date(t.commitDate).getTime() - new Date(s.commitDate).getTime()
191
+ ), r = i.map((t) => t.commitDate), o = /* @__PURE__ */ new Set(), c = {};
192
+ Object.values(O).forEach((t) => {
193
+ (Array.isArray(t == null ? void 0 : t.items) ? t.items : []).forEach((m) => {
194
+ if (m.category ? o.add(m.category) : o.add("其他"), typeof m.committers == "string") {
195
+ const _ = m.committers.split(",").map((h) => h.trim()).filter(Boolean);
196
+ if (_.length > 0) {
197
+ const h = 1 / _.length;
198
+ _.forEach((B) => {
199
+ c[B] = (c[B] || 0) + h;
200
+ });
201
+ }
202
+ }
203
+ });
204
+ });
205
+ const l = ["新功能", "优化", "修复", "重构", "其他"].filter(
206
+ (t) => o.has(t)
207
+ );
208
+ o.forEach((t) => {
209
+ l.includes(t) || l.push(t);
210
+ });
211
+ const T = Object.entries(c).sort((t, s) => s[1] - t[1]).map(([t]) => t), _e = T.slice(0, ce), Q = T.length > ce, D = {};
212
+ l.forEach(
213
+ (t) => D[t] = new Array(r.length).fill(0)
214
+ );
215
+ const g = {};
216
+ _e.forEach(
217
+ (t) => g[t] = new Array(r.length).fill(0)
218
+ ), Q && (g.其他 = new Array(r.length).fill(0)), i.forEach((t, s) => {
219
+ const m = O[t.id];
220
+ if (!m) return;
221
+ (Array.isArray(m.items) ? m.items : []).forEach((h) => {
222
+ const B = h.category || "其他";
223
+ if (D[B] && (D[B][s] += 1), typeof h.committers == "string") {
224
+ const M = h.committers.split(",").map((A) => A.trim()).filter(Boolean);
225
+ if (M.length > 0) {
226
+ const A = 1 / M.length;
227
+ M.forEach((ee) => {
228
+ g[ee] ? g[ee][s] += A : Q && (g.其他[s] += A);
229
+ });
230
+ }
231
+ }
232
+ });
233
+ });
234
+ const pe = i.reduce((t, s) => {
235
+ const m = t.length > 0 ? t[t.length - 1] : 0;
236
+ return t.push(m + (s.pointCount ?? 0)), t;
237
+ }, []), U = {};
238
+ l.forEach((t) => {
239
+ U[t] = D[t].reduce((s, m) => {
240
+ const _ = s.length > 0 ? s[s.length - 1] : 0;
241
+ return s.push(_ + m), s;
242
+ }, []);
243
+ });
244
+ const ge = [
245
+ ...l.map((t) => ({
246
+ name: t,
247
+ type: "bar",
248
+ stack: "category",
249
+ data: D[t],
250
+ itemStyle: { color: z[t] || "#8c8c8c" },
251
+ barMaxWidth: 40
252
+ })),
253
+ ...Object.keys(g).map((t) => ({
254
+ name: `@${t}`,
255
+ type: "bar",
256
+ stack: "committer",
257
+ data: g[t],
258
+ barMaxWidth: 40
259
+ })),
260
+ {
261
+ name: "要点累计",
262
+ type: "line",
263
+ yAxisIndex: 1,
264
+ data: pe,
265
+ smooth: !0,
266
+ symbol: "circle",
267
+ symbolSize: 6,
268
+ lineStyle: { color: "#2f70f1", width: 2 },
269
+ itemStyle: { color: "#2f70f1", borderWidth: 2 }
270
+ },
271
+ ...l.map((t) => ({
272
+ name: `${t}累计`,
273
+ type: "line",
274
+ yAxisIndex: 1,
275
+ data: U[t],
276
+ smooth: !0,
277
+ symbol: "circle",
278
+ symbolSize: 4,
279
+ lineStyle: {
280
+ color: z[t] || "#8c8c8c",
281
+ width: 2
282
+ },
283
+ itemStyle: { color: z[t] || "#8c8c8c" }
284
+ }))
285
+ ], be = {
286
+ tooltip: {
287
+ trigger: "axis",
288
+ axisPointer: { type: "shadow" },
289
+ backgroundColor: "rgba(255,255,255,0.96)",
290
+ borderColor: "#f0f0f0",
291
+ textStyle: { color: "#262626" },
292
+ formatter: (t) => {
293
+ if (!Array.isArray(t) || t.length === 0) return "";
294
+ let m = `<div style="font-weight:600;margin-bottom:6px;">${t[0].axisValue}</div>`;
295
+ return t.forEach((_) => {
296
+ const h = Number(_.value) || 0;
297
+ h > 0 && (m += `<div style="display:flex;align-items:center;gap:8px;line-height:1.8;">
298
+ <span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:${_.color};"></span>
299
+ <span style="flex:1;">${_.seriesName}</span>
300
+ <span style="font-weight:600;">${Number.isInteger(h) ? h : h.toFixed(2)}</span>
301
+ </div>`);
302
+ }), m;
303
+ }
304
+ },
305
+ legend: {
306
+ type: "scroll",
307
+ top: 0,
308
+ left: "center",
309
+ itemGap: 16,
310
+ textStyle: { color: "#595959" }
311
+ },
312
+ grid: {
313
+ left: 16,
314
+ right: 16,
315
+ bottom: 24,
316
+ top: 48,
317
+ containLabel: !0
318
+ },
319
+ xAxis: {
320
+ type: "category",
321
+ data: r,
322
+ axisLine: { lineStyle: { color: "#d9d9d9" } },
323
+ axisLabel: {
324
+ rotate: r.length > 12 ? 30 : 0,
325
+ formatter: (t) => {
326
+ const s = new Date(t).getDay();
327
+ return s >= 1 && s <= 5 ? `{weekday|${t}}` : `{weekend|${t}}`;
328
+ },
329
+ rich: {
330
+ weekday: { color: "#262626", fontWeight: 600 },
331
+ weekend: { color: "#bfbfbf" }
332
+ }
333
+ }
334
+ },
335
+ yAxis: [
336
+ {
337
+ type: "value",
338
+ splitLine: { lineStyle: { color: "#f0f0f0" } },
339
+ axisLabel: { color: "#8c8c8c" }
340
+ },
341
+ {
342
+ type: "value",
343
+ position: "right",
344
+ splitLine: { show: !1 },
345
+ axisLabel: { color: "#2f70f1" }
346
+ }
347
+ ],
348
+ series: ge,
349
+ animationDuration: 600
350
+ }, ye = i.length > 0 && (Object.values(D).some((t) => t.some((s) => s > 0)) || Object.values(g).some((t) => t.some((s) => s > 0)));
351
+ return { chartOption: be, hasChartData: ye };
352
+ }, [v, O]), Z = x(() => {
353
+ try {
354
+ Ne();
355
+ } catch (i) {
356
+ console.error("[ChangeLogView] redirect to login failed:", i), window.location.href = "/login";
357
+ }
358
+ }, []), ue = x(async () => {
359
+ const i = window.location.href;
360
+ try {
361
+ await navigator.clipboard.writeText(i), ie.success("链接已复制,可直接发送");
362
+ } catch {
363
+ ie.error("复制失败,请手动复制地址栏链接");
364
+ }
365
+ }, []), $ = x((i) => {
366
+ Y(i), L(i === "7" ? [
367
+ S().subtract(6, "day").startOf("day"),
368
+ S().endOf("day")
369
+ ] : i === "30" ? [
370
+ S().subtract(29, "day").startOf("day"),
371
+ S().endOf("day")
372
+ ] : null);
373
+ }, []), fe = u === "embed", J = H(
374
+ () => Array.isArray(f == null ? void 0 : f.items) ? f.items : [],
375
+ [f]
376
+ );
377
+ return /* @__PURE__ */ n("div", { className: fe ? `${e.screen} ${e.embedScreen}` : e.screen, children: [
378
+ /* @__PURE__ */ a("header", { className: e.banner, children: /* @__PURE__ */ n("div", { className: e.bannerInner, children: [
379
+ /* @__PURE__ */ n("div", { className: e.bannerLeft, children: [
380
+ /* @__PURE__ */ a("h1", { className: e.bannerTitle, children: "Z-OPC 产品迭代日志" }),
381
+ /* @__PURE__ */ a("p", { className: e.bannerSubtitle, children: "每一次代码提交背后,都是产品的进化" })
382
+ ] }),
383
+ /* @__PURE__ */ n("div", { className: e.stats, children: [
384
+ /* @__PURE__ */ n("div", { className: e.statItem, children: [
385
+ /* @__PURE__ */ a("div", { className: e.statNum, children: C ? "—" : W.versionCount }),
386
+ /* @__PURE__ */ a("div", { className: e.statLabel, children: "迭代版本" })
387
+ ] }),
388
+ /* @__PURE__ */ a("div", { className: e.statDivider }),
389
+ /* @__PURE__ */ n("div", { className: e.statItem, children: [
390
+ /* @__PURE__ */ a("div", { className: e.statNum, children: C ? "—" : W.pointTotal }),
391
+ /* @__PURE__ */ a("div", { className: e.statLabel, children: "产品要点" })
392
+ ] }),
393
+ /* @__PURE__ */ a("div", { className: e.statDivider }),
394
+ /* @__PURE__ */ n("div", { className: e.statItem, children: [
395
+ /* @__PURE__ */ a("div", { className: e.statNum, children: C ? "—" : W.spanDays }),
396
+ /* @__PURE__ */ a("div", { className: e.statLabel, children: "持续天数" })
397
+ ] })
398
+ ] }),
399
+ /* @__PURE__ */ a(
400
+ V,
401
+ {
402
+ className: e.shareBtn,
403
+ type: "default",
404
+ ghost: !0,
405
+ onClick: ue,
406
+ children: "分享链接"
407
+ }
408
+ )
409
+ ] }) }),
410
+ /* @__PURE__ */ a("section", { className: e.chartSection, children: /* @__PURE__ */ n("div", { className: e.chartInner, children: [
411
+ /* @__PURE__ */ n("div", { className: e.chartHeader, children: [
412
+ /* @__PURE__ */ n("div", { className: e.chartHeaderLeft, children: [
413
+ /* @__PURE__ */ a("h2", { className: e.chartTitle, children: "迭代节奏与贡献分布" }),
414
+ /* @__PURE__ */ a("p", { className: e.chartSubtitle, children: "两根柱:类型拆分 · 人员拆分(多人贡献均摊);折线:各类型/总量累计" })
415
+ ] }),
416
+ /* @__PURE__ */ n("div", { className: e.chartRangeWrap, children: [
417
+ /* @__PURE__ */ n("div", { className: e.rangeBtns, children: [
418
+ /* @__PURE__ */ a(
419
+ "button",
420
+ {
421
+ className: k === "7" ? e.rangeBtnActive : e.rangeBtn,
422
+ onClick: () => $("7"),
423
+ children: "近7天"
424
+ }
425
+ ),
426
+ /* @__PURE__ */ a(
427
+ "button",
428
+ {
429
+ className: k === "30" ? e.rangeBtnActive : e.rangeBtn,
430
+ onClick: () => $("30"),
431
+ children: "近30天"
432
+ }
433
+ ),
434
+ /* @__PURE__ */ a(
435
+ "button",
436
+ {
437
+ className: k === "all" ? e.rangeBtnActive : e.rangeBtn,
438
+ onClick: () => $("all"),
439
+ children: "全部"
440
+ }
441
+ )
442
+ ] }),
443
+ /* @__PURE__ */ a(
444
+ De.RangePicker,
445
+ {
446
+ className: e.chartRangePicker,
447
+ value: R,
448
+ allowClear: !0,
449
+ placeholder: ["开始日期", "结束日期"],
450
+ onChange: (i) => {
451
+ Y(""), i && i[0] && i[1] ? L([i[0], i[1]]) : L(null);
452
+ }
453
+ }
454
+ )
455
+ ] })
456
+ ] }),
457
+ /* @__PURE__ */ a("div", { className: e.chartBody, children: de ? /* @__PURE__ */ a("div", { className: e.chartLoading, children: /* @__PURE__ */ a(j, { description: "正在生成统计图表..." }) }) : he ? /* @__PURE__ */ a(Ht, { option: me, height: 360 }) : C ? /* @__PURE__ */ n("div", { className: `${e.chartEmpty} ${e.authBox}`, children: [
458
+ /* @__PURE__ */ a("div", { className: e.authHint, children: "登录后可查看完整的产品迭代日志" }),
459
+ /* @__PURE__ */ a(
460
+ V,
461
+ {
462
+ size: "small",
463
+ type: "primary",
464
+ onClick: Z,
465
+ children: "登录查看"
466
+ }
467
+ )
468
+ ] }) : /* @__PURE__ */ a("div", { className: e.chartEmpty, children: "暂无足够数据生成图表" }) })
469
+ ] }) }),
470
+ /* @__PURE__ */ n("main", { className: e.main, children: [
471
+ /* @__PURE__ */ n("aside", { className: e.timeline, children: [
472
+ /* @__PURE__ */ a("div", { className: e.timelineHeader, children: /* @__PURE__ */ a("span", { children: "迭代时间线" }) }),
473
+ /* @__PURE__ */ a("div", { className: e.timelineScroll, children: w ? /* @__PURE__ */ a("div", { className: e.loadingWrap, children: /* @__PURE__ */ a(j, { description: "加载中..." }) }) : d.length === 0 ? /* @__PURE__ */ a("div", { className: `${e.emptyWrap} ${e.authBox}`, children: C ? /* @__PURE__ */ n(te, { children: [
474
+ /* @__PURE__ */ a("div", { className: e.authHint, children: "登录后可查看完整的产品迭代日志" }),
475
+ /* @__PURE__ */ a(
476
+ V,
477
+ {
478
+ size: "small",
479
+ type: "primary",
480
+ onClick: Z,
481
+ children: "登录查看"
482
+ }
483
+ )
484
+ ] }) : "暂无迭代记录" }) : d.map((i, r) => /* @__PURE__ */ n(
485
+ "div",
486
+ {
487
+ className: `${e.timelineItem} ${Te(y, i.id) ? e.timelineItemActive : ""}`,
488
+ onClick: () => E(i.id),
489
+ children: [
490
+ /* @__PURE__ */ a("div", { className: e.timelineDot }),
491
+ /* @__PURE__ */ n("div", { className: e.timelineContent, children: [
492
+ /* @__PURE__ */ n("div", { className: e.timelineTop, children: [
493
+ /* @__PURE__ */ a("span", { className: e.versionTag, children: i.version }),
494
+ /* @__PURE__ */ a("span", { className: e.versionDate, children: i.commitDate })
495
+ ] }),
496
+ i.summary && /* @__PURE__ */ a("div", { className: e.timelineSummary, title: i.summary, children: i.summary }),
497
+ /* @__PURE__ */ a("div", { className: e.timelineMeta, children: /* @__PURE__ */ n("span", { children: [
498
+ i.pointCount ?? 0,
499
+ " 条产品要点"
500
+ ] }) })
501
+ ] }),
502
+ r === 0 && /* @__PURE__ */ a("span", { className: e.latestBadge, children: "最新" })
503
+ ]
504
+ },
505
+ i.id
506
+ )) })
507
+ ] }),
508
+ /* @__PURE__ */ a("section", { className: e.detail, children: le ? /* @__PURE__ */ a("div", { className: e.loadingWrap, children: /* @__PURE__ */ a(j, { description: "加载产品要点..." }) }) : f ? /* @__PURE__ */ n(te, { children: [
509
+ /* @__PURE__ */ n("div", { className: e.detailHeader, children: [
510
+ /* @__PURE__ */ n("div", { className: e.detailTitleRow, children: [
511
+ /* @__PURE__ */ a("span", { className: e.detailVersion, children: f.version }),
512
+ /* @__PURE__ */ a("span", { className: e.detailDate, children: f.commitDate })
513
+ ] }),
514
+ f.summary && /* @__PURE__ */ a("div", { className: e.detailSummary, children: f.summary })
515
+ ] }),
516
+ /* @__PURE__ */ a("div", { className: e.detailScroll, children: J.length === 0 ? /* @__PURE__ */ a(ne, { description: "该版本下暂无产品迭代要点" }) : /* @__PURE__ */ a("div", { className: e.pointGrid, children: J.map((i) => /* @__PURE__ */ n("div", { className: e.pointCard, children: [
517
+ /* @__PURE__ */ n("div", { className: e.pointHead, children: [
518
+ /* @__PURE__ */ a("span", { className: e.pointTitle, children: i.pointTitle }),
519
+ /* @__PURE__ */ n("div", { className: e.pointHeadRight, children: [
520
+ typeof i.committers == "string" && i.committers.split(",").map((r) => /* @__PURE__ */ n(re, { className: e.committerTag, children: [
521
+ "@",
522
+ r.trim()
523
+ ] }, r)),
524
+ i.category && /* @__PURE__ */ a(
525
+ re,
526
+ {
527
+ className: e.pointTag,
528
+ color: Rt[i.category] || "default",
529
+ children: i.category
530
+ }
531
+ )
532
+ ] })
533
+ ] }),
534
+ i.pointDetail && /* @__PURE__ */ a("div", { className: e.pointDetail, children: i.pointDetail })
535
+ ] }, i.id)) }) })
536
+ ] }) : /* @__PURE__ */ a("div", { className: e.emptyWrap, children: /* @__PURE__ */ a(ne, { description: "选择左侧版本查看产品迭代要点" }) }) })
537
+ ] })
538
+ ] });
539
+ }
540
+ export {
541
+ Vt as C
542
+ };