From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/(commonLayout)/apps/page.tsx | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git "a/app/\050commonLayout\051/apps/page.tsx" "b/app/\050commonLayout\051/apps/page.tsx" index 4a146d9..972aabc 100644 --- "a/app/\050commonLayout\051/apps/page.tsx" +++ "b/app/\050commonLayout\051/apps/page.tsx" @@ -7,26 +7,23 @@ import Apps from './Apps' import AppContext from '@/context/app-context' import { LicenseStatus } from '@/types/feature' -import { useEducationInit } from '@/app/education-apply/hooks' const AppList = () => { const { t } = useTranslation() - useEducationInit() - const systemFeatures = useContextSelector(AppContext, v => v.systemFeatures) return ( - <div className='relative flex h-0 shrink-0 grow flex-col overflow-y-auto bg-background-body'> + <div className='relative flex flex-col overflow-y-auto bg-background-body shrink-0 h-0 grow'> <Apps /> - {systemFeatures.license.status === LicenseStatus.NONE && <footer className='shrink-0 grow-0 px-12 py-6'> - <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'> + {systemFeatures.license.status === LicenseStatus.NONE && <footer className='px-12 py-6 grow-0 shrink-0'> + <h3 className='text-xl font-semibold leading-tight text-gradient'>{t('app.join')}</h3> + <p className='mt-1 system-sm-regular text-text-tertiary'>{t('app.communityIntro')}</p> + <div className='flex items-center gap-2 mt-3'> <Link className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://github.com/langgenius/dify'> - <RiGithubFill className='h-5 w-5 text-text-tertiary' /> + <RiGithubFill className='w-5 h-5 text-text-tertiary' /> </Link> <Link className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://discord.gg/FngNHpbcY7'> - <RiDiscordFill className='h-5 w-5 text-text-tertiary' /> + <RiDiscordFill className='w-5 h-5 text-text-tertiary' /> </Link> </div> </footer>} -- Gitblit v1.8.0