mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 20:43:16 +08:00
Bundled output for commit 18cb1b1395
[skip ci]
This commit is contained in:
parent
18cb1b1395
commit
eff0f8281d
2
extensions/nicknames/js/dist/admin.js
vendored
2
extensions/nicknames/js/dist/admin.js
vendored
|
@ -1,2 +1,2 @@
|
|||
module.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},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 r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},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=10)}({10:function(e,n,t){"use strict";t.r(n);var r=t(4);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a)},4:function(e,n){app.initializers.add("flarum/nicknames",(function(){app.extensionData.for("flarum-nicknames").registerSetting({setting:"flarum-nicknames.unique",type:"boolean",label:app.translator.trans("flarum-nicknames.admin.settings.unique_label")}).registerSetting({setting:"flarum-nicknames.regex",type:"text",label:app.translator.trans("flarum-nicknames.admin.settings.regex_label")}).registerSetting({setting:"flarum-nicknames.min",type:"number",label:app.translator.trans("flarum-nicknames.admin.settings.min_label")}).registerSetting({setting:"flarum-nicknames.max",type:"number",label:app.translator.trans("flarum-nicknames.admin.settings.max_label")}).registerPermission({icon:"fas fa-user-tag",label:app.translator.trans("flarum-nicknames.admin.permissions.edit_own_nickname_label"),permission:"user.editOwnNickname"},"start")}))}});
|
||||
module.exports=function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},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 r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},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=12)}({10:function(e,n){e.exports=flarum.core.compat["common/components/Link"]},12:function(e,n,t){"use strict";t.r(n);var r=t(9),a=t.n(r),i=t(10),s=t.n(i);app.initializers.add("flarum/nicknames",(function(){app.extensionData.for("flarum-nicknames").registerSetting((function(){if("nickname"!==app.data.settings.display_name_driver)return m("div",{className:"Form-group"},m(a.a,{dismissible:!1},app.translator.trans("flarum-nicknames.admin.wrong_driver",{a:m(s.a,{href:app.route("basics")})})))})).registerSetting({setting:"flarum-nicknames.unique",type:"boolean",label:app.translator.trans("flarum-nicknames.admin.settings.unique_label")}).registerSetting({setting:"flarum-nicknames.regex",type:"text",label:app.translator.trans("flarum-nicknames.admin.settings.regex_label")}).registerSetting({setting:"flarum-nicknames.min",type:"number",label:app.translator.trans("flarum-nicknames.admin.settings.min_label")}).registerSetting({setting:"flarum-nicknames.max",type:"number",label:app.translator.trans("flarum-nicknames.admin.settings.max_label")}).registerPermission({icon:"fas fa-user-tag",label:app.translator.trans("flarum-nicknames.admin.permissions.edit_own_nickname_label"),permission:"user.editOwnNickname"},"start")}))},9:function(e,n){e.exports=flarum.core.compat["common/components/Alert"]}});
|
||||
//# sourceMappingURL=admin.js.map
|
2
extensions/nicknames/js/dist/admin.js.map
vendored
2
extensions/nicknames/js/dist/admin.js.map
vendored
File diff suppressed because one or more lines are too long
2
extensions/nicknames/js/dist/forum.js
vendored
2
extensions/nicknames/js/dist/forum.js
vendored
|
@ -1,2 +1,2 @@
|
|||
module.exports=function(t){var n={};function e(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(a,r,function(n){return t[n]}.bind(null,r));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=11)}([function(t,n){t.exports=flarum.core.compat.extend},function(t,n){t.exports=flarum.core.compat["components/Button"]},function(t,n){t.exports=flarum.core.compat["utils/Stream"]},function(t,n){t.exports=flarum.core.compat["components/EditUserModal"]},,function(t,n){t.exports=flarum.core.compat["components/SettingsPage"]},function(t,n){t.exports=flarum.core.compat.Model},function(t,n){t.exports=flarum.core.compat["models/User"]},function(t,n){t.exports=flarum.core.compat["utils/extractText"]},function(t,n){t.exports=flarum.core.compat["components/Modal"]},,function(t,n,e){"use strict";e.r(n);var a=e(0),r=e(1),o=e.n(r),i=e(3),c=e.n(i),s=e(5),u=e.n(s),p=e(6),l=e.n(p),f=e(7),d=e.n(f),b=e(8),h=e.n(b),y=e(2),k=e.n(y);var v=e(9),x=function(t){var n,e;function a(){return t.apply(this,arguments)||this}e=t,(n=a).prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var r=a.prototype;return r.oninit=function(n){t.prototype.oninit.call(this,n),this.nickname=k()(app.session.user.displayName())},r.className=function(){return"NickameModal Modal--small"},r.title=function(){return app.translator.trans("flarum-nicknames.forum.change_nickname.title")},r.content=function(){return m("div",{className:"Modal-body"},m("div",{className:"Form Form--centered"},m("div",{className:"Form-group"},m("input",{type:"text",autocomplete:"off",name:"nickname",className:"FormControl",bidi:this.nickname,disabled:this.loading})),m("div",{className:"Form-group"},o.a.component({className:"Button Button--primary Button--block",type:"submit",loading:this.loading},app.translator.trans("flarum-nicknames.forum.change_nickname.submit_button")))))},r.onsubmit=function(t){var n=this;t.preventDefault(),this.nickname()!==app.session.user.displayName()?(this.loading=!0,app.session.user.save({nickname:this.nickname()},{errorHandler:this.onerror.bind(this)}).then(this.hide.bind(this)).catch((function(){n.loading=!1,m.redraw()}))):this.hide()},a}(e.n(v).a);app.initializers.add("flarum/nicknames",(function(){d.a.prototype.canEditOwnNickname=l.a.attribute("canEditOwnNickname"),Object(a.extend)(u.a.prototype,"accountItems",(function(t){"nickname"===app.forum.attribute("displayNameDriver")&&this.user.canEditOwnNickname()&&t.add("changeNickname",m(o.a,{className:"Button",onclick:function(){return app.modal.show(x)}},app.translator.trans("flarum-nicknames.forum.settings.change_nickname_button")))})),Object(a.extend)(c.a.prototype,"oninit",(function(){"nickname"===app.forum.attribute("displayNameDriver")&&(this.nickname=k()(this.attrs.user.displayName()))})),Object(a.extend)(c.a.prototype,"fields",(function(t){"nickname"===app.forum.attribute("displayNameDriver")&&t.add("nickname",m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-nicknames.forum.edit_user.nicknames_heading")),m("input",{className:"FormControl",placeholder:h()(app.translator.trans("flarum-nicknames.forum.edit_user.nicknames_text")),bidi:this.nickname})),100)})),Object(a.extend)(c.a.prototype,"data",(function(t){if("nickname"===app.forum.attribute("displayNameDriver")){this.attrs.user;this.nickname()!==this.attrs.user.displayName()&&(t.nickname=this.nickname())}}))}))}]);
|
||||
module.exports=function(t){var n={};function e(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)e.d(o,a,function(n){return t[n]}.bind(null,a));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=11)}([function(t,n){t.exports=flarum.core.compat["common/extend"]},function(t,n){t.exports=flarum.core.compat["common/components/Button"]},function(t,n){t.exports=flarum.core.compat["common/utils/Stream"]},function(t,n){t.exports=flarum.core.compat["forum/components/EditUserModal"]},function(t,n){t.exports=flarum.core.compat["forum/components/SettingsPage"]},function(t,n){t.exports=flarum.core.compat["common/Model"]},function(t,n){t.exports=flarum.core.compat["common/models/User"]},function(t,n){t.exports=flarum.core.compat["common/utils/extractText"]},function(t,n){t.exports=flarum.core.compat["common/components/Modal"]},,,function(t,n,e){"use strict";e.r(n);var o=e(0),a=e(1),r=e.n(a),i=e(3),c=e.n(i),s=e(4),u=e.n(s),p=e(5),l=e.n(p),f=e(6),d=e.n(f),b=e(7),h=e.n(b),y=e(2),k=e.n(y);var v=e(8),x=function(t){var n,e;function o(){return t.apply(this,arguments)||this}e=t,(n=o).prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var a=o.prototype;return a.oninit=function(n){t.prototype.oninit.call(this,n),this.nickname=k()(app.session.user.displayName())},a.className=function(){return"NickameModal Modal--small"},a.title=function(){return app.translator.trans("flarum-nicknames.forum.change_nickname.title")},a.content=function(){return m("div",{className:"Modal-body"},m("div",{className:"Form Form--centered"},m("div",{className:"Form-group"},m("input",{type:"text",autocomplete:"off",name:"nickname",className:"FormControl",bidi:this.nickname,disabled:this.loading})),m("div",{className:"Form-group"},r.a.component({className:"Button Button--primary Button--block",type:"submit",loading:this.loading},app.translator.trans("flarum-nicknames.forum.change_nickname.submit_button")))))},a.onsubmit=function(t){var n=this;t.preventDefault(),this.nickname()!==app.session.user.displayName()?(this.loading=!0,app.session.user.save({nickname:this.nickname()},{errorHandler:this.onerror.bind(this)}).then(this.hide.bind(this)).catch((function(){n.loading=!1,m.redraw()}))):this.hide()},o}(e.n(v).a);app.initializers.add("flarum/nicknames",(function(){d.a.prototype.canEditOwnNickname=l.a.attribute("canEditOwnNickname"),Object(o.extend)(u.a.prototype,"accountItems",(function(t){"nickname"===app.forum.attribute("displayNameDriver")&&this.user.canEditOwnNickname()&&t.add("changeNickname",m(r.a,{className:"Button",onclick:function(){return app.modal.show(x)}},app.translator.trans("flarum-nicknames.forum.settings.change_nickname_button")))})),Object(o.extend)(c.a.prototype,"oninit",(function(){"nickname"===app.forum.attribute("displayNameDriver")&&(this.nickname=k()(this.attrs.user.displayName()))})),Object(o.extend)(c.a.prototype,"fields",(function(t){"nickname"===app.forum.attribute("displayNameDriver")&&t.add("nickname",m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-nicknames.forum.edit_user.nicknames_heading")),m("input",{className:"FormControl",placeholder:h()(app.translator.trans("flarum-nicknames.forum.edit_user.nicknames_text")),bidi:this.nickname})),100)})),Object(o.extend)(c.a.prototype,"data",(function(t){if("nickname"===app.forum.attribute("displayNameDriver")){this.attrs.user;this.nickname()!==this.attrs.user.displayName()&&(t.nickname=this.nickname())}}))}))}]);
|
||||
//# sourceMappingURL=forum.js.map
|
2
extensions/nicknames/js/dist/forum.js.map
vendored
2
extensions/nicknames/js/dist/forum.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user