diff --git a/server/apib/data_structures/_campaign.apib b/server/apib/data_structures/_campaign.apib
index 0e097e7..7b3dc9a 100644
--- a/server/apib/data_structures/_campaign.apib
+++ b/server/apib/data_structures/_campaign.apib
@@ -5,8 +5,6 @@ Campaign entity
## Properties
+ _id:`5abd55ea9e30a76bfef747d6` (string, required) - unique id of the campaign
+ title: `Ein Kessel Buntes` (string, required) - display title of the campaign
-+ fractionMappingBlufor: `BLUFOR` (enum[string], required) - mapping for Blufor fraction across the campaign
-+ fractionMappingOpfor: `OPFOR` (enum[string], required) - mapping for Opfor fraction across the campaign
+ timestamp: `2017-05-17T19:44:28.751Z` (string, required) - creation date
+ updatedAt: `"2017-05-17T19:44:28.751Z` (string, required) - version date
+ __v: 0 (number, required) - version number
diff --git a/server/apib/data_structures/_war.apib b/server/apib/data_structures/_war.apib
index 757a0f1..324812e 100644
--- a/server/apib/data_structures/_war.apib
+++ b/server/apib/data_structures/_war.apib
@@ -6,6 +6,8 @@ A war as used in statistics
+ title: `Battle No.1` (string, required) - the display neme of the war
+ date: `2018-02-24T20:01:25.825Z` (string, required) - war start timestamp
+ endDate: `2018-02-24T22:31:26.855Z` (string, required) - war end timestamp
++ fractionMappingBlufor: `BLUFOR` (enum[string], required) - display name mapping for Blufor fraction
++ fractionMappingOpfor: `OPFOR` (enum[string], required) - display name mapping for Opfor fraction
+ ptBlufor: 11 (number, required) - final points fraction Blufor
+ ptOpfor: 12 (number, required) - final points fraction Opfor
+ playersBlufor: 36 (number, required) - player count of fraction Blufor
diff --git a/server/models/campaign.js b/server/models/campaign.js
index 49476cf..ab4d9d5 100644
--- a/server/models/campaign.js
+++ b/server/models/campaign.js
@@ -8,16 +8,6 @@ const CampaignSchema = new Schema({
type: String,
required: true,
},
- fractionMappingBlufor: {
- type: String,
- enum: ['BLUFOR', 'OPFOR', 'ARF', 'SWORD'],
- default: 'BLUFOR',
- },
- fractionMappingOpfor: {
- type: String,
- enum: ['BLUFOR', 'OPFOR', 'ARF', 'SWORD'],
- default: 'OPFOR',
- },
}, {
collection: 'campaign',
timestamps: {createdAt: 'timestamp'},
diff --git a/server/models/war.js b/server/models/war.js
index ff342cd..e768609 100644
--- a/server/models/war.js
+++ b/server/models/war.js
@@ -14,6 +14,16 @@ const WarSchema = new Schema({
endDate: {
type: Date,
},
+ fractionMappingBlufor: {
+ type: String,
+ enum: ['BLUFOR', 'OPFOR', 'ARF', 'SWORD'],
+ default: 'BLUFOR',
+ },
+ fractionMappingOpfor: {
+ type: String,
+ enum: ['BLUFOR', 'OPFOR', 'ARF', 'SWORD'],
+ default: 'OPFOR',
+ },
ptBlufor: {
type: Number,
get: (v) => Math.round(v),
diff --git a/server/routes/decorations.js b/server/routes/decorations.js
index bb310d0..0025e29 100644
--- a/server/routes/decorations.js
+++ b/server/routes/decorations.js
@@ -44,7 +44,6 @@ decorationRouter.route('/')
if (req.query.q) {
filter.name = {$regex: req.query.q, $options: 'i'};
}
- console.log(filter)
DecorationModel.find(filter, {}, {
sort: {
fraction: 'asc',
diff --git a/server/routes/users.js b/server/routes/users.js
index 2e2400a..5874322 100644
--- a/server/routes/users.js
+++ b/server/routes/users.js
@@ -168,7 +168,6 @@ users.route('/:id')
res.locals.items = item;
} else {
err.status = codes.wrongrequest;
- console.log(err);
err.message += ' in fields: ' + Object.getOwnPropertyNames(err.errors);
}
diff --git a/static/src/app/admin/edit-app-user/edit-app-user.component.html b/static/src/app/admin/edit-app-user/edit-app-user.component.html
index ffad96a..77f52e2 100644
--- a/static/src/app/admin/edit-app-user/edit-app-user.component.html
+++ b/static/src/app/admin/edit-app-user/edit-app-user.component.html
@@ -23,7 +23,7 @@
[(ngModel)]="appUserSquadId">
diff --git a/static/src/app/admin/user-list/app-user-item.component.html b/static/src/app/admin/user-list/app-user-item.component.html
index 2ede66e..6dd404f 100644
--- a/static/src/app/admin/user-list/app-user-item.component.html
+++ b/static/src/app/admin/user-list/app-user-item.component.html
@@ -6,8 +6,8 @@
{{appUser.username}}
- {{fraction.OPFOR}} - {{appUser.squad.name}}
- {{fraction.BLUFOR}} - {{appUser.squad.name}}
+ {{fraction.SWORD}} - {{appUser.squad.name}}
+ {{fraction.ARF}} - {{appUser.squad.name}}
{{'users.list.item.label.no.squad' | translate}}
diff --git a/static/src/app/utils/fraction.enum.ts b/static/src/app/utils/fraction.enum.ts
index edfc2cb..a3f28bf 100644
--- a/static/src/app/utils/fraction.enum.ts
+++ b/static/src/app/utils/fraction.enum.ts
@@ -13,5 +13,5 @@ export enum Fraction {
COLOR_OPFOR_DARK = '#890F0F',
COLOR_OPFOR_LIGHT = '#fb5555',
COLOR_OPFOR_GREY = '#955c5f',
- COLOR_NEUTRAL = '#666666',
+ COLOR_NEUTRAL = '#222222',
}