Sfoglia il codice sorgente

Feat/add community link to dropdown (#1851)

crazywoola 1 anno fa
parent
commit
08abbb8dba

+ 1 - 1
web/README.md

@@ -68,4 +68,4 @@ If your IDE is VSCode, rename `web/.vscode/settings.example.json` to `web/.vscod
 Visit https://docs.dify.ai/getting-started/readme to view the full documentation.
 
 ## Community
-The Dify community can be found on [Discord community](https://discord.com/invite/FngNHpbcY7), where you can ask questions, voice ideas, and share your projects.
+The Dify community can be found on [Discord community](https://discord.gg/5AEfbxcd9k), where you can ask questions, voice ideas, and share your projects.

+ 9 - 0
web/app/components/header/account-dropdown/index.tsx

@@ -109,6 +109,15 @@ export default function AppSelector({ isMobile }: IAppSelecotr) {
                         <ArrowUpRight className='hidden w-[14px] h-[14px] text-gray-500 group-hover:flex' />
                       </Link>
                     </Menu.Item>
+                    <Menu.Item>
+                      <Link
+                        className={classNames(itemClassName, 'group justify-between')}
+                        href='https://discord.gg/5AEfbxcd9k'
+                        target='_blank'>
+                        <div>{t('common.userProfile.community')}</div>
+                        <ArrowUpRight className='hidden w-[14px] h-[14px] text-gray-500 group-hover:flex' />
+                      </Link>
+                    </Menu.Item>
                     <Menu.Item>
                       <Link
                         className={classNames(itemClassName, 'group justify-between')}

+ 1 - 0
web/i18n/lang/common.en.ts

@@ -99,6 +99,7 @@ const translation = {
     createWorkspace: 'Create Workspace',
     helpCenter: 'Help',
     roadmapAndFeedback: 'Roadmap & Feedback',
+    community: 'Community',
     about: 'About',
     logout: 'Log out',
   },

+ 1 - 0
web/i18n/lang/common.zh.ts

@@ -99,6 +99,7 @@ const translation = {
     createWorkspace: '创建工作空间',
     helpCenter: '帮助文档',
     roadmapAndFeedback: '产品路线图 & 用户反馈',
+    community: '社区',
     about: '关于',
     logout: '登出',
   },