mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
style: minimium codemod
This commit is contained in:
parent
9edd0a6eae
commit
3b896a796c
|
@ -8,11 +8,11 @@ import { useBoolean } from 'ahooks'
|
|||
import {
|
||||
Cog8ToothIcon,
|
||||
// CommandLineIcon,
|
||||
Squares2X2Icon,
|
||||
PuzzlePieceIcon,
|
||||
DocumentTextIcon,
|
||||
PaperClipIcon,
|
||||
PuzzlePieceIcon,
|
||||
QuestionMarkCircleIcon,
|
||||
Squares2X2Icon,
|
||||
} from '@heroicons/react/24/outline'
|
||||
import {
|
||||
Cog8ToothIcon as Cog8ToothSolidIcon,
|
||||
|
|
|
@ -20,7 +20,7 @@ const Progress: FC<IProgressProps> = ({
|
|||
className={cn(s.bar, exhausted && s['bar-error'], 'absolute top-0 left-0 right-0 bottom-0')}
|
||||
style={{ width: `${value}%` }}
|
||||
/>
|
||||
{Array(10).fill(0).map((i, k) => (
|
||||
{Array.from({ length: 10 }).fill(0).map((i, k) => (
|
||||
<div key={k} className={s['bar-item']} />
|
||||
))}
|
||||
</div>
|
||||
|
|
|
@ -12,6 +12,7 @@ export class AudioPlayerManager {
|
|||
private audioPlayers: AudioPlayer | null = null
|
||||
private msgId: string | undefined
|
||||
|
||||
// eslint-disable-next-line
|
||||
private constructor() {
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { EditorConfig, NodeKey, SerializedTextNode } from 'lexical'
|
||||
import type { EditorConfig, SerializedTextNode } from 'lexical'
|
||||
import { $createTextNode, TextNode } from 'lexical'
|
||||
|
||||
export class CustomTextNode extends TextNode {
|
||||
|
@ -10,9 +10,9 @@ export class CustomTextNode extends TextNode {
|
|||
return new CustomTextNode(node.__text, node.__key)
|
||||
}
|
||||
|
||||
constructor(text: string, key?: NodeKey) {
|
||||
super(text, key)
|
||||
}
|
||||
// constructor(text: string, key?: NodeKey) {
|
||||
// super(text, key)
|
||||
// }
|
||||
|
||||
createDOM(config: EditorConfig) {
|
||||
const dom = super.createDOM(config)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import type {
|
||||
EditorConfig,
|
||||
LexicalNode,
|
||||
NodeKey,
|
||||
SerializedTextNode,
|
||||
} from 'lexical'
|
||||
import {
|
||||
|
@ -18,9 +17,9 @@ export class VariableValueBlockNode extends TextNode {
|
|||
return new VariableValueBlockNode(node.__text, node.__key)
|
||||
}
|
||||
|
||||
constructor(text: string, key?: NodeKey) {
|
||||
super(text, key)
|
||||
}
|
||||
// constructor(text: string, key?: NodeKey) {
|
||||
// super(text, key)
|
||||
// }
|
||||
|
||||
createDOM(config: EditorConfig): HTMLElement {
|
||||
const element = super.createDOM(config)
|
||||
|
|
Loading…
Reference in New Issue
Block a user