mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Merge branch 'main' of https://github.com/dataease/SQLBot
This commit is contained in:
@@ -175,7 +175,7 @@ class AssistantUiSchema(BaseCreatorDTO):
|
||||
x_type: Optional[str] = 'right'
|
||||
x_val: Optional[int] = 0
|
||||
y_type: Optional[str] = 'bottom'
|
||||
y_val: Optional[str] = 33
|
||||
y_val: Optional[int] = 33
|
||||
name: Optional[str] = None
|
||||
welcome: Optional[str] = None
|
||||
welcome_desc: Optional[str] = None
|
||||
|
||||
@@ -65,6 +65,7 @@ class Settings(BaseSettings):
|
||||
SQL_DEBUG: bool = False
|
||||
|
||||
UPLOAD_DIR: str = "/opt/sqlbot/data/file"
|
||||
SQLBOT_KEY_EXPIRED: int = 100 # License key expiration timestamp, 0 means no expiration
|
||||
|
||||
@computed_field # type: ignore[prop-decorator]
|
||||
@property
|
||||
|
||||
@@ -36,7 +36,7 @@ dependencies = [
|
||||
"pyyaml (>=6.0.2,<7.0.0)",
|
||||
"fastapi-mcp (>=0.3.4,<0.4.0)",
|
||||
"tabulate>=0.9.0",
|
||||
"sqlbot-xpack==0.0.3.16",
|
||||
"sqlbot-xpack>=0.0.3.19,<1.0.0",
|
||||
"fastapi-cache2>=0.2.2",
|
||||
"sqlparse>=0.5.3",
|
||||
"redis>=6.2.0",
|
||||
|
||||
@@ -44,6 +44,7 @@ const routerList = computed(() => {
|
||||
}
|
||||
const list = router.getRoutes().filter((route) => {
|
||||
return (
|
||||
!route.path.includes('embeddedPage') &&
|
||||
!route.path.includes('assistant') &&
|
||||
!route.path.includes('embeddedPage') &&
|
||||
!route.path.includes('canvas') &&
|
||||
|
||||
@@ -10,6 +10,7 @@ import { cloneDeep } from 'lodash-es'
|
||||
|
||||
const appearanceStore = useAppearanceStoreWithOut()
|
||||
const { t } = useI18n()
|
||||
const currentId = ref()
|
||||
interface SqlBotForm {
|
||||
name: string
|
||||
theme: string
|
||||
@@ -131,7 +132,7 @@ const buildParam = () => {
|
||||
formData.append('files', newfile)
|
||||
})
|
||||
}
|
||||
formData.append('data', JSON.stringify(unref(sqlBotForm)))
|
||||
formData.append('data', JSON.stringify({ ...unref(sqlBotForm), id: currentId.value }))
|
||||
return formData
|
||||
}
|
||||
|
||||
@@ -204,6 +205,7 @@ const open = (row: any) => {
|
||||
console.log(JSON.parse(row.configuration))
|
||||
// rawData = JSON.parse(row.configuration)
|
||||
// init()
|
||||
currentId.value = row.id
|
||||
dialogVisible.value = true
|
||||
nextTick(() => {
|
||||
setPageCustomColor('#1CBA90')
|
||||
|
||||
Reference in New Issue
Block a user