mirror of https://github.com/langgenius/dify.git
fix: hide copyright on forgot-password/install/reset-password page
This commit is contained in:
parent
8a709e445a
commit
4b6adffa8e
|
@ -1,10 +1,13 @@
|
||||||
|
'use client'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Header from '../signin/_header'
|
import Header from '../signin/_header'
|
||||||
import style from '../signin/page.module.css'
|
import style from '../signin/page.module.css'
|
||||||
import ActivateForm from './activateForm'
|
import ActivateForm from './activateForm'
|
||||||
import cn from '@/utils/classnames'
|
import cn from '@/utils/classnames'
|
||||||
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||||
|
|
||||||
const Activate = () => {
|
const Activate = () => {
|
||||||
|
const { systemFeatures } = useGlobalPublicStore()
|
||||||
return (
|
return (
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
style.background,
|
style.background,
|
||||||
|
@ -21,9 +24,9 @@ const Activate = () => {
|
||||||
}>
|
}>
|
||||||
<Header />
|
<Header />
|
||||||
<ActivateForm />
|
<ActivateForm />
|
||||||
<div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
{!systemFeatures.branding.enabled && <div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
||||||
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
||||||
</div>
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,11 +7,13 @@ import style from '../signin/page.module.css'
|
||||||
import ForgotPasswordForm from './ForgotPasswordForm'
|
import ForgotPasswordForm from './ForgotPasswordForm'
|
||||||
import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm'
|
import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm'
|
||||||
import useDocumentTitle from '@/hooks/use-document-title'
|
import useDocumentTitle from '@/hooks/use-document-title'
|
||||||
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||||
|
|
||||||
const ForgotPassword = () => {
|
const ForgotPassword = () => {
|
||||||
useDocumentTitle('')
|
useDocumentTitle('')
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const token = searchParams.get('token')
|
const token = searchParams.get('token')
|
||||||
|
const { systemFeatures } = useGlobalPublicStore()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames(
|
<div className={classNames(
|
||||||
|
@ -29,9 +31,9 @@ const ForgotPassword = () => {
|
||||||
}>
|
}>
|
||||||
<Header />
|
<Header />
|
||||||
{token ? <ChangePasswordForm /> : <ForgotPasswordForm />}
|
{token ? <ChangePasswordForm /> : <ForgotPasswordForm />}
|
||||||
<div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
{!systemFeatures.branding.enabled && <div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
||||||
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
||||||
</div>
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
|
'use client'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Header from '../signin/_header'
|
import Header from '../signin/_header'
|
||||||
import style from '../signin/page.module.css'
|
import style from '../signin/page.module.css'
|
||||||
import InstallForm from './installForm'
|
import InstallForm from './installForm'
|
||||||
import classNames from '@/utils/classnames'
|
import classNames from '@/utils/classnames'
|
||||||
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||||
|
|
||||||
const Install = () => {
|
const Install = () => {
|
||||||
|
const { systemFeatures } = useGlobalPublicStore()
|
||||||
return (
|
return (
|
||||||
<div className={classNames(
|
<div className={classNames(
|
||||||
style.background,
|
style.background,
|
||||||
|
@ -21,9 +24,9 @@ const Install = () => {
|
||||||
}>
|
}>
|
||||||
<Header />
|
<Header />
|
||||||
<InstallForm />
|
<InstallForm />
|
||||||
<div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
{!systemFeatures.branding.enabled && <div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
||||||
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
||||||
</div>
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
|
'use client'
|
||||||
import Header from '../signin/_header'
|
import Header from '../signin/_header'
|
||||||
import style from '../signin/page.module.css'
|
import style from '../signin/page.module.css'
|
||||||
|
|
||||||
import cn from '@/utils/classnames'
|
import cn from '@/utils/classnames'
|
||||||
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||||
|
|
||||||
export default async function SignInLayout({ children }: any) {
|
export default function SignInLayout({ children }: any) {
|
||||||
|
const { systemFeatures } = useGlobalPublicStore()
|
||||||
return <>
|
return <>
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
style.background,
|
style.background,
|
||||||
|
@ -30,9 +33,9 @@ export default async function SignInLayout({ children }: any) {
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='px-8 py-6 system-xs-regular text-text-tertiary'>
|
{!systemFeatures.branding.enabled && <div className='px-8 py-6 system-xs-regular text-text-tertiary'>
|
||||||
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
||||||
</div>
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue