-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3a59dd
commit 23fa8aa
Showing
19 changed files
with
382 additions
and
4,824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": ["prettier"], | ||
|
||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
|
||
"parserOptions": { | ||
"ecmaVersion": 8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
overrides: [ | ||
{ | ||
files: ['*.md'], | ||
options: { | ||
tabWidth: 4, | ||
proseWrap: 'always' | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
const host = "www.dareboost.com"; | ||
const apiVersion = "0.6"; | ||
const host = 'www.dareboost.com'; | ||
const apiVersion = '0.6'; | ||
const token = process.env.DB_API_TOKEN; | ||
|
||
// Delay between two API calls on iterative calls | ||
const delay = 500; | ||
|
||
exports.config = { | ||
apiUrl: "https://" + host + "/api/" + apiVersion, | ||
apiUrl: 'https://' + host + '/api/' + apiVersion, | ||
endpoints: { | ||
monitoring: { | ||
list: "/monitoring/list", | ||
lastReport: "/monitoring/last-report", | ||
reports: "/monitoring/reports" | ||
list: '/monitoring/list', | ||
lastReport: '/monitoring/last-report', | ||
reports: '/monitoring/reports', | ||
}, | ||
scenario: { | ||
list: "/scenario/list", | ||
reports: "/scenario/reports" | ||
} | ||
list: '/scenario/list', | ||
reports: '/scenario/reports', | ||
}, | ||
}, | ||
delay, | ||
token | ||
token, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
const _ = require("underscore"); | ||
const { flattenObjects } = require("../../transformations"); | ||
const io = require("../../io"); | ||
const getMonitoringList = require("../../api-client/trackings/list"); | ||
const getMonitoringLastExecutions = require("../../api-client/trackings/last-executions"); | ||
const _ = require('underscore'); | ||
const { flattenObjects } = require('../../transformations'); | ||
const io = require('../../io'); | ||
const getMonitoringList = require('../../api-client/trackings/list'); | ||
const getMonitoringLastExecutions = require('../../api-client/trackings/last-executions'); | ||
|
||
(async () => { | ||
const monitoringList = await getMonitoringList(); | ||
|
||
// Add a direct link to edition | ||
_.map( | ||
monitoringList.monitorings, | ||
item => | ||
(item) => | ||
(item.editUrl = | ||
"https://www.dareboost.com/" + | ||
(item.lang ? item.lang : "en") + | ||
"/tracking/edit/" + | ||
'https://www.dareboost.com/' + | ||
(item.lang ? item.lang : 'en') + | ||
'/tracking/edit/' + | ||
item.id) | ||
); | ||
|
||
io.doExport(flattenObjects(monitoringList.monitorings), "trackingConf"); | ||
io.doExport(flattenObjects(monitoringList.monitorings), 'trackingConf'); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.