From 2f91918f54cb510642e8eeac135f159e7e230786 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Mon, 1 Aug 2022 16:54:44 +0800 Subject: [PATCH] [frontend-next] Refactored manage sites --- frontend-next/components.d.ts | 4 + frontend-next/src/routes/index.ts | 2 +- frontend-next/src/views/domain/DomainAdd.vue | 185 +++++++++--------- frontend-next/src/views/domain/DomainEdit.vue | 2 +- frontend-next/src/views/domain/DomainList.vue | 21 ++ .../views/domain/ngx_conf/LocationEditor.vue | 65 +++--- .../views/domain/ngx_conf/NgxConfigEditor.vue | 3 +- .../ngx_conf/directive/DirectiveEditor.vue | 2 +- frontend-next/version.json | 2 +- 9 files changed, 165 insertions(+), 121 deletions(-) diff --git a/frontend-next/components.d.ts b/frontend-next/components.d.ts index 85a7ac0b..56f47171 100644 --- a/frontend-next/components.d.ts +++ b/frontend-next/components.d.ts @@ -7,6 +7,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + AAlert: typeof import('ant-design-vue/es')['Alert'] ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb'] ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem'] AButton: typeof import('ant-design-vue/es')['Button'] @@ -32,11 +33,14 @@ declare module '@vue/runtime-core' { APagination: typeof import('ant-design-vue/es')['Pagination'] APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] AreaChart: typeof import('./src/components/Chart/AreaChart.vue')['default'] + AResult: typeof import('ant-design-vue/es')['Result'] ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] ASpace: typeof import('ant-design-vue/es')['Space'] AStatistic: typeof import('ant-design-vue/es')['Statistic'] + AStep: typeof import('ant-design-vue/es')['Step'] + ASteps: typeof import('ant-design-vue/es')['Steps'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] ASwitch: typeof import('ant-design-vue/es')['Switch'] ATable: typeof import('ant-design-vue/es')['Table'] diff --git a/frontend-next/src/routes/index.ts b/frontend-next/src/routes/index.ts index a3f9725b..877991af 100644 --- a/frontend-next/src/routes/index.ts +++ b/frontend-next/src/routes/index.ts @@ -52,7 +52,7 @@ export const routes = [ }, { path: 'add', name: () => $gettext('Add Site'), - // component: () => import('@/views/domain/DomainAdd.vue'), + component: () => import('@/views/domain/DomainAdd.vue'), }, { path: ':name', name: () => $gettext('Edit Site'), diff --git a/frontend-next/src/views/domain/DomainAdd.vue b/frontend-next/src/views/domain/DomainAdd.vue index d62f7be6..b8ef310a 100644 --- a/frontend-next/src/views/domain/DomainAdd.vue +++ b/frontend-next/src/views/domain/DomainAdd.vue @@ -1,3 +1,86 @@ + +