From 5f690145755c3972268e2750808ac98dcc17af90 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 28 Oct 2016 18:08:03 +0200 Subject: [PATCH] Basic attachments, some retweet fixes. --- src/assets/nsfw.jpg | Bin 0 -> 18315 bytes src/components/attachment/attachment.js | 21 +++++++++++++++++++ src/components/attachment/attachment.vue | 25 +++++++++++++++++++++++ src/components/status/status.js | 21 ++++++++++++++++++- src/components/status/status.vue | 20 ++++++++---------- src/components/timeline/timeline.vue | 2 +- 6 files changed, 76 insertions(+), 13 deletions(-) create mode 100644 src/assets/nsfw.jpg create mode 100644 src/components/attachment/attachment.js create mode 100644 src/components/attachment/attachment.vue diff --git a/src/assets/nsfw.jpg b/src/assets/nsfw.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6ae4ffe9e595e8ce8342bf9a5e8e7975db4fee0b GIT binary patch literal 18315 zcmXtg1ys}T_x~sj7fhZu|HA))B z=rL;S|Hkj{&p8~A&)M#iH(sxMFHtXa)Tt=$Qh-1pDoqX5mmmf-`vCl(+*QNa0|atDx&9^S;8`312AMt8UVG|;Z9To-xZ8ldyu1Y8 zyEuASzj3t@1iRa%@5Bm_ zHu%Ev=M%YF>qmz)eD;r=;k9i(9a-+HDZq?S{x)NS(R|hix4!E`DDJ=J3Mo<@28GcolSS#Oa^N585=X23XF$xTjZ`D! z42%D7-)*z4m$pNc?)a9H=9oCWG8t$7oe)V+OEi7QYq|{QSwmnXjF^)+a+j|QNzNHY zD?wkVV%L%hNOa?(llJ_-!8f7*H~8d}Ix+pX>M6pn)JsHhq^8yeq`;SyK}gfhPjCi6 z*o_Z1lybD)1pNf@6ibwGq>a>*+Q1at{5mq8mQbQo;&#>CXhw$t6!BX)Xzv~?|v^!JJGyPjdJgr-e3O4)zdc6s<<=?p%KfPsu z$zOi(_S`%>?LroL%W6nC(EvklKY2qp+x}b7A>-sO(YzJ8`#i7(rxHiXr_G`QNR?E& z56pYGg5L9!owl950|?|cT)P@Lp?}LtaOM8?|K}u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oy1TI8GAgaxK4)4|Dwu_Hnj3FZO_$r2d9~%k!vYvW>-r5rd{vLr`!n=c$SEZs8 zsE$xT!4IQ!^!a4XcRNV`-xR;TzCFDPnA>BWzAc}B=Dx6X%CBl4V5(;KoK*2!*q`P8 z_0{1I0^i==Cc0NA%i`3D3)6mXK0j-}c-hG><~@f)YGf~eLDuH43N&-*9EZ&cb==$3!R^>Kk8TMQ?Cd-eZ!@lBZy%OyMe@kQU}2bkHyz^S0@lU6cy9B@;KRS)z~yufCns&(e3k{+;1rm| z(y@TGVPC-WdlxoXx_zi>WaDkPx3@7o&M>$4?}dfH<06D6=6o!Re|DaIR|#X?FHVc! zIhU{9;Fq-mMv|tI2KNH>Em!L#8-mhwyL8R(FzCedt%=RPHR%SZJ*TMh@bOy);G*>j zQ(0qbw`O`LF@y98aQAFKt`4%@i3v1tSA9C z#yqYJR;hGM{a&4I16$f!&%75GKtaa)`0X>W>Ll&fM{n;ks6jx{Ue?SCvd$zX&$9O?SQp3k@ ziy%%a2bu}?_Jkd6AIn<7PIj8`1~|oB0z5{9)7=QPcmn7y6_b-f`O87Rm}CN6b}$#L z@X|!!#sjcIPv1pHAPOhccRU9!P5=dnP(wvGaIFOB7!_9m;5v$79|fsM|QzInoV0WcHi-h2c4TT=}X6gm@Oa6E?);0Of3TPE&D;H&@4A5|Z?I;`T# R2OgZm;OXk;vd$@?2>={7+4cYc literal 0 HcmV?d00001 diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js new file mode 100644 index 00000000..c21cd656 --- /dev/null +++ b/src/components/attachment/attachment.js @@ -0,0 +1,21 @@ +import nsfwImage from '../../assets/nsfw.jpg' + +const Attachment = { + props: [ + 'attachment', + 'nsfw' + ], + data: () => ({ nsfwImage }), + computed: { + type () { + return 'image' + } + }, + methods: { + showNsfw () { + this.nsfw = false + } + } +} + +export default Attachment diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue new file mode 100644 index 00000000..67c6ac18 --- /dev/null +++ b/src/components/attachment/attachment.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/components/status/status.js b/src/components/status/status.js index ad08d9b7..2842ef0f 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -1,5 +1,24 @@ +import Attachment from '../attachment/attachment.vue' + const Status = { - props: [ 'status' ] + props: [ 'statusoid' ], + data: () => ({ + nsfw: true + }), + computed: { + retweet () { return !!this.statusoid.retweeted_status }, + retweeter () { return this.statusoid.user.name }, + status () { + if (this.retweet) { + return this.statusoid.retweeted_status + } else { + return this.statusoid + } + } + }, + components: { + Attachment + } } export default Status diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 6ced1af5..04a55f67 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -1,11 +1,11 @@