mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: require style
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
define('admin/manage/admins-mods', ['translator', 'benchpress', 'autocomplete', 'api'], function (translator, Benchpress, autocomplete, api) {
|
||||
define('admin/manage/admins-mods', [
|
||||
'translator', 'benchpress', 'autocomplete', 'api',
|
||||
], function (translator, Benchpress, autocomplete, api) {
|
||||
var AdminsMods = {};
|
||||
|
||||
AdminsMods.init = function () {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
define('admin/manage/users', ['translator', 'benchpress', 'autocomplete', 'api'], function (translator, Benchpress, autocomplete, api) {
|
||||
define('admin/manage/users', [
|
||||
'translator', 'benchpress', 'autocomplete', 'api',
|
||||
], function (translator, Benchpress, autocomplete, api) {
|
||||
var Users = {};
|
||||
|
||||
Users.init = function () {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
define('forum/account/edit/password', ['forum/account/header', 'translator', 'zxcvbn', 'api'], function (header, translator, zxcvbn, api) {
|
||||
define('forum/account/edit/password', [
|
||||
'forum/account/header', 'translator', 'zxcvbn', 'api',
|
||||
], function (header, translator, zxcvbn, api) {
|
||||
var AccountEditPassword = {};
|
||||
|
||||
AccountEditPassword.init = function () {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
define('forum/groups/list', ['forum/infinitescroll', 'benchpress', 'api'], function (infinitescroll, Benchpress, api) {
|
||||
define('forum/groups/list', [
|
||||
'forum/infinitescroll', 'benchpress', 'api',
|
||||
], function (infinitescroll, Benchpress, api) {
|
||||
var Groups = {};
|
||||
|
||||
Groups.init = function () {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('forum/topic/votes', ['components', 'translator', 'benchpress', 'api'], function (components, translator, Benchpress, api) {
|
||||
define('forum/topic/votes', [
|
||||
'components', 'translator', 'benchpress', 'api',
|
||||
], function (components, translator, Benchpress, api) {
|
||||
var Votes = {};
|
||||
|
||||
Votes.addVoteHandler = function () {
|
||||
|
||||
Reference in New Issue
Block a user