Skip to content

Commit

Permalink
Generalize router file icon
Browse files Browse the repository at this point in the history
References #255
  • Loading branch information
PKief committed May 29, 2018
1 parent 93741b3 commit 40a4a38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
File renamed without changes
7 changes: 6 additions & 1 deletion src/icons/fileIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ export const fileIcons: FileIcons = {
},
{ name: 'javascript', fileExtensions: ['js', 'esx', 'mjs'] },
{ name: 'react', fileExtensions: ['jsx', 'tsx'] },
{
name: 'routing',
fileExtensions: ['routing.ts', 'routing.js', 'routes.ts', 'routes.js'],
fileNames: ['router.js', 'router.ts', 'routes.js', 'routes.ts'],
enabledFor: [IconPack.Angular, IconPack.Ngrx, IconPack.React, IconPack.Redux]
},
{
name: 'redux-action',
fileExtensions: ['action.js', 'actions.js', 'action.ts', 'actions.ts'],
Expand Down Expand Up @@ -386,7 +392,6 @@ export const fileIcons: FileIcons = {
]
},
{ name: 'test-js', fileExtensions: ['spec.js', 'test.js', 'js.snap'] },
{ name: 'angular-routing', fileExtensions: ['routing.ts', 'routing.js'], enabledFor: [IconPack.Angular, IconPack.Ngrx] },
{
name: 'angular',
fileExtensions: ['module.ts', 'module.js', 'ng-template'],
Expand Down

0 comments on commit 40a4a38

Please sign in to comment.