mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
Merge branch 'v2-translation' into v2-dev
# Conflicts: # packages/ui/certd-client/src/components/plugins/common/remote-select.vue # packages/ui/certd-client/src/router/source/modules/certd.ts # packages/ui/certd-client/src/views/certd/pipeline/certd-form/use.tsx # packages/ui/certd-client/src/views/certd/pipeline/crud.tsx
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import LayoutBasic from "/@/layout/layout-basic.vue";
|
||||
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import i18n from "/@/locales/i18n";
|
||||
|
||||
import { mergeRouteModules } from "/@/vben/utils";
|
||||
const dynamicRouteFiles = import.meta.glob("./modules/**/*.ts*", {
|
||||
@@ -11,7 +12,7 @@ const dynamicRouteFiles = import.meta.glob("./modules/**/*.ts*", {
|
||||
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
|
||||
export const frameworkResource = [
|
||||
{
|
||||
title: "框架",
|
||||
title: "certd.framework.title",
|
||||
name: "root",
|
||||
path: "/",
|
||||
redirect: "/index",
|
||||
@@ -22,7 +23,7 @@ export const frameworkResource = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "首页",
|
||||
title: "certd.framework.home",
|
||||
name: "index",
|
||||
path: "/index",
|
||||
component: "/framework/home/index.vue",
|
||||
@@ -39,4 +40,5 @@ export const frameworkResource = [
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
console.assert(frameworkResource.length === 1, "frameworkResource数组长度只能为1,你只能配置framework路由的子路由");
|
||||
|
||||
@@ -1,33 +1,35 @@
|
||||
import i18n from "/@/locales/i18n";
|
||||
|
||||
export const headerResource = [
|
||||
{
|
||||
title: "文档",
|
||||
title: "certd.helpDoc",
|
||||
path: "https://certd.docmirror.cn",
|
||||
meta: {
|
||||
icon: "ion:document-text-outline"
|
||||
}
|
||||
icon: "ion:document-text-outline",
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "源码",
|
||||
title: "certd.source",
|
||||
name: "source",
|
||||
key: "source",
|
||||
meta: {
|
||||
icon: "ion:git-branch-outline"
|
||||
icon: "ion:git-branch-outline",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "github",
|
||||
title: "certd.github",
|
||||
path: "https://github.com/certd/certd",
|
||||
meta: {
|
||||
icon: "ion:logo-github"
|
||||
}
|
||||
icon: "ion:logo-github",
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "gitee",
|
||||
title: "certd.gitee",
|
||||
path: "https://gitee.com/certd/certd",
|
||||
meta: {
|
||||
icon: "ion:logo-octocat"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
icon: "ion:logo-octocat",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,16 +2,18 @@ import { IFrameView } from "/@/vben/layouts";
|
||||
import { useSettingStore } from "/@/store/settings";
|
||||
import { computed } from "vue";
|
||||
import TutorialButton from "/@/components/tutorial/index.vue";
|
||||
import i18n from "/@/locales/i18n";
|
||||
|
||||
export const aboutResource = [
|
||||
{
|
||||
title: "文档",
|
||||
title: "certd.dashboard.helpDoc",
|
||||
name: "document",
|
||||
path: "/about/doc",
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: "lucide:book-open-text",
|
||||
link: "https://certd.docmirror.cn",
|
||||
title: "文档",
|
||||
title: "certd.dashboard.helpDoc",
|
||||
order: 9999,
|
||||
show: () => {
|
||||
const settingStore = useSettingStore();
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { useSettingStore } from "/@/store/settings";
|
||||
import aboutResource from "/@/router/source/modules/about";
|
||||
import i18n from "/@/locales/i18n";
|
||||
|
||||
export const certdResources = [
|
||||
{
|
||||
title: "证书自动化",
|
||||
title: "certd.title",
|
||||
name: "CertdRoot",
|
||||
path: "/certd",
|
||||
redirect: "/certd/pipeline",
|
||||
@@ -14,7 +15,7 @@ export const certdResources = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "证书自动化流水线",
|
||||
title: "certd.pipeline",
|
||||
name: "PipelineManager",
|
||||
path: "/certd/pipeline",
|
||||
component: "/certd/pipeline/index.vue",
|
||||
@@ -24,7 +25,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "编辑流水线",
|
||||
title: "certd.pipelineEdit",
|
||||
name: "PipelineEdit",
|
||||
path: "/certd/pipeline/detail",
|
||||
component: "/certd/pipeline/detail.vue",
|
||||
@@ -33,7 +34,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "执行历史记录",
|
||||
title: "certd.history",
|
||||
name: "PipelineHistory",
|
||||
path: "/certd/history",
|
||||
component: "/certd/history/index.vue",
|
||||
@@ -71,7 +72,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "证书仓库",
|
||||
title: "certd.certStore",
|
||||
name: "CertStore",
|
||||
path: "/certd/monitor/cert",
|
||||
component: "/certd/monitor/cert/index.vue",
|
||||
@@ -83,7 +84,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "站点证书监控",
|
||||
title: "certd.siteMonitor",
|
||||
name: "SiteCertMonitor",
|
||||
path: "/certd/monitor/site",
|
||||
component: "/certd/monitor/site/index.vue",
|
||||
@@ -94,7 +95,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "设置",
|
||||
title: "certd.settings",
|
||||
name: "MineSetting",
|
||||
path: "/certd/setting",
|
||||
redirect: "/certd/access",
|
||||
@@ -105,7 +106,7 @@ export const certdResources = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "授权管理",
|
||||
title: "certd.accessManager",
|
||||
name: "AccessManager",
|
||||
path: "/certd/access",
|
||||
component: "/certd/access/index.vue",
|
||||
@@ -116,7 +117,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "CNAME记录管理",
|
||||
title: "certd.cnameRecord",
|
||||
name: "CnameRecord",
|
||||
path: "/certd/cname/record",
|
||||
component: "/certd/cname/record/index.vue",
|
||||
@@ -127,7 +128,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "子域名托管设置",
|
||||
title: "certd.subDomain",
|
||||
name: "SubDomain",
|
||||
path: "/certd/pipeline/subDomain",
|
||||
component: "/certd/pipeline/sub-domain/index.vue",
|
||||
@@ -138,7 +139,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "流水线分组管理",
|
||||
title: "certd.pipelineGroup",
|
||||
name: "PipelineGroupManager",
|
||||
path: "/certd/pipeline/group",
|
||||
component: "/certd/pipeline/group/index.vue",
|
||||
@@ -148,9 +149,8 @@ export const certdResources = [
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
title: "开放接口密钥",
|
||||
title: "certd.openKey",
|
||||
name: "OpenKey",
|
||||
path: "/certd/open/openkey",
|
||||
component: "/certd/open/openkey/index.vue",
|
||||
@@ -161,7 +161,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "通知设置",
|
||||
title: "certd.notification",
|
||||
name: "NotificationManager",
|
||||
path: "/certd/notification",
|
||||
component: "/certd/notification/index.vue",
|
||||
@@ -172,7 +172,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "站点监控设置",
|
||||
title: "certd.siteMonitorSetting",
|
||||
name: "SiteMonitorSetting",
|
||||
path: "/certd/monitor/setting",
|
||||
component: "/certd/monitor/site/setting/index.vue",
|
||||
@@ -183,7 +183,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "认证安全设置",
|
||||
title: "certd.userSecurity",
|
||||
name: "UserSecurity",
|
||||
path: "/certd/mine/security",
|
||||
component: "/certd/mine/security/index.vue",
|
||||
@@ -194,7 +194,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "账号信息",
|
||||
title: "certd.userProfile",
|
||||
name: "UserProfile",
|
||||
path: "/certd/mine/user-profile",
|
||||
component: "/certd/mine/user-profile.vue",
|
||||
@@ -206,9 +206,8 @@ export const certdResources = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
title: "套餐",
|
||||
title: "certd.suite",
|
||||
name: "SuiteProduct",
|
||||
path: "/certd/suite",
|
||||
redirect: "/certd/suite/mine",
|
||||
@@ -222,7 +221,7 @@ export const certdResources = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "我的套餐",
|
||||
title: "certd.mySuite",
|
||||
name: "MySuite",
|
||||
path: "/certd/suite/mine",
|
||||
component: "/certd/suite/mine/index.vue",
|
||||
@@ -236,7 +235,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "套餐购买",
|
||||
title: "certd.suiteBuy",
|
||||
name: "SuiteProductBuy",
|
||||
path: "/certd/suite/buy",
|
||||
component: "/certd/suite/buy.vue",
|
||||
@@ -250,7 +249,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "我的订单",
|
||||
title: "certd.myTrade",
|
||||
name: "MyTrade",
|
||||
path: "/certd/trade",
|
||||
component: "/certd/trade/index.vue",
|
||||
@@ -265,7 +264,7 @@ export const certdResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "支付返回",
|
||||
title: "certd.paymentReturn",
|
||||
name: "PaymentReturn",
|
||||
path: "/certd/payment/return/:type",
|
||||
component: "/certd/payment/return.vue",
|
||||
@@ -277,17 +276,6 @@ export const certdResources = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// {
|
||||
// title: "邮箱设置",
|
||||
// name: "EmailSetting",
|
||||
// path: "/sys/settings/email",
|
||||
// component: "/sys/settings/email-setting.vue",
|
||||
// meta: {
|
||||
// icon: "ion:mail-outline",
|
||||
// auth: true
|
||||
// }
|
||||
// },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import LayoutPass from "/@/layout/layout-pass.vue";
|
||||
import { useSettingStore } from "/@/store/settings";
|
||||
import aboutResource from "/@/router/source/modules/about";
|
||||
import i18n from "/@/locales/i18n";
|
||||
|
||||
export const sysResources = [
|
||||
{
|
||||
title: "系统管理",
|
||||
title: "certd.sysResources.sysRoot",
|
||||
name: "SysRoot",
|
||||
path: "/sys",
|
||||
redirect: "/sys/settings",
|
||||
@@ -15,7 +16,7 @@ export const sysResources = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "控制台",
|
||||
title: "certd.sysResources.sysConsole",
|
||||
name: "SysConsole",
|
||||
path: "/sys/console",
|
||||
component: "/sys/console/index.vue",
|
||||
@@ -30,7 +31,7 @@ export const sysResources = [
|
||||
},
|
||||
|
||||
{
|
||||
title: "系统设置",
|
||||
title: "certd.sysResources.sysSettings",
|
||||
name: "SysSettings",
|
||||
path: "/sys/settings",
|
||||
component: "/sys/settings/index.vue",
|
||||
@@ -40,7 +41,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "CNAME服务设置",
|
||||
title: "certd.sysResources.cnameSetting",
|
||||
name: "CnameSetting",
|
||||
path: "/sys/cname/provider",
|
||||
component: "/sys/cname/provider/index.vue",
|
||||
@@ -51,7 +52,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "邮件服务器设置",
|
||||
title: "certd.sysResources.emailSetting",
|
||||
name: "EmailSetting",
|
||||
path: "/sys/settings/email",
|
||||
component: "/sys/settings/email/index.vue",
|
||||
@@ -62,7 +63,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "站点个性化",
|
||||
title: "certd.sysResources.siteSetting",
|
||||
name: "SiteSetting",
|
||||
path: "/sys/site",
|
||||
component: "/sys/site/index.vue",
|
||||
@@ -76,7 +77,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "顶部菜单设置",
|
||||
title: "certd.sysResources.headerMenus",
|
||||
name: "HeaderMenus",
|
||||
path: "/sys/settings/header-menus",
|
||||
component: "/sys/settings/header-menus/index.vue",
|
||||
@@ -91,7 +92,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "系统级授权",
|
||||
title: "certd.sysResources.sysAccess",
|
||||
name: "SysAccess",
|
||||
path: "/sys/access",
|
||||
component: "/sys/access/index.vue",
|
||||
@@ -106,7 +107,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "插件管理",
|
||||
title: "certd.sysResources.sysPlugin",
|
||||
name: "SysPlugin",
|
||||
path: "/sys/plugin",
|
||||
component: "/sys/plugin/index.vue",
|
||||
@@ -117,7 +118,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "编辑插件",
|
||||
title: "certd.sysResources.sysPluginEdit",
|
||||
name: "SysPluginEdit",
|
||||
path: "/sys/plugin/edit",
|
||||
component: "/sys/plugin/edit.vue",
|
||||
@@ -129,7 +130,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "证书插件配置",
|
||||
title: "certd.sysResources.sysPluginConfig",
|
||||
name: "SysPluginConfig",
|
||||
path: "/sys/plugin/config",
|
||||
component: "/sys/plugin/config.vue",
|
||||
@@ -143,7 +144,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "账号绑定",
|
||||
title: "certd.sysResources.accountBind",
|
||||
name: "AccountBind",
|
||||
path: "/sys/account",
|
||||
component: "/sys/account/index.vue",
|
||||
@@ -154,19 +155,18 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "权限管理",
|
||||
title: "certd.sysResources.permissionManager",
|
||||
name: "PermissionManager",
|
||||
path: "/sys/authority/permission",
|
||||
component: "/sys/authority/permission/index.vue",
|
||||
meta: {
|
||||
icon: "ion:list-outline",
|
||||
//需要校验权限
|
||||
permission: "sys:auth:per:view",
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "角色管理",
|
||||
title: "certd.sysResources.roleManager",
|
||||
name: "RoleManager",
|
||||
path: "/sys/authority/role",
|
||||
component: "/sys/authority/role/index.vue",
|
||||
@@ -177,7 +177,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "用户管理",
|
||||
title: "certd.sysResources.userManager",
|
||||
name: "UserManager",
|
||||
path: "/sys/authority/user",
|
||||
component: "/sys/authority/user/index.vue",
|
||||
@@ -189,7 +189,7 @@ export const sysResources = [
|
||||
},
|
||||
|
||||
{
|
||||
title: "套餐管理",
|
||||
title: "certd.sysResources.suiteManager",
|
||||
name: "SuiteManager",
|
||||
path: "/sys/suite",
|
||||
redirect: "/sys/suite/setting",
|
||||
@@ -204,7 +204,7 @@ export const sysResources = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: "套餐设置",
|
||||
title: "certd.sysResources.suiteSetting",
|
||||
name: "SuiteSetting",
|
||||
path: "/sys/suite/setting",
|
||||
component: "/sys/suite/setting/index.vue",
|
||||
@@ -218,7 +218,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "订单管理",
|
||||
title: "certd.sysResources.orderManager",
|
||||
name: "OrderManager",
|
||||
path: "/sys/suite/trade",
|
||||
component: "/sys/suite/trade/index.vue",
|
||||
@@ -233,7 +233,7 @@ export const sysResources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "用户套餐",
|
||||
title: "certd.sysResources.userSuites",
|
||||
name: "UserSuites",
|
||||
path: "/sys/suite/user-suite",
|
||||
component: "/sys/suite/user-suite/index.vue",
|
||||
|
||||
@@ -10,21 +10,21 @@ export const outsideResource = [
|
||||
children: [
|
||||
{
|
||||
meta: {
|
||||
title: "登录"
|
||||
title: "登录",
|
||||
},
|
||||
name: "login",
|
||||
path: "/login",
|
||||
component: "/framework/login/index.vue"
|
||||
component: "/framework/login/index.vue",
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
title: "注册"
|
||||
title: "注册",
|
||||
},
|
||||
name: "register",
|
||||
path: "/register",
|
||||
component: "/framework/register/index.vue"
|
||||
}
|
||||
]
|
||||
component: "/framework/register/index.vue",
|
||||
},
|
||||
],
|
||||
},
|
||||
...errorPage
|
||||
...errorPage,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user