Skip to content

Commit

Permalink
PackgeDetail: add icons for gulp, webpack, grunt, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 3, 2018
1 parent 6186c51 commit a54b09c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const icons = {
font: 'fas fa-font',
license: 'fas fa-file-contract',
configFile: 'fas fa-clipboard-check',
gulp: 'fab fa-gulp',
grunt: 'fab fa-grunt',
webpack: 'mdi-webpack',
fingerUp: 'far fa-hand-point-up',
};

icons.keywords = icons.tags;
Expand Down
16 changes: 16 additions & 0 deletions src/views/PackageDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,22 @@ export default class PackageDetail extends Vue {
return icons.license;
}
if (filename.toLowerCase().includes('webpack')) {
return icons.webpack;
}
if (filename.toLowerCase().includes('gulp')) {
return icons.gulp;
}
if (filename.toLowerCase().includes('lint')) {
return icons.fingerUp;
}
if (filename.toLowerCase().includes('grunt')) {
return icons.grunt;
}
if (filename.toLowerCase() === 'package.json') {
return icons.packageJson;
}
Expand Down

0 comments on commit a54b09c

Please sign in to comment.