chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
60158935f4
commit
6519682885
15831 files changed
+3063428
No files matched your search
@@ -0,0 +1,46 @@
|
||||
import { NoteTheme } from './types'
|
||||
|
||||
export const CUSTOM_NOTE_NODE = 'custom-note'
|
||||
export const NOTE_SHOW_AUTHOR_STORAGE_KEY = 'workflow-note-show-author'
|
||||
|
||||
export const THEME_MAP: Record<
|
||||
string,
|
||||
{ outer: string; title: string; bg: string; border: string }
|
||||
> = {
|
||||
[NoteTheme.blue]: {
|
||||
outer: 'border-util-colors-blue-blue-500',
|
||||
title: 'bg-util-colors-blue-blue-100',
|
||||
bg: 'bg-util-colors-blue-blue-50',
|
||||
border: 'border-util-colors-blue-blue-300',
|
||||
},
|
||||
[NoteTheme.cyan]: {
|
||||
outer: 'border-util-colors-cyan-cyan-500',
|
||||
title: 'bg-util-colors-cyan-cyan-100',
|
||||
bg: 'bg-util-colors-cyan-cyan-50',
|
||||
border: 'border-util-colors-cyan-cyan-300',
|
||||
},
|
||||
[NoteTheme.green]: {
|
||||
outer: 'border-util-colors-green-green-500',
|
||||
title: 'bg-util-colors-green-green-100',
|
||||
bg: 'bg-util-colors-green-green-50',
|
||||
border: 'border-util-colors-green-green-300',
|
||||
},
|
||||
[NoteTheme.yellow]: {
|
||||
outer: 'border-util-colors-yellow-yellow-500',
|
||||
title: 'bg-util-colors-yellow-yellow-100',
|
||||
bg: 'bg-util-colors-yellow-yellow-50',
|
||||
border: 'border-util-colors-yellow-yellow-300',
|
||||
},
|
||||
[NoteTheme.pink]: {
|
||||
outer: 'border-util-colors-pink-pink-500',
|
||||
title: 'bg-util-colors-pink-pink-100',
|
||||
bg: 'bg-util-colors-pink-pink-50',
|
||||
border: 'border-util-colors-pink-pink-300',
|
||||
},
|
||||
[NoteTheme.violet]: {
|
||||
outer: 'border-util-colors-violet-violet-500',
|
||||
title: 'bg-util-colors-violet-violet-100',
|
||||
bg: 'bg-util-colors-violet-violet-100',
|
||||
border: 'border-util-colors-violet-violet-300',
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user