diff --git a/core/core-frontend/src/assets/svg/icon_sqlbot_colorful.svg b/core/core-frontend/src/assets/svg/icon_sqlbot_colorful.svg new file mode 100644 index 0000000000..4ef6649592 --- /dev/null +++ b/core/core-frontend/src/assets/svg/icon_sqlbot_colorful.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 2ab8722ce5..2a969dfd6a 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -1,5 +1,16 @@ export default { common: { + next_week: 'Next week', + next_month: 'Next month', + next_quarter: 'Next quarter', + next_year: 'Next year', + sqlbot_settings: 'SQLBot Settings', + third_party_embed: 'Third-party embed', + application_id: 'Application ID', + sqlbot_server_url: 'SQLBot server URL', + enter_the_url: 'Please enter the URL', + the_application_id: 'Please enter the application ID', + embed: 'Embed', empty: ' ', first_item: 'First Item', cross_source: 'Cross-source', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 9bd648ab1b..f2a11f3c16 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1,5 +1,16 @@ export default { common: { + next_week: '下週', + next_month: '下個月', + next_quarter: '下季', + next_year: '明年', + sqlbot_settings: 'SQLBot 設定', + third_party_embed: '第三方嵌入', + application_id: '應用程式 ID', + sqlbot_server_url: 'SQLBot 伺服器 URL', + enter_the_url: '請輸入 URL', + the_application_id: '請輸入應用程式 ID', + embed: '嵌入', empty: '', first_item: '首項', cross_source: '跨源', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 481de4661e..876cf4f1a9 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1,5 +1,16 @@ export default { common: { + next_week: '下周', + next_month: '下月', + next_quarter: '下季', + next_year: '明年', + sqlbot_settings: 'SQLBot 设置', + third_party_embed: '第三方嵌入', + application_id: '应用 ID', + sqlbot_server_url: 'SQLBot 服务器 URL', + enter_the_url: '请输入 URL', + the_application_id: '请输入应用 ID', + embed: '嵌入', empty: '', first_item: '首项', cross_source: '跨源', diff --git a/core/core-frontend/src/views/system/parameter/index.vue b/core/core-frontend/src/views/system/parameter/index.vue index bd1eb188fe..074a93984e 100644 --- a/core/core-frontend/src/views/system/parameter/index.vue +++ b/core/core-frontend/src/views/system/parameter/index.vue @@ -15,6 +15,7 @@ jsname="L21lbnUvc2V0dGluZy9lbWFpbC9pbmRleA==" v-if="activeName === 'email'" /> + @@ -25,6 +26,7 @@ import { ref } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import MapSetting from './map/MapSetting.vue' import BasicInfo from './basic/BasicInfo.vue' +import ThirdParty from './third-party/index.vue' import EngineInfo from '@/views/system/parameter/engine/EngineInfo.vue' import { XpackComponent } from '@/components/plugin' /* import EmailInfo from './email/EmailInfo.vue' */ @@ -33,7 +35,11 @@ const { t } = useI18n() const tabArray = ref([ { label: t('system.basic_settings'), name: 'basic' }, { label: t('system.map_settings'), name: 'map' }, - { label: t('system.engine_settings'), name: 'engine' } + { label: t('system.engine_settings'), name: 'engine' }, + { + label: t('common.third_party_embed'), + name: 'third_party' + } ]) const activeName = ref('basic') diff --git a/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue b/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue new file mode 100644 index 0000000000..df65ee9d75 --- /dev/null +++ b/core/core-frontend/src/views/system/parameter/third-party/ThirdEdit.vue @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + {{ t('common.cancel') }} + + {{ t('commons.validate') }} + + + {{ t('commons.save') }} + + + + + + + + diff --git a/core/core-frontend/src/views/system/parameter/third-party/index.vue b/core/core-frontend/src/views/system/parameter/third-party/index.vue new file mode 100644 index 0000000000..54035074cd --- /dev/null +++ b/core/core-frontend/src/views/system/parameter/third-party/index.vue @@ -0,0 +1,245 @@ + + + + + + + + + + + + SQLBot + + + {{ info.valid ? t('datasource.valid') : t('datasource.invalid') }} + + + + + + + {{ t('system.access') }} + + + + + + + {{ t('commons.edit') }} + + {{ + t('commons.validate') + }} + + + + + + + SQLBot + + {{ t('common.embed') }} + + + + + +