File tree Expand file tree Collapse file tree 5 files changed +7
-3
lines changed
Expand file tree Collapse file tree 5 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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' ) &&
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { cloneDeep } from 'lodash-es'
1010
1111const appearanceStore = useAppearanceStoreWithOut ()
1212const { t } = useI18n ()
13+ const currentId = ref ()
1314interface 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' )
You can’t perform that action at this time.
0 commit comments