diff --git a/README.md b/README.md index 42217d6..eef7f37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CANDYMAT -A Vue.js powered, progressive web voting application for upcoming internal elections of Bündnis90/Die Grünen. Candymat is hosted as a service of netzbegruenung e.V. +A Vue.js powered, progressive web voting application for upcoming internal elections of Bündnis90/Die Grünen. Candymat is hosted as a service of netzbegruenung e.V. ## Calculation Model @@ -20,5 +20,11 @@ This is a Vue.js progressive web application, developed with [`@vue/cli`](https: | `npm run svg` | Creates all SVG files used in the application | | `npm run admin` | Creates `config.yml` for Netlify CMS admin UI | +### Notes +* To keep the diff to the original euromat source as small as possible certain variables follow a naming convention + which may seem weird at first. + These include + * `party` (better description would be `person`) + ## Props This user app is based on source code of EUROMAT targeted at european elections. diff --git a/src/app/euromat/components/results.vue b/src/app/euromat/components/results.vue index 897a672..abec416 100644 --- a/src/app/euromat/components/results.vue +++ b/src/app/euromat/components/results.vue @@ -38,7 +38,7 @@
- {{ person.name }} + {{ party.name }}
@@ -122,7 +122,8 @@ const partiesWithScores = getPartiesWithScores(answers, emphasized, parties) this.parties = partiesWithScores.map(party => ({ token: party.token, - score: party.score + score: party.score, + name: party.name })) .sort((a, b) => a.score - b.score) .reverse() diff --git a/src/app/euromat/components/theses.vue b/src/app/euromat/components/theses.vue index 8a62f8b..018d4b4 100644 --- a/src/app/euromat/components/theses.vue +++ b/src/app/euromat/components/theses.vue @@ -50,7 +50,7 @@