From c5cb936bff657b5f34449779d1c6a92e58a47fa7 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 8 Jan 2025 11:21:20 +0800 Subject: [PATCH 1/9] fix: fix g6 links --- site/data/complex-charts.json | 4 ++-- site/data/link-charts.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/data/complex-charts.json b/site/data/complex-charts.json index 5fd9280e..b7c89b61 100644 --- a/site/data/complex-charts.json +++ b/site/data/complex-charts.json @@ -2,14 +2,14 @@ { "text": "3D大图", "video": "https://gw.alipayobjects.com/v/huamei_qa8qxu/afts/video/wg8jTrLg-3EAAAAAAAAAAAAAK4eUAQBr", - "link": "https://g6-next.antv.antgroup.com/examples/feature/features#webgl3d", + "link": "https://g6.antv.antgroup.com/examples/feature/default/#3d-massive", "img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*RFK7R4TWuWQAAAAAAAAAAAAADmJ7AQ/original", "activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*NYQ-SLUYDpMAAAAAAAAAAAAADmJ7AQ/original" }, { "text": "超强性能", "video": "https://gw.alipayobjects.com/v/huamei_qa8qxu/afts/video/l9viS4v0-fgAAAAAAAAAAAAAK4eUAQBr", - "link": "https://g6-next.antv.antgroup.com/examples/feature/features/#rendererSwitch", + "link": "https://g6.antv.antgroup.com/zh/examples/performance/massive-data/#20000", "img": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EZ7OTLICg8MAAAAAAAAAAAAADmJ7AQ/original", "activeImg": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*2_soSbk9R-gAAAAAAAAAAAAADmJ7AQ/original" }, diff --git a/site/data/link-charts.json b/site/data/link-charts.json index 4664326b..9a4a999f 100644 --- a/site/data/link-charts.json +++ b/site/data/link-charts.json @@ -10,8 +10,8 @@ { "title": "关系图", "subTitle": "便捷的关系数据可视化引擎与图分析工具", - "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*Ku9aQ4WJtsQAAAAAAAAAAAAADmJ7AQ/original", - "link": "https://g6-next.antv.antgroup.com/examples/net/forceDirected#basicForce", + "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7Ca9SZkhRJsAAAAAAAAAAAAADmJ7AQ/original", + "link": "https://g6.antv.antgroup.com/examples/layout/force-directed/#d3-force", "antv": "G6", "color": "rgba(249,106,65)" }, @@ -26,8 +26,8 @@ { "title": "关系图", "subTitle": "便捷的关系数据可视化引擎与图分析工具", - "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_JGLQZl-PcQAAAAAAAAAAAAADmJ7AQ/original", - "link": "https://g6.antv.antgroup.com/examples/case/graphDemos#decisionBubbles", + "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ug4vTJA7QbMAAAAAAAAAAAAADmJ7AQ/original", + "link": "https://g6.antv.antgroup.com/examples/scene-case/default/#why-do-cats", "antv": "G6", "color": "rgba(249,106,65)" }, @@ -75,7 +75,7 @@ "title": "树形图表", "subTitle": "便捷的关系数据可视化引擎与图分析工具", "image": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*cEgmQov_Kf0AAAAAAAAAAAAADmJ7AQ/original", - "link": "https://g6.antv.antgroup.com/examples/case/treeDemos/#decisionTree", + "link": "https://g6.antv.antgroup.com/examples/scene-case/default/#fund-flow", "antv": "G6", "color": "rgba(249,106,65)" }, From 97bdc3194b4750f31fb4603544f62a593b99e40d Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 8 Jan 2025 11:24:24 +0800 Subject: [PATCH 2/9] fix: fix SEO ref --- .dumi/pages/case/index.tsx | 21 ++++++++++++--------- .dumi/pages/quick/index.tsx | 24 +++++++++++++----------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.dumi/pages/case/index.tsx b/.dumi/pages/case/index.tsx index a53aaebf..fa5daeb9 100644 --- a/.dumi/pages/case/index.tsx +++ b/.dumi/pages/case/index.tsx @@ -1,19 +1,22 @@ import React from 'react'; -import { SEO } from '@antv/dumi-theme-antv/dist/slots/SEO'; +import SEO from '@antv/dumi-theme-antv/dist/common/SEO'; import ShowCase from 'site/components/ShowCase/ShowCase'; -import { useIntl, useLocale } from 'dumi' -import { Header } from '@antv/dumi-theme-antv/dist/slots/Header' -import { Footer } from '@antv/dumi-theme-antv/dist/slots/Footer' +import { useIntl, useLocale } from 'dumi'; +import { Header } from '@antv/dumi-theme-antv/dist/slots/Header'; +import { Footer } from '@antv/dumi-theme-antv/dist/slots/Footer'; const CaseIndex: React.FC = () => { - const locale = useLocale() - const intl = useIntl() + const locale = useLocale(); + const intl = useIntl(); return ( <>
- +
diff --git a/.dumi/pages/quick/index.tsx b/.dumi/pages/quick/index.tsx index cd6cfae6..4b5f38eb 100644 --- a/.dumi/pages/quick/index.tsx +++ b/.dumi/pages/quick/index.tsx @@ -1,22 +1,24 @@ import React from 'react'; -import { SEO } from '@antv/dumi-theme-antv/dist/slots/SEO'; -import { useIntl, useLocale } from 'dumi' -import { Header } from '@antv/dumi-theme-antv/dist/slots/Header' -import { Footer } from '@antv/dumi-theme-antv/dist/slots/Footer' +import SEO from '@antv/dumi-theme-antv/dist/common/SEO'; +import { useIntl, useLocale } from 'dumi'; +import { Header } from '@antv/dumi-theme-antv/dist/slots/Header'; +import { Footer } from '@antv/dumi-theme-antv/dist/slots/Footer'; import QuickIssue from 'site/components/quickIssue/QuickIssue'; - const QuickIssueIndex: React.FC = () => { - const locale = useLocale() - const intl = useIntl() + const locale = useLocale(); + const intl = useIntl(); return ( <>
- +
- +