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 React from 'react';
|
||||
|
||||
import { LINE_OFFSET } from '../../../constants/lines';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { FlowRendererRegistry } from '@flowgram-adapter/free-layout-editor';
|
||||
|
||||
@@ -13,12 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
// import { domUtils } from '@flowgram-adapter/common';
|
||||
import { type FlowSelectorBoundsLayerOptions } from '@flowgram-adapter/free-layout-editor';
|
||||
import { SelectionService, useService } from '@flowgram-adapter/free-layout-editor';
|
||||
import {
|
||||
SelectionService,
|
||||
useService,
|
||||
} from '@flowgram-adapter/free-layout-editor';
|
||||
|
||||
import { getSelectionBounds } from '../../utils/selection-utils';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import styles from './index.module.less';
|
||||
|
||||
@@ -13,12 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import ReactDOM from 'react-dom';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import { Tooltip } from '@coze-arch/coze-design';
|
||||
import { useService } from '@flowgram-adapter/free-layout-editor';
|
||||
import {
|
||||
usePlaygroundReadonlyState,
|
||||
@@ -27,6 +26,7 @@ import {
|
||||
WorkflowLinesManager,
|
||||
type WorkflowPortEntity,
|
||||
} from '@flowgram-adapter/free-layout-editor';
|
||||
import { Tooltip } from '@coze-arch/coze-design';
|
||||
|
||||
import { PORT_BG_CLASS_NAME } from '../../constants/points';
|
||||
import { Warning } from './warning';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// Arrow width
|
||||
export const LINE_OFFSET = 6;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// Connection point radius
|
||||
|
||||
export const STROKE_WIDTH_SLECTED = 3;
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/// <reference types='@coze-arch/bot-typings' />
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import 'reflect-metadata';
|
||||
export * from './workflow-render-provider';
|
||||
export * from './workflow-render-contribution';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { nanoid } from 'nanoid';
|
||||
import {
|
||||
Layer,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/* eslint-disable complexity */
|
||||
import { inject, injectable } from 'inversify';
|
||||
import { SelectorBoxConfigEntity } 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 * from './lines-layer';
|
||||
export * from './background-layer';
|
||||
export * from './hover-layer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import ReactDOM from 'react-dom';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { inject, injectable } from 'inversify';
|
||||
import { Layer, SelectionService } from '@flowgram-adapter/free-layout-editor';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { FlowNodeTransformData } from '@flowgram-adapter/free-layout-editor';
|
||||
import { type SelectionService } from '@flowgram-adapter/free-layout-editor';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
const isAppleDevice = /(mac|iphone|ipod|ipad)/i.test(
|
||||
typeof navigator !== 'undefined' ? navigator?.platform : '',
|
||||
);
|
||||
|
||||
@@ -13,13 +13,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React, { useLayoutEffect, useMemo, useEffect } from 'react';
|
||||
|
||||
import { reportTti } from '@coze-arch/report-tti/custom-perf-metric';
|
||||
import { FlowRendererRegistry } from '@flowgram-adapter/free-layout-editor';
|
||||
import { LoggerEvent, LoggerService, useService } from '@flowgram-adapter/free-layout-editor';
|
||||
import {
|
||||
LoggerEvent,
|
||||
LoggerService,
|
||||
useService,
|
||||
} from '@flowgram-adapter/free-layout-editor';
|
||||
import { WorkflowDocument } from '@flowgram-adapter/free-layout-editor';
|
||||
import { reportTti } from '@coze-arch/report-tti/custom-perf-metric';
|
||||
|
||||
import styles from './index.module.less';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { ContainerModule } from 'inversify';
|
||||
import { FlowRendererContribution } from '@flowgram-adapter/free-layout-editor';
|
||||
import { PlaygroundContribution } from '@flowgram-adapter/free-layout-editor';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { inject, injectable } from 'inversify';
|
||||
import { Gesture } from '@use-gesture/vanilla';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
|
||||
import { type interfaces } from 'inversify';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
inject,
|
||||
injectable,
|
||||
|
||||
Reference in New Issue
Block a user