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
cb8997e2
Commit
cb8997e2
authored
Nov 21, 2024
by
shirlyn.guo
👌🏻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 记忆功能样式优化
parent
12f0a853
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
21 deletions
+20
-21
agent-memory-setting.vue
.../personal-app-setting/components/agent-memory-setting.vue
+12
-14
app-preview.vue
...nal-space/personal-app-setting/components/app-preview.vue
+3
-3
memory-preview-modal.vue
.../personal-app-setting/components/memory-preview-modal.vue
+1
-1
memory-variable-modal.vue
...personal-app-setting/components/memory-variable-modal.vue
+4
-3
No files found.
src/views/personal-space/personal-app-setting/components/agent-memory-setting.vue
View file @
cb8997e2
...
@@ -144,7 +144,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
...
@@ -144,7 +144,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
</
template
>
</
template
>
{{ memoryVariableItem.key }}
{{ memoryVariableItem.key }}
</n-popover>
</n-popover>
<div
v-else
class=
"max-w-[105px] truncate text-[#151b26]"
>
{{ memoryVariableItem.key }}
</div>
<div
v-else
class=
"max-w-[105px] truncate
px-[3px]
text-[#151b26]"
>
{{ memoryVariableItem.key }}
</div>
<n-popover
placement=
"bottom"
trigger=
"hover"
:show-arrow=
"false"
class=
"p-[4px]!"
>
<n-popover
placement=
"bottom"
trigger=
"hover"
:show-arrow=
"false"
class=
"p-[4px]!"
>
<
template
#
trigger
>
<
template
#
trigger
>
...
@@ -152,7 +152,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
...
@@ -152,7 +152,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
</
template
>
</
template
>
<div
class=
"text-[12px]"
>
<div
class=
"text-[12px]"
>
<div
<div
class=
"flex h-[30px]
w-[90px]
cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
class=
"flex h-[30px] cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
@
click=
"handleShowMemoryVariableModal"
@
click=
"handleShowMemoryVariableModal"
>
>
<Edit
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/><span
class=
"ml-[4px]"
>
<Edit
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/><span
class=
"ml-[4px]"
>
...
@@ -164,7 +164,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
...
@@ -164,7 +164,7 @@ function handleChangeMemoryFragmentState(value: boolean) {
</span>
</span>
</div>
</div>
<div
<div
class=
"flex h-[30px]
w-[90px]
cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
class=
"flex h-[30px] cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
@
click=
"handleCopyMemoryVariableName(memoryVariableItem)"
@
click=
"handleCopyMemoryVariableName(memoryVariableItem)"
>
>
<Copy
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/>
<Copy
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/>
...
@@ -176,9 +176,8 @@ function handleChangeMemoryFragmentState(value: boolean) {
...
@@ -176,9 +176,8 @@ function handleChangeMemoryFragmentState(value: boolean) {
}}
}}
</span>
</span>
</div>
</div>
<n-space>
<div
<div
class=
"flex h-[30px] w-[90px]
cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
class=
"flex h-[30px] w-full
cursor-pointer items-center justify-start px-[8px] py-[5px] hover:rounded-[4px] hover:bg-[#f2f5f9]"
@
click=
"handleDeleteMemoryVariableItem(memoryVariableItem)"
@
click=
"handleDeleteMemoryVariableItem(memoryVariableItem)"
>
>
<ReduceOne
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/>
<ReduceOne
theme=
"outline"
size=
"16"
fill=
"#333"
:stroke-width=
"3"
/>
...
@@ -186,7 +185,6 @@ function handleChangeMemoryFragmentState(value: boolean) {
...
@@ -186,7 +185,6 @@ function handleChangeMemoryFragmentState(value: boolean) {
{{ t('common_module.delete') }}
{{ t('common_module.delete') }}
</span>
</span>
</div>
</div>
</n-space>
</div>
</div>
</n-popover>
</n-popover>
</div>
</div>
...
...
src/views/personal-space/personal-app-setting/components/app-preview.vue
View file @
cb8997e2
...
@@ -92,7 +92,7 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) {
...
@@ -92,7 +92,7 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) {
<
template
>
<
template
>
<div
class=
"flex h-full min-w-[300px] flex-[2_2_0%] flex-col overflow-hidden bg-[#f2f5f9]"
>
<div
class=
"flex h-full min-w-[300px] flex-[2_2_0%] flex-col overflow-hidden bg-[#f2f5f9]"
>
<div
class=
"flex justify-between"
>
<div
class=
"flex
items-center
justify-between"
>
<div
class=
"mb-[18px] flex w-full items-center justify-between px-5 py-[18px]"
>
<div
class=
"mb-[18px] flex w-full items-center justify-between px-5 py-[18px]"
>
<p
class=
"text-base"
>
<p
class=
"text-base"
>
{{
t
(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.preview'
)
}}
{{
t
(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.preview'
)
}}
...
@@ -118,11 +118,11 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) {
...
@@ -118,11 +118,11 @@ function handleOpenMemoryPreviewModal(MemoryTabName: string) {
<n-popover
placement=
"bottom"
trigger=
"hover"
class=
"p-[4px]!"
:show-arrow=
"false"
>
<n-popover
placement=
"bottom"
trigger=
"hover"
class=
"p-[4px]!"
:show-arrow=
"false"
>
<template
#
trigger
>
<template
#
trigger
>
<div
class=
"flex items-center justify-center pl-5 text-[14px]"
>
<div
class=
"flex items-center justify-center pl-5 text-[14px]"
>
<Brain
theme=
"outline"
size=
"1
6
"
fill=
"#333"
/>
<Brain
theme=
"outline"
size=
"1
5
"
fill=
"#333"
/>
<div
class=
"mx-[4px]"
>
<div
class=
"mx-[4px]"
>
{{
t
(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.memory'
)
}}
{{
t
(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.memory'
)
}}
</div>
</div>
<Down
theme=
"outline"
size=
"1
6"
fill=
"#333"
class=
"
inline"
/>
<Down
theme=
"outline"
size=
"1
5"
fill=
"#333"
class=
"mt-[2px]
inline"
/>
</div>
</div>
</
template
>
</
template
>
<div>
<div>
...
...
src/views/personal-space/personal-app-setting/components/memory-preview-modal.vue
View file @
cb8997e2
...
@@ -248,7 +248,7 @@ function handleModalOpenAfter() {
...
@@ -248,7 +248,7 @@ function handleModalOpenAfter() {
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-show=
"longMemoryList.length === 0"
class=
"mt-[
6
0px] flex h-[250px] flex-col items-center"
>
<div
v-show=
"longMemoryList.length === 0"
class=
"mt-[
9
0px] flex h-[250px] flex-col items-center"
>
<img
src=
"@/assets/images/empty.png"
width=
"144px"
height=
"100px"
/>
<img
src=
"@/assets/images/empty.png"
width=
"144px"
height=
"100px"
/>
<div
class=
"text-[14px]"
>
{{ t('common_module.empty_data') }}
</div>
<div
class=
"text-[14px]"
>
{{ t('common_module.empty_data') }}
</div>
</div>
</div>
...
...
src/views/personal-space/personal-app-setting/components/memory-variable-modal.vue
View file @
cb8997e2
...
@@ -149,6 +149,7 @@ defineExpose({
...
@@ -149,6 +149,7 @@ defineExpose({
class=
"h-auto max-h-[720px]"
class=
"h-auto max-h-[720px]"
:mask-closable=
"false"
:mask-closable=
"false"
:auto-focus=
"false"
:auto-focus=
"false"
:on-after-leave=
"handleMemoryPreviewModalClose"
>
>
<div
class=
"flex flex-col items-center justify-center"
>
<div
class=
"flex flex-col items-center justify-center"
>
<div
class=
"max-h-[720px] w-[820px] rounded-lg bg-white p-[24px]"
>
<div
class=
"max-h-[720px] w-[820px] rounded-lg bg-white p-[24px]"
>
...
@@ -165,7 +166,7 @@ defineExpose({
...
@@ -165,7 +166,7 @@ defineExpose({
size=
"18"
size=
"18"
fill=
"#00000073"
fill=
"#00000073"
class=
"cursor-pointer"
class=
"cursor-pointer"
@
click=
"
handleMemoryPreviewModalClose()
"
@
click=
"
isShowMemoryVariableModal = false
"
/>
/>
</div>
</div>
<div
<div
...
@@ -188,7 +189,7 @@ defineExpose({
...
@@ -188,7 +189,7 @@ defineExpose({
</div>
</div>
</div>
</div>
<div>
<div>
<n-scrollbar
style=
"max-height: 4
9
0px; overflow: hidden"
>
<n-scrollbar
style=
"max-height: 4
5
0px; overflow: hidden"
>
<div
class=
"flex justify-center"
>
<div
class=
"flex justify-center"
>
<table
class=
"w-full"
>
<table
class=
"w-full"
>
<thead
class=
"sticky top-[0px] z-20 text-[#5c5f66]"
>
<thead
class=
"sticky top-[0px] z-20 text-[#5c5f66]"
>
...
@@ -381,7 +382,7 @@ defineExpose({
...
@@ -381,7 +382,7 @@ defineExpose({
<div
class=
"mt-[24px] flex justify-end"
>
<div
class=
"mt-[24px] flex justify-end"
>
<button
<button
class=
"hover:text-theme-color hover:border-theme-color !mr-[12px] box-content !h-[38px] !w-[74px] cursor-pointer rounded-[6px] border-[1px] border-solid border-[#dde3f0] px-[10px] outline-none transition-all duration-300 hover:border-[theme-color]"
class=
"hover:text-theme-color hover:border-theme-color !mr-[12px] box-content !h-[38px] !w-[74px] cursor-pointer rounded-[6px] border-[1px] border-solid border-[#dde3f0] px-[10px] outline-none transition-all duration-300 hover:border-[theme-color]"
@
click=
"
handleMemoryPreviewModalClose()
"
@
click=
"
isShowMemoryVariableModal = false
"
>
>
{{ t('common_module.cancel_btn_text') }}
{{ t('common_module.cancel_btn_text') }}
</button>
</button>
...
...
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