Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add police filing #72

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion projects/fastgpt/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ NEXT_PUBLIC_BAIDU_TONGJI=
NEXT_PUBLIC_GOOGLE_ID=

NEXT_PUBLIC_HOME_URL=
NEXT_PUBLIC_USER_URL=
NEXT_PUBLIC_USER_URL=

NEXT_PUBLIC_FILING_ADDRESS=
NEXT_PUBLIC_POLICE_FILING=
26 changes: 21 additions & 5 deletions projects/fastgpt/components/home/CTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,28 @@ const CTA = ({ locale, CTALocale, stars }: { locale: any; CTALocale: any; stars:
})}
</div>
<div className='hidden xs:block'>|</div>
<div>
<div className='flex items-center gap-2'>
<span>{`©${currentYear}`}&nbsp;</span>
<Link href={authors[0].twitter || authors[0].url} target="_blank">
{authors[0].name}
</Link>
<span>&nbsp;All rights reserved.</span>
<span>
<Link href={authors[0].twitter || authors[0].url} target="_blank">
{authors[0].name}
</Link>
&nbsp;All rights reserved.
</span>
{process.env.NEXT_PUBLIC_POLICE_FILING && (
<span className='flex items-center gap-2'>
<Image
alt={"Police Filing"}
src="https://beian.mps.gov.cn/web/assets/logo01.6189a29f.png"
width={14}
height={14}
className='ml-2'
/>
<Link href={'https://beian.mps.gov.cn/'}>
{process.env.NEXT_PUBLIC_POLICE_FILING}
</Link>
</span>
)}
{process.env.NEXT_PUBLIC_FILING_ADDRESS && (
<Link href={'https://beian.miit.gov.cn/'}>
{process.env.NEXT_PUBLIC_FILING_ADDRESS}
Expand Down