npm build

This commit is contained in:
MauBiBot 2026-05-06 13:20:36 +02:00
parent ae0587e94f
commit 9e53b76879
2 changed files with 2 additions and 2 deletions

2
js/dist/forum.js vendored
View File

@ -1,2 +1,2 @@
(()=>{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={}})(); (()=>{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 s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}const r=flarum.core.compat["common/extend"],a=flarum.core.compat["forum/components/SettingsPage"];var i=e.n(a);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 r,a;a=e,(r=t).prototype=Object.create(a.prototype),r.prototype.constructor=r,s(r,a);var i=t.prototype;return i.oninit=function(t){e.prototype.oninit.call(this,t),this.saveChain=Promise.resolve()},i.queueSave=function(e,t){return this.saveChain=this.saveChain.then(function(){return e.savePreferences(t)}),this.saveChain},i.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},i.prefSwitch=function(e,t,n){var s=this,r=e.preferences()||{};return m(p(),{state:!!r[t],onchange:function(n){var r,a=e.preferences()||{},i=o({},a,((r={})[t]=n,r));return console.log("[msteams prefs] key",t,"value",n),console.log("[msteams prefs] before",a),console.log("[msteams prefs] merged",i),s.queueSave(e,i).then(function(){console.log("[msteams prefs] after",e.preferences()||{})})}},n)},t}(e.n(u)());n().initializers.add("sbp-jm-msteams-webhook-forum",function(){(0,r.extend)(i().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