Revert "[autofix.ci] apply automated fixes"

This reverts commit 01a05289e9.
This commit is contained in:
Stephen Zhou
2026-01-26 19:29:21 +08:00
parent 2fc02bf1bc
commit 4cde6e31ca
688 changed files with 2998 additions and 1639 deletions

View File

@ -1,7 +1,11 @@
import type { FC, ReactNode } from 'react'
import type { PluginStatus } from '@/app/components/plugins/types'
import type { Locale } from '@/i18n-config'
import {
RiCheckboxCircleFill,
RiErrorWarningFill,
RiLoaderLine,
} from '@remixicon/react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import CardIcon from '@/app/components/plugins/card/base/card-icon'
@ -141,7 +145,7 @@ const PluginTaskList: FC<PluginTaskListProps> = ({
getIconUrl={getIconUrl}
language={language}
statusIcon={
<span className="i-ri-loader-line absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 animate-spin text-text-accent" />
<RiLoaderLine className="absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 animate-spin text-text-accent" />
}
defaultStatusText={t('task.installing', { ns: 'plugin' })}
/>
@ -156,7 +160,7 @@ const PluginTaskList: FC<PluginTaskListProps> = ({
getIconUrl={getIconUrl}
language={language}
statusIcon={
<span className="i-ri-checkbox-circle-fill absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 text-text-success" />
<RiCheckboxCircleFill className="absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 text-text-success" />
}
defaultStatusText={t('task.installed', { ns: 'plugin' })}
statusClassName="text-text-success"
@ -182,7 +186,7 @@ const PluginTaskList: FC<PluginTaskListProps> = ({
getIconUrl={getIconUrl}
language={language}
statusIcon={
<span className="i-ri-error-warning-fill absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 text-text-destructive" />
<RiErrorWarningFill className="absolute -bottom-0.5 -right-0.5 z-10 h-3 w-3 text-text-destructive" />
}
defaultStatusText={t('task.installError', { ns: 'plugin', errorLength: errorPlugins.length })}
statusClassName="text-text-destructive break-all"

View File

@ -1,5 +1,9 @@
import type { FC } from 'react'
import {
RiCheckboxCircleFill,
RiErrorWarningFill,
RiInstallLine,
} from '@remixicon/react'
import ProgressCircle from '@/app/components/base/progress-bar/progress-circle'
import Tooltip from '@/app/components/base/tooltip'
import DownloadingIcon from '@/app/components/header/plugins-nav/downloading-icon'
@ -53,10 +57,11 @@ const TaskStatusIndicator: FC<TaskStatusIndicatorProps> = ({
{showDownloadingIcon
? <DownloadingIcon />
: (
<span className={`i-ri-install-line ${cn(
'h-4 w-4 text-components-button-secondary-text',
showErrorStyle && 'text-components-button-destructive-secondary-text',
)}`}
<RiInstallLine
className={cn(
'h-4 w-4 text-components-button-secondary-text',
showErrorStyle && 'text-components-button-destructive-secondary-text',
)}
/>
)}
@ -77,10 +82,10 @@ const TaskStatusIndicator: FC<TaskStatusIndicatorProps> = ({
/>
)}
{showSuccessIcon && !isInstalling && !isInstallingWithSuccess && !isInstallingWithError && (
<span className="i-ri-checkbox-circle-fill h-3.5 w-3.5 text-text-success" />
<RiCheckboxCircleFill className="h-3.5 w-3.5 text-text-success" />
)}
{isFailed && (
<span className="i-ri-error-warning-fill h-3.5 w-3.5 text-text-destructive" />
<RiErrorWarningFill className="h-3.5 w-3.5 text-text-destructive" />
)}
</div>
</div>