From 91858817ec146fdcaa2c658a8ba1993a3232e589 Mon Sep 17 00:00:00 2001 From: "@thinkinggis" Date: Tue, 29 Aug 2023 10:36:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0quickissue=20?= =?UTF-8?q?=E6=96=87=E6=A1=88=20(#141)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 象数 --- .../quickIssue/QuickIssue.module.less | 5 ++++ site/components/quickIssue/QuickIssue.tsx | 23 ++++++++++--------- site/components/quickIssue/data.ts | 18 ++++++++++----- 3 files changed, 29 insertions(+), 17 deletions(-) diff --git a/site/components/quickIssue/QuickIssue.module.less b/site/components/quickIssue/QuickIssue.module.less index 70ac2876..b5cb3f30 100644 --- a/site/components/quickIssue/QuickIssue.module.less +++ b/site/components/quickIssue/QuickIssue.module.less @@ -9,6 +9,7 @@ padding: 24px; width: 60%; min-height: 910px; + margin-top: 40px; .flex { display: flex; @@ -16,4 +17,8 @@ justify-content: space-evenly; } + form { + margin-top: 80px; + } + } \ No newline at end of file diff --git a/site/components/quickIssue/QuickIssue.tsx b/site/components/quickIssue/QuickIssue.tsx index 63dd71f0..7c8c94c4 100644 --- a/site/components/quickIssue/QuickIssue.tsx +++ b/site/components/quickIssue/QuickIssue.tsx @@ -8,12 +8,14 @@ import newGithubIssueUrl from 'new-github-issue-url'; import GitHubButton from 'react-github-btn' import styles from '@antv/dumi-theme-antv/dist/slots/ManualContent/index.module.less'; import { useLocale } from 'dumi'; +import { assign } from 'lodash'; type url = { label: string; gitUrl: string; api: string; chartDemo: string; + assignee: string; } | undefined const formItemLayout = { @@ -53,7 +55,8 @@ export default () => { user: 'antvis', repo: url ? url.label : '', title: values.title, - labels: [values.type] + labels: [values.type,'QuickIssue'], + assignee: url?.assignee, }); window.open(toUrl) } @@ -69,7 +72,6 @@ export default () => {
  • Make sure you have search your question in FAQ and changelog
  • Look for / ask questions on StackOverflow
  • -

    Also try to search for your issue - it may have already been answered or even fixed in the development branch. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue using the form below instead of commenting on the old issue.

    } return
    @@ -81,7 +83,6 @@ export default () => {
  • 提问前确保你在 常见问题 和 更新日志 中搜索过
  • 在 StackOverflow (英文) 或是 SegmentFault(中文)搜索和提问
  • -

    最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。

    }, [lang]) @@ -96,7 +97,7 @@ export default () => {
    @@ -104,14 +105,14 @@ export default () => {
    - + { url && + }}>{'API'} - {url && + }}>{lang === 'zh' ? '图表示例' : 'Demo'} +
    { Star
    - }
    + }
    @@ -143,11 +144,11 @@ export default () => { name={'title'} rules={[{ required: true }]} > - +
    -

    {lang === 'zh' ? 'issue正文内容,请点击下方按钮去创建页填写' : 'Please click the button below to create a page to fill in the main content of the issue'}

    +

    {lang === 'zh' ? 'issue正文内容,请点击下方按钮跳转到 Github 页面填写' : 'Please click the button below to be redirected to the GitHub page where you can fill in the content for the main issue'}

    diff --git a/site/components/quickIssue/data.ts b/site/components/quickIssue/data.ts index da22a792..6663cb15 100644 --- a/site/components/quickIssue/data.ts +++ b/site/components/quickIssue/data.ts @@ -4,36 +4,42 @@ export const GITHUB_URL = [ 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', - }, - { - label: 'F2', - gitUrl: 'https://github.com/antvis/F2', - api: 'https://f2.antv.antgroup.com/api/f2', - chartDemo: 'https://f2.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', } ]