mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 01:15:56 +08:00
feat: add cookie management (#11061)
This commit is contained in:
parent
04b9a2c605
commit
eb542067af
@ -47,6 +47,12 @@ gtag('config', '${gaIdMaps[gaType]}');
|
|||||||
nonce={nonce!}
|
nonce={nonce!}
|
||||||
>
|
>
|
||||||
</Script>
|
</Script>
|
||||||
|
{/* Cookie banner */}
|
||||||
|
<Script
|
||||||
|
id="cookieyes"
|
||||||
|
src='https://cdn-cookieyes.com/client_data/2a645945fcae53f8e025a2b1/script.js'
|
||||||
|
nonce={nonce!}
|
||||||
|
></Script>
|
||||||
</>
|
</>
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -1,25 +1,10 @@
|
|||||||
import Script from 'next/script'
|
|
||||||
import Header from './_header'
|
import Header from './_header'
|
||||||
import style from './page.module.css'
|
import style from './page.module.css'
|
||||||
|
|
||||||
import cn from '@/utils/classnames'
|
import cn from '@/utils/classnames'
|
||||||
import { IS_CE_EDITION } from '@/config'
|
|
||||||
|
|
||||||
export default async function SignInLayout({ children }: any) {
|
export default async function SignInLayout({ children }: any) {
|
||||||
return <>
|
return <>
|
||||||
{!IS_CE_EDITION && (
|
|
||||||
<>
|
|
||||||
<Script strategy="beforeInteractive" async src={'https://www.googletagmanager.com/gtag/js?id=AW-11217955271'}></Script>
|
|
||||||
<Script
|
|
||||||
id="ga-monitor-register"
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: 'window.dataLayer2 = window.dataLayer2 || [];function gtag(){dataLayer2.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'AW-11217955271"\');',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
</Script>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
style.background,
|
style.background,
|
||||||
'flex w-full min-h-screen',
|
'flex w-full min-h-screen',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user