@@ -184,6 +185,7 @@ export function ThemeCharts() {
className={classNames(styles.chart, {
[styles.rightChart]: (index + 1) % 3 === 0,
})}
+ key={chart.msg}
>
diff --git a/site/components/quickIssue/QuickIssue.module.less b/site/components/quickIssue/QuickIssue.module.less
deleted file mode 100644
index dc07eaf8..00000000
--- a/site/components/quickIssue/QuickIssue.module.less
+++ /dev/null
@@ -1,65 +0,0 @@
-.markdown {
- font-size: 14px;
- line-height: 2;
- min-height: 910px;
-}
-.content {
- // background: '#fff', padding: 24, width: '60%;
- background: #ffffff;
- padding: 24px;
- width: 60%;
- min-height: 910px;
- margin-top: 40px;
-
- .flex {
- display: flex;
- align-items: baseline;
- justify-content: space-evenly;
-
- .button {
- width: 450px;
- }
- }
-
- form {
- margin-top: 80px;
- }
-
- .titleInput {
- width: 400px;
- }
-}
-
-@media (max-width: 1800px) {
- .content {
- background: #ffffff;
- padding: 24px;
- width: 80%;
- min-height: 910px;
- }
-}
-
-@media (max-width: 1300px) {
- .content {
- background: #ffffff;
- padding: 24px;
- width: 100%;
- min-height: 910px;
- }
-}
-
-@media (max-width: 960px) {
- .flex {
- display: flex;
- align-items: center !important;
- flex-direction: column;
-
- .button {
- width: 300px !important;
- }
- }
-
- .titleInput {
- width: 250px !important;
- }
-}
diff --git a/site/components/quickIssue/QuickIssue.tsx b/site/components/quickIssue/QuickIssue.tsx
deleted file mode 100644
index 09876c0b..00000000
--- a/site/components/quickIssue/QuickIssue.tsx
+++ /dev/null
@@ -1,227 +0,0 @@
-// 场景案例模版
-import Article from '@antv/dumi-theme-antv/dist/slots/Article';
-import { Layout as AntLayout, Button, Form, Input, Select, Space } from 'antd';
-import { useLocale } from 'dumi';
-import newGithubIssueUrl from 'new-github-issue-url';
-import React, { useEffect, useMemo, useState } from 'react';
-import GitHubButton from 'react-github-btn';
-import style from './QuickIssue.module.less';
-import { GITHUB_URL, ISSUE_TYPE } from './data';
-
-type url =
- | {
- label: string;
- gitUrl: string;
- api: string;
- chartDemo: string;
- assignee: string;
- }
- | undefined;
-
-const formItemLayout = {
- labelCol: {
- xs: { span: 24 },
- sm: { span: 8 },
- },
- wrapperCol: {
- xs: { span: 24 },
- sm: { span: 14 },
- },
-};
-export default () => {
- const [url, setUrl] = useState
(undefined);
- const [windowSize, setWindowSize] = useState(getWindowSize());
- const locale = useLocale();
- const lang = locale.id.includes('zh') ? 'zh' : 'en';
-
- const options = useMemo(() => {
- return GITHUB_URL.map((item) => {
- return {
- label: item.label,
- value: item.gitUrl,
- };
- });
- }, []);
-
- useEffect(() => {
- function handleWindowResize() {
- setWindowSize(getWindowSize());
- }
-
- window.addEventListener('resize', handleWindowResize);
-
- return () => {
- window.removeEventListener('resize', handleWindowResize);
- };
- }, []);
-
- function getWindowSize() {
- const { innerWidth, innerHeight } = window;
- return { innerWidth, innerHeight };
- }
-
- const onChange = (e: string) => {
- const findData = GITHUB_URL.find((item) => {
- return item.gitUrl === e;
- });
- setUrl(findData);
- };
-
- const onFinish = (values: any) => {
- const toUrl = newGithubIssueUrl({
- user: 'antvis',
- repo: url ? url.label : '',
- title: values.title,
- labels: [values.type, 'QuickIssue'],
- assignee: url?.assignee,
- });
- window.open(toUrl);
- };
-
- const text = useMemo(() => {
- if (lang === 'en') {
- return (
-
-
Before You Start...
-
- {' '}
- If you open an issue that does not conform to the requirements, it
- will be closed immediately
-
-
For usage questions, please use the following resources:
-
- - Read the introduce and components documentation
- -
- Make sure you have search your question in FAQ and changelog
-
- - Look for / ask questions on StackOverflow
-
-
- );
- }
- return (
-
-
在你开始之前...
-
- AntV的issue如果你开的 issue 不符合规定,它将会被
- 立刻关闭。
-
-
对于使用中遇到的问题,请使用以下资源:
-
- - 仔细阅读对应的 API文档 和 图标。
- - 提问前确保你在 常见问题 和 更新日志 中搜索过
- - 在 StackOverflow (英文) 或是 SegmentFault(中文)搜索和提问
-
-
- );
- }, [lang]);
-
- return (
- <>
-
-
-
-
-
- >
- );
-};
diff --git a/site/components/quickIssue/data.ts b/site/components/quickIssue/data.ts
deleted file mode 100644
index 310e99bf..00000000
--- a/site/components/quickIssue/data.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-export const GITHUB_URL = [
- {
- label: 'G2',
- gitUrl: 'https://github.com/antvis/G2',
- api: 'https://g2.antv.antgroup.com/api/overview',
- chartDemo: 'https://g2.antv.antgroup.com/examples',
- assignee: 'pearmini',
- },
- {
- label: 'G6',
- gitUrl: 'https://github.com/antvis/G6',
- api: 'https://g6.antv.antgroup.com/api/overview',
- chartDemo: 'https://g6.antv.antgroup.com/examples',
- assignee: 'Yanyan-Wang',
- },
- {
- label: 'X6',
- gitUrl: 'https://github.com/antvis/X6',
- api: 'https://x6.antv.antgroup.com/api/graph/graph',
- chartDemo: 'https://x6.antv.antgroup.com/examples',
- assignee: 'NewByVector',
- },
- {
- label: 'L7',
- gitUrl: 'https://github.com/antvis/L7',
- api: 'https://l7.antv.antgroup.com/api/scene',
- chartDemo: 'https://l7.antv.antgroup.com/examples',
- assignee: 'lzxue',
- },
- {
- label: 'F2',
- gitUrl: 'https://github.com/antvis/F2',
- api: 'https://f2.antv.antgroup.com/api/f2',
- chartDemo: 'https://f2.antv.antgroup.com/examples',
- assignee: 'zengyue',
- },
- {
- label: 'S2',
- gitUrl: 'https://github.com/antvis/S2',
- api: 'https://s2.antv.antgroup.com/api/general/s2-data-config',
- chartDemo: 'https://s2.antv.antgroup.com/examples',
- assignee: 'lijinke666',
- },
-];
-
-export const ISSUE_TYPE = [
- {
- label: 'bug',
- value: 'bug',
- },
- {
- label: '文档问题',
- value: 'documentation',
- },
- {
- label: '优化建议',
- value: 'enhancement',
- },
- {
- label: '功能需求',
- value: 'request',
- },
- {
- label: '问题讨论',
- value: 'discussion',
- },
-];
diff --git a/site/components/quoteCard/quoteCard.tsx b/site/components/quoteCard/quoteCard.tsx
index ac0068f3..15ca77da 100644
--- a/site/components/quoteCard/quoteCard.tsx
+++ b/site/components/quoteCard/quoteCard.tsx
@@ -31,7 +31,7 @@ const QuoteCard = (props: Props) => {
id: transformedMessage,
});
};
- const borderSlicer: Array