npm build
This commit is contained in:
parent
f9e8f62e9c
commit
9bda6c6f92
|
|
@ -1,2 +1,2 @@
|
||||||
(()=>{var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};(()=>{"use strict";const t=flarum.core.compat["forum/app"];var o=e.n(t);function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}const r=flarum.core.compat["common/extend"],s=flarum.core.compat["forum/components/SettingsPage"];var c=e.n(s);const a=flarum.core.compat["common/components/Switch"];var i=e.n(a);const p=flarum.core.compat["common/Component"];var u=function(e){function t(){return e.apply(this,arguments)||this}var r,s;s=e,(r=t).prototype=Object.create(s.prototype),r.prototype.constructor=r,n(r,s);var c=t.prototype;return c.view=function(){var e=o().session.user,t=e.preferences()||{};return m("div",{className:"TeamsSettings Block"},m("h3",null,"Microsoft Teams"),this.prefSwitch(e,t,"sbp-jm-msteams.enabled","Enable Microsoft Teams notifications"),m("div",{className:"TeamsSettings-options"},this.prefSwitch(e,t,"sbp-jm-msteams.types.newPost","Someone replies to a discussion I am following"),this.prefSwitch(e,t,"sbp-jm-msteams.types.postMentioned","Someone mentions me in a post"),this.prefSwitch(e,t,"sbp-jm-msteams.types.userMentioned","Someone mentions me")))},c.prefSwitch=function(e,t,o,n){return m(i(),{state:!!t[o],onchange:function(t){var n;e.savePreferences(((n={})[o]=t,n))}},n)},t}(e.n(p)());o().initializers.add("sbp-jm-msteams-webhook-forum",function(){(0,r.extend)(c().prototype,"content",function(e){e.children.push(m(u,null))})})})(),module.exports={}})();
|
(()=>{var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};(()=>{"use strict";const t=flarum.core.compat["forum/app"];var n=e.n(t);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(null,arguments)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}const s=flarum.core.compat["common/extend"],i=flarum.core.compat["forum/components/SettingsPage"];var a=e.n(i);const c=flarum.core.compat["common/components/Switch"];var p=e.n(c);const u=flarum.core.compat["common/Component"];var f=function(e){function t(){return e.apply(this,arguments)||this}var s,i;i=e,(s=t).prototype=Object.create(i.prototype),s.prototype.constructor=s,r(s,i);var a=t.prototype;return a.oninit=function(t){e.prototype.oninit.call(this,t),this.saveChain=Promise.resolve()},a.queueSave=function(e,t){return this.saveChain=this.saveChain.then(function(){return e.savePreferences(t)}),this.saveChain},a.view=function(){var e=n().session.user;return e?m("div",{className:"TeamsSettings Block"},m("h3",null,"Microsoft Teams"),this.prefSwitch(e,"sbp-jm-msteams.enabled","Enable Microsoft Teams notifications"),m("div",{className:"TeamsSettings-options"},this.prefSwitch(e,"sbp-jm-msteams.types.newPost","Someone replies to a discussion I am following"),this.prefSwitch(e,"sbp-jm-msteams.types.postMentioned","Someone mentions me in a post"),this.prefSwitch(e,"sbp-jm-msteams.types.userMentioned","Someone mentions me"))):null},a.prefSwitch=function(e,t,n){var r=this,s=e.preferences()||{};return m(p(),{state:!!s[t],onchange:function(n){var s,i=o({},e.preferences()||{},((s={})[t]=n,s));return r.queueSave(e,i)}},n)},t}(e.n(u)());n().initializers.add("sbp-jm-msteams-webhook-forum",function(){(0,s.extend)(a().prototype,"content",function(e){e.children.push(m(f,null))})})})(),module.exports={}})();
|
||||||
//# sourceMappingURL=forum.js.map
|
//# sourceMappingURL=forum.js.map
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue