diff --git a/.gitignore b/.gitignore index cb8e9674..07699e34 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ docs/ venv/ backend/venv/ env/ -.env +# .env .venv build/ develop-eggs/ diff --git a/backend/.env b/backend/.env new file mode 100644 index 00000000..80f12a39 --- /dev/null +++ b/backend/.env @@ -0,0 +1,2 @@ +INTEGRATION_API_BASE=http://192.168.100.230:8891 +INTEGRATION_API_KEY=I76mSQZQEPYU6TubMhjh-xLsCgWC0gSIg5MncJFHFCvqvVlg-gZ_BvwO_UEL2nh diff --git a/backend/app/config.py b/backend/app/config.py index 3132f780..a00b2548 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -53,7 +53,8 @@ class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = os.getenv( 'DATABASE_URL', - 'postgresql://postgres:123456@8.152.207.171:5432/hxops_db', + # 'postgresql://postgres:123456@8.152.207.171:5432/hxops_db', + 'postgresql://postgres:difyai123456@localhost:5432/hxops_db', ) @@ -61,7 +62,7 @@ class ProductionConfig(Config): DEBUG = False SQLALCHEMY_DATABASE_URI = os.getenv( 'DATABASE_URL', - 'postgresql://postgres:123456@8.152.207.171:5432/hxops_prod', + 'postgresql://postgres:difyai123456@localhost:5432/hxops_prod', ) diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index 3be54b51..48b3e074 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -86,10 +86,6 @@ const messages = { title: 'AI Workspace', brandTitle: 'Hexin AI Workspace', languageLabel: 'Language', - languageOptionEn: 'English', - languageOptionZhCN: 'Chinese (Simplified)', - languageOptionZhTW: 'Chinese (Traditional)', - languageOptionTh: 'Thai', userTitle: '{username}\'s AI Workspace', subtitle: 'Choose an agent or click a quick question to start', search: 'Search agents...', @@ -789,10 +785,6 @@ const messages = { title: 'AI 工作台', brandTitle: '和信AI工作台', languageLabel: '语言', - languageOptionEn: '英文', - languageOptionZhCN: '简体中文', - languageOptionZhTW: '繁體中文', - languageOptionTh: '泰语', userTitle: '{username} 的 AI 工作台', subtitle: '选择一个助手,或点击常用问题快速开始', search: '搜索应用...', @@ -1471,10 +1463,6 @@ const messages = { title: 'AI 工作台', brandTitle: '和信AI工作台', languageLabel: '語言', - languageOptionEn: '英文', - languageOptionZhCN: '簡體中文', - languageOptionZhTW: '繁體中文', - languageOptionTh: '泰語', userTitle: '{username} 的 AI 工作台', subtitle: '選擇一個助手,或點擊常用問題快速開始', search: '搜索應用...', @@ -2153,10 +2141,6 @@ const messages = { title: 'พื้นที่ทำงาน AI', brandTitle: 'Hexin AI Workspace', languageLabel: 'ภาษา', - languageOptionEn: 'อังกฤษ', - languageOptionZhCN: 'จีน (ตัวย่อ)', - languageOptionZhTW: 'จีน (ตัวเต็ม)', - languageOptionTh: 'ไทย', userTitle: 'พื้นที่ทำงาน AI ของ {username}', subtitle: 'เลือกผู้ช่วยหรือคลิกคำถามด่วนเพื่อเริ่ม', search: 'ค้นหาตัวแทน...', diff --git a/frontend/src/views/WorkspaceView.vue b/frontend/src/views/WorkspaceView.vue index 26c43758..95cad0c6 100644 --- a/frontend/src/views/WorkspaceView.vue +++ b/frontend/src/views/WorkspaceView.vue @@ -802,10 +802,10 @@ onBeforeUnmount(() => {