mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-15 19:02:01 +08:00
【新增】百度云DNS解析功能和宝塔waf部署功能
【新增】本机部署方式 【修复】已知问题
This commit is contained in:
@@ -6,9 +6,9 @@ import { $t } from '@locales/index'
|
||||
import { useThemeCssVar } from '@baota/naive-ui/theme'
|
||||
import { MenuFoldOutlined, MenuUnfoldOutlined } from '@vicons/antd'
|
||||
import { useController } from './useController'
|
||||
|
||||
import styles from './index.module.css'
|
||||
|
||||
// import ThemeTips from '@baota/naive-ui/components/themeTips'
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
// 获取控制器中的状态和方法
|
||||
@@ -65,6 +65,7 @@ export default defineComponent({
|
||||
<NLayout>
|
||||
<NLayoutHeader class={styles.header}>
|
||||
<div class={styles.systemInfo}>
|
||||
{/* <ThemeTips size="small" /> */}
|
||||
<NBadge value={1} show={false} dot>
|
||||
<span class="px-[.5rem] cursor-pointer">v1.0.1</span>
|
||||
</NBadge>
|
||||
|
||||
@@ -56,11 +56,13 @@ export const useLayoutStore = defineStore('layout-store', () => {
|
||||
// 主机提供商
|
||||
ssh: { name: 'SSH', access: ['host'] },
|
||||
btpanel: { name: $t('t_10_1745735765165'), access: ['host'] },
|
||||
btwaf: { name: '宝塔WAF', access: ['host'] },
|
||||
'1panel': { name: '1Panel', access: ['host'] },
|
||||
aliyun: { name: $t('t_2_1747019616224'), access: ['dns', 'host'] },
|
||||
tencentcloud: { name: $t('t_3_1747019616129'), access: ['dns', 'host'] },
|
||||
huaweicloud: { name: '华为云', access: ['dns'] },
|
||||
cloudflare: { name: 'Cloudflare', access: ['dns'] },
|
||||
baidu: { name: '百度云', access: ['dns'] },
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -163,7 +165,19 @@ export const useLayoutStore = defineStore('layout-store', () => {
|
||||
* @returns DNS提供商
|
||||
*/
|
||||
const fetchDnsProvider = async (
|
||||
type: 'btpanel' | 'aliyun' | 'ssh' | 'tencentcloud' | '1panel' | 'dns' | '' = '',
|
||||
type:
|
||||
| 'btpanel'
|
||||
| 'aliyun'
|
||||
| 'ssh'
|
||||
| 'tencentcloud'
|
||||
| '1panel'
|
||||
| 'dns'
|
||||
| 'baidu'
|
||||
| 'huaweicloud'
|
||||
| 'cloudflare'
|
||||
| 'baidu'
|
||||
| ''
|
||||
| 'btwaf' = '',
|
||||
): Promise<void> => {
|
||||
try {
|
||||
dnsProvider.value = []
|
||||
|
||||
Reference in New Issue
Block a user