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 {
definePluginCreator,
type PluginCreator,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { useCallback } from 'react';
import { useService } from '@flowgram-adapter/free-layout-editor';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { WorkflowHistoryContainerModule } from './workflow-history-container-module';
export { useClearHistory } from './hooks/use-clear-history';
export { WorkflowHistoryConfig } from './workflow-history-config';

View File

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

View File

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

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type OperationMeta } from '@flowgram-adapter/free-layout-editor';
import { addNodeOperationMeta } from './add-node';

View File

@@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { snakeCase } from 'lodash-es';
import { injectable, inject } from 'inversify';
import { reporter } from '@coze-workflow/base';
import {
type AddOrDeleteLineOperationValue,
type AddOrDeleteWorkflowNodeOperationValue,
@@ -25,6 +24,7 @@ import {
} from '@flowgram-adapter/free-layout-editor';
import { DisposableCollection } from '@flowgram-adapter/common';
import { type Operation, OperationService } from '@flowgram-adapter/common';
import { reporter } from '@coze-workflow/base';
@injectable()
export class WorkflowOperationReportService {
@@ -77,7 +77,9 @@ export class WorkflowOperationReportService {
fromPort = '',
toPort = '',
} = value as AddOrDeleteLineOperationValue;
return `${eventName} from ${from}${this.portToString(fromPort)} to ${to}${this.portToString(toPort)}`;
return `${eventName} from ${from}${this.portToString(
fromPort,
)} to ${to}${this.portToString(toPort)}`;
}
if (

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type OperationMeta } from '@flowgram-adapter/free-layout-editor';
export const shouldMerge: OperationMeta['shouldMerge'] = (_op, prev, element) =>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { injectable } from 'inversify';
@injectable()

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ContainerModule } from 'inversify';
import { OperationContribution } from '@flowgram-adapter/free-layout-editor';
import { bindContributions } from '@flowgram-adapter/common';

View File

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

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/naming-convention */
import { inject, injectable } from 'inversify';
import { PlaygroundConfigEntity } from '@flowgram-adapter/free-layout-editor';