mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
ESlint no-undef, remove global comments
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
"import/no-unresolved": "off",
|
"import/no-unresolved": "off",
|
||||||
"import/no-extraneous-dependencies": "off",
|
"import/no-extraneous-dependencies": "off",
|
||||||
// "one-var": "off",
|
// "one-var": "off",
|
||||||
"no-undef": "off",
|
// "no-undef": "off",
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"no-new": "off",
|
"no-new": "off",
|
||||||
"max-nested-callbacks": "off",
|
"max-nested-callbacks": "off",
|
||||||
1
app.js
1
app.js
@@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/*global require, global, process*/
|
|
||||||
|
|
||||||
var nconf = require('nconf');
|
var nconf = require('nconf');
|
||||||
nconf.argv().env('__');
|
nconf.argv().env('__');
|
||||||
|
|||||||
22
public/.eslintrc
Normal file
22
public/.eslintrc
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"globals": {
|
||||||
|
"app": true,
|
||||||
|
"io": true,
|
||||||
|
"socket": true,
|
||||||
|
"ajaxify": true,
|
||||||
|
"config": true,
|
||||||
|
"RELATIVE_PATH": true,
|
||||||
|
"utils": true,
|
||||||
|
"overrides": true,
|
||||||
|
"componentHandler": true,
|
||||||
|
"bootbox": true,
|
||||||
|
"templates": true,
|
||||||
|
"Visibility": true,
|
||||||
|
"Tinycon": true
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"jquery": true,
|
||||||
|
"amd": true,
|
||||||
|
"browser": true
|
||||||
|
}
|
||||||
|
}
|
||||||
84
public/.jshintrc
Normal file
84
public/.jshintrc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
{
|
||||||
|
"maxerr" : 50, // {int} Maximum error before stopping
|
||||||
|
|
||||||
|
// Enforcing
|
||||||
|
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
|
||||||
|
"camelcase" : false, // true: Identifiers must be in camelCase
|
||||||
|
"curly" : true, // true: Require {} for every new block or scope
|
||||||
|
"eqeqeq" : true, // true: Require triple equals (===) for comparison
|
||||||
|
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
|
||||||
|
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
|
||||||
|
"indent" : 4, // {int} Number of spaces to use for indentation
|
||||||
|
"latedef" : false, // true: Require variables/functions to be defined before being used
|
||||||
|
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
|
||||||
|
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
|
||||||
|
"noempty" : true, // true: Prohibit use of empty blocks
|
||||||
|
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
|
||||||
|
"plusplus" : false, // true: Prohibit use of `++` & `--`
|
||||||
|
"quotmark" : false, // Quotation mark consistency:
|
||||||
|
// false : do nothing (default)
|
||||||
|
// true : ensure whatever is used is consistent
|
||||||
|
// "single" : require single quotes
|
||||||
|
// "double" : require double quotes
|
||||||
|
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
|
||||||
|
"unused" : true, // true: Require all defined variables be used
|
||||||
|
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
|
||||||
|
"trailing" : false, // true: Prohibit trailing whitespaces
|
||||||
|
"maxparams" : false, // {int} Max number of formal params allowed per function
|
||||||
|
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
|
||||||
|
"maxstatements" : false, // {int} Max number statements per function
|
||||||
|
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
|
||||||
|
"maxlen" : false, // {int} Max number of characters per line
|
||||||
|
|
||||||
|
// Relaxing
|
||||||
|
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
||||||
|
"boss" : false, // true: Tolerate assignments where comparisons would be expected
|
||||||
|
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
|
||||||
|
"eqnull" : false, // true: Tolerate use of `== null`
|
||||||
|
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
|
||||||
|
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
|
||||||
|
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
|
||||||
|
// (ex: `for each`, multiple try/catch, function expression…)
|
||||||
|
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
|
||||||
|
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
|
||||||
|
"funcscope" : false, // true: Tolerate defining variables inside control statements"
|
||||||
|
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
|
||||||
|
"iterator" : false, // true: Tolerate using the `__iterator__` property
|
||||||
|
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
|
||||||
|
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
|
||||||
|
"laxcomma" : false, // true: Tolerate comma-first style coding
|
||||||
|
"loopfunc" : false, // true: Tolerate functions being defined in loops
|
||||||
|
"multistr" : false, // true: Tolerate multi-line strings
|
||||||
|
"proto" : false, // true: Tolerate using the `__proto__` property
|
||||||
|
"scripturl" : false, // true: Tolerate script-targeted URLs
|
||||||
|
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
|
||||||
|
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
|
||||||
|
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
|
||||||
|
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
|
||||||
|
"validthis" : false, // true: Tolerate using this in a non-constructor function
|
||||||
|
|
||||||
|
"globals": {
|
||||||
|
"app": true,
|
||||||
|
"io": true,
|
||||||
|
"socket": true,
|
||||||
|
"ajaxify": true,
|
||||||
|
"config": true,
|
||||||
|
"RELATIVE_PATH": true,
|
||||||
|
"utils": true,
|
||||||
|
"overrides": true,
|
||||||
|
"componentHandler": true,
|
||||||
|
"bootbox": true,
|
||||||
|
"templates": true,
|
||||||
|
"Visibility": true,
|
||||||
|
"Tinycon": true,
|
||||||
|
"require": true,
|
||||||
|
"define": true,
|
||||||
|
"ace": true,
|
||||||
|
"Sortable": true,
|
||||||
|
"Slideout": true,
|
||||||
|
"NProgress": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"jquery": true,
|
||||||
|
"browser": true
|
||||||
|
}
|
||||||
8
public/src/admin/.eslintrc
Normal file
8
public/src/admin/.eslintrc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"globals": {
|
||||||
|
"ace": true,
|
||||||
|
"Sortable": true,
|
||||||
|
"Slideout": true,
|
||||||
|
"NProgress": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global config, define, app, socket, ajaxify, bootbox, templates, Chart, utils */
|
|
||||||
|
|
||||||
define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, translator) {
|
define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, translator) {
|
||||||
var Errors = {};
|
var Errors = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/* global define, socket, app */
|
|
||||||
|
|
||||||
|
|
||||||
define('admin/advanced/events', function () {
|
define('admin/advanced/events', function () {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, socket, app */
|
|
||||||
|
|
||||||
define('admin/advanced/logs', function () {
|
define('admin/advanced/logs', function () {
|
||||||
var Logs = {};
|
var Logs = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global ace, define, app, socket */
|
|
||||||
|
|
||||||
define('admin/appearance/customise', ['admin/settings'], function (Settings) {
|
define('admin/appearance/customise', ['admin/settings'], function (Settings) {
|
||||||
var Customise = {};
|
var Customise = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, socket, templates */
|
|
||||||
|
|
||||||
define('admin/appearance/skins', ['translator'], function (translator) {
|
define('admin/appearance/skins', ['translator'], function (translator) {
|
||||||
var Skins = {};
|
var Skins = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, socket, bootbox, templates, config */
|
|
||||||
|
|
||||||
define('admin/appearance/themes', ['translator'], function (translator) {
|
define('admin/appearance/themes', ['translator'], function (translator) {
|
||||||
var Themes = {};
|
var Themes = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, socket, bootbox */
|
|
||||||
|
|
||||||
define('admin/extend/plugins', ['jqueryui', 'translator'], function (jqueryui, translator) {
|
define('admin/extend/plugins', ['jqueryui', 'translator'], function (jqueryui, translator) {
|
||||||
var Plugins = {};
|
var Plugins = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, ajaxify, socket, templates, bootbox */
|
|
||||||
|
|
||||||
define('admin/extend/rewards', ['translator'], function (translator) {
|
define('admin/extend/rewards', ['translator'], function (translator) {
|
||||||
var rewards = {};
|
var rewards = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, socket, bootbox */
|
|
||||||
|
|
||||||
define('admin/extend/widgets', ['jqueryui'], function (jqueryui) {
|
define('admin/extend/widgets', ['jqueryui'], function (jqueryui) {
|
||||||
var Widgets = {};
|
var Widgets = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, ajaxify, app, socket, utils, bootbox, RELATIVE_PATH*/
|
|
||||||
|
|
||||||
define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (semver, Chart, translator) {
|
define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (semver, Chart, translator) {
|
||||||
var Admin = {};
|
var Admin = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define*/
|
|
||||||
|
|
||||||
define('admin/general/homepage', ['admin/settings'], function (Settings) {
|
define('admin/general/homepage', ['admin/settings'], function (Settings) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define*/
|
|
||||||
|
|
||||||
define('admin/general/languages', ['admin/settings'], function (Settings) {
|
define('admin/general/languages', ['admin/settings'], function (Settings) {
|
||||||
var Languages = {};
|
var Languages = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, ajaxify, socket, templates */
|
|
||||||
|
|
||||||
define('admin/general/navigation', ['translator', 'iconSelect', 'jqueryui'], function (translator, iconSelect, jqueryui) {
|
define('admin/general/navigation', ['translator', 'iconSelect', 'jqueryui'], function (translator, iconSelect, jqueryui) {
|
||||||
var navigation = {};
|
var navigation = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, socket*/
|
|
||||||
|
|
||||||
define('admin/general/social', [], function () {
|
define('admin/general/social', [], function () {
|
||||||
var social = {};
|
var social = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global app, define, socket */
|
|
||||||
|
|
||||||
define('admin/general/sounds', ['sounds', 'settings'], function (Sounds, Settings) {
|
define('admin/general/sounds', ['sounds', 'settings'], function (Sounds, Settings) {
|
||||||
var SoundsAdmin = {};
|
var SoundsAdmin = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, socket, app, bootbox, templates, ajaxify, Sortable */
|
|
||||||
|
|
||||||
define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-serializeobject.min', 'translator'], function (serialize, translator) {
|
define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-serializeobject.min', 'translator'], function (serialize, translator) {
|
||||||
var Categories = {};
|
var Categories = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, ajaxify, utils */
|
|
||||||
|
|
||||||
define('admin/manage/category-analytics', ['Chart'], function (Chart) {
|
define('admin/manage/category-analytics', ['Chart'], function (Chart) {
|
||||||
var CategoryAnalytics = {};
|
var CategoryAnalytics = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global config, define, app, socket, ajaxify, bootbox, templates */
|
|
||||||
|
|
||||||
define('admin/manage/category', [
|
define('admin/manage/category', [
|
||||||
'uploader',
|
'uploader',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, socket, app, utils, bootbox, ajaxify*/
|
|
||||||
|
|
||||||
define('admin/manage/flags', [
|
define('admin/manage/flags', [
|
||||||
'autocomplete',
|
'autocomplete',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, templates, socket, ajaxify, app, bootbox */
|
|
||||||
|
|
||||||
define('admin/manage/group', [
|
define('admin/manage/group', [
|
||||||
'forum/groups/memberlist',
|
'forum/groups/memberlist',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, templates, socket, ajaxify, app, admin, bootbox, utils, config */
|
|
||||||
|
|
||||||
define('admin/manage/groups', ['translator'], function (translator) {
|
define('admin/manage/groups', ['translator'], function (translator) {
|
||||||
var Groups = {};
|
var Groups = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/* globals $, app, socket, templates, define, bootbox */
|
|
||||||
|
|
||||||
define('admin/manage/ip-blacklist', ['translator'], function (translator) {
|
define('admin/manage/ip-blacklist', ['translator'], function (translator) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/* global config, socket, define, templates, bootbox, app, ajaxify, */
|
|
||||||
|
|
||||||
define('admin/manage/registration', function () {
|
define('admin/manage/registration', function () {
|
||||||
var Registration = {};
|
var Registration = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global define, socket, app, utils, bootbox, ajaxify*/
|
|
||||||
|
|
||||||
define('admin/manage/tags', [
|
define('admin/manage/tags', [
|
||||||
'forum/infinitescroll',
|
'forum/infinitescroll',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/* global config, socket, define, templates, bootbox, app, ajaxify */
|
|
||||||
|
|
||||||
define('admin/manage/users', ['translator'], function (translator) {
|
define('admin/manage/users', ['translator'], function (translator) {
|
||||||
var Users = {};
|
var Users = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*globals define*/
|
|
||||||
|
|
||||||
define('admin/modules/colorpicker', function () {
|
define('admin/modules/colorpicker', function () {
|
||||||
var colorpicker = {};
|
var colorpicker = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*globals define, app, socket*/
|
|
||||||
|
|
||||||
define('admin/modules/instance', function () {
|
define('admin/modules/instance', function () {
|
||||||
var instance = {};
|
var instance = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* globals socket, app, define, ajaxify, config */
|
|
||||||
|
|
||||||
define('admin/modules/search', ['mousetrap'], function (mousetrap) {
|
define('admin/modules/search', ['mousetrap'], function (mousetrap) {
|
||||||
var search = {};
|
var search = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*globals define*/
|
|
||||||
|
|
||||||
define('admin/modules/selectable', ['jqueryui'], function (jqueryui) {
|
define('admin/modules/selectable', ['jqueryui'], function (jqueryui) {
|
||||||
var selectable = {};
|
var selectable = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/*global define, app, socket, ajaxify */
|
|
||||||
|
|
||||||
define('admin/settings', ['uploader'], function (uploader) {
|
define('admin/settings', ['uploader'], function (uploader) {
|
||||||
var Settings = {};
|
var Settings = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('admin/settings/cookies', [
|
define('admin/settings/cookies', [
|
||||||
'admin/modules/colorpicker',
|
'admin/modules/colorpicker',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, socket, app, ajaxify, ace */
|
|
||||||
|
|
||||||
define('admin/settings/email', ['admin/settings'], function (settings) {
|
define('admin/settings/email', ['admin/settings'], function (settings) {
|
||||||
var module = {};
|
var module = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, socket */
|
|
||||||
|
|
||||||
define('admin/settings/general', ['admin/settings'], function (Settings) {
|
define('admin/settings/general', ['admin/settings'], function (Settings) {
|
||||||
var Module = {};
|
var Module = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global app, bootbox, templates, socket, config, RELATIVE_PATH*/
|
|
||||||
|
|
||||||
var ajaxify = ajaxify || {};
|
var ajaxify = ajaxify || {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global templates, ajaxify, utils, bootbox, overrides, socket, config, Visibility*/
|
|
||||||
|
|
||||||
var app = app || {};
|
var app = app || {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/best', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
define('forum/account/best', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||||
var Best = {};
|
var Best = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||||
var Bookmarks = {};
|
var Bookmarks = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||||
var Downvoted = {};
|
var Downvoted = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, ajaxify, socket, app, config, templates, bootbox */
|
|
||||||
|
|
||||||
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) {
|
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) {
|
||||||
var AccountEdit = {};
|
var AccountEdit = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, ajaxify, socket, app */
|
|
||||||
|
|
||||||
define('forum/account/edit/email', ['forum/account/header'], function (header) {
|
define('forum/account/edit/email', ['forum/account/header'], function (header) {
|
||||||
var AccountEditEmail = {};
|
var AccountEditEmail = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, ajaxify, socket, app, utils */
|
|
||||||
|
|
||||||
define('forum/account/edit/password', ['forum/account/header', 'translator'], function (header, translator) {
|
define('forum/account/edit/password', ['forum/account/header', 'translator'], function (header, translator) {
|
||||||
var AccountEditPassword = {};
|
var AccountEditPassword = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, ajaxify, socket, app, utils, config */
|
|
||||||
|
|
||||||
define('forum/account/edit/username', ['forum/account/header'], function (header) {
|
define('forum/account/edit/username', ['forum/account/header'], function (header) {
|
||||||
var AccountEditUsername = {};
|
var AccountEditUsername = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/followers', ['forum/account/header'], function (header) {
|
define('forum/account/followers', ['forum/account/header'], function (header) {
|
||||||
var Followers = {};
|
var Followers = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/following', ['forum/account/header'], function (header) {
|
define('forum/account/following', ['forum/account/header'], function (header) {
|
||||||
var Following = {};
|
var Following = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals ajaxify, define, app, socket, utils */
|
|
||||||
|
|
||||||
define('forum/account/groups', ['forum/account/header'], function (header) {
|
define('forum/account/groups', ['forum/account/header'], function (header) {
|
||||||
var AccountTopics = {};
|
var AccountTopics = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/* globals define, app, config, ajaxify, socket, bootbox, templates */
|
|
||||||
|
|
||||||
define('forum/account/header', [
|
define('forum/account/header', [
|
||||||
'coverPhoto',
|
'coverPhoto',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, ajaxify, app */
|
|
||||||
|
|
||||||
define('forum/account/info', ['forum/account/header', 'components'], function (header, components) {
|
define('forum/account/info', ['forum/account/header', 'components'], function (header, components) {
|
||||||
var Info = {};
|
var Info = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, utils, config, ajaxify */
|
|
||||||
|
|
||||||
define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
||||||
var AccountPosts = {};
|
var AccountPosts = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, ajaxify, app, socket, bootbox */
|
|
||||||
|
|
||||||
define('forum/account/profile', [
|
define('forum/account/profile', [
|
||||||
'forum/account/header',
|
'forum/account/header',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/*global define, socket, app, ajaxify, config*/
|
|
||||||
|
|
||||||
define('forum/account/settings', ['forum/account/header', 'components', 'sounds'], function (header, components, sounds) {
|
define('forum/account/settings', ['forum/account/header', 'components', 'sounds'], function (header, components, sounds) {
|
||||||
var AccountSettings = {};
|
var AccountSettings = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, utils, config, ajaxify */
|
|
||||||
|
|
||||||
define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
||||||
var AccountTopics = {};
|
var AccountTopics = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||||
var Upvoted = {};
|
var Upvoted = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, utils */
|
|
||||||
define('forum/account/watched', ['forum/account/header', 'forum/account/topics'], function (header, topics) {
|
define('forum/account/watched', ['forum/account/header', 'forum/account/topics'], function (header, topics) {
|
||||||
var AccountWatched = {};
|
var AccountWatched = {};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app, templates, ajaxify*/
|
|
||||||
|
|
||||||
define('forum/categories', ['components', 'translator'], function (components, translator) {
|
define('forum/categories', ['components', 'translator'], function (components, translator) {
|
||||||
var categories = {};
|
var categories = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, config, templates, app, utils, ajaxify, socket */
|
|
||||||
|
|
||||||
define('forum/category', [
|
define('forum/category', [
|
||||||
'forum/infinitescroll',
|
'forum/infinitescroll',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, bootbox, ajaxify */
|
|
||||||
|
|
||||||
|
|
||||||
define('forum/category/tools', [
|
define('forum/category/tools', [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, utils, socket, templates */
|
|
||||||
|
|
||||||
define('forum/chats', [
|
define('forum/chats', [
|
||||||
'components',
|
'components',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app, ajaxify, templates, bootbox */
|
|
||||||
|
|
||||||
define('forum/chats/messages', ['components', 'sounds', 'translator'], function (components, sounds, translator) {
|
define('forum/chats/messages', ['components', 'sounds', 'translator'], function (components, sounds, translator) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app */
|
|
||||||
|
|
||||||
define('forum/chats/recent', function () {
|
define('forum/chats/recent', function () {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app */
|
|
||||||
|
|
||||||
define('forum/chats/search', ['components'], function (components) {
|
define('forum/chats/search', ['components'], function (components) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define */
|
|
||||||
|
|
||||||
define('forum/compose', [], function () {
|
define('forum/compose', [], function () {
|
||||||
var Compose = {};
|
var Compose = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*globals define, app, socket*/
|
|
||||||
|
|
||||||
define('forum/footer', ['notifications', 'chat', 'components', 'translator'], function (Notifications, Chat, components, translator) {
|
define('forum/footer', ['notifications', 'chat', 'components', 'translator'], function (Notifications, Chat, components, translator) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* globals define, socket, ajaxify, app, bootbox, utils, config */
|
|
||||||
|
|
||||||
define('forum/groups/details', [
|
define('forum/groups/details', [
|
||||||
'forum/groups/memberlist',
|
'forum/groups/memberlist',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* globals app, define, ajaxify, socket, bootbox, utils, templates */
|
|
||||||
|
|
||||||
define('forum/groups/list', ['forum/infinitescroll'], function (infinitescroll) {
|
define('forum/groups/list', ['forum/infinitescroll'], function (infinitescroll) {
|
||||||
var Groups = {};
|
var Groups = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* globals define, socket, ajaxify, app */
|
|
||||||
|
|
||||||
define('forum/groups/memberlist', ['components', 'forum/infinitescroll'], function (components, infinitescroll) {
|
define('forum/groups/memberlist', ['components', 'forum/infinitescroll'], function (components, infinitescroll) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app */
|
|
||||||
|
|
||||||
define('forum/infinitescroll', function () {
|
define('forum/infinitescroll', function () {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* global define, app, config, RELATIVE_PATH */
|
|
||||||
|
|
||||||
define('forum/login', ['translator'], function (translator) {
|
define('forum/login', ['translator'], function (translator) {
|
||||||
var Login = {};
|
var Login = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app */
|
|
||||||
|
|
||||||
define('forum/notifications', ['components', 'notifications', 'forum/infinitescroll'], function (components, notifs, infinitescroll) {
|
define('forum/notifications', ['components', 'notifications', 'forum/infinitescroll'], function (components, notifs, infinitescroll) {
|
||||||
var Notifications = {};
|
var Notifications = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/*global define, utils, ajaxify, bootbox*/
|
|
||||||
|
|
||||||
define('forum/pagination', function () {
|
define('forum/pagination', function () {
|
||||||
var pagination = {};
|
var pagination = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket*/
|
|
||||||
|
|
||||||
define('forum/popular', ['components'], function (components) {
|
define('forum/popular', ['components'], function (components) {
|
||||||
var Popular = {};
|
var Popular = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, utils, ajaxify, config */
|
|
||||||
|
|
||||||
define('forum/recent', ['forum/infinitescroll', 'components'], function (infinitescroll, components) {
|
define('forum/recent', ['forum/infinitescroll', 'components'], function (infinitescroll, components) {
|
||||||
var Recent = {};
|
var Recent = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, utils, socket, config, ajaxify, bootbox */
|
|
||||||
|
|
||||||
|
|
||||||
define('forum/register', ['translator'], function (translator) {
|
define('forum/register', ['translator'], function (translator) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*globals define, app, socket*/
|
|
||||||
|
|
||||||
define('forum/reset', function () {
|
define('forum/reset', function () {
|
||||||
var ResetPassword = {};
|
var ResetPassword = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*globals define, app, ajaxify, socket, config*/
|
|
||||||
|
|
||||||
define('forum/reset_code', function () {
|
define('forum/reset_code', function () {
|
||||||
var ResetCode = {};
|
var ResetCode = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals app, define, utils*/
|
|
||||||
|
|
||||||
define('forum/search', ['search', 'autocomplete'], function (searchModule, autocomplete) {
|
define('forum/search', ['search', 'autocomplete'], function (searchModule, autocomplete) {
|
||||||
var Search = {};
|
var Search = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, socket */
|
|
||||||
|
|
||||||
define('forum/tag', ['forum/recent', 'forum/infinitescroll'], function (recent, infinitescroll) {
|
define('forum/tag', ['forum/recent', 'forum/infinitescroll'], function (recent, infinitescroll) {
|
||||||
var Tag = {};
|
var Tag = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, utils, socket */
|
|
||||||
|
|
||||||
define('forum/tags', ['forum/infinitescroll'], function (infinitescroll) {
|
define('forum/tags', ['forum/infinitescroll'], function (infinitescroll) {
|
||||||
var Tags = {};
|
var Tags = {};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
/* globals define, app, socket, config, ajaxify, RELATIVE_PATH, utils */
|
|
||||||
|
|
||||||
define('forum/topic', [
|
define('forum/topic', [
|
||||||
'forum/infinitescroll',
|
'forum/infinitescroll',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, socket */
|
|
||||||
|
|
||||||
define('forum/topic/delete-posts', ['components', 'postSelect'], function (components, postSelect) {
|
define('forum/topic/delete-posts', ['components', 'postSelect'], function (components, postSelect) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals config, app, ajaxify, define, socket, templates, utils */
|
|
||||||
|
|
||||||
define('forum/topic/events', [
|
define('forum/topic/events', [
|
||||||
'forum/topic/postTools',
|
'forum/topic/postTools',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, templates */
|
|
||||||
|
|
||||||
define('forum/topic/flag', [], function () {
|
define('forum/topic/flag', [], function () {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, socket */
|
|
||||||
|
|
||||||
define('forum/topic/fork', ['components', 'postSelect'], function (components, postSelect) {
|
define('forum/topic/fork', ['components', 'postSelect'], function (components, postSelect) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket */
|
|
||||||
|
|
||||||
define('forum/topic/move-post', [], function () {
|
define('forum/topic/move-post', [], function () {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, templates */
|
|
||||||
|
|
||||||
define('forum/topic/move', function () {
|
define('forum/topic/move', function () {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, bootbox, socket, templates, utils, config */
|
|
||||||
|
|
||||||
define('forum/topic/postTools', [
|
define('forum/topic/postTools', [
|
||||||
'share',
|
'share',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals config, app, ajaxify, define, utils */
|
|
||||||
|
|
||||||
define('forum/topic/posts', [
|
define('forum/topic/posts', [
|
||||||
'forum/pagination',
|
'forum/pagination',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, socket */
|
|
||||||
|
|
||||||
define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], function (navigator, components, posts) {
|
define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], function (navigator, components, posts) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, ajaxify, socket, bootbox, templates */
|
|
||||||
|
|
||||||
define('forum/topic/threadTools', [
|
define('forum/topic/threadTools', [
|
||||||
'forum/topic/fork',
|
'forum/topic/fork',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket, ajaxify, templates, bootbox */
|
|
||||||
|
|
||||||
define('forum/topic/votes', ['components', 'translator'], function (components, translator) {
|
define('forum/topic/votes', ['components', 'translator'], function (components, translator) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, app, socket */
|
|
||||||
|
|
||||||
define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', 'components'], function (recent, topicSelect, infinitescroll, components) {
|
define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', 'components'], function (recent, topicSelect, infinitescroll, components) {
|
||||||
var Unread = {};
|
var Unread = {};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app, templates, bootbox, utils */
|
|
||||||
|
|
||||||
define('forum/users', ['translator'], function (translator) {
|
define('forum/users', ['translator'], function (translator) {
|
||||||
var Users = {};
|
var Users = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*global utils*/
|
|
||||||
|
|
||||||
$('document').ready(function () {
|
$('document').ready(function () {
|
||||||
setupInputs();
|
setupInputs();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/* globals define, templates */
|
|
||||||
|
|
||||||
define('alerts', ['translator', 'components'], function (translator, components) {
|
define('alerts', ['translator', 'components'], function (translator, components) {
|
||||||
var module = {};
|
var module = {};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals define, socket, app */
|
|
||||||
|
|
||||||
define('autocomplete', function () {
|
define('autocomplete', function () {
|
||||||
var module = {};
|
var module = {};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* globals app, define, socket, templates, utils, ajaxify */
|
|
||||||
|
|
||||||
define('chat', [
|
define('chat', [
|
||||||
'components',
|
'components',
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user