From f7a143c341391394551562fa8e8326e5fa779faa Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 8 Jan 2025 12:49:55 +0800 Subject: [PATCH] fix: fix site error (#181) * fix: fix g6 links * fix: fix SEO ref * refactor: remove useless notification logic * fix: remove PropTypes * docs: update readme * chore: add typing.d.ts, update tsconfig * chore: remove mirror action * chore: add ci action * chore: fix package.json error --- .dumi/pages/case/index.tsx | 21 +++--- .dumi/pages/quick/index.tsx | 24 +++--- .dumi/theme/slots/Detail/index.tsx | 57 ++++++-------- .github/workflows/ci.yml | 24 ++++++ .github/workflows/mirror.yml | 30 -------- README.md | 4 +- package.json | 18 ++--- .../common/OverflowedText/index.tsx | 74 ++++++++++++------- site/data/complex-charts.json | 4 +- site/data/link-charts.json | 10 +-- tsconfig.json | 10 ++- typing.d.ts | 24 ++++++ 12 files changed, 164 insertions(+), 136 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/mirror.yml create mode 100644 typing.d.ts diff --git a/.dumi/pages/case/index.tsx b/.dumi/pages/case/index.tsx index a53aaebf4..fa5daeb98 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 cd6cfae6f..4b5f38eba 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 ( <>
- +
- +