Skip to content

Commit

Permalink
Feat/add community link to dropdown (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Dec 28, 2023
1 parent 972cf3c commit 08abbb8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 9 additions & 0 deletions web/app/components/header/account-dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
Expand Down
1 change: 1 addition & 0 deletions web/i18n/lang/common.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const translation = {
createWorkspace: 'Create Workspace',
helpCenter: 'Help',
roadmapAndFeedback: 'Roadmap & Feedback',
community: 'Community',
about: 'About',
logout: 'Log out',
},
Expand Down
1 change: 1 addition & 0 deletions web/i18n/lang/common.zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const translation = {
createWorkspace: '创建工作空间',
helpCenter: '帮助文档',
roadmapAndFeedback: '产品路线图 & 用户反馈',
community: '社区',
about: '关于',
logout: '登出',
},
Expand Down

0 comments on commit 08abbb8

Please sign in to comment.