From 6c2bf54bde43f6cdf14430067bf43b3899c4a384 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 25 May 2019 00:32:22 -0600 Subject: [PATCH 1/2] Update Post and Profile components --- resources/assets/js/components/PostComponent.vue | 10 ++++++++++ resources/assets/js/components/Profile.vue | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index fc7b8b986..aa5e0bb84 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -490,6 +490,16 @@ export default { } }, + beforeMount() { + let u = new URLSearchParams(window.location.search); + if(u.has('ui') && u.get('ui') == 'moment' && this.profileLayout != 'moment') { + this.profileLayout = 'moment'; + } + if(u.has('ui') && u.get('ui') == 'metro' && this.profileLayout != 'metro') { + this.profileLayout = 'metro'; + } + }, + mounted() { this.fetchRelationships(); }, diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 1f397f66a..e33724b36 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -546,6 +546,13 @@ export default { $('nav.navbar').hide(); $('body').prepend('
' + this.profileUsername + '
'); } + let u = new URLSearchParams(window.location.search); + if(u.has('ui') && u.get('ui') == 'moment' && this.profileLayout != 'moment') { + this.profileLayout = 'moment'; + } + if(u.has('ui') && u.get('ui') == 'metro' && this.profileLayout != 'metro') { + this.profileLayout = 'metro'; + } }, mounted() { From ffe50d2c21cfec54efa8050c121bac47767b6a16 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 25 May 2019 00:34:21 -0600 Subject: [PATCH 2/2] Update compiled assets --- public/js/profile.js | Bin 61297 -> 61536 bytes public/js/status.js | Bin 60324 -> 60587 bytes public/mix-manifest.json | Bin 845 -> 845 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/public/js/profile.js b/public/js/profile.js index d716b0a20061749db0e9af3f0d1d3d43dd9bbbb9..164ec1754c86a3bc2ba5b6e98d75bc50d18bf833 100644 GIT binary patch delta 426 zcmex(kNLp^<_(jWH!HE;Vr4N23G$r8t-(?pnV-G+9oHMadh4>pB83v$ywq}q&>)}S z)Wo9XjDWer{@B ziIS~tiC%hY3A(VNZAnIEv0gz@ep+Tus!w8NerbuCng(339xiGNGf7hi&4SdDqI^vA z!J>qWM>ZX-L9QhvYW1 XFP;I3fXNfqNU`_=?bv+q^af=B4o;9_ delta 180 zcmaFxfcfJ+<_(jWS@oU69hD~QEb`SVWaj7T6@w);txNPW5{osIN;8!-)zp-7^K(=4N|bDEOZ3uHOVEWCZA&sTi}ebM z^3yVNQhgFD^Gi$A)HE;!ZIx1?CTZ%RS&&*%l#gjXSd;|gbHN%kH=pP4Rb@%HFw5PX zU>Xp>VVr1|YLRGWxOqow5$EQs{YFfiO{NR7uy__bRZcGKvz+WQNn8!4C{`yXPp>F7 zF&Pvd#nCB=C5gIax-i+vjgxHP<^egflOIj8MhK`*)<$q5CdVK+dnV6DaN?&}AUN}< zSRyzNrkEi(a#M{EoQSEb5ghJm2?$Q{v}gq9+O#+}C2x-uZKcVLC*(F~&i=~H5?GvW zIr#&-6vV>;D?3?&vRzYwKKI@Hdigwga7ckvPi|PwDGE}oq-kBOm#2}ash3!*lMxnH M4wK!y<@g6>03S}%i2wiq delta 317 zcmZ2|lX=N?<_#D5H{THGR%HnaGAZ7iZWa*0VV;_plxkv_ym^0H5hrtKnD68d>{2Z5 zIpLL)`8YZ^8%!`}g77Y!u$;VcnmAm;+v!ll`Y#BLpT**G6!TPLDxw zG-u34aL&xIKyY|wS|T{UGtCg3?wLji&e55x5uA!y2?)-ES