chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OrderBy, WorkFlowListStatus } from '@coze-workflow/base/api';
import { I18n } from '@coze-arch/i18n';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { type FC } from 'react';
import classNames from 'classnames';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { type FC, useContext, useMemo, useState } from 'react';
import classNames from 'classnames';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useState, type MouseEvent } from 'react';
import { logger } from '@coze-arch/logger';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @coze-arch/max-line-per-function */
import React, { type FC, useContext } from 'react';
@@ -186,12 +186,12 @@ export const WorkflowCard: FC<WorkflowCardProps> = props => {
data.create_time,
)}`
: status === WorkFlowListStatus.HadPublished
? `${I18n.t('workflow_add_list_publised')} ${formatTime(
data.update_time,
)}`
: `${I18n.t('workflow_add_list_updated')} ${formatTime(
data.update_time,
)}`;
? `${I18n.t('workflow_add_list_publised')} ${formatTime(
data.update_time,
)}`
: `${I18n.t('workflow_add_list_updated')} ${formatTime(
data.update_time,
)}`;
return (
<div className={styles.info}>
{showCreator ? (

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import { I18n } from '@coze-arch/i18n';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { useContext, type FC } from 'react';
import classNames from 'classnames';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable complexity */
/* eslint-disable @coze-arch/max-line-per-function */
import { type FC, useContext, useEffect, useMemo, useRef } from 'react';
@@ -372,7 +372,7 @@ const WorkflowModalContent: FC<WorkFlowModalModeProps> = props => {
}
workflowNodes={
isTypeWorkflow(item)
? (workflowNodesMap[item.workflow_id || ''] ?? [])
? workflowNodesMap[item.workflow_id || ''] ?? []
: []
}
handleDeleteWorkflow={handleDelete}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type FC, useContext } from 'react';
import { I18n, type I18nKeysNoOptionsType } from '@coze-arch/i18n';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type FC, useContext, useMemo } from 'react';
import { I18n } from '@coze-arch/i18n';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useContext } from 'react';
import { SortType } from '@coze-arch/idl/product_api';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useContext, type ReactNode } from 'react';
import { WorkflowMode } from '@coze-workflow/base/api';

View File

@@ -224,7 +224,7 @@ export function useWorkflowAction({
flow_mode:
target?.plugin_type === PluginType.IMAGEFLOW
? WorkflowMode.Imageflow
: (config.flowMode ?? WorkflowMode.Workflow),
: config.flowMode ?? WorkflowMode.Workflow,
};
return newWorkflow;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useCallback, useRef, useState } from 'react';
import { useMount } from 'ahooks';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useMemo, useState } from 'react';
import {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { useContext } from 'react';
import { useDebounceFn } from 'ahooks';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { type FC } from 'react';
import classNames from 'classnames';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { forwardRef, useContext } from 'react';
import { UICompositionModalSider } from '@coze-arch/bot-semi';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
type BindBizType,
type WorkFlowListStatus,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type WorkflowModalState, WorkflowCategory } from './type';
/**

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import {