Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 添加邮箱校验 #1050

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx lint-staged && log_emails=$(git config user.email) && if [[ ${log_emails} =~ '@tencent.com' ]];then echo 本地提交邮箱 $log_emails 校验非法,需要本地更改重新提交 && exit 2;else echo 邮箱 $log_emails 校验通过;fi
4 changes: 2 additions & 2 deletions src/badge/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ exports[`Badge > Badge mobileVue demo works fine 1`] = `
width="1em"
>
<path
d="M7.5 5.5a4.5 4.5 0 019 0V7H21v16H3V7h4.5V5.5zm0 3.5H5v12h14V9h-2.5v3h-2V9h-5v3h-2V9zm7-2h-5V5.5a2.5 2.5 0 015 0V7z"
d="M7.5 5.5a4.5 4.5 0 019 0V7H21v16H3V7h4.5V5.5zm0 3.5H5v12h14V9h-2.5v3h-2V9h-5v3h-2V9zm7-2V5.5a2.5 2.5 0 00-5 0V7h5z"
fill="currentColor"
/>
</svg>
Expand Down Expand Up @@ -1084,7 +1084,7 @@ exports[`Badge > Badge themeVue demo works fine 1`] = `
width="1em"
>
<path
d="M7.5 5.5a4.5 4.5 0 019 0V7H21v16H3V7h4.5V5.5zm0 3.5H5v12h14V9h-2.5v3h-2V9h-5v3h-2V9zm7-2h-5V5.5a2.5 2.5 0 015 0V7z"
d="M7.5 5.5a4.5 4.5 0 019 0V7H21v16H3V7h4.5V5.5zm0 3.5H5v12h14V9h-2.5v3h-2V9h-5v3h-2V9zm7-2V5.5a2.5 2.5 0 00-5 0V7h5z"
fill="currentColor"
/>
</svg>
Expand Down
8 changes: 2 additions & 6 deletions src/cell/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ exports[`Cell > Cell groupVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M3.05 11h3.98a16.9 16.9 0 012.3-7.6A9 9 0 003.05 11zM11 1.05a11 11 0 000 21.9l.01.01.43.03a12.48 12.48 0 001.14 0l.43-.03a11 11 0 000-21.91v-.01L12.57 1a11.16 11.16 0 00-1.14 0l-.43.03zM12 3c1.7 2.26 2.77 5 2.97 8H9.03c.2-3 1.27-5.74 2.97-8zM7.03 13H3.05a9 9 0 006.28 7.6 16.9 16.9 0 01-2.3-7.6zM12 21c-1.7-2.26-2.77-5-2.97-8h5.94c-.2 3-1.27 5.74-2.97 8zm2.67-.4a9 9 0 006.28-7.6h-3.98a16.9 16.9 0 01-2.3 7.6zm2.3-9.6a16.9 16.9 0 00-2.3-7.6 9 9 0 016.28 7.6h-3.98z"
d="M3.05 11a9 9 0 016.28-7.6 16.9 16.9 0 00-2.3 7.6H3.05zM11 1.05a11 11 0 000 21.9l.01.01.43.03a12.48 12.48 0 001.14 0l.43-.03a11 11 0 000-21.91v-.01L12.57 1a11.16 11.16 0 00-1.14 0l-.43.03zM12 3c1.7 2.26 2.77 5 2.97 8H9.03c.2-3 1.27-5.74 2.97-8zM7.03 13a16.9 16.9 0 002.3 7.6A9 9 0 013.05 13h3.98zM12 21c-1.7-2.26-2.77-5-2.97-8h5.94c-.2 3-1.27 5.74-2.97 8zm2.67-.4a16.9 16.9 0 002.3-7.6h3.98a9 9 0 01-6.28 7.6zm2.3-9.6a16.9 16.9 0 00-2.3-7.6 9 9 0 016.28 7.6h-3.98z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand Down Expand Up @@ -1167,10 +1165,8 @@ exports[`Cell > Cell mobileVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M3.05 11h3.98a16.9 16.9 0 012.3-7.6A9 9 0 003.05 11zM11 1.05a11 11 0 000 21.9l.01.01.43.03a12.48 12.48 0 001.14 0l.43-.03a11 11 0 000-21.91v-.01L12.57 1a11.16 11.16 0 00-1.14 0l-.43.03zM12 3c1.7 2.26 2.77 5 2.97 8H9.03c.2-3 1.27-5.74 2.97-8zM7.03 13H3.05a9 9 0 006.28 7.6 16.9 16.9 0 01-2.3-7.6zM12 21c-1.7-2.26-2.77-5-2.97-8h5.94c-.2 3-1.27 5.74-2.97 8zm2.67-.4a9 9 0 006.28-7.6h-3.98a16.9 16.9 0 01-2.3 7.6zm2.3-9.6a16.9 16.9 0 00-2.3-7.6 9 9 0 016.28 7.6h-3.98z"
d="M3.05 11a9 9 0 016.28-7.6 16.9 16.9 0 00-2.3 7.6H3.05zM11 1.05a11 11 0 000 21.9l.01.01.43.03a12.48 12.48 0 001.14 0l.43-.03a11 11 0 000-21.91v-.01L12.57 1a11.16 11.16 0 00-1.14 0l-.43.03zM12 3c1.7 2.26 2.77 5 2.97 8H9.03c.2-3 1.27-5.74 2.97-8zM7.03 13a16.9 16.9 0 002.3 7.6A9 9 0 013.05 13h3.98zM12 21c-1.7-2.26-2.77-5-2.97-8h5.94c-.2 3-1.27 5.74-2.97 8zm2.67-.4a16.9 16.9 0 002.3-7.6h3.98a9 9 0 01-6.28 7.6zm2.3-9.6a16.9 16.9 0 00-2.3-7.6 9 9 0 016.28 7.6h-3.98z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand Down
8 changes: 0 additions & 8 deletions src/dropdown-menu/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ exports[`DropdownMenu > DropdownMenu directionVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 7.5l7 7H5l7-7z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand All @@ -78,10 +76,8 @@ exports[`DropdownMenu > DropdownMenu directionVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 7.5l7 7H5l7-7z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand Down Expand Up @@ -378,10 +374,8 @@ exports[`DropdownMenu > DropdownMenu mobileVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 7.5l7 7H5l7-7z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand All @@ -401,10 +395,8 @@ exports[`DropdownMenu > DropdownMenu mobileVue demo works fine 1`] = `
width="1em"
>
<path
clip-rule="evenodd"
d="M12 7.5l7 7H5l7-7z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</div>
Expand Down
Loading