summaryrefslogtreecommitdiff
path: root/priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js
diff options
context:
space:
mode:
Diffstat (limited to 'priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js')
-rw-r--r--priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js b/priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js
new file mode 100644
index 000000000..c639e6216
--- /dev/null
+++ b/priv/static/adminfe/static/js/chunk-5cf2.a8562f1f.js
@@ -0,0 +1,2 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5cf2"],{UR5J:function(t,e,n){"use strict";n.r(e);var s={name:"Relays",components:{RebootButton:n("rIUS").a},data:function(){return{newRelay:""}},computed:{getLabelWidth:function(){return this.isDesktop?"130px":"85px"},isDesktop:function(){return"desktop"===this.$store.state.app.device},loading:function(){return this.$store.state.relays.loading},relays:function(){return this.$store.state.relays.fetchedRelays}},mounted:function(){this.$store.dispatch("FetchRelays")},methods:{followRelay:function(){this.$store.dispatch("AddRelay",this.newRelay),this.newRelay=""},deleteRelay:function(t){this.$store.dispatch("DeleteRelay",t)}}},a=(n("p8X7"),n("KHd+")),l=Object(a.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"relays-container"},[n("div",{staticClass:"relays-header-container"},[n("h1",[t._v("\n "+t._s(t.$t("relays.relays"))+"\n ")]),t._v(" "),n("reboot-button")],1),t._v(" "),n("div",{staticClass:"follow-relay-container"},[n("el-input",{staticClass:"follow-relay",attrs:{placeholder:t.$t("relays.followRelay")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.followRelay.apply(null,arguments)}},model:{value:t.newRelay,callback:function(e){t.newRelay=e},expression:"newRelay"}}),t._v(" "),n("el-button",{nativeOn:{click:function(e){return t.followRelay.apply(null,arguments)}}},[t._v(t._s(t.$t("relays.follow")))])],1),t._v(" "),n("el-table",{attrs:{data:t.relays}},[n("el-table-column",{attrs:{label:t.$t("relays.instanceUrl"),prop:"actor"}}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("relays.followedBack"),width:t.getLabelWidth,prop:"followed_back",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:t.row.followed_back?"el-icon-check":"el-icon-minus"})]}}],null,!1,237257305)}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("table.actions"),width:t.getLabelWidth,fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return t.deleteRelay(e.row.actor)}}},[t._v("\n "+t._s(t.$t("table.unfollow"))+"\n ")])]}}],null,!1,877363589)})],1)],1)},[],!1,null,null,null);l.options.__file="index.vue";e.default=l.exports},p8X7:function(t,e,n){"use strict";var s=n("sp3N");n.n(s).a},rIUS:function(t,e,n){"use strict";var s=n("yXPU"),a=n.n(s),l=n("o0o1"),o=n.n(l),r=n("mSNy"),i={name:"RebootButton",computed:{needReboot:function(){return this.$store.state.app.needReboot}},methods:{restartApp:function(){var t=this;return a()(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("RestartApplication");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:r.a.t("settings.restartSuccess")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},c=n("KHd+"),u=Object(c.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return this.needReboot?e("el-tooltip",{attrs:{content:this.$t("settings.restartApp"),placement:"bottom-end"}},[e("el-button",{staticClass:"reboot-button",attrs:{type:"warning"},on:{click:this.restartApp}},[e("span",[e("i",{staticClass:"el-icon-refresh"}),this._v("\n "+this._s(this.$t("settings.instanceReboot"))+"\n ")])])],1):this._e()},[],!1,null,null,null);u.options.__file="index.vue";e.a=u.exports},sp3N:function(t,e,n){}}]);
+//# sourceMappingURL=chunk-5cf2.a8562f1f.js.map \ No newline at end of file