From 73f09a9c99bfc280a86620b3b7f53217bbfea127 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sat, 3 Jan 2026 23:23:18 +0800 Subject: [PATCH] add maxkb url --- .env | 3 ++- .env.production | 3 ++- .env.staging | 3 ++- components.d.ts | 14 ++++---------- index.html | 4 +++- src/env.d.ts | 1 + 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.env b/.env index 5588b33..253bcbf 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ PUBLIC_WEB_URL=http://localhost:8000 PUBLIC_BASE_URL=http://localhost:8000/api -PUBLIC_ADMIN_URL=http://localhost:8000/admin \ No newline at end of file +PUBLIC_ADMIN_URL=http://localhost:8000/admin +PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/chat/api/embed?protocol=https&host=maxkb.xuyue.cc&token=df542e305f27dee6 \ No newline at end of file diff --git a/.env.production b/.env.production index dca1d92..e913438 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ PUBLIC_WEB_URL=https://web.xuyue.cc PUBLIC_ADMIN_URL=https://web.xuyue.cc/admin -PUBLIC_BASE_URL=https://web.xuyue.cc/api \ No newline at end of file +PUBLIC_BASE_URL=https://web.xuyue.cc/api +PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/chat/api/embed?protocol=https&host=maxkb.xuyue.cc&token=df542e305f27dee6 \ No newline at end of file diff --git a/.env.staging b/.env.staging index 4142683..cbcd4d8 100644 --- a/.env.staging +++ b/.env.staging @@ -1,3 +1,4 @@ PUBLIC_WEB_URL=http://10.13.114.114:91 PUBLIC_ADMIN_URL=http://10.13.114.114:91/admin -PUBLIC_BASE_URL=http://10.13.114.114:91/api \ No newline at end of file +PUBLIC_BASE_URL=http://10.13.114.114:91/api +PUBLIC_MAXKB_URL=http://10.13.114.114:92/chat/api/embed?protocol=http&host=10.13.114.114:92&token=df542e305f27dee6 \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index a95086a..af53513 100644 --- a/components.d.ts +++ b/components.d.ts @@ -1,8 +1,11 @@ /* eslint-disable */ // @ts-nocheck +// biome-ignore lint: disable +// oxlint-disable +// ------ // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -// biome-ignore lint: disable + export {} /* prettier-ignore */ @@ -17,29 +20,20 @@ declare module 'vue' { NAlert: typeof import('naive-ui')['NAlert'] NameWithFilter: typeof import('./src/components/submissions/NameWithFilter.vue')['default'] NButton: typeof import('naive-ui')['NButton'] - NCard: typeof import('naive-ui')['NCard'] - NCode: typeof import('naive-ui')['NCode'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] - NDataTable: typeof import('naive-ui')['NDataTable'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDropdown: typeof import('naive-ui')['NDropdown'] NEmpty: typeof import('naive-ui')['NEmpty'] NFlex: typeof import('naive-ui')['NFlex'] NForm: typeof import('naive-ui')['NForm'] NFormItem: typeof import('naive-ui')['NFormItem'] - NGi: typeof import('naive-ui')['NGi'] - NGrid: typeof import('naive-ui')['NGrid'] NInput: typeof import('naive-ui')['NInput'] - NInputNumber: typeof import('naive-ui')['NInputNumber'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NModal: typeof import('naive-ui')['NModal'] NModalProvider: typeof import('naive-ui')['NModalProvider'] - NPagination: typeof import('naive-ui')['NPagination'] NPopover: typeof import('naive-ui')['NPopover'] NRate: typeof import('naive-ui')['NRate'] - NSelect: typeof import('naive-ui')['NSelect'] NSplit: typeof import('naive-ui')['NSplit'] - NSwitch: typeof import('naive-ui')['NSwitch'] NTab: typeof import('naive-ui')['NTab'] NTabPane: typeof import('naive-ui')['NTabPane'] NTabs: typeof import('naive-ui')['NTabs'] diff --git a/index.html b/index.html index 0b8d544..4d9cddc 100644 --- a/index.html +++ b/index.html @@ -10,11 +10,13 @@ + <% if (process.env.PUBLIC_MAXKB_URL) { %> + <% } %>
diff --git a/src/env.d.ts b/src/env.d.ts index 21496cf..2fe6390 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -2,6 +2,7 @@ interface ImportMetaEnv { readonly PUBLIC_WEB_URL: string readonly PUBLIC_BASE_URL: string readonly PUBLIC_ADMIN_URL: string + readonly PUBLIC_MAXKB_URL: string } interface ImportMeta {