diff --git a/frontend/.env.development b/frontend/.env.development index 0449e433..b1f1b6a1 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,2 +1 @@ VITE_API_ROOT = /api -VITE_API_WSS_ROOT = wss://nginx.jackyu.cn/api diff --git a/frontend/.env.production b/frontend/.env.production index cdf5288c..b1f1b6a1 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,2 +1 @@ -VUE_APP_API_ROOT = /api -VUE_APP_API_WSS_ROOT = /api +VITE_API_ROOT = /api diff --git a/frontend/frontend.go b/frontend/frontend.go index 2f57f4ea..ed676b14 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -4,5 +4,5 @@ import ( "embed" ) -//go:embed dist +//go:embed dist/* dist/*/* var DistFS embed.FS diff --git a/frontend/public/vite.svg b/frontend/public/vite.svg deleted file mode 100644 index 7860dd3e..00000000 --- a/frontend/public/vite.svg +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts new file mode 100644 index 00000000..4f15603f --- /dev/null +++ b/frontend/src/api/index.ts @@ -0,0 +1,12 @@ +import http from '@/lib/http' + +const install = { + get_lock() { + return http.get('/install') + }, + install_nginx_ui(data: any) { + return http.post('/install', data) + } +} + +export default install diff --git a/frontend/src/components/StdDataDisplay/StdPagination.vue b/frontend/src/components/StdDataDisplay/StdPagination.vue index 565e04c5..7ae71be3 100644 --- a/frontend/src/components/StdDataDisplay/StdPagination.vue +++ b/frontend/src/components/StdDataDisplay/StdPagination.vue @@ -1,36 +1,28 @@ + + - - diff --git a/frontend/src/views/domain/cert/CertInfo.vue b/frontend/src/views/domain/cert/CertInfo.vue index bdbe52a7..8019598f 100644 --- a/frontend/src/views/domain/cert/CertInfo.vue +++ b/frontend/src/views/domain/cert/CertInfo.vue @@ -19,6 +19,10 @@ function get() { ok.value = false }) } + +defineExpose({ + get +}) diff --git a/frontend/src/views/other/Error.vue b/frontend/src/views/other/Error.vue index dce22d36..fea174f7 100644 --- a/frontend/src/views/other/Error.vue +++ b/frontend/src/views/other/Error.vue @@ -1,16 +1,17 @@ + + - -