From 55b1dce01af1f7ba9085400669de01c77d9c5de1 Mon Sep 17 00:00:00 2001 From: zhangmo Date: Tue, 27 Jun 2023 15:31:35 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=BE=BD=E7=AB=A0?= =?UTF-8?q?&=E7=94=A8=E6=88=B7=E5=9F=8B=E7=82=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/index.html b/docs/index.html index 24c0686..2e7084b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -30,6 +30,9 @@ + + + @@ -119,6 +122,13 @@ language: language === "zh" ? "chinese" : "english", }, }; + const userAgent = window.navigator.userAgent; + const platform = window.navigator.platform; + Omega.trackEvent('tech_user_info', 'tech_urser_info', { + language, + userAgent, + platform, + }) From 99e0d016cc7d2146983a6cfb2dfc1cfcdceab001 Mon Sep 17 00:00:00 2001 From: zhangmo Date: Tue, 27 Jun 2023 15:47:33 +0800 Subject: [PATCH 2/5] fix: json --- vercel.json | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 vercel.json diff --git a/vercel.json b/vercel.json deleted file mode 100644 index bafd697..0000000 --- a/vercel.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "routes": [ - { "src": "/docs/(.*)", "dest": "/docs/:1" }, - { "src": "/examples/(.*)", "dest": "/examples/:1" }, - { "src": "/(.*)", "dest": "/docs/:1" } - ] -} From 343a6b20b855ea42bca78beb059e92446ea79f5c Mon Sep 17 00:00:00 2001 From: zhangmo Date: Tue, 27 Jun 2023 16:15:07 +0800 Subject: [PATCH 3/5] =?UTF-8?q?fix:=20=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index eeb0cb8..067d00b 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + \ No newline at end of file From a4331119fc6720c116f5e8e1f5d571ddd7bbead3 Mon Sep 17 00:00:00 2001 From: zhangmo Date: Tue, 27 Jun 2023 17:57:02 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- CNAME | 2 +- docs/en/_navbar.md | 2 +- docs/en/guide/basic/node.md | 2 +- docs/en/guide/extension/adapter.md | 2 +- docs/en/guide/extension/extension-insert-node-in-polyline.md | 2 +- docs/index.html | 2 +- docs/zh/_navbar.md | 2 +- docs/zh/guide/basic/node.md | 2 +- docs/zh/guide/extension/adapter.md | 2 +- docs/zh/guide/extension/bpmn-element.md | 4 ++-- docs/zh/guide/extension/extension-insert-node-in-polyline.md | 2 +- examples/index.html | 2 +- examples/scripts/screenshot.js | 2 +- examples/src/components/Banner/Banner.vue | 2 +- examples/src/components/SideBar/Menu.vue | 2 +- examples/src/views/Gallery/index.vue | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bece9fe..01bebe7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,4 +44,4 @@ jobs: force_orphan: true github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./deploy - cname: docs.logic-flow.cn + cname: site.logic-flow.cn diff --git a/CNAME b/CNAME index d5ec30e..84ca0b6 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -docs.logic-flow.cn \ No newline at end of file +site.logic-flow.cn \ No newline at end of file diff --git a/docs/en/_navbar.md b/docs/en/_navbar.md index ea87305..e8a804a 100644 --- a/docs/en/_navbar.md +++ b/docs/en/_navbar.md @@ -8,7 +8,7 @@ - [transformModel](en/api/transformModelApi) - [editConfigModel](en/api/editConfigModelApi) - [Theme](en/api/themeApi) -- [Examples ](https://logic-flow.github.io/docs/examples) +- [Examples ](https://site.logic-flow.cn/examples/) - Release - [v1.2.x](en/release/1.2) - [v1.1.x](en/release/1.1) diff --git a/docs/en/guide/basic/node.md b/docs/en/guide/basic/node.md index 24a9463..a017c9c 100644 --- a/docs/en/guide/basic/node.md +++ b/docs/en/guide/basic/node.md @@ -29,7 +29,7 @@ LogicFlow recommends that in actual application scenarios, all nodes use custom LogicFlow is based on class inheritance to implement custom nodes, edges. Developers can inherit LogicFlow's built-in nodes and then use the object-oriented [overriding mechanism](https://baike.baidu.com/item/%E9%87%8D%E5%86%99/9355942?fr=aladdin) to override the node style-related methods to achieve the effect of customizing the node style. ![logicflow-1.0-2.png](../../assets/images/logicflow-1.0-2.png) -> This diagram was also drawn using LogicFlow. See [graphing tools](https://docs.logic-flow.cn/demo/dist/mvp/)。 +> This diagram was also drawn using LogicFlow. See [graphing tools](https://site.logic-flow.cn/demo/dist/mvp/)。 ## Select the base node that the custom node inherits from diff --git a/docs/en/guide/extension/adapter.md b/docs/en/guide/extension/adapter.md index abe636d..201a709 100644 --- a/docs/en/guide/extension/adapter.md +++ b/docs/en/guide/extension/adapter.md @@ -110,4 +110,4 @@ lf.getGraphData(); ### Example - Demo in CodeSandBox + Demo in CodeSandBox diff --git a/docs/en/guide/extension/extension-insert-node-in-polyline.md b/docs/en/guide/extension/extension-insert-node-in-polyline.md index 091f405..e5bfdbf 100644 --- a/docs/en/guide/extension/extension-insert-node-in-polyline.md +++ b/docs/en/guide/extension/extension-insert-node-in-polyline.md @@ -5,7 +5,7 @@ Drag a node to the middle of an edge and the node will automatically become part of the middle of the edge. Example: There exists a polyline E from node A to node B. Drag a node N onto the polyline E. Release the mouse when the center point of node N is exactly on the path of the polyline E. Then node N becomes an intermediate node between A and B. The original edge E will be deleted and two new polylines will be generated, A to N and N to B respectively. - Demo in CodeSandBox + Demo in CodeSandBox ## support diff --git a/docs/index.html b/docs/index.html index 2e7084b..e75cd56 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@ Github - + Examples EN diff --git a/docs/zh/_navbar.md b/docs/zh/_navbar.md index 1ae5ed8..5c2f27a 100644 --- a/docs/zh/_navbar.md +++ b/docs/zh/_navbar.md @@ -8,7 +8,7 @@ - [transformModel](zh/api/transformModelApi) - [editConfigModel](zh/api/editConfigModelApi) - [主题](zh/api/themeApi) -- [示例 ](https://logic-flow.github.io/docs/examples) +- [示例 ](https://site.logic-flow.cn/examples/) - 版本发布 - [v1.2.x](zh/release/1.2) - [v1.1.x](zh/release/1.1) diff --git a/docs/zh/guide/basic/node.md b/docs/zh/guide/basic/node.md index 0706ef0..9db3aa6 100644 --- a/docs/zh/guide/basic/node.md +++ b/docs/zh/guide/basic/node.md @@ -28,7 +28,7 @@ LogicFlow 是基于继承来实现自定义节点、边。开发者可以继承 ![logicflow-1.0-2.png](../../assets/images/logicflow-1.0-2.png) -> 此图也是用 LogicFlow 画出来的。见[作图工具](https://docs.logic-flow.cn/demo/dist/mvp/)。 +> 此图也是用 LogicFlow 画出来的。见[作图工具](https://site.logic-flow.cn/demo/dist/mvp/)。 ## 选择自定义节点继承的基础节点 diff --git a/docs/zh/guide/extension/adapter.md b/docs/zh/guide/extension/adapter.md index 342c484..ed1c81b 100644 --- a/docs/zh/guide/extension/adapter.md +++ b/docs/zh/guide/extension/adapter.md @@ -107,4 +107,4 @@ lf.getGraphData(); ### 转换结果示例 - 去 CodeSandbox 查看示例 + 去 CodeSandbox 查看示例 diff --git a/docs/zh/guide/extension/bpmn-element.md b/docs/zh/guide/extension/bpmn-element.md index 1ba4c4d..8c3bbc6 100644 --- a/docs/zh/guide/extension/bpmn-element.md +++ b/docs/zh/guide/extension/bpmn-element.md @@ -18,7 +18,7 @@ LogicFlow 提供了[自定义节点](zh/guide/basic/node)和[自定义边](zh/gu ``` - 去 CodeSandbox 查看示例 + 去 CodeSandbox 查看示例 ## 转换为 XML @@ -113,4 +113,4 @@ const data = { }; ``` -完整的 BPMN 案例工具请到[示例](https://docs.logic-flow.cn/examples/#/gallery)中体验。 +完整的 BPMN 案例工具请到[示例](https://site.logic-flow.cn/examples/#/gallery)中体验。 diff --git a/docs/zh/guide/extension/extension-insert-node-in-polyline.md b/docs/zh/guide/extension/extension-insert-node-in-polyline.md index 55c40dc..2cf836f 100644 --- a/docs/zh/guide/extension/extension-insert-node-in-polyline.md +++ b/docs/zh/guide/extension/extension-insert-node-in-polyline.md @@ -5,7 +5,7 @@ 拖动节点到边中间,自动成为边中间的点。 举例:存在一条节点 A 到节点 B 的折线 E,拖拽一个节点 N 到折线 E 上,当节点 N 的中心点恰好在折线 E 的路径上时松开鼠标,这时节点 N 就成为 A 与 B 的中间节点,原来的边 E 被删除,生成两条新的折线,分别是 A 到 N,N 到 B。示例如下。 - 去 CodeSandbox 查看示例 + 去 CodeSandbox 查看示例 ## 支持 diff --git a/examples/index.html b/examples/index.html index 296c988..240cc0d 100644 --- a/examples/index.html +++ b/examples/index.html @@ -19,7 +19,7 @@ gtag("config", "G-NDWZBYVHN9"); - +
diff --git a/examples/scripts/screenshot.js b/examples/scripts/screenshot.js index 6cbcd4e..e53cf06 100644 --- a/examples/scripts/screenshot.js +++ b/examples/scripts/screenshot.js @@ -76,7 +76,7 @@ async function scrape() { if (link.includes("http")) { await page.goto(link); } else { - await page.goto(`https://docs.logic-flow.cn/${link}`); + await page.goto(`https://site.logic-flow.cn/${link}`); } await page.screenshot({ path: `src/screenshots/${key}.png`, diff --git a/examples/src/components/Banner/Banner.vue b/examples/src/components/Banner/Banner.vue index 849fb2b..f8a1ea0 100644 --- a/examples/src/components/Banner/Banner.vue +++ b/examples/src/components/Banner/Banner.vue @@ -20,7 +20,7 @@
  • - 示例 + 示例
  • 版本记录 diff --git a/examples/src/components/SideBar/Menu.vue b/examples/src/components/SideBar/Menu.vue index 35222cb..9b4b029 100644 --- a/examples/src/components/SideBar/Menu.vue +++ b/examples/src/components/SideBar/Menu.vue @@ -72,7 +72,7 @@ const backToGallery = () => { }); }; const backToDocs = () => { - window.location.href = "https://docs.logic-flow.cn/docs/#/"; + window.location.href = "https://site.logic-flow.cn/docs/#/"; }; const FoldAll = () => { diff --git a/examples/src/views/Gallery/index.vue b/examples/src/views/Gallery/index.vue index 178fa3b..21e49d6 100644 --- a/examples/src/views/Gallery/index.vue +++ b/examples/src/views/Gallery/index.vue @@ -69,7 +69,7 @@ const jumpTo = (example) => { }); } else { (link.includes("http") && window.open(link)) || - window.open(`https://docs.logic-flow.cn/${link}`); + window.open(`https://site.logic-flow.cn/${link}`); window.open(link); } }; From 15d1143b41e81920840a5f1cb1975f535bc8aaa1 Mon Sep 17 00:00:00 2001 From: zhangmo Date: Tue, 27 Jun 2023 20:22:32 +0800 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9Eloading=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index e75cd56..7be7f14 100644 --- a/docs/index.html +++ b/docs/index.html @@ -15,6 +15,7 @@ }, }; var Omega = Omega || config; + var startTime = Math.ceil(new Date().getTime() / 1000);