Skip to content

Commit

Permalink
docs: issue helper add codesandbox template (#1623)
Browse files Browse the repository at this point in the history
* docs: issue helper add codesandbox template

* docs: allow github repo as a reproduction

* docs: fix typing error
  • Loading branch information
liuweiGL authored Jun 22, 2021
1 parent 4813754 commit a7d2726
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 10 deletions.
102 changes: 94 additions & 8 deletions docs/guide/issue-helper.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default () => {
decorator={[FormItem]}
component={[Select, { showSearch: true }]}
/>

<Field
title="Link to minimal reproduction"
name="reproduceLink"
Expand All @@ -208,11 +209,96 @@ export default () => {
validator={[
'url',
(value) => {
return /\/\/codesandbox\.io/.test(value)
return /\/\/(codesandbox\.io|github)/.test(value)
? ''
: 'Must Be Codesandbox Link'
: 'Must Be Codesandbox Link or Github Repo'
},
]}
description={
<div>
This is Codesandbox templates.If you are:
<ul>
<li>
React + Antd User:
<ul>
<li>
<a href="https://codesandbox.io/s/7ql5g" target="_blank">
Pure JSX
</a>
</li>
<li>
<a href="https://codesandbox.io/s/pxqz2" target="_blank">
Markup Schema
</a>
</li>
<li>
<a href="https://codesandbox.io/s/jcpnx" target="_blank">
JSON Schema
</a>
</li>
</ul>
</li>
<li>
React + Fusion User:
<ul>
<li>
<a
href="https://codesandbox.io/s/festive-austin-mkiuc"
target="_blank"
>
Pure JSX
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/quirky-roentgen-jwsdh"
target="_blank"
>
Markup Schema
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/ancient-https-w2i7v"
target="_blank"
>
JSON Schema
</a>
</li>
</ul>
</li>
<li>
Vue3 + ant-design-vue User:
<ul>
<li>
<a
href="https://codesandbox.io/s/quizzical-fermi-mbt2x"
target="_blank"
>
Pure JSX
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/dreamy-fermi-7pftm"
target="_blank"
>
Markup Schema
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/interesting-faraday-0iu5c"
target="_blank"
>
JSON Schema
</a>
</li>
</ul>
</li>
</ul>
</div>
}
/>
<Field
title="Step to reproduce"
Expand Down Expand Up @@ -255,12 +341,12 @@ export default () => {
feature?
</p>
<p>
An important design goal of Formily is keeping the API
surface small and straightforward. In general, we only consider
adding new features that solve a problem that cannot be easily
dealt with using existing APIs (i.e. not just an alternative way
of doing things that can already be done). The problem should
also be common enough to justify the addition.
An important design goal of Formily is keeping the API surface
small and straightforward. In general, we only consider adding
new features that solve a problem that cannot be easily dealt
with using existing APIs (i.e. not just an alternative way of
doing things that can already be done). The problem should also
be common enough to justify the addition.
</p>
</div>
}
Expand Down
89 changes: 87 additions & 2 deletions docs/guide/issue-helper.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,96 @@ export default () => {
validator={[
'url',
(value) => {
return /\/\/codesandbox\.io/.test(value)
return /\/\/(codesandbox\.io|github)/.test(value)
? ''
: '必须是Codesandbox链接'
: '必须是 Codesandbox 链接或者 Github 仓库地址'
},
]}
description={
<div>
This is Codesandbox templates.If you are:
<ul>
<li>
React + Antd User:
<ul>
<li>
<a href="https://codesandbox.io/s/7ql5g" target="_blank">
Pure JSX
</a>
</li>
<li>
<a href="https://codesandbox.io/s/pxqz2" target="_blank">
Markup Schema
</a>
</li>
<li>
<a href="https://codesandbox.io/s/jcpnx" target="_blank">
JSON Schema
</a>
</li>
</ul>
</li>
<li>
React + Fusion User:
<ul>
<li>
<a
href="https://codesandbox.io/s/festive-austin-mkiuc"
target="_blank"
>
Pure JSX
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/quirky-roentgen-jwsdh"
target="_blank"
>
Markup Schema
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/ancient-https-w2i7v"
target="_blank"
>
JSON Schema
</a>
</li>
</ul>
</li>
<li>
Vue3 + ant-design-vue User:
<ul>
<li>
<a
href="https://codesandbox.io/s/quizzical-fermi-mbt2x"
target="_blank"
>
Pure JSX
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/dreamy-fermi-7pftm"
target="_blank"
>
Markup Schema
</a>
</li>
<li>
<a
href="https://codesandbox.io/s/interesting-faraday-0iu5c"
target="_blank"
>
JSON Schema
</a>
</li>
</ul>
</li>
</ul>
</div>
}
/>
<Field
title="重现步骤"
Expand Down

0 comments on commit a7d2726

Please sign in to comment.