Merge branch 'langgenius:main' into feat/copy-node-between-workflows
commit
758c35bda0
@ -0,0 +1,6 @@
|
||||
class EndpointSetupFailedError(ValueError):
|
||||
"""
|
||||
Endpoint setup failed error
|
||||
"""
|
||||
|
||||
pass
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 790 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 722 KiB |
@ -0,0 +1,45 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import { WEB_PREFIX } from '@/config'
|
||||
import classNames from '@/utils/classnames'
|
||||
import useTheme from '@/hooks/use-theme'
|
||||
|
||||
export type LogoStyle = 'default' | 'monochromeWhite'
|
||||
|
||||
export const logoPathMap: Record<LogoStyle, string> = {
|
||||
default: '/logo/logo.svg',
|
||||
monochromeWhite: '/logo/logo-monochrome-white.svg',
|
||||
}
|
||||
|
||||
export type LogoSize = 'large' | 'medium' | 'small'
|
||||
|
||||
export const logoSizeMap: Record<LogoSize, string> = {
|
||||
large: 'w-16 h-7',
|
||||
medium: 'w-12 h-[22px]',
|
||||
small: 'w-9 h-4',
|
||||
}
|
||||
|
||||
type DifyLogoProps = {
|
||||
style?: LogoStyle
|
||||
size?: LogoSize
|
||||
className?: string
|
||||
}
|
||||
|
||||
const DifyLogo: FC<DifyLogoProps> = ({
|
||||
style = 'default',
|
||||
size = 'medium',
|
||||
className,
|
||||
}) => {
|
||||
const { theme } = useTheme()
|
||||
const themedStyle = (theme === 'dark' && style === 'default') ? 'monochromeWhite' : style
|
||||
|
||||
return (
|
||||
<img
|
||||
src={`${WEB_PREFIX}${logoPathMap[themedStyle]}`}
|
||||
className={classNames('block object-contain', logoSizeMap[size], className)}
|
||||
alt='Dify logo'
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default DifyLogo
|
||||
@ -1,22 +0,0 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import { WEB_PREFIX } from '@/config'
|
||||
import classNames from '@/utils/classnames'
|
||||
|
||||
type LogoSiteProps = {
|
||||
className?: string
|
||||
}
|
||||
|
||||
const LogoSite: FC<LogoSiteProps> = ({
|
||||
className,
|
||||
}) => {
|
||||
return (
|
||||
<img
|
||||
src={`${WEB_PREFIX}/logo/logo.png`}
|
||||
className={classNames('block w-[22.651px] h-[24.5px]', className)}
|
||||
alt='logo'
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default LogoSite
|
||||
@ -0,0 +1,47 @@
|
||||
const translation = {
|
||||
toVerifiedTip: {
|
||||
coupon: 'exklusiver 100% Gutschein',
|
||||
end: 'für den Dify Professional Plan.',
|
||||
front: 'Sie sind jetzt berechtigt, den Status „Bildung verifiziert“ zu erhalten. Bitte geben Sie unten Ihre Bildungsinformationen ein, um den Prozess abzuschließen und eine Zu erhalten.',
|
||||
},
|
||||
form: {
|
||||
schoolName: {
|
||||
placeholder: 'Geben Sie den offiziellen, unabgekürzten Namen Ihrer Schule ein.',
|
||||
title: 'Ihr Schulname',
|
||||
},
|
||||
schoolRole: {
|
||||
option: {
|
||||
teacher: 'Lehrer',
|
||||
administrator: 'Schuladministrator',
|
||||
student: 'Schüler',
|
||||
},
|
||||
title: 'Ihre Schulrolle',
|
||||
},
|
||||
terms: {
|
||||
desc: {
|
||||
and: 'und',
|
||||
privacyPolicy: 'Datenschutzrichtlinie',
|
||||
termsOfService: 'Nutzungsbedingungen',
|
||||
end: '. Durch die Einreichung:',
|
||||
front: 'Ihre Informationen und die Nutzung des Status "Bildung bestätigt" unterliegen unseren',
|
||||
},
|
||||
option: {
|
||||
inSchool: 'Ich bestätige, dass ich an der angegebenen Einrichtung eingeschrieben oder angestellt bin. Dify kann einen Nachweis über die Einschreibung/Anstellung anfordern. Wenn ich meine Berechtigung falsch darstelle, stimme ich zu, alle Gebühren zu zahlen, die aufgrund meines Bildungsstatus ursprünglich erlassen wurden.',
|
||||
age: 'Ich bestätige, dass ich mindestens 18 Jahre alt bin.',
|
||||
},
|
||||
title: 'Allgemeine Geschäftsbedingungen',
|
||||
},
|
||||
},
|
||||
toVerified: 'Bildung überprüfen lassen',
|
||||
rejectTitle: 'Ihre Dify-Ausbildungsüberprüfung wurde abgelehnt.',
|
||||
currentSigned: 'DERZEIT ANGEMELDET ALS',
|
||||
submit: 'Einreichen',
|
||||
submitError: 'Die Formularübermittlung ist fehlgeschlagen. Bitte versuchen Sie es später erneut.',
|
||||
rejectContent: 'Leider sind Sie nicht für den Status "Education Verified" berechtigt und können daher den exklusiven 100%-Gutschein für den Dify Professional Plan nicht erhalten, wenn Sie diese E-Mail-Adresse verwenden.',
|
||||
successContent: 'Wir haben einen 100% Rabattgutschein für den Dify Professional Plan auf Ihr Konto ausgestellt. Der Gutschein ist ein Jahr lang gültig, bitte nutzen Sie ihn innerhalb des Gültigkeitszeitraums.',
|
||||
learn: 'Erfahren Sie, wie Sie Ihre Ausbildung überprüfen lassen.',
|
||||
emailLabel: 'Ihre aktuelle E-Mail',
|
||||
successTitle: 'Sie haben die Dify-Ausbildung verifiziert',
|
||||
}
|
||||
|
||||
export default translation
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue