支持自定义所有权信息(如果存在对应版权信息的话)

pull/19211/head
JJ-Choi1999 1 year ago
parent ecb11e88f7
commit 7ddf7af0f7

@ -2,6 +2,7 @@ import React from 'react'
import Header from '../signin/_header' import Header from '../signin/_header'
import InstallForm from './installForm' import InstallForm from './installForm'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
import { POSSESSION_TEXT } from '@/config'
const Install = () => { const Install = () => {
return ( return (
@ -10,7 +11,7 @@ const Install = () => {
<Header /> <Header />
<InstallForm /> <InstallForm />
<div className='px-8 py-6 text-sm font-normal text-text-tertiary'> <div className='px-8 py-6 text-sm font-normal text-text-tertiary'>
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved. { POSSESSION_TEXT || `© ${new Date().getFullYear()} LangGenius, Inc. All rights reserved.` }
</div> </div>
</div> </div>
</div> </div>

@ -1,6 +1,7 @@
import Header from './_header' import Header from './_header'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
import { POSSESSION_TEXT } from '@/config'
export default async function SignInLayout({ children }: any) { export default async function SignInLayout({ children }: any) {
return <> return <>
@ -13,7 +14,7 @@ export default async function SignInLayout({ children }: any) {
</div> </div>
</div> </div>
<div className='system-xs-regular px-8 py-6 text-text-tertiary'> <div className='system-xs-regular px-8 py-6 text-text-tertiary'>
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved. { POSSESSION_TEXT || `© ${new Date().getFullYear()} LangGenius, Inc. All rights reserved.` }
</div> </div>
</div> </div>
</div> </div>

@ -315,3 +315,5 @@ export const ENABLE_WEBSITE_FIRECRAWL = process.env.NEXT_PUBLIC_ENABLE_WEBSITE_F
export const ENABLE_WEBSITE_WATERCRAWL = process.env.NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL !== undefined export const ENABLE_WEBSITE_WATERCRAWL = process.env.NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL !== undefined
? process.env.NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL === 'true' ? process.env.NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL === 'true'
: globalThis.document?.body?.getAttribute('data-public-enable-website-watercrawl') === 'true' || true : globalThis.document?.body?.getAttribute('data-public-enable-website-watercrawl') === 'true' || true
export const POSSESSION_TEXT = `© ${new Date().getFullYear()} Custom Subject, Inc. All rights reserved.`

Loading…
Cancel
Save