diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-09 19:09:22 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-09 19:14:05 +0300 |
| commit | d695dcaff91ce616549dc54c02b8bf9167f2be58 (patch) | |
| tree | 74ffd66cae8ccd38591c805d8e65a45dac733fb8 /src/components/attachment | |
| parent | 8b96ea93776fd1eb462a7c54822d4f8ad6a9e776 (diff) | |
experimental flash support through ruffle
Diffstat (limited to 'src/components/attachment')
| -rw-r--r-- | src/components/attachment/attachment.js | 2 | ||||
| -rw-r--r-- | src/components/attachment/attachment.vue | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 5f5779a0..8849f501 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -1,4 +1,5 @@ import StillImage from '../still-image/still-image.vue' +import Flash from '../flash/flash.vue' import VideoAttachment from '../video_attachment/video_attachment.vue' import nsfwImage from '../../assets/nsfw.png' import fileTypeService from '../../services/file_type/file_type.service.js' @@ -43,6 +44,7 @@ const Attachment = { } }, components: { + Flash, StillImage, VideoAttachment }, diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 2c1c1682..2102127d 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -117,6 +117,8 @@ <!-- eslint-enable vue/no-v-html --> </div> </div> + + <Flash v-if="type === 'flash'" :src="attachment.large_thumb_url || attachment.url" /> </div> </template> |
