Files
certd/packages/ui/certd-client/src/router/source/modules/certd.ts

257 lines
6.9 KiB
TypeScript
Raw Normal View History

2025-04-12 23:59:03 +08:00
import { useSettingStore } from "/@/store/settings";
import aboutResource from "/@/router/source/modules/about";
2023-01-29 13:44:19 +08:00
export const certdResources = [
{
title: "证书自动化",
name: "CertdRoot",
2023-01-29 13:44:19 +08:00
path: "/certd",
redirect: "/certd/pipeline",
meta: {
icon: "ion:key-outline",
auth: true,
2025-04-06 18:06:21 +08:00
order: 0,
2023-01-29 13:44:19 +08:00
},
children: [
{
title: "证书自动化流水线",
name: "PipelineManager",
2023-01-29 13:44:19 +08:00
path: "/certd/pipeline",
component: "/certd/pipeline/index.vue",
meta: {
icon: "ion:analytics-sharp",
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
2023-01-29 13:44:19 +08:00
},
{
title: "编辑流水线",
name: "PipelineEdit",
2023-01-29 13:44:19 +08:00
path: "/certd/pipeline/detail",
component: "/certd/pipeline/detail.vue",
meta: {
2025-04-06 18:06:21 +08:00
isMenu: false,
},
2023-01-29 13:44:19 +08:00
},
{
title: "执行历史记录",
name: "PipelineHistory",
path: "/certd/history",
component: "/certd/history/index.vue",
meta: {
icon: "ion:timer-outline",
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
2025-01-15 01:26:23 +08:00
{
title: "证书仓库",
name: "CertStore",
path: "/certd/monitor/cert",
component: "/certd/monitor/cert/index.vue",
meta: {
icon: "ion:shield-checkmark-outline",
auth: true,
2025-04-06 18:06:21 +08:00
isMenu: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
2025-01-15 01:26:23 +08:00
},
2023-01-29 13:44:19 +08:00
{
title: "站点证书监控",
name: "SiteCertMonitor",
path: "/certd/monitor/site",
component: "/certd/monitor/site/index.vue",
2023-01-29 13:44:19 +08:00
meta: {
icon: "ion:videocam-outline",
2025-04-06 18:06:21 +08:00
auth: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
2024-11-22 17:12:39 +08:00
{
title: "设置",
name: "MineSetting",
2025-03-07 18:01:51 +08:00
path: "/certd/setting",
redirect: "/certd/access",
2024-11-22 17:12:39 +08:00
meta: {
icon: "ion:settings-outline",
2024-11-22 17:12:39 +08:00
auth: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
},
children: [
{
title: "授权管理",
name: "AccessManager",
path: "/certd/access",
component: "/certd/access/index.vue",
meta: {
icon: "ion:disc-outline",
auth: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
{
title: "CNAME记录管理",
name: "CnameRecord",
path: "/certd/cname/record",
component: "/certd/cname/record/index.vue",
meta: {
icon: "ion:link-outline",
2025-04-06 18:06:21 +08:00
auth: true,
2025-04-08 23:36:50 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
{
title: "子域名托管设置",
name: "SubDomain",
path: "/certd/pipeline/subDomain",
component: "/certd/pipeline/sub-domain/index.vue",
meta: {
icon: "material-symbols:approval-delegation-outline",
auth: true,
keepAlive: true,
},
},
{
title: "流水线分组管理",
name: "PipelineGroupManager",
path: "/certd/pipeline/group",
component: "/certd/pipeline/group/index.vue",
meta: {
icon: "mdi:format-list-group",
2025-04-06 18:06:21 +08:00
auth: true,
2025-04-08 23:36:50 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
{
2025-01-15 01:26:23 +08:00
title: "OpenKey",
name: "OpenKey",
path: "/certd/open/openkey",
component: "/certd/open/openkey/index.vue",
meta: {
2025-01-19 00:40:43 +08:00
icon: "hugeicons:api",
auth: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
{
title: "通知设置",
name: "NotificationManager",
path: "/certd/notification",
component: "/certd/notification/index.vue",
meta: {
icon: "ion:megaphone-outline",
auth: true,
2025-04-08 23:31:25 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
2025-04-17 01:15:55 +08:00
{
title: "认证安全设置",
name: "UserSecurity",
path: "/certd/mine/security",
component: "/certd/mine/security/index.vue",
meta: {
2025-04-17 22:34:21 +08:00
icon: "fluent:shield-keyhole-16-regular",
2025-04-17 01:15:55 +08:00
auth: true,
isMenu: true,
},
},
{
title: "账号信息",
name: "UserProfile",
path: "/certd/mine/user-profile",
component: "/certd/mine/user-profile.vue",
meta: {
icon: "ion:person-outline",
auth: true,
2025-04-06 18:06:21 +08:00
isMenu: false,
},
},
],
2024-11-22 17:12:39 +08:00
},
{
title: "套餐",
name: "SuiteProduct",
path: "/certd/suite",
redirect: "/certd/suite/mine",
meta: {
show: () => {
const settingStore = useSettingStore();
2024-12-25 00:52:39 +08:00
return settingStore.isComm && settingStore.isSuiteEnabled;
},
icon: "ion:cart-outline",
2025-04-06 18:06:21 +08:00
auth: true,
},
children: [
{
title: "我的套餐",
name: "MySuite",
path: "/certd/suite/mine",
component: "/certd/suite/mine/index.vue",
meta: {
show: () => {
const settingStore = useSettingStore();
return settingStore.isComm;
},
icon: "ion:gift-outline",
2025-04-06 18:06:21 +08:00
auth: true,
},
},
{
title: "套餐购买",
name: "SuiteProductBuy",
path: "/certd/suite/buy",
component: "/certd/suite/buy.vue",
meta: {
show: () => {
const settingStore = useSettingStore();
return settingStore.isComm;
},
icon: "ion:cart-outline",
2025-04-06 18:06:21 +08:00
auth: true,
},
},
{
title: "我的订单",
name: "MyTrade",
path: "/certd/trade",
component: "/certd/trade/index.vue",
meta: {
show: () => {
const settingStore = useSettingStore();
return settingStore.isComm;
},
icon: "ion:bag-check-outline",
2025-04-06 18:06:21 +08:00
auth: true,
2025-04-08 23:36:50 +08:00
keepAlive: true,
2025-04-06 18:06:21 +08:00
},
},
{
title: "支付返回",
name: "PaymentReturn",
path: "/certd/payment/return/:type",
component: "/certd/payment/return.vue",
meta: {
icon: "ant-design:pay-circle-outlined",
auth: false,
2025-04-06 18:06:21 +08:00
isMenu: false,
},
},
],
},
// {
// title: "邮箱设置",
// name: "EmailSetting",
2024-10-17 22:32:02 +08:00
// path: "/sys/settings/email",
// component: "/sys/settings/email-setting.vue",
// meta: {
// icon: "ion:mail-outline",
// auth: true
// }
// },
2025-04-06 18:06:21 +08:00
],
},
2023-01-29 13:44:19 +08:00
];
export default certdResources;