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

compatible with thumbnail which url has no extension #11684

Merged
merged 2 commits into from Aug 9, 2018
Merged

compatible with thumbnail which url has no extension #11684

merged 2 commits into from Aug 9, 2018

Conversation

@elantion
Copy link
Contributor

@elantion elantion commented Aug 9, 2018

First of all, thank you for your contribution! :-)

Please makes sure that these checkboxes are checked before submitting your PR, thank you!

  • Make sure that you propose PR to right branch: bugfix for master, feature for latest active branch feature-x.x.
  • Make sure that you follow antd's code convention.
  • Run npm run lint and fix those errors before submitting in order to keep consistent code style.
  • Rebase before creating a PR to keep commit history clear.
  • Add some descriptions and refer relative issues for you PR.

Extra checklist:

if isBugFix :

  • Make sure that you add at least one unit test for the bug which you had fixed.

elif isNewFeature :

  • [] Update API docs for the component.
  • Update/Add demo to demonstrate new feature.
  • Update TypeScript definition for the component.
  • Add unit tests for the feature.
@elantion
Copy link
Contributor Author

@elantion elantion commented Aug 9, 2018

ref: #9880

If file.type equal image or one type of png, jpg etc. It will show image thumbnail, no matter url extension.

@ant-design-bot
Copy link
Contributor

@ant-design-bot ant-design-bot commented Aug 9, 2018

Deploy preview for ant-design ready!

Built with commit c20a78d

https://deploy-preview-11684--ant-design.netlify.com

@@ -264,7 +249,6 @@ describe('Upload List', () => {
await delay(200);
expect(wrapper.state().fileList[2].thumbUrl).not.toBeFalsy();
});

This comment has been minimized.

@afc163

afc163 Aug 9, 2018
Member

Why delete those blanks?

This comment has been minimized.

@elantion

elantion Aug 9, 2018
Author Contributor

After fighting 'LF' and 'CRLF', I forget reset those file. sorry. but it seem like pass lint after all.

This comment has been minimized.

@afc163

afc163 Aug 9, 2018
Member

You can reset these.

This comment has been minimized.

@elantion

elantion Aug 9, 2018
Author Contributor

All right, mate. I add another commit to restore those blanks. Please review it. Thanks.

@codecov
Copy link

@codecov codecov bot commented Aug 9, 2018

Codecov Report

Merging #11684 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11684      +/-   ##
==========================================
+ Coverage   92.03%   92.03%   +<.01%     
==========================================
  Files         200      200              
  Lines        5109     5113       +4     
  Branches     1433     1397      -36     
==========================================
+ Hits         4702     4706       +4     
  Misses        403      403              
  Partials        4        4
Impacted Files Coverage Δ
components/upload/UploadList.tsx 90.19% <100%> (+0.4%) ⬆️

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 7f78cc9...c20a78d. Read the comment docs.

yinjianqiang
@afc163 afc163 merged commit 583abe8 into ant-design:master Aug 9, 2018
20 checks passed
20 checks passed
WIP ready for review
Details
ci/circleci: compile Your tests passed on CircleCI!
Details
ci/circleci: dist Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: setup Your tests passed on CircleCI!
Details
ci/circleci: test_dist Your tests passed on CircleCI!
Details
ci/circleci: test_dist_15 Your tests passed on CircleCI!
Details
ci/circleci: test_dom Your tests passed on CircleCI!
Details
ci/circleci: test_dom_15 Your tests passed on CircleCI!
Details
ci/circleci: test_es Your tests passed on CircleCI!
Details
ci/circleci: test_es_15 Your tests passed on CircleCI!
Details
ci/circleci: test_lib Your tests passed on CircleCI!
Details
ci/circleci: test_lib_15 Your tests passed on CircleCI!
Details
ci/circleci: test_node Your tests passed on CircleCI!
Details
ci/circleci: test_node_15 Your tests passed on CircleCI!
Details
codecov/patch 100% of diff hit (target 92.03%)
Details
codecov/project 92.03% (+<.01%) compared to 7f78cc9
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
deploy/netlify Deploy preview ready!
Details
security/snyk - package.json (paranoidjk) No manifest changes detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants