Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
9e053bd9
Commit
9e053bd9
authored
Aug 22, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(数据库): 增加示例数据
parent
79f74572
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
14 deletions
+34
-14
en.yaml
src/locales/langs/en.yaml
+1
-0
zh-cn.yaml
src/locales/langs/zh-cn.yaml
+1
-0
zh-hk.yaml
src/locales/langs/zh-hk.yaml
+1
-0
associated-database-modal.vue
...ig/agent-setting/components/associated-database-modal.vue
+8
-1
columns.tsx
src/views/personal-space/personal-database/columns.tsx
+20
-12
type.d.ts
src/views/personal-space/personal-database/type.d.ts
+2
-1
locales.d.ts
types/locales.d.ts
+1
-0
No files found.
src/locales/langs/en.yaml
View file @
9e053bd9
...
...
@@ -167,6 +167,7 @@ common_module:
submit_failure
:
'
Submit
failure'
mermaid_render_error
:
'
There
is
an
error
in
the
chart
rendering.
Please
ask
again'
mermaid_rendering
:
'
The
chart
is
being
rendered...'
example
:
'
Ex.'
dialogue_module
:
continue_question_message
:
'
You
can
keep
asking
questions'
...
...
src/locales/langs/zh-cn.yaml
View file @
9e053bd9
...
...
@@ -166,6 +166,7 @@ common_module:
submit_failure
:
'
提交失败'
mermaid_render_error
:
'
图表渲染出错了,请重新提问'
mermaid_rendering
:
'
图表正在渲染中...'
example
:
'
示例'
dialogue_module
:
continue_question_message
:
'
你可以继续提问'
...
...
src/locales/langs/zh-hk.yaml
View file @
9e053bd9
...
...
@@ -166,6 +166,7 @@ common_module:
submit_failure
:
'
提交失敗'
mermaid_render_error
:
'
圖表渲染出錯了,請重新提問'
mermaid_rendering
:
'
圖表正在渲染中...'
example
:
'
示例'
dialogue_module
:
continue_question_message
:
'
你可以繼續提問'
...
...
src/views/personal-space/personal-app-setting/components/agent-config/agent-setting/components/associated-database-modal.vue
View file @
9e053bd9
...
...
@@ -179,7 +179,7 @@ function handleRemoveDatabaseId(dbId: number, databaseTitle: string) {
<
template
#
default=
"{ item }: { item: DatabaseItemInterface }"
>
<div
:key=
"item.id"
class=
"border-inactive-border-color hover:border-theme-color mb-4.5
flex h-[118px] w-full cursor-pointer items-center gap-4
rounded-[10px] border px-4 py-3.5"
class=
"border-inactive-border-color hover:border-theme-color mb-4.5
relative flex h-[118px] w-full cursor-pointer items-center gap-4 overflow-hidden
rounded-[10px] border px-4 py-3.5"
@
click=
"handleToDatabaseDetail(item.id)"
>
<div
class=
"flex flex-1 flex-col overflow-hidden"
>
...
...
@@ -264,6 +264,13 @@ function handleRemoveDatabaseId(dbId: number, databaseTitle: string) {
>
{{ t('common_module.remove') }}
</n-button>
<span
v-if=
"item.example"
class=
"bg-theme-color absolute -right-[18px] -top-[4px] z-10 rotate-45 px-[16px] pt-[6px] text-[10px] text-white"
>
{{ t('common_module.example') }}
</span>
</div>
</template>
</n-virtual-list>
...
...
src/views/personal-space/personal-database/columns.tsx
View file @
9e053bd9
...
...
@@ -60,18 +60,26 @@ export function createDatabaseColumn(handleDatabaseTableAction: (actionType: str
>
{
t
(
'common_module.data_table_module.view'
)
}
</
span
>
{
!
row
.
example
?
(
<
span
className=
'text-theme-color mr-5 cursor-pointer hover:opacity-80'
onClick=
{
()
=>
handleDatabaseTableAction
(
'edit'
,
row
.
id
)
}
>
{
t
(
'common_module.data_table_module.edit'
)
}
</
span
>
)
:
(
''
)
}
{
!
row
.
example
?
(
<
span
className=
'text-error-font-color mr-5 cursor-pointer hover:opacity-80'
onClick=
{
()
=>
handleDatabaseTableAction
(
'delete'
,
row
.
id
)
}
>
{
t
(
'common_module.data_table_module.delete'
)
}
</
span
>
)
:
(
''
)
}
</
div
>
)
},
...
...
src/views/personal-space/personal-database/type.d.ts
View file @
9e053bd9
...
...
@@ -17,6 +17,7 @@ export interface DatabaseItemInterface {
dbPassword
:
string
modifiedTime
:
Date
tableInfos
:
DatabaseTableInfoItem
[]
example
:
boolean
}
export
type
DatabaseFormInterface
=
Omit
<
DatabaseItemInterface
,
'id'
|
'modifiedTime'
|
'tableInfos'
>
export
type
DatabaseFormInterface
=
Omit
<
DatabaseItemInterface
,
'id'
|
'modifiedTime'
|
'tableInfos'
|
'example'
>
types/locales.d.ts
View file @
9e053bd9
...
...
@@ -166,6 +166,7 @@ declare namespace I18n {
submit_failure
:
string
mermaid_render_error
:
string
mermaid_rendering
:
string
example
:
string
dialogue_module
:
{
continue_question_message
:
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment