mirror of https://gitee.com/bigwinds/arangodb
Removed jslint headers from system apps.
This commit is contained in:
parent
bff47e558b
commit
71155440e6
|
@ -8,13 +8,13 @@
|
||||||
"forin": true,
|
"forin": true,
|
||||||
"freeze": true,
|
"freeze": true,
|
||||||
"immed": true,
|
"immed": true,
|
||||||
"indent": true,
|
"laxbreak": true,
|
||||||
"newcap": true,
|
"newcap": true,
|
||||||
"noarg": true,
|
"noarg": true,
|
||||||
"noempty": true,
|
"noempty": true,
|
||||||
"nonbsp": true,
|
"nonbsp": true,
|
||||||
"nonew": true,
|
"nonew": true,
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"maxlen": 120,
|
"indent": 2,
|
||||||
"-W014": true
|
"maxlen": 120
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
|
|
||||||
/*global require, applicationContext*/
|
/*global require, applicationContext*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -427,7 +426,7 @@ controller.get("/query/result/download/:query", function(req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
var decodeFunction = function (input) {
|
var decodeFunction = function (input) {
|
||||||
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
|
|
||||||
/*global require, applicationContext*/
|
/*global require, applicationContext*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -154,7 +153,7 @@
|
||||||
// only make these functions available in dispatcher mode!
|
// only make these functions available in dispatcher mode!
|
||||||
controller.post("/plan", startUp);
|
controller.post("/plan", startUp);
|
||||||
controller.put("/plan", startUp);
|
controller.put("/plan", startUp);
|
||||||
|
|
||||||
controller.put("/plan/credentials", function(req, res) {
|
controller.put("/plan/credentials", function(req, res) {
|
||||||
var body = req.body(),
|
var body = req.body(),
|
||||||
u = body.user,
|
u = body.user,
|
||||||
|
@ -202,7 +201,7 @@
|
||||||
|
|
||||||
controller.get("/upgrade", function(req, res) {
|
controller.get("/upgrade", function(req, res) {
|
||||||
//uname pswd
|
//uname pswd
|
||||||
|
|
||||||
var k = getStarter();
|
var k = getStarter();
|
||||||
var u = plans.getCredentials();
|
var u = plans.getCredentials();
|
||||||
var r = k.upgrade(u.name, u.passwd);
|
var r = k.upgrade(u.name, u.passwd);
|
||||||
|
@ -214,7 +213,7 @@
|
||||||
plans.replaceRunInfo(r.runInfo);
|
plans.replaceRunInfo(r.runInfo);
|
||||||
res.json("ok");
|
res.json("ok");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
controller.get("/cleanup", function(req, res) {
|
controller.get("/cleanup", function(req, res) {
|
||||||
|
@ -259,7 +258,7 @@
|
||||||
*
|
*
|
||||||
* Returns a string containing the cluster type
|
* Returns a string containing the cluster type
|
||||||
* Possible anwers:
|
* Possible anwers:
|
||||||
* - testSetup
|
* - testSetup
|
||||||
* - symmetricalSetup
|
* - symmetricalSetup
|
||||||
* - asymmetricalSetup
|
* - asymmetricalSetup
|
||||||
*
|
*
|
||||||
|
@ -308,7 +307,7 @@
|
||||||
list = coords.getList(),
|
list = coords.getList(),
|
||||||
diffList = diff.Coordinators(),
|
diffList = diff.Coordinators(),
|
||||||
didBeat = beats.didBeat();
|
didBeat = beats.didBeat();
|
||||||
|
|
||||||
_.each(list, function(v, k) {
|
_.each(list, function(v, k) {
|
||||||
v.name = k;
|
v.name = k;
|
||||||
resList.push(v);
|
resList.push(v);
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
|
|
||||||
/*global exports, appCollection*/
|
/*global exports, appCollection*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
|
|
||||||
/*global exports, appCollection*/
|
/*global exports, appCollection*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -30,16 +29,16 @@
|
||||||
|
|
||||||
exports.Swagger = function () {
|
exports.Swagger = function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var db = require("internal").db,
|
var db = require("internal").db,
|
||||||
_aal = db._collection("_aal"),
|
_aal = db._collection("_aal"),
|
||||||
_ = require("underscore"),
|
_ = require("underscore"),
|
||||||
foxx_manager = require("org/arangodb/foxx/manager");
|
foxx_manager = require("org/arangodb/foxx/manager");
|
||||||
|
|
||||||
|
|
||||||
// Define the functionality to receive the documentation.
|
// Define the functionality to receive the documentation.
|
||||||
// And transform it into swagger format.
|
// And transform it into swagger format.
|
||||||
|
|
||||||
// Get the overview of all installed foxxes.
|
// Get the overview of all installed foxxes.
|
||||||
this.list = function(basePath) {
|
this.list = function(basePath) {
|
||||||
var result = {},
|
var result = {},
|
||||||
|
@ -51,7 +50,7 @@ exports.Swagger = function () {
|
||||||
while (res.hasNext()) {
|
while (res.hasNext()) {
|
||||||
var m = res.next().mount;
|
var m = res.next().mount;
|
||||||
if (m === "/aardvark") {
|
if (m === "/aardvark") {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
apis.push({
|
apis.push({
|
||||||
path: m
|
path: m
|
||||||
|
@ -60,7 +59,7 @@ exports.Swagger = function () {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
this.listOne = function(basePath, key) {
|
this.listOne = function(basePath, key) {
|
||||||
var result = {},
|
var result = {},
|
||||||
res;
|
res;
|
||||||
|
@ -81,8 +80,8 @@ exports.Swagger = function () {
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get details of one specific installed foxx.
|
// Get details of one specific installed foxx.
|
||||||
this.show = function(mount) {
|
this.show = function(mount) {
|
||||||
var result = {},
|
var result = {},
|
||||||
apis = [],
|
apis = [],
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 100 */
|
|
||||||
/*global require, exports*/
|
/*global require, exports*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120, white: true, plusplus: true, unparam: true, vars: true, continue: true */
|
|
||||||
/*global require, applicationContext, ArangoServerState, ArangoClusterInfo, ArangoClusterComm*/
|
/*global require, applicationContext, ArangoServerState, ArangoClusterInfo, ArangoClusterComm*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -136,7 +135,7 @@ function computeStatisticsRaw (result, start, clusterId) {
|
||||||
+ " SORT s.time "
|
+ " SORT s.time "
|
||||||
+ " return s",
|
+ " return s",
|
||||||
{ start: start - 2 * STATISTICS_INTERVAL, clusterId: clusterId });
|
{ start: start - 2 * STATISTICS_INTERVAL, clusterId: clusterId });
|
||||||
|
|
||||||
result.times = [];
|
result.times = [];
|
||||||
|
|
||||||
var key;
|
var key;
|
||||||
|
@ -268,7 +267,7 @@ function computeStatisticsRaw15M (result, start, clusterId) {
|
||||||
+ " SORT s.time "
|
+ " SORT s.time "
|
||||||
+ " return s",
|
+ " return s",
|
||||||
{ start: start - 2 * STATISTICS_HISTORY_INTERVAL, clusterId: clusterId });
|
{ start: start - 2 * STATISTICS_HISTORY_INTERVAL, clusterId: clusterId });
|
||||||
|
|
||||||
var lastRaw = null;
|
var lastRaw = null;
|
||||||
var lastRaw2 = null;
|
var lastRaw2 = null;
|
||||||
|
|
||||||
|
@ -404,7 +403,7 @@ function computeStatisticsLong (attrs, clusterId) {
|
||||||
+ " SORT s.time "
|
+ " SORT s.time "
|
||||||
+ " return s",
|
+ " return s",
|
||||||
{ end: end, clusterId: clusterId });
|
{ end: end, clusterId: clusterId });
|
||||||
|
|
||||||
var long = { times: [] };
|
var long = { times: [] };
|
||||||
|
|
||||||
computeStatisticsValues(long, values, attrs);
|
computeStatisticsValues(long, values, attrs);
|
||||||
|
@ -534,7 +533,7 @@ controller.get("cluster", function (req, res) {
|
||||||
url += sep + "start=" + encodeURIComponent(req.params("start"));
|
url += sep + "start=" + encodeURIComponent(req.params("start"));
|
||||||
sep = "&";
|
sep = "&";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.parameters.hasOwnProperty("filter")) {
|
if (req.parameters.hasOwnProperty("filter")) {
|
||||||
url += sep + "filter=" + encodeURIComponent(req.params("filter"));
|
url += sep + "filter=" + encodeURIComponent(req.params("filter"));
|
||||||
sep = "&";
|
sep = "&";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, applicationContext */
|
/*global require, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, exports */
|
/*global require, exports */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, applicationContext */
|
/*global require, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, exports, applicationContext */
|
/*global require, exports, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, describe, it */
|
/*global require, describe, it */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, module, describe, it, beforeEach */
|
/*global require, module, describe, it, beforeEach */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, exports, applicationContext */
|
/*global require, exports, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, module, describe, it, beforeEach */
|
/*global require, module, describe, it, beforeEach */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, module, exports, describe, it, beforeEach */
|
/*global require, module, exports, describe, it, beforeEach */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, exports */
|
/*global require, exports */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, applicationContext */
|
/*global require, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, exports, applicationContext */
|
/*global require, exports, applicationContext */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, describe, it */
|
/*global require, describe, it */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/*jslint indent: 2, nomen: true, maxlen: 120 */
|
|
||||||
/*global require, module, describe, it, beforeEach */
|
/*global require, module, describe, it, beforeEach */
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
Loading…
Reference in New Issue