diff --git a/js/dist/forum.js b/js/dist/forum.js index e564b27..503216c 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -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=4)}([,function(t,o){t.exports=flarum.core.compat["common/extend"]},function(t,o){t.exports=flarum.core.compat["common/ForumApplication"]},function(t,o){t.exports=flarum.core.compat["common/Component"]},function(t,o,e){"use strict";e.r(o);var n=e(1),r=e(2),i=e.n(r);function u(t,o){return(u=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t})(t,o)}var c=e(3),a=function(t){var o,e;function n(){return t.apply(this,arguments)||this}e=t,(o=n).prototype=Object.create(e.prototype),o.prototype.constructor=o,u(o,e);var r=n.prototype;return r.oninit=function(o){t.prototype.oninit.call(this,o),this.open=!1;var e=app.forum.attribute("fof-custom-footer.js");e&&$("body").append("`);\n }\n }\n\n view() {\n return (\n
\n );\n }\n}\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import { extend } from 'flarum/common/extend';\nimport ForumApplication from 'flarum/common/ForumApplication';\n\nimport CustomFooter from './components/CustomFooter';\n\napp.initializers.add('fof-custom-footer', () => {\n extend(ForumApplication.prototype, 'mount', () => {\n const footer = document.createElement('div');\n\n m.mount(document.body.appendChild(footer), CustomFooter);\n });\n});\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://@fof/custom-footer/webpack/bootstrap","webpack://@fof/custom-footer/external \"flarum.core.compat['common/extend']\"","webpack://@fof/custom-footer/external \"flarum.core.compat['forum/ForumApplication']\"","webpack://@fof/custom-footer/external \"flarum.core.compat['common/Component']\"","webpack://@fof/custom-footer/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@fof/custom-footer/./src/forum/components/CustomFooter.js","webpack://@fof/custom-footer/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@fof/custom-footer/./src/forum/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","_setPrototypeOf","setPrototypeOf","__proto__","CustomFooter","subClass","superClass","constructor","oninit","vnode","this","open","js","app","forum","attribute","$","append","trim","view","id","className","style","trust","onclick","Component","initializers","add","extend","ForumApplication","footer","document","createElement","mount","body","appendChild"],"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,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AAOC,KAAKC,OAAO,qB,+DCArB,SAASC,EAAgB1B,EAAGqB,GAMzC,OALAK,EAAkBzB,OAAO0B,gBAAkB,SAAyB3B,EAAGqB,GAErE,OADArB,EAAE4B,UAAYP,EACPrB,IAGcA,EAAGqB,G,WCJPQ,E,YCDN,IAAwBC,EAAUC,E,kDAAAA,E,GAAVD,E,GAC5BX,UAAYlB,OAAOY,OAAOkB,EAAWZ,WAC9CW,EAASX,UAAUa,YAAcF,EACjC,EAAeA,EAAUC,G,2BDDvBE,OAAA,SAAOC,GACH,YAAMD,OAAN,UAAaC,GACbC,KAAKC,MAAO,EAEZ,IAAMC,EAAKC,IAAIC,MAAMC,UAAU,wBAC3BH,GACAI,EAAE,QAAQC,OAAV,WAA4BL,EAAGM,OAA/B,e,EAIRC,KAAA,WAAO,WACH,OACI,SAAKC,GAAG,eAAeC,UAAWX,KAAKC,MAAQ,WAC3C,SAAKU,UAAU,aACX,SAAKA,UAAU,kBAAkBC,MAAK,YAAaZ,KAAKC,KAAOE,IAAIC,MAAMC,UAAU,6BAA+B,GAAK,GAAjF,OACjC7C,EAAEqD,MAAMV,IAAIC,MAAMC,UAAU,2BAA6B,KAE9D,SAAKM,UAAU,iBACX,OAAGA,UAAS,mCAAoCX,KAAKC,MAAQ,UAAYa,QAAS,kBAAO,EAAKb,MAAO,KACrG,OAAGU,UAAS,mCAAoCX,KAAKC,MAAQ,UAAYa,QAAS,kBAAO,EAAKb,MAAO,S,UApBnFc,GEG1CZ,IAAIa,aAAaC,IAAI,qBAAqB,WACtCC,iBAAOC,IAAiBnC,UAAW,SAAS,WACxC,IAAMoC,EAASC,SAASC,cAAc,OAEtC9D,EAAE+D,MAAMF,SAASG,KAAKC,YAAYL,GAAS1B","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 = 4);\n","module.exports = flarum.core.compat['common/extend'];","module.exports = flarum.core.compat['forum/ForumApplication'];","module.exports = flarum.core.compat['common/Component'];","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import Component from 'flarum/common/Component';\n\nexport default class CustomFooter extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n this.open = false;\n\n const js = app.forum.attribute('fof-custom-footer.js');\n if (js) {\n $('body').append(``);\n }\n }\n\n view() {\n return (\n \n );\n }\n}\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import { extend } from 'flarum/common/extend';\nimport ForumApplication from 'flarum/forum/ForumApplication';\n\nimport CustomFooter from './components/CustomFooter';\n\napp.initializers.add('fof-custom-footer', () => {\n extend(ForumApplication.prototype, 'mount', () => {\n const footer = document.createElement('div');\n\n m.mount(document.body.appendChild(footer), CustomFooter);\n });\n});\n"],"sourceRoot":""} \ No newline at end of file