diff --git a/js/dist/admin.js.map b/js/dist/admin.js.map index 5e0b8e8..487cd15 100644 --- a/js/dist/admin.js.map +++ b/js/dist/admin.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://@fof/frontpage/webpack/bootstrap","webpack://@fof/frontpage/external \"flarum.core.compat['extend']\"","webpack://@fof/frontpage/external \"flarum.core.compat['app']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/PermissionGrid']\"","webpack://@fof/frontpage/./src/admin/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","app","initializers","add","extend","PermissionGrid","items","icon","label","translator","trans","permission"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I,gBClFrDhC,EAAOD,QAAUkC,OAAOC,KAAKC,OAAe,Q,cCA5CnC,EAAOD,QAAUkC,OAAOC,KAAKC,OAAY,K,oBCAzCnC,EAAOD,QAAUkC,OAAOC,KAAKC,OAAO,8B,gFCIpCC,IAAIC,aAAaC,IAAI,iBAAiB,WACpCC,iBAAOC,IAAeX,UAAW,iBAAiB,SAAAY,GAChDA,EAAMH,IAAI,YAAa,CACrBI,KAAM,cACNC,MAAOP,IAAIQ,WAAWC,MAAM,sDAC5BC,WAAY","file":"admin.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 10);\n","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['app'];","module.exports = flarum.core.compat['components/PermissionGrid'];","import { extend } from 'flarum/extend';\nimport app from 'flarum/app';\nimport PermissionGrid from 'flarum/components/PermissionGrid';\n\napp.initializers.add('fof/frontpage', () => {\n extend(PermissionGrid.prototype, 'moderateItems', items => {\n items.add('frontpage', {\n icon: 'fas fa-home',\n label: app.translator.trans('core.admin.permissions.can_push_to_frontpage_label'),\n permission: 'discussion.front'\n });\n });\n});\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://@fof/frontpage/webpack/bootstrap","webpack://@fof/frontpage/external \"flarum.core.compat['extend']\"","webpack://@fof/frontpage/external \"flarum.core.compat['app']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/PermissionGrid']\"","webpack://@fof/frontpage/./src/admin/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","app","initializers","add","extend","PermissionGrid","items","icon","label","translator","trans","permission"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAA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AAIC,aAAaC,IAAI,iBAAiB,WAClCC,iBAAOC,IAAeX,UAAW,iBAAiB,SAACY,GAC/CA,EAAMH,IAAI,YAAa,CACnBI,KAAM,cACNC,MAAOP,IAAIQ,WAAWC,MAAM,sDAC5BC,WAAY","file":"admin.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 10);\n","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['app'];","module.exports = flarum.core.compat['components/PermissionGrid'];","import { extend } from 'flarum/extend';\nimport app from 'flarum/app';\nimport PermissionGrid from 'flarum/components/PermissionGrid';\n\napp.initializers.add('fof/frontpage', () => {\n extend(PermissionGrid.prototype, 'moderateItems', (items) => {\n items.add('frontpage', {\n icon: 'fas fa-home',\n label: app.translator.trans('core.admin.permissions.can_push_to_frontpage_label'),\n permission: 'discussion.front',\n });\n });\n});\n"],"sourceRoot":""} \ No newline at end of file diff --git a/js/dist/forum.js b/js/dist/forum.js index f0f5607..2d7f662 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -module.exports=function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=9)}([function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat.app},function(t,e){t.exports=flarum.core.compat["models/Discussion"]},function(t,e){t.exports=flarum.core.compat.Model},function(t,e){t.exports=flarum.core.compat["states/DiscussionListState"]},function(t,e){t.exports=flarum.core.compat["utils/DiscussionControls"]},function(t,e){t.exports=flarum.core.compat["components/Button"]},function(t,e){t.exports=flarum.core.compat["components/Badge"]},,function(t,e,o){"use strict";o.r(e);var n=o(0),r=o(1),a=o.n(r),f=o(4),p=o.n(f),u=o(5),c=o.n(u),s=o(6),i=o.n(s),l=o(3),d=o.n(l),m=o(2),b=o.n(m);b.a.prototype.frontpage=d.a.attribute("frontpage"),b.a.prototype.front=d.a.attribute("front");var g=o(7),x=o.n(g);b.a.prototype.frontpage=d.a.attribute("frontpage"),a.a.initializers.add("fof/frontpage",(function(){Object(n.extend)(p.a.prototype,"requestParams",(function(t){"front"===app.current.get("routeName")&&(t.filter.q=(t.filter.q||"")+"is:frontpage")})),Object(n.extend)(p.a.prototype,"sortMap",(function(t){delete t.latest,delete t.newest,delete t.top,delete t.oldest,t.front="-frontdate",t.latest="-lastPostedAt",t.newest="-createdAt",t.oldest="createdAt",t.top="-commentCount"})),Object(n.extend)(c.a,"moderationControls",(function(t,e){var o=e.frontpage();e.front()&&t.add("frontpage",i.a.component({icon:"fas fa-home",onclick:function(){o=!o,e.save({frontpage:o})}},app.translator.trans(e.frontpage()?"core.forum.post_controls.pull_from_front_button":"core.forum.post_controls.push_to_front_button")))})),Object(n.extend)(b.a.prototype,"badges",(function(t){this.frontpage()&&t.add("frontpage",x.a.component({type:"frontpage",label:app.translator.trans("core.forum.badge.frontpage_tooltip"),icon:"fas fa-home"}),10)}))}))}]); +module.exports=function(t){var o={};function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{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,o){if(1&o&&(t=e(t)),8&o)return t;if(4&o&&"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&o&&"string"!=typeof t)for(var r in t)e.d(n,r,function(o){return t[o]}.bind(null,r));return n},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},e.p="",e(e.s=9)}([function(t,o){t.exports=flarum.core.compat.extend},function(t,o){t.exports=flarum.core.compat.app},function(t,o){t.exports=flarum.core.compat["models/Discussion"]},function(t,o){t.exports=flarum.core.compat.Model},function(t,o){t.exports=flarum.core.compat["states/DiscussionListState"]},function(t,o){t.exports=flarum.core.compat["utils/DiscussionControls"]},function(t,o){t.exports=flarum.core.compat["components/Button"]},function(t,o){t.exports=flarum.core.compat["components/Badge"]},,function(t,o,e){"use strict";e.r(o);var n=e(1),r=e.n(n),a=e(0),f=e(4),p=e.n(f),u=e(5),c=e.n(u),i=e(6),s=e.n(i),l=e(3),m=e.n(l),d=e(2),b=e.n(d);b.a.prototype.frontpage=m.a.attribute("frontpage"),b.a.prototype.front=m.a.attribute("front");var g=e(7),x=e.n(g);b.a.prototype.frontpage=m.a.attribute("frontpage"),r.a.initializers.add("fof/frontpage",(function(){Object(a.extend)(p.a.prototype,"requestParams",(function(t){"front"===this.params.sort&&(t.filter.q=(t.filter.q||"")+"is:frontpage")})),Object(a.extend)(p.a.prototype,"sortMap",(function(t){t.front="-frontdate"})),Object(a.extend)(c.a,"moderationControls",(function(t,o){var e=o.frontpage();o.front()&&t.add("frontpage",s.a.component({icon:"fas fa-home",onclick:function(){e=!e,o.save({frontpage:e})}},app.translator.trans(o.frontpage()?"core.forum.post_controls.pull_from_front_button":"core.forum.post_controls.push_to_front_button")))})),Object(a.extend)(b.a.prototype,"badges",(function(t){this.frontpage()&&t.add("frontpage",x.a.component({type:"frontpage",label:app.translator.trans("core.forum.badge.frontpage_tooltip"),icon:"fas fa-home"}),10)}))}))}]); //# sourceMappingURL=forum.js.map \ No newline at end of file diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index cd3a13f..8a76bbc 100644 --- a/js/dist/forum.js.map +++ b/js/dist/forum.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://@fof/frontpage/webpack/bootstrap","webpack://@fof/frontpage/external \"flarum.core.compat['extend']\"","webpack://@fof/frontpage/external \"flarum.core.compat['app']\"","webpack://@fof/frontpage/external \"flarum.core.compat['models/Discussion']\"","webpack://@fof/frontpage/external \"flarum.core.compat['Model']\"","webpack://@fof/frontpage/external \"flarum.core.compat['states/DiscussionListState']\"","webpack://@fof/frontpage/external \"flarum.core.compat['utils/DiscussionControls']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/Button']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/Badge']\"","webpack://@fof/frontpage/./src/forum/addFrontPage.js","webpack://@fof/frontpage/./src/forum/addStickyBadge.js","webpack://@fof/frontpage/./src/forum/index.js","webpack://@fof/frontpage/./src/forum/addFrontSort.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","Discussion","frontpage","Model","attribute","front","app","initializers","add","extend","DiscussionListState","params","current","filter","q","map","latest","newest","top","oldest","DiscussionControls","items","discussion","isFront","Button","component","icon","onclick","save","translator","trans","badges","this","Badge","type","label"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOr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AAIV,MAAQ,aACZU,EAAIC,OAAS,gBACbD,EAAIE,OAAS,aACbF,EAAII,OAAS,YACbJ,EAAIG,IAAM,mBHdZT,iBAAOW,IAAoB,sBAAsB,SAASC,EAAOC,GAC/D,IAAIC,EAAUD,EAAWpB,YAErBoB,EAAWjB,SACbgB,EAAMb,IAAI,YAAagB,IAAOC,UAAU,CACtCC,KAAM,cACNC,QAAS,WACPJ,GAAWA,EACXD,EAAWM,KAAK,CAAC1B,UAAWqB,MAE7BjB,IAAIuB,WAAWC,MAAMR,EAAWpB,YAAc,kDAAoD,sDCZzGO,iBAAOR,IAAWP,UAAW,UAAU,SAASqC,GAC1CC,KAAK9B,aACP6B,EAAOvB,IAAI,YAAayB,IAAMR,UAAU,CACtCS,KAAM,YACNC,MAAO7B,IAAIuB,WAAWC,MAAM,sCAC5BJ,KAAM,gBACJ","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['app'];","module.exports = flarum.core.compat['models/Discussion'];","module.exports = flarum.core.compat['Model'];","module.exports = flarum.core.compat['states/DiscussionListState'];","module.exports = flarum.core.compat['utils/DiscussionControls'];","module.exports = flarum.core.compat['components/Button'];","module.exports = flarum.core.compat['components/Badge'];","import { extend } from 'flarum/extend';\nimport DiscussionControls from 'flarum/utils/DiscussionControls';\nimport Button from 'flarum/components/Button';\nimport Model from 'flarum/Model';\nimport Discussion from 'flarum/models/Discussion';\n\nDiscussion.prototype.frontpage = Model.attribute('frontpage');\nDiscussion.prototype.front = Model.attribute('front');\n\nexport default function addFrontPage() {\n extend(DiscussionControls, 'moderationControls', function(items, discussion) {\n let isFront = discussion.frontpage();\n\n if (discussion.front()) {\n items.add('frontpage', Button.component({\n icon: 'fas fa-home',\n onclick: () => {\n isFront = !isFront;\n discussion.save({frontpage: isFront});\n }\n }, app.translator.trans(discussion.frontpage() ? 'core.forum.post_controls.pull_from_front_button' : 'core.forum.post_controls.push_to_front_button')));\n }\n });\n}\n","import { extend } from 'flarum/extend';\nimport Model from 'flarum/Model';\nimport Discussion from 'flarum/models/Discussion';\nimport Badge from 'flarum/components/Badge';\n\nDiscussion.prototype.frontpage = Model.attribute('frontpage');\n\nexport default function addStickyBadge() {\n extend(Discussion.prototype, 'badges', function(badges) {\n if (this.frontpage()) {\n badges.add('frontpage', Badge.component({\n type: 'frontpage',\n label: app.translator.trans('core.forum.badge.frontpage_tooltip'),\n icon: 'fas fa-home'\n }), 10);\n }\n });\n}\n","import { extend, notificationType } from 'flarum/extend';\nimport app from 'flarum/app';\n\nimport addFrontSort from './addFrontSort';\nimport addFrontPage from './addFrontPage';\nimport addStickyBadge from './addStickyBadge';\n\napp.initializers.add('fof/frontpage', () => {\n addFrontSort();\n addFrontPage();\n addStickyBadge();\n});\n","import {extend} from 'flarum/extend';\nimport DiscussionListState from 'flarum/states/DiscussionListState';\n\nexport default function () {\n extend(DiscussionListState.prototype, 'requestParams', function (params) {\n\n if (app.current.get('routeName') === 'front') {\n params.filter.q = (params.filter.q || '') + 'is:frontpage';\n }\n });\n\n extend(DiscussionListState.prototype, 'sortMap', function (map) {\n\n // Delete Mapping\n delete map.latest;\n delete map.newest;\n delete map.top;\n delete map.oldest;\n\n // Re-Add Mapping to Redo Sort Order\n map.front = '-frontdate';\n map.latest = '-lastPostedAt';\n map.newest = '-createdAt';\n map.oldest = 'createdAt';\n map.top = '-commentCount';\n });\n}\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://@fof/frontpage/webpack/bootstrap","webpack://@fof/frontpage/external \"flarum.core.compat['extend']\"","webpack://@fof/frontpage/external \"flarum.core.compat['app']\"","webpack://@fof/frontpage/external \"flarum.core.compat['models/Discussion']\"","webpack://@fof/frontpage/external \"flarum.core.compat['Model']\"","webpack://@fof/frontpage/external \"flarum.core.compat['states/DiscussionListState']\"","webpack://@fof/frontpage/external \"flarum.core.compat['utils/DiscussionControls']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/Button']\"","webpack://@fof/frontpage/external \"flarum.core.compat['components/Badge']\"","webpack://@fof/frontpage/./src/forum/addFrontPage.js","webpack://@fof/frontpage/./src/forum/addStickyBadge.js","webpack://@fof/frontpage/./src/forum/index.js","webpack://@fof/frontpage/./src/forum/addFrontSort.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","Discussion","frontpage","Model","attribute","front","app","initializers","add","extend","DiscussionListState","params","this","sort","filter","q","map","DiscussionControls","items","discussion","isFront","Button","component","icon","onclick","save","translator","trans","badges","Badge","type","label"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAA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EAAOD,QAAUkC,OAAOC,KAAKC,OAAO,6B,cCApCnC,EAAOD,QAAUkC,OAAOC,KAAKC,OAAO,sB,cCApCnC,EAAOD,QAAUkC,OAAOC,KAAKC,OAAO,qB,gJCMpCC,IAAWP,UAAUQ,UAAYC,IAAMC,UAAU,aACjDH,IAAWP,UAAUW,MAAQF,IAAMC,UAAU,S,oBCF7CH,IAAWP,UAAUQ,UAAYC,IAAMC,UAAU,aCAjDE,IAAIC,aAAaC,IAAI,iBAAiB,WCDlCC,iBAAOC,IAAoBhB,UAAW,iBAAiB,SAAUiB,GACpC,UAArBC,KAAKD,OAAOE,OACZF,EAAOG,OAAOC,GAAKJ,EAAOG,OAAOC,GAAK,IAAM,mBAIpDN,iBAAOC,IAAoBhB,UAAW,WAAW,SAAUsB,GACvDA,EAAIX,MAAQ,gBHDhBI,iBAAOQ,IAAoB,sBAAsB,SAAUC,EAAOC,GAC9D,IAAIC,EAAUD,EAAWjB,YAErBiB,EAAWd,SACXa,EAAMV,IACF,YACAa,IAAOC,UACH,CACIC,KAAM,cACNC,QAAS,WACLJ,GAAWA,EACXD,EAAWM,KAAK,CAAEvB,UAAWkB,MAGrCd,IAAIoB,WAAWC,MACXR,EAAWjB,YAAc,kDAAoD,sDCjBjGO,iBAAOR,IAAWP,UAAW,UAAU,SAAUkC,GACzChB,KAAKV,aACL0B,EAAOpB,IACH,YACAqB,IAAMP,UAAU,CACZQ,KAAM,YACNC,MAAOzB,IAAIoB,WAAWC,MAAM,sCAC5BJ,KAAM,gBAEV","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['app'];","module.exports = flarum.core.compat['models/Discussion'];","module.exports = flarum.core.compat['Model'];","module.exports = flarum.core.compat['states/DiscussionListState'];","module.exports = flarum.core.compat['utils/DiscussionControls'];","module.exports = flarum.core.compat['components/Button'];","module.exports = flarum.core.compat['components/Badge'];","import { extend } from 'flarum/extend';\nimport DiscussionControls from 'flarum/utils/DiscussionControls';\nimport Button from 'flarum/components/Button';\nimport Model from 'flarum/Model';\nimport Discussion from 'flarum/models/Discussion';\n\nDiscussion.prototype.frontpage = Model.attribute('frontpage');\nDiscussion.prototype.front = Model.attribute('front');\n\nexport default function addFrontPage() {\n extend(DiscussionControls, 'moderationControls', function (items, discussion) {\n let isFront = discussion.frontpage();\n\n if (discussion.front()) {\n items.add(\n 'frontpage',\n Button.component(\n {\n icon: 'fas fa-home',\n onclick: () => {\n isFront = !isFront;\n discussion.save({ frontpage: isFront });\n },\n },\n app.translator.trans(\n discussion.frontpage() ? 'core.forum.post_controls.pull_from_front_button' : 'core.forum.post_controls.push_to_front_button'\n )\n )\n );\n }\n });\n}\n","import { extend } from 'flarum/extend';\nimport Model from 'flarum/Model';\nimport Discussion from 'flarum/models/Discussion';\nimport Badge from 'flarum/components/Badge';\n\nDiscussion.prototype.frontpage = Model.attribute('frontpage');\n\nexport default function addStickyBadge() {\n extend(Discussion.prototype, 'badges', function (badges) {\n if (this.frontpage()) {\n badges.add(\n 'frontpage',\n Badge.component({\n type: 'frontpage',\n label: app.translator.trans('core.forum.badge.frontpage_tooltip'),\n icon: 'fas fa-home',\n }),\n 10\n );\n }\n });\n}\n","import app from 'flarum/app';\nimport addFrontSort from './addFrontSort';\nimport addFrontPage from './addFrontPage';\nimport addStickyBadge from './addStickyBadge';\n\napp.initializers.add('fof/frontpage', () => {\n addFrontSort();\n addFrontPage();\n addStickyBadge();\n});\n","import { extend } from 'flarum/extend';\nimport DiscussionListState from 'flarum/states/DiscussionListState';\n\nexport default function () {\n extend(DiscussionListState.prototype, 'requestParams', function (params) {\n if (this.params.sort === 'front') {\n params.filter.q = (params.filter.q || '') + 'is:frontpage';\n }\n });\n\n extend(DiscussionListState.prototype, 'sortMap', function (map) {\n map.front = '-frontdate';\n });\n}\n"],"sourceRoot":""} \ No newline at end of file