Added authorization server and backup of JSReport config. IO-585
This commit is contained in:
12
jsreport/data/_globals/config.json
Normal file
12
jsreport/data/_globals/config.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "_globals",
|
||||
"creationDate": {
|
||||
"$$date": 1609959897101
|
||||
},
|
||||
"modificationDate": {
|
||||
"$$date": 1609959897101
|
||||
},
|
||||
"shortid": "Ek4vtyE",
|
||||
"_id": "LGAznUA50hrX9QC2",
|
||||
"$entitySet": "folders"
|
||||
}
|
||||
14
jsreport/data/_globals/helpers.js/config.json
Normal file
14
jsreport/data/_globals/helpers.js/config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "helpers.js",
|
||||
"creationDate": {
|
||||
"$$date": 1609960774906
|
||||
},
|
||||
"modificationDate": {
|
||||
"$$date": 1609960781053
|
||||
},
|
||||
"shortid": "a49TcoN",
|
||||
"_id": "1lAwHKwaeG3TJBTT",
|
||||
"$entitySet": "assets",
|
||||
"inheritedReadPermissions": [],
|
||||
"inheritedEditPermissions": []
|
||||
}
|
||||
25
jsreport/data/_globals/helpers.js/content.js
Normal file
25
jsreport/data/_globals/helpers.js/content.js
Normal 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
|
||||
}
|
||||
14
jsreport/data/_globals/styles.css/config.json
Normal file
14
jsreport/data/_globals/styles.css/config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "styles.css",
|
||||
"creationDate": {
|
||||
"$$date": 1609960168894
|
||||
},
|
||||
"modificationDate": {
|
||||
"$$date": 1609982175635
|
||||
},
|
||||
"shortid": "TGu7wUV",
|
||||
"_id": "9CWHJHWV4GlWHMKC",
|
||||
"$entitySet": "assets",
|
||||
"inheritedReadPermissions": [],
|
||||
"inheritedEditPermissions": []
|
||||
}
|
||||
9
jsreport/data/_globals/styles.css/content.css
Normal file
9
jsreport/data/_globals/styles.css/content.css
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user