2024-11-28 11:02:25 +08:00
|
|
|
'use client'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
2024-12-13 17:29:09 +08:00
|
|
|
import { RiDiscordFill, RiGithubFill } from '@remixicon/react'
|
|
|
|
import Link from 'next/link'
|
2023-05-15 08:51:32 +08:00
|
|
|
import style from '../list.module.css'
|
|
|
|
import Apps from './Apps'
|
2025-04-01 13:58:10 +08:00
|
|
|
import { useEducationInit } from '@/app/education-apply/hooks'
|
2025-05-20 12:07:50 +08:00
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2024-11-28 11:02:25 +08:00
|
|
|
const AppList = () => {
|
|
|
|
const { t } = useTranslation()
|
2025-04-01 13:58:10 +08:00
|
|
|
useEducationInit()
|
2025-05-20 12:07:50 +08:00
|
|
|
const { systemFeatures } = useGlobalPublicStore()
|
2023-05-15 08:51:32 +08:00
|
|
|
return (
|
2025-03-21 17:41:03 +08:00
|
|
|
<div className='relative flex h-0 shrink-0 grow flex-col overflow-y-auto bg-background-body'>
|
2023-05-15 08:51:32 +08:00
|
|
|
<Apps />
|
2025-05-20 12:07:50 +08:00
|
|
|
{!systemFeatures.branding.enabled && <footer className='shrink-0 grow-0 px-12 py-6'>
|
2025-03-21 17:41:03 +08:00
|
|
|
<h3 className='text-gradient text-xl font-semibold leading-tight'>{t('app.join')}</h3>
|
|
|
|
<p className='system-sm-regular mt-1 text-text-tertiary'>{t('app.communityIntro')}</p>
|
|
|
|
<div className='mt-3 flex items-center gap-2'>
|
2024-12-13 17:29:09 +08:00
|
|
|
<Link className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://github.com/langgenius/dify'>
|
2025-03-21 17:41:03 +08:00
|
|
|
<RiGithubFill className='h-5 w-5 text-text-tertiary' />
|
2024-12-13 17:29:09 +08:00
|
|
|
</Link>
|
|
|
|
<Link className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://discord.gg/FngNHpbcY7'>
|
2025-03-21 17:41:03 +08:00
|
|
|
<RiDiscordFill className='h-5 w-5 text-text-tertiary' />
|
2024-12-13 17:29:09 +08:00
|
|
|
</Link>
|
2023-05-15 08:51:32 +08:00
|
|
|
</div>
|
2024-11-28 11:02:25 +08:00
|
|
|
</footer>}
|
2023-05-15 08:51:32 +08:00
|
|
|
</div >
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AppList
|