From c8bf5493c4fceac71ba029fa340db9933acd44ba Mon Sep 17 00:00:00 2001 From: flarum-bot Date: Sun, 21 Jan 2024 00:09:17 +0000 Subject: [PATCH] Bundled output for commit ebccfded4218d93b6c3499ca27ac44eb137ba4d9 Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci] --- js/dist/forum.js | 2 +- js/dist/forum.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dist/forum.js b/js/dist/forum.js index 093ba0a..cb9b2c6 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -(()=>{var t={n:o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return t.d(e,{a:e}),e},d:(o,e)=>{for(var r in e)t.o(e,r)&&!t.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},o={};(()=>{"use strict";t.r(o);const e=flarum.core.compat["forum/app"];var r=t.n(e);const n=flarum.core.compat["common/extend"],i=flarum.core.compat["forum/ForumApplication"];var c=t.n(i);function a(t,o){return a=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},a(t,o)}const u=flarum.core.compat["common/Component"];var p=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,a(o,e);var i=n.prototype;return i.oninit=function(o){t.prototype.oninit.call(this,o),this.open=!1;var e=r().forum.attribute("fof-custom-footer.js");e&&$("body").append("`);\n }\n }\n\n view() {\n return (\n
\n
\n
\n {m.trust(app.forum.attribute('fof-custom-footer.text') || '')}\n
\n
\n (this.open = true)} />\n (this.open = false)} />\n
\n
\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 app from 'flarum/forum/app';\nimport { 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"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","_setPrototypeOf","p","setPrototypeOf","__proto__","CustomFooter","_Component","subClass","superClass","apply","arguments","create","constructor","_proto","oninit","vnode","this","open","js","app","attribute","$","append","trim","view","_this","m","id","className","style","trust","onclick","Component","add","extend","ForumApplication","footer","document","createElement","mount","body","appendChild"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,+BCL9D,MAAM,EAA+BC,OA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AAS,kBAAON,EAAKR,MAAO,CAAK,MAKrH,EAACZ,CAAA,CAzB8B,C,MAAS2B,IEG1Cb,IAAAA,aAAiBc,IAAI,qBAAqB,YACxCC,EAAAA,EAAAA,QAAOC,IAAAA,UAA4B,SAAS,WAC1C,IAAMC,EAASC,SAASC,cAAc,OAEtCZ,EAAEa,MAAMF,SAASG,KAAKC,YAAYL,GAAS/B,EAC7C,GACF,G","sources":["webpack://@fof/custom-footer/webpack/bootstrap","webpack://@fof/custom-footer/webpack/runtime/compat get default export","webpack://@fof/custom-footer/webpack/runtime/define property getters","webpack://@fof/custom-footer/webpack/runtime/hasOwnProperty shorthand","webpack://@fof/custom-footer/webpack/runtime/make namespace object","webpack://@fof/custom-footer/external root \"flarum.core.compat['forum/app']\"","webpack://@fof/custom-footer/external root \"flarum.core.compat['common/extend']\"","webpack://@fof/custom-footer/external root \"flarum.core.compat['forum/ForumApplication']\"","webpack://@fof/custom-footer/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@fof/custom-footer/external root \"flarum.core.compat['common/Component']\"","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"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/ForumApplication'];","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}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","import app from 'flarum/forum/app';\nimport 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 {m.trust(app.forum.attribute('fof-custom-footer.text') || '')}\n
\n
\n (this.open = true)} />\n (this.open = false)} />\n
\n
\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 app from 'flarum/forum/app';\nimport { 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"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","_setPrototypeOf","p","setPrototypeOf","__proto__","CustomFooter","_Component","subClass","superClass","apply","arguments","create","constructor","_proto","oninit","vnode","this","open","js","app","attribute","$","append","trim","view","_this","m","id","className","style","trust","onclick","Component","add","extend","ForumApplication","footer","document","createElement","mount","body","appendChild"],"sourceRoot":""} \ No newline at end of file