Skip to content

Commit 418ad4d

Browse files
committed
Merge branch 'main' of https://github.com/dataease/SQLBot
2 parents 628fc63 + 0119105 commit 418ad4d

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

backend/apps/system/schemas/system_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class AssistantUiSchema(BaseCreatorDTO):
175175
x_type: Optional[str] = 'right'
176176
x_val: Optional[int] = 0
177177
y_type: Optional[str] = 'bottom'
178-
y_val: Optional[str] = 33
178+
y_val: Optional[int] = 33
179179
name: Optional[str] = None
180180
welcome: Optional[str] = None
181181
welcome_desc: Optional[str] = None

backend/common/core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def all_cors_origins(self) -> list[str]:
6565
SQL_DEBUG: bool = False
6666

6767
UPLOAD_DIR: str = "/opt/sqlbot/data/file"
68+
SQLBOT_KEY_EXPIRED: int = 100 # License key expiration timestamp, 0 means no expiration
6869

6970
@computed_field # type: ignore[prop-decorator]
7071
@property

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"pyyaml (>=6.0.2,<7.0.0)",
3737
"fastapi-mcp (>=0.3.4,<0.4.0)",
3838
"tabulate>=0.9.0",
39-
"sqlbot-xpack==0.0.3.16",
39+
"sqlbot-xpack>=0.0.3.19,<1.0.0",
4040
"fastapi-cache2>=0.2.2",
4141
"sqlparse>=0.5.3",
4242
"redis>=6.2.0",

frontend/src/components/layout/Menu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const routerList = computed(() => {
4444
}
4545
const list = router.getRoutes().filter((route) => {
4646
return (
47+
!route.path.includes('embeddedPage') &&
4748
!route.path.includes('assistant') &&
4849
!route.path.includes('embeddedPage') &&
4950
!route.path.includes('canvas') &&

frontend/src/views/system/embedded/SetUi.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { cloneDeep } from 'lodash-es'
1010
1111
const appearanceStore = useAppearanceStoreWithOut()
1212
const { t } = useI18n()
13+
const currentId = ref()
1314
interface SqlBotForm {
1415
name: string
1516
theme: string
@@ -131,7 +132,7 @@ const buildParam = () => {
131132
formData.append('files', newfile)
132133
})
133134
}
134-
formData.append('data', JSON.stringify(unref(sqlBotForm)))
135+
formData.append('data', JSON.stringify({ ...unref(sqlBotForm), id: currentId.value }))
135136
return formData
136137
}
137138
@@ -204,6 +205,7 @@ const open = (row: any) => {
204205
console.log(JSON.parse(row.configuration))
205206
// rawData = JSON.parse(row.configuration)
206207
// init()
208+
currentId.value = row.id
207209
dialogVisible.value = true
208210
nextTick(() => {
209211
setPageCustomColor('#1CBA90')

0 commit comments

Comments
 (0)