Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
3db839a5
Unverified
Commit
3db839a5
authored
Aug 30, 2023
by
crazywoola
Committed by
GitHub
Aug 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
773 change embed title welcome to use (#1053)
parent
417c1957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
massive-component.tsx
web/app/components/share/chat/welcome/massive-component.tsx
+11
-13
No files found.
web/app/components/share/chat/welcome/massive-component.tsx
View file @
3db839a5
'use client'
'use client'
import
React
,
{
FC
}
from
'react'
import
type
{
FC
}
from
'react'
import
React
from
'react'
import
cn
from
'classnames'
import
cn
from
'classnames'
import
{
useTranslation
}
from
'react-i18next'
import
{
useTranslation
}
from
'react-i18next'
import
type
{
SiteInfo
}
from
'@/models/share'
import
Button
from
'@/app/components/base/button'
import
{
import
{
PencilIcon
PencilIcon
,
}
from
'@heroicons/react/24/solid'
}
from
'@heroicons/react/24/solid'
import
s
from
'./style.module.css'
import
s
from
'./style.module.css'
import
type
{
SiteInfo
}
from
'@/models/share'
import
Button
from
'@/app/components/base/button'
export
const
AppInfo
:
FC
<
{
siteInfo
:
SiteInfo
}
>
=
({
siteInfo
})
=>
{
export
const
AppInfo
:
FC
<
{
siteInfo
:
SiteInfo
}
>
=
({
siteInfo
})
=>
{
const
{
t
}
=
useTranslation
()
return
(
return
(
<
div
>
<
div
>
<
div
className=
'flex items-center py-2 text-xl font-medium text-gray-700 rounded-md'
>
👏
{
t
(
'share.common.welcome'
)
}
{
siteInfo
.
title
}
</
div
>
<
div
className=
'flex items-center py-2 text-xl font-medium text-gray-700 rounded-md'
>
{
siteInfo
.
icon
&&
<
span
className=
'mr-2'
><
em
-
emoji
id=
{
siteInfo
.
icon
}
/></
span
>
}
{
siteInfo
.
title
}
</
div
>
<
p
className=
'text-sm text-gray-500'
>
{
siteInfo
.
description
}
</
p
>
<
p
className=
'text-sm text-gray-500'
>
{
siteInfo
.
description
}
</
p
>
</
div
>
</
div
>
)
)
...
@@ -37,17 +36,17 @@ export const StarIcon = () => (
...
@@ -37,17 +36,17 @@ export const StarIcon = () => (
</
svg
>
</
svg
>
)
)
export
const
ChatBtn
:
FC
<
{
onClick
:
()
=>
void
,
className
?:
string
}
>
=
({
export
const
ChatBtn
:
FC
<
{
onClick
:
()
=>
void
;
className
?:
string
}
>
=
({
className
,
className
,
onClick
onClick
,
})
=>
{
})
=>
{
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
return
(
return
(
<
Button
<
Button
type=
'primary'
type=
'primary'
className=
{
cn
(
className
,
`
!p-0 space-x-2 flex items-center ${s.customBtn}
`
)
}
className=
{
cn
(
className
,
`
flex items-center ${s.customBtn} gap-2
`
)
}
onClick=
{
onClick
}
>
onClick=
{
onClick
}
>
<
svg
width=
"20"
height=
"2
1"
viewBox=
"0 0 20 21
"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<
svg
width=
"20"
height=
"2
0"
viewBox=
"0 0 20 20
"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<
path
fillRule=
"evenodd"
clipRule=
"evenodd"
d=
"M18 10.5C18 14.366 14.418 17.5 10 17.5C8.58005 17.506 7.17955 17.1698 5.917 16.52L2 17.5L3.338 14.377C2.493 13.267 2 11.934 2 10.5C2 6.634 5.582 3.5 10 3.5C14.418 3.5 18 6.634 18 10.5ZM7 9.5H5V11.5H7V9.5ZM15 9.5H13V11.5H15V9.5ZM9 9.5H11V11.5H9V9.5Z"
fill=
"white"
/>
<
path
fillRule=
"evenodd"
clipRule=
"evenodd"
d=
"M18 10.5C18 14.366 14.418 17.5 10 17.5C8.58005 17.506 7.17955 17.1698 5.917 16.52L2 17.5L3.338 14.377C2.493 13.267 2 11.934 2 10.5C2 6.634 5.582 3.5 10 3.5C14.418 3.5 18 6.634 18 10.5ZM7 9.5H5V11.5H7V9.5ZM15 9.5H13V11.5H15V9.5ZM9 9.5H11V11.5H9V9.5Z"
fill=
"white"
/>
</
svg
>
</
svg
>
{
t
(
'share.chat.startChat'
)
}
{
t
(
'share.chat.startChat'
)
}
...
@@ -55,7 +54,7 @@ export const ChatBtn: FC<{ onClick: () => void, className?: string }> = ({
...
@@ -55,7 +54,7 @@ export const ChatBtn: FC<{ onClick: () => void, className?: string }> = ({
)
)
}
}
export
const
EditBtn
=
({
className
,
onClick
}:
{
className
?:
string
,
onClick
:
()
=>
void
})
=>
{
export
const
EditBtn
=
({
className
,
onClick
}:
{
className
?:
string
;
onClick
:
()
=>
void
})
=>
{
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
return
(
return
(
...
@@ -72,4 +71,3 @@ export const EditBtn = ({ className, onClick }: { className?: string, onClick: (
...
@@ -72,4 +71,3 @@ export const EditBtn = ({ className, onClick }: { className?: string, onClick: (
export
const
FootLogo
=
()
=>
(
export
const
FootLogo
=
()
=>
(
<
div
className=
{
s
.
logo
}
/>
<
div
className=
{
s
.
logo
}
/>
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment