mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-13 10:00:53 +08:00
【调整】申请证书配置CA选项增加liteSSL证书
This commit is contained in:
@@ -1,288 +0,0 @@
|
||||
import { $t } from '@locales/index'
|
||||
|
||||
// 消息推送类型
|
||||
export interface MessagePushType {
|
||||
name: string
|
||||
type: string
|
||||
}
|
||||
|
||||
// 定义ApiProject接口,包含可选的notApi属性
|
||||
export interface ApiProjectType {
|
||||
name: string
|
||||
icon: string
|
||||
type?: string[]
|
||||
notApi?: boolean
|
||||
hostRelated?: Record<string, any>
|
||||
sort?: number
|
||||
}
|
||||
|
||||
// $t('t_0_1747886301644')
|
||||
export const MessagePushConfig = {
|
||||
mail: { name: $t('t_68_1745289354676'), type: 'mail' },
|
||||
workwx: { name: $t('t_33_1746773350932'), type: 'workwx' },
|
||||
dingtalk: { name: $t('t_32_1746773348993'), type: 'dingtalk' },
|
||||
feishu: { name: $t('t_34_1746773350153'), type: 'feishu' },
|
||||
webhook: { name: 'WebHook', type: 'webhook' },
|
||||
}
|
||||
|
||||
// CA证书授权
|
||||
export const CACertificateAuthorization = {
|
||||
zerossl: { name: 'ZeroSSL', type: 'zerossl' },
|
||||
google: { name: 'Google', type: 'google' },
|
||||
sslcom: { name: 'SSL.COM', type: 'sslcom' },
|
||||
buypass: { name: 'Buypass', type: 'buypass' },
|
||||
letsencrypt: { name: "Let's Encrypt", type: 'letsencrypt' },
|
||||
custom: { name: '自定义', type: 'custom' },
|
||||
}
|
||||
|
||||
// 授权API管理
|
||||
// 结构说明:{name: '名称', icon: '图标', type: ['类型'], notApi: 是否需要API,默认需要, hostRelated: { default: { name: '默认' } }, sort: 排序}
|
||||
export const ApiProjectConfig: Record<string, ApiProjectType> = {
|
||||
localhost: {
|
||||
name: $t("t_4_1744958838951"),
|
||||
icon: "ssh",
|
||||
type: ["host"],
|
||||
notApi: false,
|
||||
hostRelated: { default: { name: $t("t_4_1744958838951") } },
|
||||
sort: 1,
|
||||
},
|
||||
ssh: {
|
||||
name: "SSH",
|
||||
icon: "ssh",
|
||||
type: ["host"],
|
||||
hostRelated: { default: { name: "SSH" } },
|
||||
sort: 2,
|
||||
},
|
||||
btpanel: {
|
||||
name: $t("t_10_1745735765165"),
|
||||
icon: "btpanel",
|
||||
hostRelated: {
|
||||
default: { name: $t("t_10_1745735765165") },
|
||||
site: { name: $t("t_1_1747886307276") },
|
||||
dockersite: { name: $t("t_0_1747994891459") },
|
||||
singlesite: { name: $t("t_1_1747886307276") + "\r\n(Win/Linux 9.4前)" },
|
||||
},
|
||||
type: ["host"],
|
||||
sort: 3,
|
||||
},
|
||||
btwaf: {
|
||||
name: $t("t_3_1747886302848"),
|
||||
icon: "btwaf",
|
||||
hostRelated: { site: { name: $t("t_4_1747886303229") } },
|
||||
type: ["host"],
|
||||
sort: 4,
|
||||
},
|
||||
"1panel": {
|
||||
name: "1Panel",
|
||||
icon: "1panel",
|
||||
hostRelated: {
|
||||
default: { name: "1Panel" },
|
||||
site: { name: $t("t_2_1747886302053") },
|
||||
},
|
||||
type: ["host"],
|
||||
sort: 5,
|
||||
},
|
||||
aliyun: {
|
||||
name: $t("t_2_1747019616224"),
|
||||
icon: "aliyun",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_16_1745735766712") },
|
||||
dcdn: { name: $t("t_0_1752230148946") },
|
||||
oss: { name: $t("t_2_1746697487164") },
|
||||
waf: { name: $t("t_10_1744958860078") },
|
||||
esa: { name: $t("t_1_1752230146379") },
|
||||
},
|
||||
sort: 6,
|
||||
},
|
||||
tencentcloud: {
|
||||
name: $t("t_3_1747019616129"),
|
||||
icon: "tencentcloud",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_14_1745735766121") },
|
||||
cos: { name: $t("t_15_1745735768976") },
|
||||
waf: { name: $t("t_9_1744958840634") },
|
||||
teo: { name: $t("t_5_1747886301427") },
|
||||
},
|
||||
sort: 7,
|
||||
},
|
||||
huaweicloud: {
|
||||
name: $t("t_9_1747886301128"),
|
||||
icon: "huaweicloud",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_9_1747886301128") + "CDN" },
|
||||
},
|
||||
sort: 10,
|
||||
},
|
||||
baidu: {
|
||||
name: $t("t_10_1747886300958"),
|
||||
icon: "baidu",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: {
|
||||
cdn: { name: "百度云CDN" },
|
||||
},
|
||||
sort: 11,
|
||||
},
|
||||
volcengine: {
|
||||
name: $t("t_13_1747886301689"),
|
||||
icon: "volcengine",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_13_1747886301689") + "CDN" },
|
||||
dcdn: { name: $t("t_13_1747886301689") + "DCDN" },
|
||||
},
|
||||
sort: 13,
|
||||
},
|
||||
safeline: {
|
||||
name: $t("t_11_1747886301986"),
|
||||
icon: "safeline",
|
||||
type: ["host"],
|
||||
hostRelated: {
|
||||
panel: { name: $t("t_1_1747298114192") },
|
||||
site: { name: $t("t_12_1747886302725") },
|
||||
},
|
||||
sort: 8,
|
||||
},
|
||||
qiniu: {
|
||||
name: $t("t_6_1747886301844"),
|
||||
icon: "qiniu",
|
||||
type: ["host"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_7_1747886302395") },
|
||||
oss: { name: $t("t_8_1747886304014") },
|
||||
},
|
||||
sort: 9,
|
||||
},
|
||||
|
||||
cloudflare: {
|
||||
name: "Cloudflare",
|
||||
icon: "cloudflare",
|
||||
type: ["dns"],
|
||||
sort: 12,
|
||||
},
|
||||
|
||||
westcn: {
|
||||
name: $t("t_14_1747886301884"),
|
||||
icon: "westcn",
|
||||
type: ["dns"],
|
||||
sort: 14,
|
||||
},
|
||||
godaddy: {
|
||||
name: "GoDaddy",
|
||||
icon: "godaddy",
|
||||
type: ["dns"],
|
||||
sort: 15,
|
||||
},
|
||||
namecheap: {
|
||||
name: "Namecheap",
|
||||
icon: "namecheap",
|
||||
type: ["dns"],
|
||||
sort: 16,
|
||||
},
|
||||
ns1: {
|
||||
name: "NS1",
|
||||
icon: "ns1",
|
||||
type: ["dns"],
|
||||
sort: 17,
|
||||
},
|
||||
cloudns: {
|
||||
name: "ClouDNS",
|
||||
icon: "cloudns",
|
||||
type: ["dns"],
|
||||
sort: 18,
|
||||
},
|
||||
aws: {
|
||||
name: "AWS",
|
||||
icon: "aws",
|
||||
type: ["dns"],
|
||||
sort: 19,
|
||||
},
|
||||
azure: {
|
||||
name: "Azure",
|
||||
icon: "azure",
|
||||
type: ["dns"],
|
||||
sort: 20,
|
||||
},
|
||||
namesilo: {
|
||||
name: "Namesilo",
|
||||
icon: "namesilo",
|
||||
type: ["dns"],
|
||||
sort: 21,
|
||||
},
|
||||
namedotcom: {
|
||||
name: "Name.com",
|
||||
icon: "namedotcom",
|
||||
type: ["dns"],
|
||||
sort: 22,
|
||||
},
|
||||
bunny: {
|
||||
name: "Bunny",
|
||||
icon: "bunny",
|
||||
type: ["dns"],
|
||||
sort: 23,
|
||||
},
|
||||
gcore: {
|
||||
name: "Gcore",
|
||||
icon: "gcore",
|
||||
type: ["dns"],
|
||||
sort: 24,
|
||||
},
|
||||
jdcloud: {
|
||||
name: "京东云",
|
||||
icon: "jdcloud",
|
||||
type: ["dns"],
|
||||
sort: 25,
|
||||
},
|
||||
lecdn: {
|
||||
name: "LeCDN",
|
||||
icon: "lecdn",
|
||||
type: ["dns", "host"],
|
||||
hostRelated: { default: { name: "LeCDN" } },
|
||||
sort: 26,
|
||||
},
|
||||
constellix: {
|
||||
name: "Constellix",
|
||||
icon: "constellix",
|
||||
type: ["dns"],
|
||||
sort: 27,
|
||||
},
|
||||
doge: {
|
||||
name: $t("t_0_1750129254226"),
|
||||
icon: "doge",
|
||||
type: ["host"],
|
||||
hostRelated: {
|
||||
cdn: { name: $t("t_0_1750129254226") + "CDN" },
|
||||
},
|
||||
sort: 28,
|
||||
},
|
||||
webhook: {
|
||||
name: "Webhook",
|
||||
icon: "webhook",
|
||||
type: ["host", "dns"],
|
||||
hostRelated: { default: { name: "Webhook" } },
|
||||
sort: 31,
|
||||
},
|
||||
spaceship: {
|
||||
name: "Spaceship",
|
||||
icon: "spaceship",
|
||||
type: ["dns"],
|
||||
hostRelated: { default: { name: "Spaceship" } },
|
||||
sort: 32,
|
||||
},
|
||||
btdomain: {
|
||||
name: "宝塔域名",
|
||||
icon: "btdomain",
|
||||
type: ["dns"],
|
||||
hostRelated: { default: { name: "BTDomain" } },
|
||||
sort: 33,
|
||||
},
|
||||
plugin: {
|
||||
name: "插件",
|
||||
icon: "plugin",
|
||||
type: ["host"],
|
||||
hostRelated: { default: { name: "插件" } },
|
||||
sort: 29,
|
||||
},
|
||||
};
|
||||
@@ -1,18 +0,0 @@
|
||||
import { $t } from '@locales/index'
|
||||
|
||||
export default {
|
||||
sortRoute: [
|
||||
{ name: "home", title: $t("t_0_1744258111441") },
|
||||
{ name: "autoDeploy", title: $t("t_1_1744258113857") },
|
||||
{ name: "certManage", title: $t("t_2_1744258111238") },
|
||||
{ name: "certApply", title: $t("t_3_1744258111182") },
|
||||
{ name: "privateCaManage", title: "CA管理" },
|
||||
{ name: "privateCaCert", title: "私有证书" },
|
||||
{ name: "authApiManage", title: $t("t_4_1744258111238") },
|
||||
{ name: "monitor", title: $t("t_5_1744258110516") },
|
||||
{ name: "settings", title: $t("t_6_1744258111153") },
|
||||
], // 路由排序
|
||||
frameworkRoute: ["layout"], // 框架路由
|
||||
systemRoute: ["login", "404"], // 系统路由
|
||||
disabledRoute: [], // 禁用路由
|
||||
};
|
||||
@@ -1,192 +0,0 @@
|
||||
import type { GlobalThemeOverrides } from 'naive-ui'
|
||||
|
||||
/**
|
||||
* AllinSSL 自定义暗色主题配置
|
||||
* 覆盖全局主题变量
|
||||
*/
|
||||
export const allinSslDarkThemeOverrides: GlobalThemeOverrides = {
|
||||
common: {
|
||||
bodyColor: "#000", // 页面主体背景色 (对应 --n-color)
|
||||
cardColor: "#1C1C1C", // 卡片背景色
|
||||
modalColor: "#1C1C1C", // 弹出框背景色 (--n-color-modal)
|
||||
hoverColor: "#1a1a1a", // 悬停背景色
|
||||
errorColor: "#db2828",
|
||||
successColor: "#F4D1B4",
|
||||
primaryColor: "#D6A487",
|
||||
primaryColorHover: "#F4D1B4",
|
||||
primaryColorPressed: "#F4D1B4",
|
||||
},
|
||||
Card: {
|
||||
color: "#1C1C1C",
|
||||
closeIconColor: "#fff",
|
||||
},
|
||||
Modal: {
|
||||
color: "#1C1C1C",
|
||||
closeIconColor: "#fff",
|
||||
borderColorHover: "#1C1C1C",
|
||||
},
|
||||
Layout: {
|
||||
color: "#0F0F0F",
|
||||
headerColor: "#000", // 头部背景色
|
||||
siderColor: "#1e1e1e", // 侧边栏背景色
|
||||
siderBorderColor: "transparent", // 侧边栏边框颜色
|
||||
headerBorderColor: "1px solid #363637", // 头部边框颜色
|
||||
textColor: "transparent", // 头部文字颜色
|
||||
footerColor: "#000", // 底部背景色
|
||||
},
|
||||
DataTable: {
|
||||
thColor: "#1a1a1a", // 普通表格表头背景色 (--n-th-color)
|
||||
tdColor: "#1c1c1c",
|
||||
tdColorHover: "#0f0f0f",
|
||||
thColorModal: "#202020", // 弹窗内表格表头背景色 (--n-th-color-modal)
|
||||
borderColorModal: "#202020",
|
||||
loadingColor: "transparent",
|
||||
borderColor: "transparent",
|
||||
},
|
||||
|
||||
Tag: {
|
||||
color: "transparent",
|
||||
colorInfo: "transparent",
|
||||
border: "1px solid #fff",
|
||||
borderError: "1px solid #db2828",
|
||||
colorError: "#db2828",
|
||||
borderSuccess: "1px solid #F4D1B4",
|
||||
textColorSuccess: "#F4D1B4",
|
||||
borderWarning: "1px solid #f2711c",
|
||||
textColorWarning: "#f2711c",
|
||||
borderInfo: "1px solid #1EA6FF",
|
||||
textColorInfo: "#1EA6FF",
|
||||
},
|
||||
// 侧边栏菜单激活项样式
|
||||
Menu: {
|
||||
itemColorHover: "#2a2a2a",
|
||||
itemColorActive: "#0f0f0f",
|
||||
itemColorActiveHover: "#0f0f0f",
|
||||
itemTextColorActive: "#f4d1b4",
|
||||
itemTextColorActiveHover: "#f4d1b4",
|
||||
itemIconColorActive: "#f4d1b4",
|
||||
itemIconColorActiveHover: "#f4d1b4",
|
||||
arrowColorActive: "transparent",
|
||||
itemTextColorChildActive: "#f4d1b4",
|
||||
itemTextColorChildActiveHover: "#f4d1b4",
|
||||
},
|
||||
Pagination: {
|
||||
itemTextColorHover: "#F4D1B4",
|
||||
itemTextColorPressed: "#F4D1B4",
|
||||
itemTextColorActive: "#282523",
|
||||
itemColorActive: "#796051",
|
||||
itemColorActiveHover: "#796051",
|
||||
itemBorderActive: "1px solid transparent",
|
||||
itemBorder: "1px solid transparent",
|
||||
itemBorderRadius: "3px",
|
||||
itemColor: "#1c1c1c",
|
||||
itemColorHover: "#1c1c1c",
|
||||
buttonIconColorHover: "#F4D1B4",
|
||||
buttonIconColorPressed: "#F4D1B4",
|
||||
buttonBorder: "transparent",
|
||||
buttonBorderHover: "transparent",
|
||||
buttonColorPressed: "#1c1c1c",
|
||||
buttonBorderPressed: "transparent",
|
||||
buttonColorHover: "#1c1c1c",
|
||||
buttonColor: "#1c1c1c",
|
||||
},
|
||||
Tabs: {
|
||||
tabTextColorHover: "#fff",
|
||||
tabTextColorActive: "#fff",
|
||||
tabColorSegment: "#000",
|
||||
},
|
||||
InternalSelection: {
|
||||
border: "1px solid #4c4c4f",
|
||||
borderHover: "1px solid #6C6E72",
|
||||
borderActive: "1px solid #F4D1B4",
|
||||
borderFocus: "1px solid #6C6E72",
|
||||
colorActive: "#1C1C1C",
|
||||
boxShadowHover: "transparent",
|
||||
boxShadowActive: "transparent",
|
||||
boxShadowFocus: "transparent",
|
||||
caretColor: "#fff",
|
||||
logoColor: "#F4D1B4",
|
||||
},
|
||||
InternalSelectMenu: {
|
||||
color: "#1C1C1C",
|
||||
optionColorPending: "#0f0f0f",
|
||||
optionColorActivePending: "#0f0f0f",
|
||||
optionTextColorHover: "#fff",
|
||||
optionTextColorActive: "#F4D1B4",
|
||||
optionTextColorPressed: "#fff",
|
||||
optionCheckColor: "#fff",
|
||||
},
|
||||
Button: {
|
||||
textColorPrimary: "#1f1f1f",
|
||||
colorPrimary: "#F4D1B4",
|
||||
colorFocusPrimary: "#eac2a5",
|
||||
colorDisabledPrimary: "#7E6859",
|
||||
colorPressedPrimary: "#eac2a5",
|
||||
borderPrimary: "1px solid #F4D1B4",
|
||||
borderRadiusPrimary: "3px",
|
||||
colorHoverPrimary: "#eac2a5",
|
||||
borderHoverPrimary: "1px solid #F4D1B4",
|
||||
borderPressedPrimary: "1px solid #eac2a5",
|
||||
borderFocusPrimary: "1px solid #F4D1B4",
|
||||
borderDisabledPrimary: "1px solid #F4D1B4",
|
||||
|
||||
colorDefault: "#e1e1e1",
|
||||
textColorDefault: "#e1e1e1",
|
||||
textColorHover: "#F4D1B4",
|
||||
borderHover: "1px solid #D6A487",
|
||||
borderFocus: "1px solid #F4D1B4",
|
||||
borderPressed: "1px solid #F4D1B4",
|
||||
colorFocus: "transparent", // 聚焦时背景色设为透明
|
||||
textColorFocus: "#F4D1B4", // 聚焦时文字颜色设为白色
|
||||
rippleColor: "#F4D1B4",
|
||||
rippleColorPrimary: "#7E6859",
|
||||
textColorPressed: "#F4D1B4",
|
||||
colorPressed: "transparent",
|
||||
borderRadius: "3px",
|
||||
},
|
||||
Input: {
|
||||
logoColor: "#F4D1B4",
|
||||
color: "#171717",
|
||||
colorHover: "transparent",
|
||||
border: "1px solid #4C4D4F",
|
||||
colorFocus: "#171717", // 聚焦时背景色设为透明
|
||||
borderFocus: "1px solid #F4D1B4", // 默认去掉边框
|
||||
borderHover: "1px solid #6C6E72",
|
||||
iconColor: "#F4D1B4",
|
||||
borderHoverError: "1px solid var(--n-error-primary-color)",
|
||||
borderFocusError: "1px solid var(--n-error-primary-color)",
|
||||
caretColor: "#fff",
|
||||
boxShadowFocus: "transparent",
|
||||
},
|
||||
Switch: {
|
||||
railColorActive: "#F4D1B4",
|
||||
boxShadowFocus: "0 0 8px 0 rgba(255, 255, 255, 0.3)",
|
||||
},
|
||||
Dialog: {
|
||||
color: "#000",
|
||||
titleTextColor: "#fff",
|
||||
closeIconColor: "#fff",
|
||||
textColor: "#979BA5",
|
||||
iconColor: "transparent",
|
||||
},
|
||||
Dropdown: {
|
||||
color: "#1c1c1c",
|
||||
},
|
||||
Checkbox: {
|
||||
borderChecked: "1px solid #F4D1B4",
|
||||
colorChecked: "#F4D1B4",
|
||||
},
|
||||
Popover: {
|
||||
color: "#000",
|
||||
textColor: "#fff",
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* AllinSSL 自定义亮色主题配置
|
||||
* 如果需要亮色主题也覆盖,可以在这里配置
|
||||
*/
|
||||
export const allinSslLightThemeOverrides: GlobalThemeOverrides = {
|
||||
// 亮色主题暂不需要覆盖
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user