mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
feat:
This commit is contained in:
parent
9ae64d871c
commit
580c6ac641
|
|
@ -571,4 +571,46 @@ export default {
|
|||
])
|
||||
},
|
||||
},
|
||||
'app-reference-outlined': {
|
||||
iconReader: () => {
|
||||
return h('i', [
|
||||
h(
|
||||
'svg',
|
||||
{
|
||||
style: { height: '100%', width: '100%' },
|
||||
viewBox: '0 0 1024 1024',
|
||||
version: '1.1',
|
||||
xmlns: 'http://www.w3.org/2000/svg',
|
||||
},
|
||||
[
|
||||
h('path', {
|
||||
d: 'M121.216 714.368c-7.082667-17.493333-7.466667-83.413333-7.424-104.32 0.341333-142.72 34.048-256.426667 88.32-330.112C262.4 198.229333 351.701333 161.024 460.8 172.8c7.893333 0.853333 11.946667 7.338667 10.581333 16.981333l-7.381333 51.285334c-1.749333 12.202667-9.813333 12.885333-17.621333 12.202666-138.709333-11.946667-232.576 84.053333-245.76 296.704a165.632 165.632 0 0 1 83.754666-22.528c91.050667 0 164.906667 72.96 164.906667 162.944C449.28 780.373333 375.466667 853.333333 284.373333 853.333333c-82.858667 0-151.424-60.330667-163.157333-138.965333z m438.570667 0c-7.082667-17.493333-7.509333-83.413333-7.466667-104.32 0.426667-142.72 34.090667-256.426667 88.405333-330.112 60.202667-81.706667 149.504-118.912 258.645334-107.136 7.893333 0.853333 11.946667 7.338667 10.581333 16.981333l-7.381333 51.285334c-1.749333 12.202667-9.813333 12.885333-17.621334 12.202666-138.752-11.946667-232.576 84.053333-245.76 296.704a165.632 165.632 0 0 1 83.712-22.528c91.093333 0 164.906667 72.96 164.906667 162.944 0 90.026667-73.813333 162.944-164.906667 162.944-82.773333 0-151.381333-60.330667-163.114666-138.965333z',
|
||||
fill: 'currentColor',
|
||||
}),
|
||||
],
|
||||
),
|
||||
])
|
||||
},
|
||||
},
|
||||
'app-quote': {
|
||||
iconReader: () => {
|
||||
return h('i', [
|
||||
h(
|
||||
'svg',
|
||||
{
|
||||
style: { height: '100%', width: '100%' },
|
||||
viewBox: '0 0 1024 1024',
|
||||
version: '1.1',
|
||||
xmlns: 'http://www.w3.org/2000/svg'
|
||||
},
|
||||
[
|
||||
h('path', {
|
||||
d: 'M800.768 477.184c-14.336 0-30.72 2.048-45.056 4.096 18.432-51.2 77.824-188.416 237.568-315.392 36.864-28.672-20.48-86.016-59.392-57.344-155.648 116.736-356.352 317.44-356.352 573.44v20.48c0 122.88 100.352 223.232 223.232 223.232S1024 825.344 1024 702.464c0-124.928-100.352-225.28-223.232-225.28zM223.232 477.184c-14.336 0-30.72 2.048-45.056 4.096 18.432-51.2 77.824-188.416 237.568-315.392 36.864-28.672-20.48-86.016-59.392-57.344C200.704 225.28 0 425.984 0 681.984v20.48c0 122.88 100.352 223.232 223.232 223.232s223.232-100.352 223.232-223.232c0-124.928-100.352-225.28-223.232-225.28z',
|
||||
fill: 'currentColor'
|
||||
})
|
||||
]
|
||||
)
|
||||
])
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
import { h } from 'vue'
|
||||
export default {
|
||||
'app-reference-outlined': {
|
||||
iconReader: () => {
|
||||
return h('i', [
|
||||
h(
|
||||
'svg',
|
||||
{
|
||||
style: { height: '100%', width: '100%' },
|
||||
viewBox: '0 0 1024 1024',
|
||||
version: '1.1',
|
||||
xmlns: 'http://www.w3.org/2000/svg',
|
||||
},
|
||||
[
|
||||
h('path', {
|
||||
d: 'M121.216 714.368c-7.082667-17.493333-7.466667-83.413333-7.424-104.32 0.341333-142.72 34.048-256.426667 88.32-330.112C262.4 198.229333 351.701333 161.024 460.8 172.8c7.893333 0.853333 11.946667 7.338667 10.581333 16.981333l-7.381333 51.285334c-1.749333 12.202667-9.813333 12.885333-17.621333 12.202666-138.709333-11.946667-232.576 84.053333-245.76 296.704a165.632 165.632 0 0 1 83.754666-22.528c91.050667 0 164.906667 72.96 164.906667 162.944C449.28 780.373333 375.466667 853.333333 284.373333 853.333333c-82.858667 0-151.424-60.330667-163.157333-138.965333z m438.570667 0c-7.082667-17.493333-7.509333-83.413333-7.466667-104.32 0.426667-142.72 34.090667-256.426667 88.405333-330.112 60.202667-81.706667 149.504-118.912 258.645334-107.136 7.893333 0.853333 11.946667 7.338667 10.581333 16.981333l-7.381333 51.285334c-1.749333 12.202667-9.813333 12.885333-17.621334 12.202666-138.752-11.946667-232.576 84.053333-245.76 296.704a165.632 165.632 0 0 1 83.712-22.528c91.093333 0 164.906667 72.96 164.906667 162.944 0 90.026667-73.813333 162.944-164.906667 162.944-82.773333 0-151.381333-60.330667-163.114666-138.965333z',
|
||||
fill: 'currentColor',
|
||||
}),
|
||||
],
|
||||
),
|
||||
])
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -43,6 +43,9 @@ export default {
|
|||
whitelistLabel: 'Allowed Domains',
|
||||
whitelistPlaceholder:
|
||||
'Enter allowed third-party domains, one per line. For example:\nhttp://127.0.0.1:5678\nhttps://dataease.io',
|
||||
loginMethod: 'Login Method',
|
||||
loginMethodRequired: 'Please select login method',
|
||||
toSettingChatUser: 'Go to configure chat user',
|
||||
},
|
||||
SettingAPIKeyDialog: {
|
||||
allowCrossDomainLabel: 'Allow Cross-Domain Access',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default {
|
|||
msgConfirm1: '是否重新生成公开访问链接?',
|
||||
msgConfirm2:
|
||||
'重新生成公开访问链接会影响嵌入第三方脚本变更,需要将新脚本重新嵌入第三方,请谨慎操作!',
|
||||
refreshSuccess: '刷新成功'
|
||||
refreshSuccess: '刷新成功',
|
||||
},
|
||||
|
||||
APIKeyDialog: {
|
||||
|
|
@ -25,13 +25,13 @@ export default {
|
|||
msgConfirm1: '是否删除API Key',
|
||||
msgConfirm2: '删除API Key后将无法恢复,请确认是否删除?',
|
||||
enabledSuccess: '已启用',
|
||||
disabledSuccess: '已禁用'
|
||||
disabledSuccess: '已禁用',
|
||||
},
|
||||
EmbedDialog: {
|
||||
fullscreenModeTitle: '全屏模式',
|
||||
copyInstructions: '复制以下代码进行嵌入',
|
||||
floatingModeTitle: '浮窗模式',
|
||||
mobileModeTitle: '移动端模式'
|
||||
mobileModeTitle: '移动端模式',
|
||||
},
|
||||
LimitDialog: {
|
||||
showSourceLabel: '显示知识来源',
|
||||
|
|
@ -41,13 +41,16 @@ export default {
|
|||
authenticationValue: '密码验证',
|
||||
whitelistLabel: '白名单',
|
||||
whitelistPlaceholder:
|
||||
'请输入允许嵌入第三方的源地址,一行一个,如:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
|
||||
'请输入允许嵌入第三方的源地址,一行一个,如:\nhttp://127.0.0.1:5678\nhttps://dataease.io',
|
||||
loginMethod: '登录方式',
|
||||
loginMethodRequired: '请选择登录方式',
|
||||
toSettingChatUser: '去配置对话用户',
|
||||
},
|
||||
SettingAPIKeyDialog: {
|
||||
dialogTitle: '设置',
|
||||
allowCrossDomainLabel: '允许跨域地址',
|
||||
crossDomainPlaceholder:
|
||||
'请输入允许的跨域地址,开启后不输入跨域地址则不限制。\n跨域地址一行一个,如:\nhttp://127.0.0.1:5678 \nhttps://dataease.io'
|
||||
'请输入允许的跨域地址,开启后不输入跨域地址则不限制。\n跨域地址一行一个,如:\nhttp://127.0.0.1:5678 \nhttps://dataease.io',
|
||||
},
|
||||
SettingDisplayDialog: {
|
||||
dialogTitle: '显示设置',
|
||||
|
|
@ -69,7 +72,7 @@ export default {
|
|||
left: '左',
|
||||
right: '右',
|
||||
bottom: '下',
|
||||
top: '上'
|
||||
top: '上',
|
||||
},
|
||||
draggablePosition: '可拖拽位置',
|
||||
showHistory: '显示历史记录',
|
||||
|
|
@ -78,7 +81,7 @@ export default {
|
|||
disclaimerValue: '「以上内容均由 AI 生成,仅供参考和借鉴」',
|
||||
chatBackground: '聊天背景',
|
||||
chatBackgroundMessage: '支持 JPG、PNG、GIF,大小不超过 10 MB',
|
||||
}
|
||||
},
|
||||
},
|
||||
monitor: {
|
||||
monitoringStatistics: '监控统计',
|
||||
|
|
@ -98,7 +101,7 @@ export default {
|
|||
tokensTotal: 'Tokens 总数',
|
||||
userSatisfaction: '用户满意度',
|
||||
approval: '赞同',
|
||||
disapproval: '反对'
|
||||
}
|
||||
}
|
||||
disapproval: '反对',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ export default {
|
|||
whitelistLabel: '白名單',
|
||||
whitelistPlaceholder:
|
||||
'請輸入允許嵌入第三方的來源位址,一行一個,如:\nhttp://127.0.0.1:5678\nhttps://dataease.io',
|
||||
loginMethod: '登陸方式',
|
||||
loginMethodRequired: '請選擇登陸方式',
|
||||
toSettingChatUser: '去配置對話用戶',
|
||||
},
|
||||
SettingAPIKeyDialog: {
|
||||
dialogTitle: '設定',
|
||||
|
|
|
|||
|
|
@ -86,16 +86,17 @@
|
|||
<p class="mb-16 lighter">
|
||||
{{ $t('views.system.authentication.title') }}
|
||||
<el-button type="primary" link @click="router.push({ path: '' })">
|
||||
{{ '去配置对话用户' }}
|
||||
{{ $t('views.applicationOverview.appInfo.LimitDialog.toSettingChatUser') }}
|
||||
</el-button>
|
||||
</p>
|
||||
</el-radio>
|
||||
<el-form-item
|
||||
label="登录方式"
|
||||
v-if="form.authentication_value.type === 'login'"
|
||||
:label="$t('views.applicationOverview.appInfo.LimitDialog.loginMethod')"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
message: $t('请选择登录方式'),
|
||||
message: $t('views.applicationOverview.appInfo.LimitDialog.loginMethodRequired'),
|
||||
trigger: 'change',
|
||||
},
|
||||
]"
|
||||
|
|
|
|||
|
|
@ -90,19 +90,19 @@
|
|||
</div>
|
||||
</div>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-upload
|
||||
class="import-button"
|
||||
ref="elUploadRef"
|
||||
:file-list="[]"
|
||||
action="#"
|
||||
multiple
|
||||
:auto-upload="false"
|
||||
:show-file-list="false"
|
||||
:limit="1"
|
||||
:on-change="(file: any, fileList: any) => importApplication(file)"
|
||||
>
|
||||
<div class="flex align-center">
|
||||
<el-upload
|
||||
class="import-button"
|
||||
ref="elUploadRef"
|
||||
:file-list="[]"
|
||||
action="#"
|
||||
multiple
|
||||
:auto-upload="false"
|
||||
:show-file-list="false"
|
||||
:limit="1"
|
||||
:on-change="(file: any, fileList: any) => importApplication(file)"
|
||||
>
|
||||
<el-dropdown-item class="w-full">
|
||||
<div class="flex align-center w-full">
|
||||
<el-avatar shape="square" class="mt-4" :size="36" style="background: none">
|
||||
<img src="@/assets/icon_import.svg" alt="" />
|
||||
</el-avatar>
|
||||
|
|
@ -110,8 +110,8 @@
|
|||
<div class="lighter">{{ $t('common.importCreate') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-upload>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-item>
|
||||
</el-upload>
|
||||
<el-dropdown-item @click="openCreateFolder" divided>
|
||||
<div class="flex align-center">
|
||||
<AppIcon iconName="app-folder" style="font-size: 32px"></AppIcon>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
:title="$t('views.knowledge.knowledgeType.createGeneralKnowledge')"
|
||||
:title="$t('views.knowledge.knowledgeType.createWebKnowledge')"
|
||||
v-model="dialogVisible"
|
||||
width="720"
|
||||
append-to-body
|
||||
|
|
|
|||
|
|
@ -36,12 +36,12 @@ export default defineConfig((conf: any) => {
|
|||
const ENV = loadEnv(mode, envDir)
|
||||
const proxyConf: Record<string, string | ProxyOptions> = {}
|
||||
proxyConf['/admin/api'] = {
|
||||
// target: 'http://47.92.195.88:8080/',
|
||||
// target: 'http://47.92.102.103:8080/',
|
||||
target: 'http://127.0.0.1:8080',
|
||||
changeOrigin: true,
|
||||
}
|
||||
proxyConf['/chat/api'] = {
|
||||
// target: 'http://47.92.195.88:8080/',
|
||||
// target: 'http://47.92.102.103:8080/',
|
||||
target: 'http://127.0.0.1:8080',
|
||||
changeOrigin: true,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue