Merge branch 'release/v1.6.6' of hardi/opt-cc into master
commit
43ff1e86dc
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"apps": [
|
||||||
|
{
|
||||||
|
"name": "opt-cc",
|
||||||
|
"script": "./api/server.js",
|
||||||
|
"watch": false,
|
||||||
|
"env": {
|
||||||
|
"TZ": "Europe/Berlin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -129,7 +129,6 @@ if (process.env.NODE_ENV !== config.test.env) {
|
||||||
useMongoClient: true
|
useMongoClient: true
|
||||||
});
|
});
|
||||||
mongoosePromise.then((db) => {
|
mongoosePromise.then((db) => {
|
||||||
process.env.TZ = 'Europe/Berlin';
|
|
||||||
app.listen(config.test.port);
|
app.listen(config.test.port);
|
||||||
console.log('Listening on port ' + config.test.port);
|
console.log('Listening on port ' + config.test.port);
|
||||||
})
|
})
|
||||||
|
|
|
@ -59,15 +59,15 @@ const parseWarLog = (lineArray, war) => {
|
||||||
else if (line.includes('Budget')) {
|
else if (line.includes('Budget')) {
|
||||||
stats.clean.push(line);
|
stats.clean.push(line);
|
||||||
const budg = line.split(' ');
|
const budg = line.split(' ');
|
||||||
if (line.includes('Endbudget')) {
|
if (line.includes('Startbudget')) {
|
||||||
stats.war['endBudgetBlufor'] = transformMoneyString(budg[11]);
|
|
||||||
stats.war['endBudgetOpfor'] = transformMoneyString(budg[14]);
|
|
||||||
stats.war.endDate = new Date(budg[0].substr(0, budg[0].length - 1).split('/').join('-') + 'T0' + budg[5]);
|
|
||||||
} else if (line.includes('Startbudget')) {
|
|
||||||
stats.war['budgetBlufor'] = transformMoneyString(budg[11]);
|
stats.war['budgetBlufor'] = transformMoneyString(budg[11]);
|
||||||
stats.war['budgetOpfor'] = transformMoneyString(budg[14]);
|
stats.war['budgetOpfor'] = transformMoneyString(budg[14]);
|
||||||
// this date needs to be assigned in first place !important
|
// this date needs to be assigned in first place !important
|
||||||
stats.war.date = new Date(budg[0].substr(0, budg[0].length - 1).split('/').join('-') + 'T22:00:00');
|
stats.war.date = new Date(budg[0].substr(0, budg[0].length - 1).split('/').join('-'));
|
||||||
|
} else if (line.includes('Endbudget')) {
|
||||||
|
stats.war['endBudgetBlufor'] = transformMoneyString(budg[11]);
|
||||||
|
stats.war['endBudgetOpfor'] = transformMoneyString(budg[14]);
|
||||||
|
stats.war.endDate = getFullTimeDate(war.date, budg[5]);
|
||||||
} else {
|
} else {
|
||||||
stats.budget.push(getBudgetEntry(budg, war._id, war.date));
|
stats.budget.push(getBudgetEntry(budg, war._id, war.date));
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ do
|
||||||
# provide date for restore process, if data import is needed
|
# provide date for restore process, if data import is needed
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
|
echo "table ${i}"
|
||||||
mongoexport --db cc --collection $i --out ${DATE}/collections/${i}.json;
|
mongoexport --db cc --collection $i --out ${DATE}/collections/${i}.json;
|
||||||
else
|
else
|
||||||
mongoimport --db cc --collection $i --drop --file ${1}/collections/${i}.json
|
mongoimport --db cc --collection $i --drop --file ${1}/collections/${i}.json
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "opt-cc",
|
"name": "opt-cc",
|
||||||
"version": "1.6.5",
|
"version": "1.6.6",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Florian Hartwich <hardi@noarch.de>",
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
|
@ -39,3 +39,18 @@
|
||||||
.nav-tabs > li.deactivated > a.nav-link {
|
.nav-tabs > li.deactivated > a.nav-link {
|
||||||
cursor: not-allowed !important;
|
cursor: not-allowed !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host /deep/ .ngx-datatable.scroll-vertical .datatable-body::-webkit-scrollbar {
|
||||||
|
width: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host /deep/ .ngx-datatable.scroll-vertical .datatable-body::-webkit-scrollbar-track {
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host /deep/ .ngx-datatable.scroll-vertical .datatable-body::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #4b4b4b;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue