fix: frontend security risk (#2355)
This commit is contained in:
@@ -62,7 +62,7 @@ export default function AppSelector({ isMobile }: IAppSelecotr) {
|
||||
<Avatar name={userProfile.name} className='sm:mr-2 mr-0' size={32} />
|
||||
{!isMobile && <>
|
||||
{userProfile.name}
|
||||
<ChevronDown className="w-3 h-3 ml-1 text-gray-700"/>
|
||||
<ChevronDown className="w-3 h-3 ml-1 text-gray-700" />
|
||||
</>}
|
||||
</Menu.Button>
|
||||
</div>
|
||||
@@ -105,7 +105,7 @@ export default function AppSelector({ isMobile }: IAppSelecotr) {
|
||||
<Link
|
||||
className={classNames(itemClassName, 'group justify-between')}
|
||||
href='https://feedback.dify.ai/'
|
||||
target='_blank'>
|
||||
target='_blank' rel='noopener noreferrer'>
|
||||
<div>{t('common.userProfile.roadmapAndFeedback')}</div>
|
||||
<ArrowUpRight className='hidden w-[14px] h-[14px] text-gray-500 group-hover:flex' />
|
||||
</Link>
|
||||
@@ -114,7 +114,7 @@ export default function AppSelector({ isMobile }: IAppSelecotr) {
|
||||
<Link
|
||||
className={classNames(itemClassName, 'group justify-between')}
|
||||
href='https://discord.gg/5AEfbxcd9k'
|
||||
target='_blank'>
|
||||
target='_blank' rel='noopener noreferrer'>
|
||||
<div>{t('common.userProfile.community')}</div>
|
||||
<ArrowUpRight className='hidden w-[14px] h-[14px] text-gray-500 group-hover:flex' />
|
||||
</Link>
|
||||
@@ -125,7 +125,7 @@ export default function AppSelector({ isMobile }: IAppSelecotr) {
|
||||
href={
|
||||
language !== LanguagesSupportedUnderscore[1] ? 'https://docs.dify.ai/' : `https://docs.dify.ai/v/${locale.toLowerCase()}/`
|
||||
}
|
||||
target='_blank'>
|
||||
target='_blank' rel='noopener noreferrer'>
|
||||
<div>{t('common.userProfile.helpCenter')}</div>
|
||||
<ArrowUpRight className='hidden w-[14px] h-[14px] text-gray-500 group-hover:flex' />
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user