pleroma/priv/static/static/js/app.8e94b6d65028f6ffaeee.js

4 lines
63 KiB
JavaScript
Raw Normal View History

2017-04-04 17:21:11 +02:00
webpackJsonp([2,0],[function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a=s(96),i=n(a),r=s(451),o=n(r),u=s(454),l=n(u),c=s(408),d=n(c),f=s(420),v=n(f),m=s(419),p=n(m),h=s(413),_=n(h),g=s(410),b=n(g),w=s(416),y=n(w),C=s(426),S=n(C),x=s(422),k=n(x),M=s(98),j=n(M),$=s(156),O=n($),A=s(154),I=n(A),F=s(155),U=n(F),N=s(453),E=n(N),P=s(153),T=n(P);i.default.use(l.default),i.default.use(o.default),i.default.use(E.default,{locale:"en-US",locales:{"en-US":s(249)}});var L={paths:["config.hideAttachments","config.hideAttachmentsInConv","config.hideNsfw","statuses.notifications","users.users"]},D=new l.default.Store({modules:{statuses:j.default,users:O.default,api:I.default,config:U.default},plugins:[(0,T.default)(L)],strict:!1}),R=[{name:"root",path:"/",redirect:"/main/all"},{path:"/main/all",component:p.default},{path:"/main/public",component:v.default},{path:"/main/friends",component:_.default},{name:"conversation",path:"/notice/:id",component:b.default,meta:{dontScroll:!0}},{name:"user-profile",path:"/users/:id",component:S.default},{name:"mentions",path:"/:username/mentions",component:y.default},{name:"settings",path:"/settings",component:k.default}],H=new o.default({mode:"history",routes:R,scrollBehavior:function(t,e,s){return!t.matched.some(function(t){return t.meta.dontScroll})&&(s||{x:0,y:0})}});new i.default({router:H,store:D,el:"#app",render:function(t){return t(d.default)}}),window.fetch("/static/config.json").then(function(t){return t.json()}).then(function(t){var e=t.name,s=t.theme,n=t.background,a=t.logo;D.dispatch("setOption",{name:"name",value:e}),D.dispatch("setOption",{name:"theme",value:s}),D.dispatch("setOption",{name:"background",value:n}),D.dispatch("setOption",{name:"logo",value:a})})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s="/api/account/verify_credentials.json",n="/api/statuses/friends_timeline.json",a="/api/qvitter/allfollowing",i="/api/statuses/public_timeline.json",r="/api/statuses/public_and_external_timeline.json",o="/api/favorites/create",u="/api/favorites/destroy",l="/api/statuses/retweet",c="/api/statuses/update.json",d="/api/statuses/destroy",f="/api/statuses/show",v="/api/statusnet/media/upload",m="/api/statusnet/conversation",p="/api/statuses/mentions.json",h="/api/statuses/friends.json",_="/api/friendships/create.json",g="/api/friendships/destroy.json",b="/api/qvitter/set_profile_pref.json",w=window.fetch,y=function(t,e){var s="",n=s+t;return e.credentials="include",w(n,e)},C=function(t){return t&&t.username&&t.password?{Authorization:"Basic "+btoa(t.username+":"+t.password)}:{}},S=function(t){var e=t.id,s=t.credentials,n=_+"?user_id="+e;return y(n,{headers:C(s),method:"POST"}).then(function(t){return t.json()})},x=function(t){var e=t.id,s=t.credentials,n=g+"?user_id="+e;return y(n,{headers:C(s),method:"POST"}).then(function(t){return t.json()})},k=function(t){var e=t.credentials;return y(h,{headers:C(e)}).then(function(t){return t.json()})},M=function(t){var e=t.username,s=t.credentials,n=a+"/"+e+".json";return y(n,{headers:C(s)}).then(function(t){return t.json()})},j=function(t){var e=t.id,s=t.credentials,n=m+"/"+e+".json?count=100";return y(n,{headers:C(s)}).then(function(t){return t.json()})},$=function(t){var e=t.id,s=t.credentials,n=f+"/"+e+".json";return y(n,{headers:C(s)}).then(function(t){return t.json()})},O=function(t){var e=t.id,s=t.credentials,n=t.muted,a=void 0===n||n,i=new FormData,r=a?1:0;return i.append("namespace","qvitter"),i.append("data",r),i.append("topic","mute:"+e),y(b,{method:"POST",headers:C(s),body:i})},A=function(t){var e=t.timeline,s=t.credentials,a=t.since,o=void 0!==a&&a,u=t.until,l=void 0!==u&&u,c={public:i,friends:n,mentions:p,publicAndExternal:r},d=c[e];return o&&(d+="?since_id="+o),l&&(d+="?max_id="+l),y(d,{headers:C(s)}).then(function(t){return t.json()})},I=function(t){return y(s,{method:"POST",headers:C(t)})},F=function(t){var e=t.id,s=t.credentials;return y(o+"/"+e+".json",{headers:C(s),method:"POST"})},U=function(t){var e=t.id,s=t.credentials;return y(
},destroyed:function(){this.$store.dispatch("stopFetching","publicAndExternal")}};e.default=r},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(51),i=n(a),r={components:{Timeline:i.default},computed:{timeline:function(){return this.$store.state.statuses.timelines.public}},created:function(){this.$store.dispatch("startFetching","public")},destroyed:function(){this.$store.dispatch("stopFetching","public")}};e.default=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={props:["status"],data:function(){return{animated:!1}},methods:{retweet:function(){var t=this;this.status.repeated||this.$store.dispatch("retweet",{id:this.status.id}),this.animated=!0,setTimeout(function(){t.animated=!1},500)}},computed:{classes:function(){return{retweeted:this.status.repeated,"animate-spin":this.animated}}}};e.default=s},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(424),i=n(a),r={data:function(){return{hideAttachmentsLocal:this.$store.state.config.hideAttachments,hideAttachmentsInConvLocal:this.$store.state.config.hideAttachmentsInConv,hideNsfwLocal:this.$store.state.config.hideNsfw}},components:{StyleSwitcher:i.default},watch:{hideAttachmentsLocal:function(t){this.$store.dispatch("setOption",{name:"hideAttachments",value:t})},hideAttachmentsInConvLocal:function(t){this.$store.dispatch("setOption",{name:"hideAttachmentsInConv",value:t})},hideNsfwLocal:function(t){this.$store.dispatch("setOption",{name:"hideNsfw",value:t})}}};e.default=r},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(409),i=n(a),r=s(412),o=n(r),u=s(421),l=n(u),c=s(411),d=n(c),f=s(152),v=n(f),m=s(95),p=n(m),h={props:["statusoid","expandable","inConversation","focused"],data:function(){return{replying:!1,expanded:!1,unmuted:!1,userExpanded:!1}},computed:{hideAttachments:function(){return this.$store.state.config.hideAttachments&&!this.inConversation||this.$store.state.config.hideAttachmentsInConv&&this.inConversation},retweet:function(){return!!this.statusoid.retweeted_status},retweeter:function(){return this.statusoid.user.name},status:function(){return this.retweet?this.statusoid.retweeted_status:this.statusoid},loggedIn:function(){return!!this.$store.state.users.currentUser},muted:function(){return!this.unmuted&&this.status.user.muted},isReply:function(){return!!this.status.in_reply_to_status_id},borderColor:function(){return{borderBottomColor:this.$store.state.config.colors.base02}}},components:{Attachment:i.default,FavoriteButton:o.default,RetweetButton:l.default,DeleteButton:d.default,PostStatusForm:v.default,UserCardContent:p.default},methods:{linkClicked:function(t){var e=t.target;"SPAN"===e.tagName&&(e=e.parentNode),"A"===e.tagName&&window.open(e.href,"_blank")},toggleReplying:function(){this.replying=!this.replying},toggleExpanded:function(){this.$emit("toggleExpanded")},toggleMute:function(){this.unmuted=!this.unmuted},toggleUserExpanded:function(){this.userExpanded=!this.userExpanded}}};e.default=h},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=s(94),i=n(a),r=s(151),o=n(r),u={props:["statusoid"],data:function(){return{expanded:!1}},components:{Status:i.default,Conversation:o.default},methods:{toggleExpanded:function(){this.expanded=!this.expanded}}};e.default=u},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{availableStyles:[],selected:this.$store.state.config.theme}},created:function(){var t=this;window.fetch("/static/css/themes.json").then(function(t){return t.json()}).then(function(e){t.availableStyles=e})},watch:{selected:function(){this.$store.dispatch("setOption",{name:"theme",value:this.selected})}}}},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esM
},staticRenderFns:[]}}]);
//# sourceMappingURL=app.8e94b6d65028f6ffaeee.js.map