mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor(web): convert 7 enums to as-const objects (batch 5) (#33960)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
3e073404cc
commit
8ca54ddf94
9 files changed
+48
-68
No files matched your search
@@ -1,13 +1,14 @@
|
||||
import type { CommonNodeType } from '../types'
|
||||
|
||||
export enum NoteTheme {
|
||||
blue = 'blue',
|
||||
cyan = 'cyan',
|
||||
green = 'green',
|
||||
yellow = 'yellow',
|
||||
pink = 'pink',
|
||||
violet = 'violet',
|
||||
}
|
||||
export const NoteTheme = {
|
||||
blue: 'blue',
|
||||
cyan: 'cyan',
|
||||
green: 'green',
|
||||
yellow: 'yellow',
|
||||
pink: 'pink',
|
||||
violet: 'violet',
|
||||
} as const
|
||||
export type NoteTheme = typeof NoteTheme[keyof typeof NoteTheme]
|
||||
|
||||
export type NoteNodeType = CommonNodeType & {
|
||||
text: string
|
||||
|
||||
Reference in new issue
Block a user