mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 00:31:19 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
83805282fd
commit
8dcd7073de
@ -52,4 +52,3 @@ export declare const icons: IconifyJSON
|
||||
export declare const info: IconifyInfo
|
||||
export declare const metadata: IconifyMetaData
|
||||
export declare const chars: IconifyChars
|
||||
|
||||
|
||||
@ -6,4 +6,3 @@ const metadata = require('./metadata.json')
|
||||
const chars = require('./chars.json')
|
||||
|
||||
module.exports = { icons, info, metadata, chars }
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import chars from './chars.json' with { type: 'json' }
|
||||
import icons from './icons.json' with { type: 'json' }
|
||||
import info from './info.json' with { type: 'json' }
|
||||
import metadata from './metadata.json' with { type: 'json' }
|
||||
import chars from './chars.json' with { type: 'json' }
|
||||
|
||||
export { icons, info, metadata, chars }
|
||||
|
||||
export { chars, icons, info, metadata }
|
||||
|
||||
@ -549,7 +549,7 @@ const CodeBlock: any = memo(({ inline, className, children = '', ...props }: any
|
||||
<div className="flex items-center gap-1">
|
||||
{language === 'svg' && <SVGBtn isSVG={isSVG} setIsSVG={setIsSVG} />}
|
||||
<CopyIcon
|
||||
className="mx-0 action-btn size-6 rounded-lg p-0.5 outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid"
|
||||
className="action-btn mx-0 size-6 rounded-lg p-0.5 outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid"
|
||||
content={String(children).replace(/\n$/, '')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@ -15,26 +15,36 @@ const heroDecorationIconFrameClassName =
|
||||
|
||||
const DropboxIcon = () => (
|
||||
<svg className="size-10" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="#0061FF" d="m7 3-5 3.2L7 9.4l5-3.2L7 3Zm10 0-5 3.2 5 3.2 5-3.2L17 3ZM7 10.6l-5 3.2L7 17l5-3.2-5-3.2Zm10 0-5 3.2 5 3.2 5-3.2-5-3.2ZM7.2 18.1l4.8 3 4.8-3-4.8-3-4.8 3Z" />
|
||||
<path
|
||||
fill="#0061FF"
|
||||
d="m7 3-5 3.2L7 9.4l5-3.2L7 3Zm10 0-5 3.2 5 3.2 5-3.2L17 3ZM7 10.6l-5 3.2L7 17l5-3.2-5-3.2Zm10 0-5 3.2 5 3.2 5-3.2-5-3.2ZM7.2 18.1l4.8 3 4.8-3-4.8-3-4.8 3Z"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
const DuckDuckGoIcon = () => (
|
||||
<img
|
||||
src={duckDuckGoIcon.src}
|
||||
alt=""
|
||||
className="size-10 object-cover"
|
||||
/>
|
||||
<img src={duckDuckGoIcon.src} alt="" className="size-10 object-cover" />
|
||||
)
|
||||
|
||||
const GmailIcon = () => (
|
||||
<svg className="size-10" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="24" height="24" rx="6" fill="white" />
|
||||
<path d="M4.5 7.2v9.3c0 .66.54 1.2 1.2 1.2h1.35V10.2L12 13.95l4.95-3.75v7.5h1.35c.66 0 1.2-.54 1.2-1.2V7.2c0-1.5-1.7-2.35-2.9-1.45L12 9.15 7.4 5.75C6.2 4.85 4.5 5.7 4.5 7.2Z" fill="#EA4335" />
|
||||
<path
|
||||
d="M4.5 7.2v9.3c0 .66.54 1.2 1.2 1.2h1.35V10.2L12 13.95l4.95-3.75v7.5h1.35c.66 0 1.2-.54 1.2-1.2V7.2c0-1.5-1.7-2.35-2.9-1.45L12 9.15 7.4 5.75C6.2 4.85 4.5 5.7 4.5 7.2Z"
|
||||
fill="#EA4335"
|
||||
/>
|
||||
<path d="M5.7 17.7h1.35V10.2L4.5 8.4v8.1c0 .66.54 1.2 1.2 1.2Z" fill="#34A853" />
|
||||
<path d="M18.3 17.7h-1.35V10.2l2.55-1.8v8.1c0 .66-.54 1.2-1.2 1.2Z" fill="#4285F4" />
|
||||
<path d="M19.5 7.2v-.75c0-1.5-1.7-2.35-2.9-1.45L12 9.15 7.4 5.75C6.2 4.85 4.5 5.7 4.5 6.45V8.4L12 13.95 19.5 8.4V7.2Z" fill="#C5221F" />
|
||||
<path d="M4.5 8.4 12 13.95 19.5 8.4" stroke="#EA4335" strokeWidth="1.1" strokeLinejoin="round" />
|
||||
<path
|
||||
d="M19.5 7.2v-.75c0-1.5-1.7-2.35-2.9-1.45L12 9.15 7.4 5.75C6.2 4.85 4.5 5.7 4.5 6.45V8.4L12 13.95 19.5 8.4V7.2Z"
|
||||
fill="#C5221F"
|
||||
/>
|
||||
<path
|
||||
d="M4.5 8.4 12 13.95 19.5 8.4"
|
||||
stroke="#EA4335"
|
||||
strokeWidth="1.1"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
@ -49,10 +59,7 @@ const HomeHero = ({ isMarketplacePlatform, subtitle, title }: HomeHeroProps) =>
|
||||
)}
|
||||
>
|
||||
<div className="relative flex h-[162px] w-full max-w-[726px] flex-col items-center pt-[41px]">
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute inset-0 max-[879px]:hidden"
|
||||
>
|
||||
<div aria-hidden className="pointer-events-none absolute inset-0 max-[879px]:hidden">
|
||||
<span className={heroDecorationIconFrameClassName} style={{ left: 86, top: 50 }}>
|
||||
<DropboxIcon />
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user