fix(web): update FORGET_MEMORY type
This commit is contained in:
@@ -1221,7 +1221,7 @@ export const en = {
|
|||||||
IMPLICIT_MEMORY: 'Implicit Memory',
|
IMPLICIT_MEMORY: 'Implicit Memory',
|
||||||
EMOTIONAL_MEMORY: 'Emotional Memory',
|
EMOTIONAL_MEMORY: 'Emotional Memory',
|
||||||
EPISODIC_MEMORY: 'Episodic Memory',
|
EPISODIC_MEMORY: 'Episodic Memory',
|
||||||
FORGETTING_MANAGEMENT: 'Forgetting Management',
|
FORGET_MEMORY: 'Forget Memory',
|
||||||
|
|
||||||
endUserProfile: 'Core Profile',
|
endUserProfile: 'Core Profile',
|
||||||
editEndUserProfile: 'Edit',
|
editEndUserProfile: 'Edit',
|
||||||
|
|||||||
@@ -1299,8 +1299,8 @@ export const zh = {
|
|||||||
IMPLICIT_MEMORY: '隐性记忆',
|
IMPLICIT_MEMORY: '隐性记忆',
|
||||||
EMOTIONAL_MEMORY: '情绪记忆',
|
EMOTIONAL_MEMORY: '情绪记忆',
|
||||||
EPISODIC_MEMORY: '情景记忆',
|
EPISODIC_MEMORY: '情景记忆',
|
||||||
FORGETTING_MANAGEMENT: '遗忘',
|
FORGET_MEMORY: '遗忘记忆',
|
||||||
|
|
||||||
endUserProfile: '核心档案',
|
endUserProfile: '核心档案',
|
||||||
editEndUserProfile: '编辑',
|
editEndUserProfile: '编辑',
|
||||||
other_name: '姓名',
|
other_name: '姓名',
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const typeList = [
|
|||||||
{ key: 'EXPLICIT_MEMORY' }
|
{ key: 'EXPLICIT_MEMORY' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ key: 'FORGETTING_MANAGEMENT', bg: 5 },
|
{ key: 'FORGET_MEMORY', bg: 5 },
|
||||||
]
|
]
|
||||||
|
|
||||||
const NodeStatistics: FC = () => {
|
const NodeStatistics: FC = () => {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const Detail: FC = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const items = useMemo(() => {
|
const items = useMemo(() => {
|
||||||
return ['PERCEPTUAL_MEMORY', 'WORKING_MEMORY', 'EMOTIONAL_MEMORY', 'SHORT_TERM_MEMORY', 'IMPLICIT_MEMORY', 'EPISODIC_MEMORY', 'EXPLICIT_MEMORY', 'FORGETTING_MANAGEMENT']
|
return ['PERCEPTUAL_MEMORY', 'WORKING_MEMORY', 'EMOTIONAL_MEMORY', 'SHORT_TERM_MEMORY', 'IMPLICIT_MEMORY', 'EPISODIC_MEMORY', 'EXPLICIT_MEMORY', 'FORGET_MEMORY']
|
||||||
.map(key => ({ key, label: t(`userMemory.${key}`) }))
|
.map(key => ({ key, label: t(`userMemory.${key}`) }))
|
||||||
}, [t])
|
}, [t])
|
||||||
const onClick = ({ key }: { key: string }) => {
|
const onClick = ({ key }: { key: string }) => {
|
||||||
@@ -67,7 +67,7 @@ const Detail: FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
}
|
}
|
||||||
extra={type === 'FORGETTING_MANAGEMENT' &&
|
extra={type === 'FORGET_MEMORY' &&
|
||||||
<Button type="primary" ghost className="rb:group rb:h-6! rb:px-2!" onClick={handleRefresh}>
|
<Button type="primary" ghost className="rb:group rb:h-6! rb:px-2!" onClick={handleRefresh}>
|
||||||
<img src={refreshIcon} className="rb:w-4 rb:h-4" />
|
<img src={refreshIcon} className="rb:w-4 rb:h-4" />
|
||||||
{t('common.refresh')}
|
{t('common.refresh')}
|
||||||
@@ -75,7 +75,7 @@ const Detail: FC = () => {
|
|||||||
/>
|
/>
|
||||||
<div className="rb:h-[calc(100vh-64px)] rb:overflow-y-auto rb:py-3 rb:px-4">
|
<div className="rb:h-[calc(100vh-64px)] rb:overflow-y-auto rb:py-3 rb:px-4">
|
||||||
{type === 'EMOTIONAL_MEMORY' && <StatementDetail />}
|
{type === 'EMOTIONAL_MEMORY' && <StatementDetail />}
|
||||||
{type === 'FORGETTING_MANAGEMENT' && <ForgetDetail ref={forgetDetailRef} />}
|
{type === 'FORGET_MEMORY' && <ForgetDetail ref={forgetDetailRef} />}
|
||||||
{type === 'IMPLICIT_MEMORY' && <ImplicitDetail />}
|
{type === 'IMPLICIT_MEMORY' && <ImplicitDetail />}
|
||||||
{type === 'SHORT_TERM_MEMORY' && <ShortTermDetail />}
|
{type === 'SHORT_TERM_MEMORY' && <ShortTermDetail />}
|
||||||
{type === 'PERCEPTUAL_MEMORY' && <PerceptualDetail />}
|
{type === 'PERCEPTUAL_MEMORY' && <PerceptualDetail />}
|
||||||
|
|||||||
Reference in New Issue
Block a user