mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e){t.exports=flarum.core.compat.app},function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat["utils/PostControls"]},function(t,e){t.exports=flarum.core.compat["components/CommentPost"]},function(t,e,r){"use strict";r.r(e);var n=r(1),o=r(0),a=r.n(o),u=r(2),i=r.n(u),f=r(3),c=r.n(f);a.a.initializers.add("flarum-akismet",(function(){Object(n.extend)(i.a,"destructiveControls",(function(t,e){if(t.has("approve")){var r=e.flags();r&&r.some((function(t){return"akismet"===t.type()}))&&(t.get("approve").children=a.a.translator.trans("flarum-akismet.forum.post.not_spam_button"))}})),Object(n.override)(c.a.prototype,"flagReason",(function(t,e){return"akismet"===e.type()?a.a.translator.trans("flarum-akismet.forum.post.akismet_flagged_text"):t(e)}))}),-20)}]);
|
|
//# sourceMappingURL=forum.js.map
|