mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 22:43:41 +08:00
6cbdfb6aa1
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
2 lines
1.2 KiB
JavaScript
Generated
2 lines
1.2 KiB
JavaScript
Generated
(()=>{var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var s in t)e.o(t,s)&&!e.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:t[s]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};(()=>{"use strict";e.r(r),e.d(r,{extend:()=>n});const t=flarum.reg.get("core","admin/app");var s=e.n(t);const i=flarum.reg.get("core","common/extenders");var o=e.n(i);class a{pattern(){return"is:sticky"}toFilter(e,r){return{[(r?"-":"")+"sticky"]:!0}}filterKey(){return"sticky"}fromFilter(e,r){return"".concat(r?"-":"","is:sticky")}}flarum.reg.add("flarum-sticky","common/query/discussions/StickyGambit",a);const n=[(new(o().Search)).gambit("discussions",a)];s().initializers.add("flarum-sticky",(()=>{s().extensionData.for("flarum-sticky").registerPermission({icon:"fas fa-thumbtack",label:s().translator.trans("flarum-sticky.admin.permissions.sticky_discussions_label"),permission:"discussion.sticky"},"moderate",95)}))})(),module.exports=r})();
|
|
//# sourceMappingURL=admin.js.map
|