From 18e83ca326e47c9ebc28daff2a6287a15e165ad1 Mon Sep 17 00:00:00 2001 From: yvonneyx Date: Tue, 8 Oct 2024 16:36:49 +0800 Subject: [PATCH] refactor: rename --- .../datasets/{product-activation.json => product-launch.json} | 0 ...h-product-activation.tsx => flow-graph-product-launch.tsx} | 4 ++-- packages/graphs/tests/demos/index.tsx | 2 +- site/examples/relations/flow-graph/demo/meta.json | 4 ++-- ...-activation-flow-graph.js => product-launch-flow-graph.js} | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename packages/graphs/tests/datasets/{product-activation.json => product-launch.json} (100%) rename packages/graphs/tests/demos/{flow-graph-product-activation.tsx => flow-graph-product-launch.tsx} (97%) rename site/examples/relations/flow-graph/demo/{product-activation-flow-graph.js => product-launch-flow-graph.js} (100%) diff --git a/packages/graphs/tests/datasets/product-activation.json b/packages/graphs/tests/datasets/product-launch.json similarity index 100% rename from packages/graphs/tests/datasets/product-activation.json rename to packages/graphs/tests/datasets/product-launch.json diff --git a/packages/graphs/tests/demos/flow-graph-product-activation.tsx b/packages/graphs/tests/demos/flow-graph-product-launch.tsx similarity index 97% rename from packages/graphs/tests/demos/flow-graph-product-activation.tsx rename to packages/graphs/tests/demos/flow-graph-product-launch.tsx index 3755c79d1..95c483e87 100644 --- a/packages/graphs/tests/demos/flow-graph-product-activation.tsx +++ b/packages/graphs/tests/demos/flow-graph-product-launch.tsx @@ -2,7 +2,7 @@ import { FlowGraph as FlowGraphComponent, type FlowGraphOptions, type G6 } from import { isBoolean } from 'lodash'; import React, { FC } from 'react'; import styled from 'styled-components'; -import data from '../datasets/product-activation.json'; +import data from '../datasets/product-launch.json'; interface StepData { name: string; @@ -151,7 +151,7 @@ function isSingleStep(data: NodeData) { return !data.data.children; } -export const FlowGraphProductActivation = () => { +export const FlowGraphProductLaunch = () => { const options: FlowGraphOptions = { autoFit: 'view', data, diff --git a/packages/graphs/tests/demos/index.tsx b/packages/graphs/tests/demos/index.tsx index 37819ae76..5c5a41769 100644 --- a/packages/graphs/tests/demos/index.tsx +++ b/packages/graphs/tests/demos/index.tsx @@ -1,6 +1,6 @@ export { Dendrogram } from './dendrogram'; export { FlowGraph } from './flow-graph'; -export { FlowGraphProductActivation } from './flow-graph-product-activation'; +export { FlowGraphProductLaunch } from './flow-graph-product-launch'; export { FlowGraphTaskScheduling } from './flow-graph-task-scheduling'; export { IndentedTreeBoxed } from './indented-tree-boxed'; export { IndentedTree } from './indented-tree-default'; diff --git a/site/examples/relations/flow-graph/demo/meta.json b/site/examples/relations/flow-graph/demo/meta.json index d0ae7aea3..686a76f78 100644 --- a/site/examples/relations/flow-graph/demo/meta.json +++ b/site/examples/relations/flow-graph/demo/meta.json @@ -29,10 +29,10 @@ "screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*yd-WSLmyxAkAAAAAAAAAAAAADmJ7AQ/original" }, { - "filename": "product-activation-flow-graph.js", + "filename": "product-launch-flow-graph.js", "title": { "zh": "产品开通动线图", - "en": "Product Activation Flow Graph" + "en": "Product Launch Flow Graph" }, "screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*n9JgQIGi9BQAAAAAAAAAAAAADmJ7AQ/original" } diff --git a/site/examples/relations/flow-graph/demo/product-activation-flow-graph.js b/site/examples/relations/flow-graph/demo/product-launch-flow-graph.js similarity index 100% rename from site/examples/relations/flow-graph/demo/product-activation-flow-graph.js rename to site/examples/relations/flow-graph/demo/product-launch-flow-graph.js