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

feat(schematics): add fix icon schematic #2238

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

hsuanxyz
Copy link
Member

@hsuanxyz hsuanxyz commented Oct 3, 2018

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #2171

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@codecov
Copy link

codecov bot commented Oct 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@e0d9987). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2238   +/-   ##
=========================================
  Coverage          ?   95.92%           
=========================================
  Files             ?      485           
  Lines             ?    12122           
  Branches          ?     1621           
=========================================
  Hits              ?    11628           
  Misses            ?      139           
  Partials          ?      355

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0d9987...aee32d6. Read the comment docs.

@hsuanxyz hsuanxyz requested a review from wzhudev October 8, 2018 07:03
@@ -27,7 +27,7 @@ timeline: true
* 支持多色图标。
* 对于内建图标的更换可以提供更多 API,而不需要进行样式覆盖。

我们尽可能地在不增加包体积的前提下对旧的 API 进行了兼容,你无需修改代码,但可能需要进行一些配置。关于 icon 的更多信息,请阅读 Icon API 的[“Svg 图标”](/components/icon/zh#svg-图标)和[“静态加载与动态加载”两节](/components/icon/zh#静态加载与动态加载)。
我们尽可能地在不增加包体积的前提下对旧的 API 进行了兼容,你无需修改代码,但可能需要进行一些配置。关于 icon 的更多信息,请阅读 Icon API 的[“Svg 图标”](/components/icon/zh#svg-图标)和[“静态加载与动态加载”](/components/icon/zh#静态加载与动态加载)两节
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use URI encode here too.

@wzhudev
Copy link
Member

wzhudev commented Oct 8, 2018

Do we need to run this when user runs ng add ng-zorro-antd?

@hsuanxyz
Copy link
Member Author

hsuanxyz commented Oct 8, 2018

Will automatic run fix-icon when run ng add ng-zorro-antd

@@ -7,6 +7,11 @@ hasPageDemo: true

Semantic vector graphics.

<blockquote style="border-color: orange;">
<p><strong>If the icon cannot be displayed or the console has an error, Please run the following command to fix it <code>ng g ng-zorro-antd:fix-icon</code>.</strong></p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The p in Please run should be lower case.

@hsuanxyz hsuanxyz merged commit 8861beb into NG-ZORRO:master Oct 9, 2018
@hsuanxyz hsuanxyz deleted the schematics/fix-icon branch October 23, 2018 10:35
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants