mirror of
https://github.com/flarum/framework.git
synced 2025-01-11 05:43:40 +08:00
c50c924242
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
1 line
5.7 KiB
Plaintext
Generated
1 line
5.7 KiB
Plaintext
Generated
{"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,IACzBH,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,2B,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,0B,aCIxDC,IAAAA,aAAAA,IAAqB,oBAAoB,WACvCA,IAAAA,cAAAA,IACO,oBACJC,iBAAgB,WACf,GAA8C,aAA1CD,IAAAA,KAAAA,SAAAA,oBAEJ,OACE,SAAKE,UAAU,cACb,EAAC,IAAD,CAAOC,aAAa,GACjBH,IAAAA,WAAAA,MAAqB,sCAAuC,CAAEpB,EAAG,EAAC,IAAD,CAAMwB,KAAMJ,IAAAA,MAAU,eAI/F,IACAC,gBAAgB,CACfI,QAAS,uCACTC,KAAM,UACNC,MAAOP,IAAAA,WAAAA,MAAqB,+DAE7BC,gBAAgB,CACfI,QAAS,mCACTC,KAAM,UACNC,MAAOP,IAAAA,WAAAA,MAAqB,yDAC5BQ,KAAMR,IAAAA,WAAAA,MAAqB,0DAE5BC,gBAAgB,CACfI,QAAS,0BACTC,KAAM,UACNC,MAAOP,IAAAA,WAAAA,MAAqB,kDAE7BC,gBAAgB,CACfI,QAAS,yBACTC,KAAM,OACNC,MAAOP,IAAAA,WAAAA,MAAqB,iDAE7BC,gBAAgB,CACfI,QAAS,uBACTC,KAAM,SACNC,MAAOP,IAAAA,WAAAA,MAAqB,+CAE7BC,gBAAgB,CACfI,QAAS,uBACTC,KAAM,SACNC,MAAOP,IAAAA,WAAAA,MAAqB,+CAE7BS,mBACC,CACEC,KAAM,kBACNH,MAAOP,IAAAA,WAAAA,MAAqB,8DAC5BW,WAAY,wBAEd,QAEL,G","sources":["webpack://@flarum/nicknames/webpack/bootstrap","webpack://@flarum/nicknames/webpack/runtime/compat get default export","webpack://@flarum/nicknames/webpack/runtime/define property getters","webpack://@flarum/nicknames/webpack/runtime/hasOwnProperty shorthand","webpack://@flarum/nicknames/webpack/runtime/make namespace object","webpack://@flarum/nicknames/external root \"flarum.core.compat['admin/app']\"","webpack://@flarum/nicknames/external root \"flarum.core.compat['common/components/Alert']\"","webpack://@flarum/nicknames/external root \"flarum.core.compat['common/components/Link']\"","webpack://@flarum/nicknames/./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/components/Alert'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Link'];","import app from 'flarum/admin/app';\nimport Alert from 'flarum/common/components/Alert';\nimport Link from 'flarum/common/components/Link';\n\napp.initializers.add('flarum/nicknames', () => {\n app.extensionData\n .for('flarum-nicknames')\n .registerSetting(function () {\n if (app.data.settings.display_name_driver === 'nickname') return;\n\n return (\n <div className=\"Form-group\">\n <Alert dismissible={false}>\n {app.translator.trans('flarum-nicknames.admin.wrong_driver', { a: <Link href={app.route('basics')}></Link> })}\n </Alert>\n </div>\n );\n })\n .registerSetting({\n setting: 'flarum-nicknames.set_on_registration',\n type: 'boolean',\n label: app.translator.trans('flarum-nicknames.admin.settings.set_on_registration_label'),\n })\n .registerSetting({\n setting: 'flarum-nicknames.random_username',\n type: 'boolean',\n label: app.translator.trans('flarum-nicknames.admin.settings.random_username_label'),\n help: app.translator.trans('flarum-nicknames.admin.settings.random_username_help'),\n })\n .registerSetting({\n setting: 'flarum-nicknames.unique',\n type: 'boolean',\n label: app.translator.trans('flarum-nicknames.admin.settings.unique_label'),\n })\n .registerSetting({\n setting: 'flarum-nicknames.regex',\n type: 'text',\n label: app.translator.trans('flarum-nicknames.admin.settings.regex_label'),\n })\n .registerSetting({\n setting: 'flarum-nicknames.min',\n type: 'number',\n label: app.translator.trans('flarum-nicknames.admin.settings.min_label'),\n })\n .registerSetting({\n setting: 'flarum-nicknames.max',\n type: 'number',\n label: app.translator.trans('flarum-nicknames.admin.settings.max_label'),\n })\n .registerPermission(\n {\n icon: 'fas fa-user-tag',\n label: app.translator.trans('flarum-nicknames.admin.permissions.edit_own_nickname_label'),\n permission: 'user.editOwnNickname',\n },\n 'start'\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","app","registerSetting","className","dismissible","href","setting","type","label","help","registerPermission","icon","permission"],"sourceRoot":""} |