浏览代码

remove overrides (#22575)

tags/1.7.0
Asuka Minato 3 个月前
父节点
当前提交
2423f97c72
没有帐户链接到提交者的电子邮件

+ 2
- 2
web/app/components/base/auto-height-textarea/common.tsx 查看文件

@@ -1,8 +1,8 @@
import { useEffect, useRef } from 'react'
import cn from '@/utils/classnames'

type AutoHeightTextareaProps =
& React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>
type AutoHeightTextareaProps
= & React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>
& { outerClassName?: string }

const AutoHeightTextarea = (

+ 2
- 2
web/app/components/workflow/index.tsx 查看文件

@@ -393,8 +393,8 @@ export const WorkflowWithInnerContext = memo(({
)
})

type WorkflowWithDefaultContextProps =
Pick<WorkflowProps, 'edges' | 'nodes'>
type WorkflowWithDefaultContextProps
= Pick<WorkflowProps, 'edges' | 'nodes'>
& {
children: React.ReactNode
}

+ 15
- 15
web/app/components/workflow/store/workflow/index.ts 查看文件

@@ -36,21 +36,21 @@ import type { LayoutSliceShape } from './layout-slice'
import { createLayoutSlice } from './layout-slice'
import type { WorkflowSliceShape as WorkflowAppSliceShape } from '@/app/components/workflow-app/store/workflow/workflow-slice'

export type Shape =
ChatVariableSliceShape &
EnvVariableSliceShape &
FormSliceShape &
HelpLineSliceShape &
HistorySliceShape &
NodeSliceShape &
PanelSliceShape &
ToolSliceShape &
VersionSliceShape &
WorkflowDraftSliceShape &
WorkflowSliceShape &
InspectVarsSliceShape &
LayoutSliceShape &
WorkflowAppSliceShape
export type Shape
= ChatVariableSliceShape
& EnvVariableSliceShape
& FormSliceShape
& HelpLineSliceShape
& HistorySliceShape
& NodeSliceShape
& PanelSliceShape
& ToolSliceShape
& VersionSliceShape
& WorkflowDraftSliceShape
& WorkflowSliceShape
& InspectVarsSliceShape
& LayoutSliceShape
& WorkflowAppSliceShape

type CreateWorkflowStoreParams = {
injectWorkflowStoreSliceFn?: StateCreator<WorkflowAppSliceShape>

+ 2
- 2
web/app/signin/oneMoreStep.tsx 查看文件

@@ -21,8 +21,8 @@ type IState = {
timezone: string
}

type IAction =
| { type: 'failed', payload: null }
type IAction
= | { type: 'failed', payload: null }
| { type: 'invitation_code', value: string }
| { type: 'interface_language', value: string }
| { type: 'timezone', value: string }

+ 0
- 1
web/eslint.config.mjs 查看文件

@@ -38,7 +38,6 @@ export default combine(
'style/brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'style/dot-location': ['error', 'property'],
'style/object-curly-newline': ['error', { consistent: true, multiline: true }],
'style/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
'style/template-curly-spacing': ['error', 'never'],
'style/keyword-spacing': 'off',


+ 2
- 2
web/hooks/use-metadata.ts 查看文件

@@ -7,8 +7,8 @@ import useTimestamp from '@/hooks/use-timestamp'
export type inputType = 'input' | 'select' | 'textarea'
export type metadataType = DocType | 'originInfo' | 'technicalParameters'

type MetadataMap =
Record<
type MetadataMap
= Record<
metadataType,
{
text: string

+ 0
- 5
web/package.json 查看文件

@@ -229,11 +229,6 @@
"eslint --fix"
]
},
"overrides": {
"@types/react": "19.0.11",
"@types/react-dom": "19.0.4",
"@storybook/test": "8.5.0"
},
"pnpm": {
"overrides": {
"esbuild@<0.25.0": "0.25.0",

+ 2463
- 3349
web/pnpm-lock.yaml
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存