Skip to content

Commit

Permalink
add police filing
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Nov 7, 2024
1 parent 0d96979 commit f4f30f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
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

0 comments on commit f4f30f6

Please sign in to comment.