openxiangda 1.0.70 → 1.0.72
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/package.json +1 -1
- package/templates/openxiangda-react-spa/AGENTS.md +6 -8
- package/templates/openxiangda-react-spa/src/app/navigation.ts +8 -111
- package/templates/openxiangda-react-spa/src/app/router.tsx +2 -54
- package/templates/openxiangda-react-spa/src/app/starter-content.ts +3 -179
- package/templates/openxiangda-react-spa/src/layouts/AdminShell.tsx +147 -109
- package/templates/openxiangda-react-spa/src/pages/admin/AdminDashboardPage.tsx +15 -181
- package/templates/openxiangda-react-spa/src/resources/menus/menus.json +2 -47
- package/templates/openxiangda-react-spa/src/resources/permissions/page-groups/app-admin.json +3 -17
- package/templates/openxiangda-react-spa/src/resources/roles/roles.json +1 -6
- package/templates/openxiangda-react-spa/src/layouts/PublicShell.tsx +0 -33
- package/templates/openxiangda-react-spa/src/layouts/UserShell.tsx +0 -129
- package/templates/openxiangda-react-spa/src/pages/admin/DataCenterPage.tsx +0 -96
- package/templates/openxiangda-react-spa/src/pages/admin/ServiceCenterPage.tsx +0 -100
- package/templates/openxiangda-react-spa/src/pages/admin/TaskCenterPage.tsx +0 -135
- package/templates/openxiangda-react-spa/src/pages/portal/UserPortalPage.tsx +0 -71
- package/templates/openxiangda-react-spa/src/pages/public/PublicHomePage.tsx +0 -49
- package/templates/openxiangda-react-spa/src/resources/permissions/page-groups/app-user.json +0 -8
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FileCheck2, Globe2, LockKeyhole, MessageSquareText } from "lucide-react";
|
|
2
|
-
|
|
3
|
-
import { publicServices } from "@/app/starter-content";
|
|
4
|
-
import {
|
|
5
|
-
ListItem,
|
|
6
|
-
PageHeader,
|
|
7
|
-
Panel,
|
|
8
|
-
StatusPill,
|
|
9
|
-
} from "@/shared/ui";
|
|
10
|
-
|
|
11
|
-
const icons = [Globe2, FileCheck2, LockKeyhole];
|
|
12
|
-
|
|
13
|
-
export function PublicHomePage() {
|
|
14
|
-
return (
|
|
15
|
-
<div className="min-w-0 space-y-5">
|
|
16
|
-
<PageHeader
|
|
17
|
-
description="这里用于承载无需登录即可访问的说明、登记、查询或邀请链接。"
|
|
18
|
-
meta={
|
|
19
|
-
<>
|
|
20
|
-
<StatusPill tone="blue">公开说明</StatusPill>
|
|
21
|
-
<StatusPill tone="emerald">公开登记</StatusPill>
|
|
22
|
-
<StatusPill tone="amber">安全链接</StatusPill>
|
|
23
|
-
</>
|
|
24
|
-
}
|
|
25
|
-
title="公开服务"
|
|
26
|
-
/>
|
|
27
|
-
<Panel title="可用服务" description="把面向外部用户或访客的入口集中展示,降低访问成本。">
|
|
28
|
-
<div className="grid gap-3 md:grid-cols-3">
|
|
29
|
-
{publicServices.map((service, index) => {
|
|
30
|
-
const Icon = icons[index];
|
|
31
|
-
return (
|
|
32
|
-
<ListItem icon={<Icon size={17} />} key={service.label} tone={service.tone}>
|
|
33
|
-
<div className="text-sm font-semibold text-slate-950">{service.label}</div>
|
|
34
|
-
<div className="mt-1 text-xs leading-5 text-slate-500">{service.desc}</div>
|
|
35
|
-
</ListItem>
|
|
36
|
-
);
|
|
37
|
-
})}
|
|
38
|
-
</div>
|
|
39
|
-
</Panel>
|
|
40
|
-
<Panel title="访问说明">
|
|
41
|
-
<ListItem icon={<MessageSquareText size={17} />} tone="violet">
|
|
42
|
-
<div className="text-sm leading-6 text-slate-600">
|
|
43
|
-
公开页面适合发布说明、收集反馈和提供一次性访问入口。涉及敏感数据时,仍应通过后端权限和短期凭证控制访问范围。
|
|
44
|
-
</div>
|
|
45
|
-
</ListItem>
|
|
46
|
-
</Panel>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|