chore: format all frontend files (#430)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
definePluginCreator,
|
||||
type PluginCreator,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
type AddOrDeleteLineOperationValue,
|
||||
FreeOperationType,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { injectable } from 'inversify';
|
||||
|
||||
@injectable()
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user