feat: add javascript linter format
This commit is contained in:
parent
3b3aaf29af
commit
7ce9f2dd93
13 changed files with 1561 additions and 1557 deletions
31
config.js
31
config.js
|
@ -1,4 +1,4 @@
|
|||
/*exports.database = {
|
||||
/* exports.database = {
|
||||
type: 'mongodb',
|
||||
hostname: 'localhost',
|
||||
port: 27017,
|
||||
|
@ -6,7 +6,7 @@
|
|||
};
|
||||
*/
|
||||
|
||||
var argv = require("yargs").usage(
|
||||
const { argv } = require('yargs').usage(
|
||||
'Usage: $0 [--port INTEGER [8080]] \
|
||||
[--baseurl STRING ["/"]] \
|
||||
[--redis STRING:INT [127.0.0.1:6379]] \
|
||||
|
@ -16,28 +16,27 @@ var argv = require("yargs").usage(
|
|||
[--logoUrl STRING] \
|
||||
[--faviconUrl STRING] \ '
|
||||
|
||||
|
||||
).argv
|
||||
)
|
||||
|
||||
exports.server = {
|
||||
port: argv.port || 8080,
|
||||
baseurl: argv.baseurl || "/",
|
||||
baseurl: argv.baseurl || '/'
|
||||
}
|
||||
|
||||
exports.googleanalytics = {
|
||||
enabled: argv["gaEnabled"] || false,
|
||||
account: argv["gaAccount"] || "UA-2069672-4",
|
||||
enabled: argv.gaEnabled || false,
|
||||
account: argv.gaAccount || 'UA-2069672-4'
|
||||
}
|
||||
|
||||
var redis_conf = argv.redis || "127.0.0.1:6379"
|
||||
const redis_conf = argv.redis || '127.0.0.1:6379'
|
||||
exports.database = {
|
||||
sock: argv["sock"] || false,
|
||||
type: "redis",
|
||||
prefix: "#scrumblr#",
|
||||
host: redis_conf.split(":")[0] || "127.0.0.1",
|
||||
port: redis_conf.split(":")[1] || 6379,
|
||||
sock: argv.sock || false,
|
||||
type: 'redis',
|
||||
prefix: '#scrumblr#',
|
||||
host: redis_conf.split(':')[0] || '127.0.0.1',
|
||||
port: redis_conf.split(':')[1] || 6379
|
||||
}
|
||||
|
||||
exports.headerBarUrl = argv['headerBarUrl'] || null /* example url with appropriate json markup : 'https://colibris-lemouvement.org/archipel-markup?domain=colibris-outilslibres.org' */
|
||||
exports.logoUrl = argv['logoUrl'] || null /* example logo url : 'https://postit.colibris-outilslibres.org/images/logo-Post-it.svg' */
|
||||
exports.faviconUrl = argv['faviconUrl'] || null /* example favicon url : 'https://postit.colibris-outilslibres.org/images/favicon.png' */
|
||||
exports.headerBarUrl = argv.headerBarUrl || null /* example url with appropriate json markup : 'https://colibris-lemouvement.org/archipel-markup?domain=colibris-outilslibres.org' */
|
||||
exports.logoUrl = argv.logoUrl || null /* example logo url : 'https://postit.colibris-outilslibres.org/images/logo-Post-it.svg' */
|
||||
exports.faviconUrl = argv.faviconUrl || null /* example favicon url : 'https://postit.colibris-outilslibres.org/images/favicon.png' */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue