Changes before error encountered

Co-authored-by: asukaminato0721 <30024051+asukaminato0721@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-25 20:24:09 +00:00 committed by Asuka Minato
parent b81cafa6c3
commit fdce781a11
18 changed files with 50 additions and 50 deletions

View File

@ -10,8 +10,8 @@ import cn from '@/utils/classnames'
import GridMask from '@/app/components/base/grid-mask' import GridMask from '@/app/components/base/grid-mask'
type Props = { type Props = {
show: boolean readonly show: boolean
onHide: () => void readonly onHide: () => void
} }
const AnnotationFullModal: FC<Props> = ({ const AnnotationFullModal: FC<Props> = ({
show, show,

View File

@ -7,7 +7,7 @@ import UsageInfo from '../usage-info'
import { useProviderContext } from '@/context/provider-context' import { useProviderContext } from '@/context/provider-context'
type Props = { type Props = {
className?: string readonly className?: string
} }
const Usage: FC<Props> = ({ const Usage: FC<Props> = ({

View File

@ -15,7 +15,7 @@ import cn from '@/utils/classnames'
const LOW = 50 const LOW = 50
const MIDDLE = 80 const MIDDLE = 80
const AppsFull: FC<{ loc: string; className?: string; }> = ({ const AppsFull: FC<{ readonly loc: string; readonly className?: string }> = ({
loc, loc,
className, className,
}) => { }) => {

View File

@ -7,8 +7,8 @@ import cn from '@/utils/classnames'
import { useProviderContext } from '@/context/provider-context' import { useProviderContext } from '@/context/provider-context'
type Props = { type Props = {
onClick?: () => void readonly onClick?: () => void
isDisplayOnly?: boolean readonly isDisplayOnly?: boolean
} }
const HeaderBillingBtn: FC<Props> = ({ const HeaderBillingBtn: FC<Props> = ({

View File

@ -24,7 +24,7 @@ import { useModalContextSelector } from '@/context/modal-context'
import { Enterprise, Professional, Sandbox, Team } from './assets' import { Enterprise, Professional, Sandbox, Team } from './assets'
type Props = { type Props = {
loc: string readonly loc: string
} }
const PlanComp: FC<Props> = ({ const PlanComp: FC<Props> = ({

View File

@ -1,5 +1,5 @@
type CloudProps = { type CloudProps = {
isActive: boolean readonly isActive: boolean
} }
const Cloud = ({ const Cloud = ({

View File

@ -1,5 +1,5 @@
type SelfHostedProps = { type SelfHostedProps = {
isActive: boolean readonly isActive: boolean
} }
const SelfHosted = ({ const SelfHosted = ({

View File

@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'
import { RiArrowRightUpLine } from '@remixicon/react' import { RiArrowRightUpLine } from '@remixicon/react'
type FooterProps = { type FooterProps = {
pricingPageURL: string readonly pricingPageURL: string
} }
const Footer = ({ const Footer = ({

View File

@ -9,10 +9,10 @@ import type { PlanRange } from './plan-range-switcher'
import PlanRangeSwitcher from './plan-range-switcher' import PlanRangeSwitcher from './plan-range-switcher'
type PlanSwitcherProps = { type PlanSwitcherProps = {
currentCategory: Category readonly currentCategory: Category
currentPlanRange: PlanRange readonly currentPlanRange: PlanRange
onChangeCategory: (category: Category) => void readonly onChangeCategory: (category: Category) => void
onChangePlanRange: (value: PlanRange) => void readonly onChangePlanRange: (value: PlanRange) => void
} }
const PlanSwitcher: FC<PlanSwitcherProps> = ({ const PlanSwitcher: FC<PlanSwitcherProps> = ({

View File

@ -10,8 +10,8 @@ export enum PlanRange {
} }
type PlanRangeSwitcherProps = { type PlanRangeSwitcherProps = {
value: PlanRange readonly value: PlanRange
onChange: (value: PlanRange) => void readonly onChange: (value: PlanRange) => void
} }
const PlanRangeSwitcher: FC<PlanRangeSwitcherProps> = ({ const PlanRangeSwitcher: FC<PlanRangeSwitcherProps> = ({

View File

@ -3,8 +3,8 @@ import { SelectionMod } from '../base/icons/src/public/knowledge'
import type { QA } from '@/models/datasets' import type { QA } from '@/models/datasets'
export type ChunkLabelProps = { export type ChunkLabelProps = {
label: string readonly label: string
characterCount: number readonly characterCount: number
} }
export const ChunkLabel: FC<ChunkLabelProps> = (props) => { export const ChunkLabel: FC<ChunkLabelProps> = (props) => {

View File

@ -6,8 +6,8 @@ import Badge from '@/app/components/base/badge'
import { GeneralChunk, ParentChildChunk } from '@/app/components/base/icons/src/vender/knowledge' import { GeneralChunk, ParentChildChunk } from '@/app/components/base/icons/src/vender/knowledge'
type Props = { type Props = {
isGeneralMode: boolean readonly isGeneralMode: boolean
isQAMode: boolean readonly isQAMode: boolean
} }
const ChunkingModeLabel: FC<Props> = ({ const ChunkingModeLabel: FC<Props> = ({

View File

@ -2,10 +2,10 @@ import cn from '@/utils/classnames'
import React, { useCallback, useMemo, useState } from 'react' import React, { useCallback, useMemo, useState } from 'react'
type CredentialIconProps = { type CredentialIconProps = {
avatar_url?: string readonly avatar_url?: string
name: string readonly name: string
size?: number readonly size?: number
className?: string readonly className?: string
} }
const ICON_BG_COLORS = [ const ICON_BG_COLORS = [

View File

@ -6,8 +6,8 @@ import CopyFeedback from '@/app/components/base/copy-feedback'
import SecretKeyButton from '@/app/components/develop/secret-key/secret-key-button' import SecretKeyButton from '@/app/components/develop/secret-key/secret-key-button'
type ApiServerProps = { type ApiServerProps = {
apiBaseUrl: string readonly apiBaseUrl: string
appId?: string readonly appId?: string
} }
const ApiServer: FC<ApiServerProps> = ({ const ApiServer: FC<ApiServerProps> = ({
apiBaseUrl, apiBaseUrl,

View File

@ -3,18 +3,18 @@ import type { PropsWithChildren } from 'react'
import classNames from '@/utils/classnames' import classNames from '@/utils/classnames'
type IChildrenProps = { type IChildrenProps = {
children: React.ReactNode readonly children: React.ReactNode
id?: string readonly id?: string
tag?: any readonly tag?: any
label?: any readonly label?: any
anchor: boolean readonly anchor: boolean
} }
type IHeaderingProps = { type IHeaderingProps = {
url: string readonly url: string
method: 'PUT' | 'DELETE' | 'GET' | 'POST' | 'PATCH' readonly method: 'PUT' | 'DELETE' | 'GET' | 'POST' | 'PATCH'
title: string readonly title: string
name: string readonly name: string
} }
export const Heading = function H2({ export const Heading = function H2({
@ -66,7 +66,7 @@ export function Row({ children }: IChildrenProps) {
} }
type IColProps = IChildrenProps & { type IColProps = IChildrenProps & {
sticky: boolean readonly sticky: boolean
} }
export function Col({ children, sticky = false }: IColProps) { export function Col({ children, sticky = false }: IColProps) {
return ( return (
@ -95,8 +95,8 @@ export function Properties({ children }: IChildrenProps) {
} }
type IProperty = IChildrenProps & { type IProperty = IChildrenProps & {
name: string readonly name: string
type: string readonly type: string
} }
export function Property({ name, type, children }: IProperty) { export function Property({ name, type, children }: IProperty) {
return ( return (
@ -120,8 +120,8 @@ export function Property({ name, type, children }: IProperty) {
} }
type ISubProperty = IChildrenProps & { type ISubProperty = IChildrenProps & {
name: string readonly name: string
type: string readonly type: string
} }
export function SubProperty({ name, type, children }: ISubProperty) { export function SubProperty({ name, type, children }: ISubProperty) {
return ( return (
@ -144,7 +144,7 @@ export function SubProperty({ name, type, children }: ISubProperty) {
) )
} }
export function PropertyInstruction({ children }: PropsWithChildren<{}>) { export function PropertyInstruction({ children }: Readonly<PropsWithChildren<{}>>) {
return ( return (
<li className="m-0 px-0 py-4 italic first:pt-0">{children}</li> <li className="m-0 px-0 py-4 italic first:pt-0">{children}</li>
) )

View File

@ -6,9 +6,9 @@ import Tooltip from '@/app/components/base/tooltip'
import CopyFeedback from '@/app/components/base/copy-feedback' import CopyFeedback from '@/app/components/base/copy-feedback'
type IInputCopyProps = { type IInputCopyProps = {
value?: string readonly value?: string
className?: string readonly className?: string
children?: React.ReactNode readonly children?: React.ReactNode
} }
const InputCopy = ({ const InputCopy = ({

View File

@ -6,9 +6,9 @@ import Button from '@/app/components/base/button'
import SecretKeyModal from '@/app/components/develop/secret-key/secret-key-modal' import SecretKeyModal from '@/app/components/develop/secret-key/secret-key-modal'
type ISecretKeyButtonProps = { type ISecretKeyButtonProps = {
className?: string readonly className?: string
appId?: string readonly appId?: string
textCls?: string readonly textCls?: string
} }
const SecretKeyButton = ({ className, appId, textCls }: ISecretKeyButtonProps) => { const SecretKeyButton = ({ className, appId, textCls }: ISecretKeyButtonProps) => {

View File

@ -41,9 +41,9 @@ const valueColorMap = {
} as { [key: string]: string } } as { [key: string]: string }
type ITagProps = { type ITagProps = {
children: string readonly children: string
color?: string readonly color?: string
variant?: string readonly variant?: string
} }
export function Tag({ export function Tag({