framework/extensions/pusher/js/dist/admin.js
2020-07-02 00:16:19 +00:00

2 lines
2.5 KiB
JavaScript

module.exports=function(t){var r={};function e(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var a in t)e.d(n,a,function(r){return t[r]}.bind(null,a));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=7)}([function(t,r){t.exports=flarum.core.compat.app},function(t,r){t.exports=flarum.core.compat.extend},,,,,function(t,r){t.exports=flarum.core.compat["components/SettingsModal"]},function(t,r,e){"use strict";e.r(r);e(1);var n=e(0),a=e.n(n);var o=e(6),u=function(t){var r,e;function n(){return t.apply(this,arguments)||this}e=t,(r=n).prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e;var a=n.prototype;return a.className=function(){return"PusherSettingsModal Modal--small"},a.title=function(){return app.translator.trans("flarum-pusher.admin.pusher_settings.title")},a.form=function(){return[m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-pusher.admin.pusher_settings.app_id_label")),m("input",{className:"FormControl",bidi:this.setting("flarum-pusher.app_id")})),m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-pusher.admin.pusher_settings.app_key_label")),m("input",{className:"FormControl",bidi:this.setting("flarum-pusher.app_key")})),m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-pusher.admin.pusher_settings.app_secret_label")),m("input",{className:"FormControl",bidi:this.setting("flarum-pusher.app_secret")})),m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-pusher.admin.pusher_settings.app_cluster_label")),m("input",{className:"FormControl",bidi:this.setting("flarum-pusher.app_cluster")}))]},n}(e.n(o).a);a.a.initializers.add("flarum-pusher",(function(t){t.extensionSettings["flarum-pusher"]=function(){return t.modal.show(u)}}))}]);
//# sourceMappingURL=admin.js.map