filter for allowed file types in the demo component
This commit is contained in:
@@ -98,6 +98,9 @@ export default {
|
|||||||
highlight: this.syntax[extension] || extension,
|
highlight: this.syntax[extension] || extension,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.filter((item) => {
|
||||||
|
return ['vue', 'jsx', 'scss'].includes(item.extension)
|
||||||
|
})
|
||||||
.sortBy(item => item.path.split('/').length)
|
.sortBy(item => item.path.split('/').length)
|
||||||
.toArray()
|
.toArray()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user