first ver

This commit is contained in:
Henry Jameson 2018-01-29 10:47:26 +03:00
parent cd3bf461db
commit b10787d23c
4 changed files with 85 additions and 1 deletions

View file

@ -1,3 +1,4 @@
import StillImage from '../still-image/still-image.vue'
import nsfwImage from '../../assets/nsfw.png'
import fileTypeService from '../../services/file_type/file_type.service.js'
@ -16,6 +17,9 @@ const Attachment = {
img: document.createElement('img')
}
},
components: {
StillImage
},
computed: {
type () {
return fileTypeService.fileType(this.attachment.mimetype)