[ADF-1843] rename 'extension-viewer' to 'add-viewer-extension' (#2568)

* rename 'extension-viewer' to 'adf-viewer-extension'

also add support for json preview

* docs updates
This commit is contained in:
Denys Vuika
2017-10-30 18:14:27 +00:00
committed by Eugenio Romano
parent 30fb980afd
commit e5fe39fdc1
6 changed files with 62 additions and 46 deletions

View File

@@ -121,7 +121,7 @@ export class ViewerComponent implements OnDestroy, OnChanges {
private extensions = {
image: ['png', 'jpg', 'jpeg', 'gif', 'bpm'],
media: ['wav', 'mp4', 'mp3', 'webm', 'ogg'],
text: ['txt', 'xml', 'js', 'html'],
text: ['txt', 'xml', 'js', 'html', 'json'],
pdf: ['pdf']
};