Added authorization server and backup of JSReport config. IO-585

This commit is contained in:
Patrick Fic
2021-01-07 10:10:55 -08:00
parent bf507821c0
commit 3da3fb96e2
36 changed files with 20037 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"name": "_globals",
"creationDate": {
"$$date": 1609959897101
},
"modificationDate": {
"$$date": 1609959897101
},
"shortid": "Ek4vtyE",
"_id": "LGAznUA50hrX9QC2",
"$entitySet": "folders"
}

View File

@@ -0,0 +1,14 @@
{
"name": "helpers.js",
"creationDate": {
"$$date": 1609960774906
},
"modificationDate": {
"$$date": 1609960781053
},
"shortid": "a49TcoN",
"_id": "1lAwHKwaeG3TJBTT",
"$entitySet": "assets",
"inheritedReadPermissions": [],
"inheritedEditPermissions": []
}

View File

@@ -0,0 +1,25 @@
const moment = require('moment')
function formatReportDate (date) {
return moment(date).format('YYYY MMMM DD')
}
function now() {
return new Date().toLocaleDateString()
}
function nowPlus20Days() {
var date = new Date()
date.setDate(date.getDate() + 20);
return date.toLocaleDateString();
}
function total(items) {
var sum = 0
items.forEach(function (i) {
console.log('Calculating item ' + i.name + '; you should see this message in debug run')
sum += i.price
})
return sum
}

View File

@@ -0,0 +1,14 @@
{
"name": "styles.css",
"creationDate": {
"$$date": 1609960168894
},
"modificationDate": {
"$$date": 1609982175635
},
"shortid": "TGu7wUV",
"_id": "9CWHJHWV4GlWHMKC",
"$entitySet": "assets",
"inheritedReadPermissions": [],
"inheritedEditPermissions": []
}

File diff suppressed because one or more lines are too long