瀏覽代碼

remove overrides (#22575)

tags/1.7.0
Asuka Minato 3 月之前
父節點
當前提交
2423f97c72
沒有連結到貢獻者的電子郵件帳戶。

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

import { useEffect, useRef } from 'react' import { useEffect, useRef } from 'react'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'


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


const AutoHeightTextarea = ( const AutoHeightTextarea = (

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

) )
}) })


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

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

import { createLayoutSlice } from './layout-slice' import { createLayoutSlice } from './layout-slice'
import type { WorkflowSliceShape as WorkflowAppSliceShape } from '@/app/components/workflow-app/store/workflow/workflow-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 = { type CreateWorkflowStoreParams = {
injectWorkflowStoreSliceFn?: StateCreator<WorkflowAppSliceShape> injectWorkflowStoreSliceFn?: StateCreator<WorkflowAppSliceShape>

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

timezone: string timezone: string
} }


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

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

'style/brace-style': ['error', 'stroustrup', { allowSingleLine: true }], 'style/brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'style/dot-location': ['error', 'property'], 'style/dot-location': ['error', 'property'],
'style/object-curly-newline': ['error', { consistent: true, multiline: true }], 'style/object-curly-newline': ['error', { consistent: true, multiline: true }],
'style/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
'style/template-curly-spacing': ['error', 'never'], 'style/template-curly-spacing': ['error', 'never'],
'style/keyword-spacing': 'off', 'style/keyword-spacing': 'off',



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

export type inputType = 'input' | 'select' | 'textarea' export type inputType = 'input' | 'select' | 'textarea'
export type metadataType = DocType | 'originInfo' | 'technicalParameters' export type metadataType = DocType | 'originInfo' | 'technicalParameters'


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

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

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

+ 2463
- 3349
web/pnpm-lock.yaml
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存