Skip to content

Commit

Permalink
docs(module:icon): support upload image to search icon (#5170) (#6931)
Browse files Browse the repository at this point in the history
* docs(module:icon): support upload image to search icon (#5170)

Same as [1], on the icon page, support to quickly find the icons
that users may find through upload or paste icon.

[1] https://ant.design/components/icon-cn

* docs(module:icon): fix upload error

docs(module:icon): fix upload error

docs(module:icon): fix undefined variable

Co-authored-by: simplejason <simplejason.coder@gmail.com>
  • Loading branch information
ywager and simplejason committed Jan 13, 2022
1 parent 3806250 commit 1fec1e0
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 10 deletions.
25 changes: 24 additions & 1 deletion components/icon/demo/module
Expand Up @@ -2,5 +2,28 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzRadioModule } from 'ng-zorro-antd/radio';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzBadgeModule } from 'ng-zorro-antd/badge';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzPopoverModule } from 'ng-zorro-antd/popover';
import { NzProgressModule } from 'ng-zorro-antd/progress';
import { NzResultModule } from 'ng-zorro-antd/result';
import { NzSpinModule } from 'ng-zorro-antd/spin';
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
import { NzUploadModule } from 'ng-zorro-antd/upload';

export const moduleList = [ NzIconModule, NzRadioModule, NzInputModule, NzBadgeModule ];
export const moduleList = [
NzIconModule,
NzRadioModule,
NzInputModule,
NzBadgeModule,
NzButtonModule,
NzMessageModule,
NzModalModule,
NzPopoverModule,
NzProgressModule,
NzResultModule,
NzSpinModule,
NzToolTipModule,
NzUploadModule,
];
12 changes: 11 additions & 1 deletion components/icon/page/en-US.txt
Expand Up @@ -6,5 +6,15 @@
data: 'Data Icons',
other: 'Application Icons',
logo: 'Brand and Logos',
search: 'Search icon here. Click icon to copy code.'
search: 'Search icon here. Click icon to copy code.',
picSearcherIntro: 'AI Search by image is online, you are welcome to use it! 🎉',
picSearcherMatching: 'Matching...',
picSearcherModelLoading: 'Model is loading...',
picSearcherResultTip: 'Matched the following icons for you:',
picSearcherServerError: 'Predict service is temporarily unavailable',
picSearcherThIcon: 'Icon',
picSearcherThScore: 'Probability',
picSearcherTitle: 'Search by image',
picSearcherUploadHint: 'We will find the best matching icon based on the image provided',
picSearcherUploadText: 'Click, drag, or paste file to this area to upload'
}

0 comments on commit 1fec1e0

Please sign in to comment.