Christoph Lienhard
64e6b861b6
Last not Least: Get party details page from backend
...
Also
* reorder graphQl queries: Always a query constant + update function
* use id instead of token (initials) to identify person in url
* Remove any party logo related sections since currently not needed
* Move "options" from data closer to actual code since it doesn't really belong to data
(data may be deleted in the future, anyway)
* add nodeId in gql queries wherever possible to avoid problems with the apollo cache
* add note about graphql schema import to README.md
2020-08-22 21:14:12 +02:00
Christoph Lienhard
5512955af4
Add Note in Readme concerning variable naming
2020-08-22 20:49:44 +02:00
Christoph Lienhard
498a02bf1d
Use graphql to retrieve parties
2020-06-27 10:53:13 +02:00
Christoph Lienhard
f01d492d95
Fix calculation of scores
...
With this commit two calculation errors are fixed
* the score in the case partyPosition = 'negative' while userPosition = 'neutral' shouldn't be MIN_POINTS but rather BASE_POINTS.
* the totalScoredPoints (now "totalMaxPoints") should be independent of any party-positions which it wasn't.
To minimize errors in this area in the future tests are added
which are based on the official Rechenmodel of the bpb.
To that end the score calculation logic was refactored
and moved from results.vue to scoring.js, too.
(cherry picked from commit 2d246fefbc4730ca5f7a4224325084a98f1c41f0)
2020-06-27 10:32:46 +02:00
Moritz Kröger
201a31e497
🐛 Fixes country code fetching for results
2019-05-10 18:16:37 +02:00
Moritz Kröger
6de53bbf76
🍱 Adds more national party logos
2019-05-10 17:46:31 +02:00
Moritz Kröger
123eb71782
✨ Adds TalkingEurope on results page
2019-05-10 17:33:56 +02:00
Moritz Kröger
961c5ec44e
🎨 Updates URL handling
2019-05-08 22:20:40 +01:00
Moritz Kröger
2d9c50fe38
✨ Updated geolocation check
2019-05-08 22:18:49 +01:00
Moritz Kröger
51f390d67b
✨ Added logic to embed euromat in an iframe
2019-05-05 16:39:12 +02:00
Moritz Kröger
6dcec82e05
✨ Use country code for national party in results
2019-05-05 12:29:34 +02:00
Moritz Kröger
f59626b7ef
💄 Updates national party logo in results page
2019-05-04 14:50:48 +02:00
Moritz Kröger
69c8439410
✨ Adds national parties to results page
2019-05-03 17:55:07 +02:00
Moritz Kröger
a2efd921d5
✨ Updates result with default logo display
2019-04-26 12:19:05 +01:00
Moritz Kröger
a9e7cb2e28
🚸 Adds party logos
2019-04-26 12:19:05 +01:00
Moritz Kröger
aaa10f3fa0
✨ Updated dataset and made data handling in components more robust
2019-04-26 12:19:05 +01:00
Moritz Kröger
9963ebc448
🎨 Fixes i18n route navigation in theses/emphasis/results
2019-04-13 20:09:57 +02:00
Moritz Kröger
2f15486041
🌐 Adds theses/emphasis/results pages to CMS
2019-04-13 20:09:57 +02:00
Moritz Kröger
a8dc4627dc
♻️ Swapped dependencies and updated some config
2019-04-08 10:16:16 +02:00
Moritz Kröger
4ee3dcc1d8
👌 Fixes all Vue linting issues
2019-04-08 10:16:16 +02:00
Moritz Kröger
dfb127be4d
🔧 Migrating to Vue CLI 3
2019-04-08 10:16:16 +02:00
Moritz Kröger
c4bdde66de
Added fallback if Storage API fails
2017-09-05 00:33:31 +02:00
Moritz Kröger
93078945a1
Added second text to results
2017-08-29 21:20:54 +02:00
Moritz Kröger
ea9e1006ad
Added more party information
2017-08-27 23:03:48 +02:00
Moritz Kröger
b6f8c865d2
Fixed wrong progress in results page
2017-08-27 17:01:10 +02:00
Moritz Kröger
d985d21b69
Update party layout
2017-08-27 16:16:05 +02:00
Moritz Kröger
a981f87a47
Fixes bug in euromat answer check and updates party page
2017-08-27 15:54:43 +02:00
Moritz Kröger
caccfae603
Added more content to results page
2017-08-27 15:43:14 +02:00
Moritz Kröger
651732601f
Updated results page layout
2017-08-27 14:04:49 +02:00
Moritz Kröger
743e0d7d2b
Added custom page titles and more updates
2017-08-27 13:40:07 +02:00
Moritz Kröger
be611a497b
Removes party, layout updates
2017-08-27 00:50:47 +02:00
Moritz Kröger
b924c832d0
Reroute if no voting data and users uses native go back
2017-08-26 21:58:55 +02:00
Moritz Kröger
f593767d1b
Moved localStorage answers to sessionStorage
2017-08-16 21:13:04 +02:00
Moritz Kröger
80c985ac75
Updated all application paths for locale
2017-08-15 22:59:50 +02:00
Moritz Kröger
873204f925
Added route aliases and party view
2017-08-15 22:25:25 +02:00
Moritz Kröger
f66c36e583
Added back button to euromat
2017-08-14 22:28:12 +02:00
Moritz Kröger
af58bd298a
Refactored scoring logic
2017-08-13 23:11:48 +02:00
Moritz Kröger
b21fe3f9df
Added calculation model
2017-08-13 21:42:02 +02:00
Moritz Kröger
aa53890680
Added basic logic for emphasized theses
2017-08-13 18:01:30 +02:00
Moritz Kröger
f76af977c7
Updated emphasis page, added logos, i18n updates
2017-08-13 15:44:03 +02:00
Moritz Kröger
cb4d15aa3c
Added i18n to all components
2017-08-13 14:03:38 +02:00