mirror of
https://github.com/flarum/framework.git
synced 2025-01-10 21:35:38 +08:00
05f7a9a582
Includes transpiled JS/TS. [skip ci]
2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
module.exports=function(e){var n={};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(a,r,function(n){return e[n]}.bind(null,r));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=15)}({1:function(e,n){e.exports=flarum.core.compat["admin/app"]},12:function(e,n){e.exports=flarum.core.compat["common/components/Alert"]},13:function(e,n){e.exports=flarum.core.compat["common/components/Link"]},15:function(e,n,t){"use strict";t.r(n);var a=t(1),r=t.n(a),i=t(12),s=t.n(i),o=t(13),l=t.n(o);r.a.initializers.add("flarum/nicknames",(function(){r.a.extensionData.for("flarum-nicknames").registerSetting((function(){if("nickname"!==r.a.data.settings.display_name_driver)return m("div",{className:"Form-group"},m(s.a,{dismissible:!1},r.a.translator.trans("flarum-nicknames.admin.wrong_driver",{a:m(l.a,{href:r.a.route("basics")})})))})).registerSetting({setting:"flarum-nicknames.set_on_registration",type:"boolean",label:r.a.translator.trans("flarum-nicknames.admin.settings.set_on_registration_label")}).registerSetting({setting:"flarum-nicknames.random_username",type:"boolean",label:r.a.translator.trans("flarum-nicknames.admin.settings.random_username_label"),help:r.a.translator.trans("flarum-nicknames.admin.settings.random_username_help")}).registerSetting({setting:"flarum-nicknames.unique",type:"boolean",label:r.a.translator.trans("flarum-nicknames.admin.settings.unique_label")}).registerSetting({setting:"flarum-nicknames.regex",type:"text",label:r.a.translator.trans("flarum-nicknames.admin.settings.regex_label")}).registerSetting({setting:"flarum-nicknames.min",type:"number",label:r.a.translator.trans("flarum-nicknames.admin.settings.min_label")}).registerSetting({setting:"flarum-nicknames.max",type:"number",label:r.a.translator.trans("flarum-nicknames.admin.settings.max_label")}).registerPermission({icon:"fas fa-user-tag",label:r.a.translator.trans("flarum-nicknames.admin.permissions.edit_own_nickname_label"),permission:"user.editOwnNickname"},"start")}))}});
|
|
//# sourceMappingURL=admin.js.map
|