diff --git a/js/dist/admin.js.map b/js/dist/admin.js.map index 96ab063..26b9a92 100644 --- a/js/dist/admin.js.map +++ b/js/dist/admin.js.map @@ -1 +1 @@ -{"version":3,"file":"admin.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,GCLRF,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,MCJ3ER,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,M,+BCLvD,MAAM,EAA+BC,OAAOC,KAAKC,OAAO,a,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,iBCAlD,EAA+BF,OAAOC,KAAKC,OAAO,iC,aCU3CC,EAAO,0B,0GCMpB,IAAMC,EAAIC,IAAAA,WAAAA,MAAAA,KAA0BA,IAAAA,YAC9BC,EAAUH,EAAN,kBAEVE,IAAAA,aAAAA,IAAqBF,GAAM,WAC1BE,IAAAA,cAAAA,IACMF,GACJI,gBAAgB,CAChBC,QAAS,gCACTC,KAAM,UACNC,MAAON,EAAKE,EAAJ,mBAERC,gBAAgB,CAChBC,QAAS,kCACTC,KAAM,UACNC,MAAON,EAAKE,EAAJ,4BAERC,gBAAgB,CAChBC,QAAS,gCACTC,KAAM,UACNC,MAAON,EAAKE,EAAJ,mBAGND,IAAAA,aAAAA,IAAqB,qBACxBA,IAAAA,cAAAA,IAAsBF,GAAMI,gBAAgB,CAC3CC,QAAS,kCACTC,KAAM,WACNC,MAAON,EAAKE,EAAJ,mBACRK,KAAMP,EAAKE,EAAJ,yBAITM,EAAAA,EAAAA,QAAOC,IAAAA,UAAwB,SAAS,SAACC,GACxC,IAAMC,EAAQV,IAAAA,KAAAA,mBAEd,QAAcW,IAAVD,EAIJ,Y,0sBAAA,CAAkBV,IAAAA,KAAAA,sBAAlB,aAA+C,KAAtCY,EAAsC,QACxCC,EAAOH,EAAME,IAAU,KAC7BH,EAAMK,IAAI,uBAAyBF,EAAO,CACzC,yBAAeA,GACf,aACAC,GAAQ,c","sources":["webpack://@glowingblue/redis-setup/webpack/bootstrap","webpack://@glowingblue/redis-setup/webpack/runtime/compat get default export","webpack://@glowingblue/redis-setup/webpack/runtime/define property getters","webpack://@glowingblue/redis-setup/webpack/runtime/hasOwnProperty shorthand","webpack://@glowingblue/redis-setup/webpack/runtime/make namespace object","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['admin/app']\"","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['common/extend']\"","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['admin/components/StatusWidget']\"","webpack://@glowingblue/redis-setup/./src/common/index.js","webpack://@glowingblue/redis-setup/./src/admin/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['admin/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/StatusWidget'];","/*\n * This file is part of glowingblue/redis-setup.\n *\n * Copyright (c) 2022 Glowing Blue AG.\n * Authors: Rafael Horvat.\n *\n * For the full copyright and license information, please view the LICENSE.md\n * file that was distributed with this source code.\n */\n\nexport const slug = 'glowingblue-redis-setup';\n","/*\n * This file is part of glowingblue/redis-setup.\n *\n * Copyright (c) 2022 Glowing Blue AG.\n * Authors: Ian Morland, iPurpl3x, Rafael Horvat.\n *\n * For the full copyright and license information, please view the LICENSE.md\n * file that was distributed with this source code.\n */\n\nimport app from 'flarum/admin/app';\nimport { extend } from 'flarum/common/extend';\nimport StatusWidget from 'flarum/admin/components/StatusWidget';\nimport { slug } from '../common';\n\n// Make translation calls shorter\nconst t = app.translator.trans.bind(app.translator);\nconst prfx = `${slug}.admin.settings`;\n\napp.initializers.add(slug, () => {\n\tapp.extensionData\n\t\t.for(slug)\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.enableCache',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_cache`),\n\t\t})\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.redisSessions',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_redis_sessions`),\n\t\t})\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.enableQueue',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_queue`),\n\t\t});\n\n\tif (app.initializers.has('blomstra/horizon')) {\n\t\tapp.extensionData.for(slug).registerSetting({\n\t\t\tsetting: 'glowingblue-redis.horizonConfig',\n\t\t\ttype: 'textarea',\n\t\t\tlabel: t(`${prfx}.horizon_config`),\n\t\t\thelp: t(`${prfx}.horizon_help_text`),\n\t\t});\n\t}\n\n\textend(StatusWidget.prototype, 'items', (items) => {\n\t\tconst loads = app.data.blomstraQueuesLoad;\n\n\t\tif (loads === undefined) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (let queue of app.data.blomstraQueuesSeen) {\n\t\t\tconst load = loads[queue] || null;\n\t\t\titems.add('blomstra-queue-size-' + queue, [\n\t\t\t\tQueue {queue},\n\t\t\t\t
,\n\t\t\t\tload || '0',\n\t\t\t]);\n\t\t}\n\t});\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","slug","t","app","prfx","registerSetting","setting","type","label","help","extend","StatusWidget","items","loads","undefined","queue","load","add"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"admin.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,OAAOC,KAAKC,OAAO,a,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,iBCAlD,EAA+BF,OAAOC,KAAKC,OAAO,iC,aCU3CC,EAAO,0B,0GCMpB,IAAMC,EAAIC,IAAAA,WAAeC,MAAMC,KAAKF,IAAAA,YAC9BG,EAAUL,EAAI,kBAEpBE,IAAAA,aAAiBI,IAAIN,GAAM,WAC1BE,IAAAA,cAAiB,IACXF,GACJO,gBAAgB,CAChBC,QAAS,gCACTC,KAAM,UACNC,MAAOT,EAAKI,EAAI,mBAEhBE,gBAAgB,CAChBC,QAAS,kCACTC,KAAM,UACNC,MAAOT,EAAKI,EAAI,4BAEhBE,gBAAgB,CAChBC,QAAS,gCACTC,KAAM,UACNC,MAAOT,EAAKI,EAAI,mBAGdH,IAAAA,aAAiBS,IAAI,qBACxBT,IAAAA,cAAiB,IAAKF,GAAMO,gBAAgB,CAC3CC,QAAS,kCACTC,KAAM,WACNC,MAAOT,EAAKI,EAAI,mBAChBO,KAAMX,EAAKI,EAAI,yBAIjBQ,EAAAA,EAAAA,QAAOC,IAAAA,UAAwB,SAAS,SAACC,GACxC,IAAMC,EAAQd,IAAAA,KAASe,mBAEvB,QAAcC,IAAVF,EAIJ,IAAK,IAAwCG,EAA7CC,E,0sBAAAC,CAAkBnB,IAAAA,KAASoB,sBAAkBH,EAAAC,KAAAG,MAAE,KAAtCC,EAAKL,EAAAvB,MACP6B,EAAOT,EAAMQ,IAAU,KAC7BT,EAAMT,IAAI,uBAAyBkB,EAAO,CACzCE,EAAA,cAAQ,SAAOF,GACfE,EAAA,WACAD,GAAQ,KAEV,CACD,GACD,G","sources":["webpack://@glowingblue/redis-setup/webpack/bootstrap","webpack://@glowingblue/redis-setup/webpack/runtime/compat get default export","webpack://@glowingblue/redis-setup/webpack/runtime/define property getters","webpack://@glowingblue/redis-setup/webpack/runtime/hasOwnProperty shorthand","webpack://@glowingblue/redis-setup/webpack/runtime/make namespace object","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['admin/app']\"","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['common/extend']\"","webpack://@glowingblue/redis-setup/external root \"flarum.core.compat['admin/components/StatusWidget']\"","webpack://@glowingblue/redis-setup/./src/common/index.js","webpack://@glowingblue/redis-setup/./src/admin/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['admin/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/StatusWidget'];","/*\n * This file is part of glowingblue/redis-setup.\n *\n * Copyright (c) 2022 Glowing Blue AG.\n * Authors: Rafael Horvat.\n *\n * For the full copyright and license information, please view the LICENSE.md\n * file that was distributed with this source code.\n */\n\nexport const slug = 'glowingblue-redis-setup';\n","/*\n * This file is part of glowingblue/redis-setup.\n *\n * Copyright (c) 2022 Glowing Blue AG.\n * Authors: Ian Morland, iPurpl3x, Rafael Horvat.\n *\n * For the full copyright and license information, please view the LICENSE.md\n * file that was distributed with this source code.\n */\n\nimport app from 'flarum/admin/app';\nimport { extend } from 'flarum/common/extend';\nimport StatusWidget from 'flarum/admin/components/StatusWidget';\nimport { slug } from '../common';\n\n// Make translation calls shorter\nconst t = app.translator.trans.bind(app.translator);\nconst prfx = `${slug}.admin.settings`;\n\napp.initializers.add(slug, () => {\n\tapp.extensionData\n\t\t.for(slug)\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.enableCache',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_cache`),\n\t\t})\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.redisSessions',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_redis_sessions`),\n\t\t})\n\t\t.registerSetting({\n\t\t\tsetting: 'glowingblue-redis.enableQueue',\n\t\t\ttype: 'boolean',\n\t\t\tlabel: t(`${prfx}.enable_queue`),\n\t\t});\n\n\tif (app.initializers.has('blomstra/horizon')) {\n\t\tapp.extensionData.for(slug).registerSetting({\n\t\t\tsetting: 'glowingblue-redis.horizonConfig',\n\t\t\ttype: 'textarea',\n\t\t\tlabel: t(`${prfx}.horizon_config`),\n\t\t\thelp: t(`${prfx}.horizon_help_text`),\n\t\t});\n\t}\n\n\textend(StatusWidget.prototype, 'items', (items) => {\n\t\tconst loads = app.data.blomstraQueuesLoad;\n\n\t\tif (loads === undefined) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (let queue of app.data.blomstraQueuesSeen) {\n\t\t\tconst load = loads[queue] || null;\n\t\t\titems.add('blomstra-queue-size-' + queue, [\n\t\t\t\tQueue {queue},\n\t\t\t\t
,\n\t\t\t\tload || '0',\n\t\t\t]);\n\t\t}\n\t});\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","slug","t","app","trans","bind","prfx","add","registerSetting","setting","type","label","has","help","extend","StatusWidget","items","loads","blomstraQueuesLoad","undefined","_step","_iterator","_createForOfIteratorHelperLoose","blomstraQueuesSeen","done","queue","load","m"],"sourceRoot":""} \ No newline at end of file