Commit Graph

423 Commits

Author SHA1 Message Date
Christoph Lienhard b898bbe184 Rename candymat -> kandimat everywhere 2022-02-02 15:01:15 +01:00
Christoph Lienhard d414b95c1c
Fix several smaller problems
* adapt for structure change in gql backend (e.g. id -> rowId)
* display questions not rowId dependent anymore
* fixed calculation error if both, party and user, selected "skipped"
* fixed problems occuring when a candidate hasn't answered all questions (yet)
2020-12-31 21:13:21 +01:00
Christoph Lienhard f239bec4ff Merge pull request 'feature/get-data-from-backend' (#6) from feature/get-data-from-backend into develop-candymat
Reviewed-on: Netzbegruenung/candymat-user-app#6
2020-08-22 21:16:57 +02:00
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
Christoph Lienhard 66019ecda9 Use backend on emphasis page 2020-06-14 03:33:56 +02:00
Christoph Lienhard 0347a54ac0 Use backend on theses page 2020-06-14 03:33:39 +02:00
Christoph Lienhard 13be951160 Add vue-apollo to user-app
It does not fetch anything yet.
It points to the graphql server on localhost, which is a hardcoded dev-mode.
Added config for GraphQL JS intellij plugin which inspects a "remote" graphql schema for better type hints in graphql queries in code
2020-06-14 03:00:19 +02:00
Christoph Lienhard 06a9fdf107 Merge pull request 'Cleanup as in #1' (#3) from patch-2 into develop-candymat 2020-06-13 21:43:15 +02:00
Christoph Lienhard 4fedc4ef80 more cleanup
* improve imprint
* rename party -> person in route
* remove unnecessary components in about and partner
* fix email addresses
* remove most of the theses for easier manual testing (will be replaced by backendcalls in the future anyways)
2020-06-13 14:50:09 +02:00
Willi Junga 21577af8be #1 Adapt all secondary content to our needs
This includes better descriptions of the intro page, faq, etc.
2020-06-12 15:37:07 +02:00
Christoph Lienhard d85b4e5110 Merge pull request 'basic-clean-up' (#1) from basic-clean-up into develop-candymat 2020-06-12 15:24:36 +02:00
Christoph Lienhard 569fd2088b Fixed missing (german) url routes 2020-06-12 15:22:09 +02:00
Christoph Lienhard 3ca43c5c0d Remove language support for all languages other than German 2020-05-03 12:51:20 +02:00
Christoph Lienhard 314873174a Remove Sentry 2020-05-03 12:51:20 +02:00
Christoph Lienhard de3d972191 Remove Social Media and Google Relations
* Remove Google analytics
* Remove cookies
* And the DSGVO banner
* Removed Social Media Connections
* Removed Cookie Consent stuff
* Removed Social Media related stuff in Datenschutzerklärung
2020-05-03 12:32:43 +02:00
Christoph Lienhard d18e78cb8f Clean-up data structure
* Remove xlsx data source
* Remove scripts to convert xlsx to json
* Convert data jsons into js files as a first step towards using a proper backend call for retrieval
* Remove dependencies related to xlsx
2020-05-03 12:32:35 +02:00
Christoph Lienhard bb5edceca3 Make user app available in docker container
and delete synk from dependencies
2020-05-03 12:30:15 +02:00
Christoph Lienhard cdec344a4f Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	package-lock.json
#	package.json
2020-05-03 12:25:05 +02:00
Moritz Kröger 40e6304487
Create LICENSE 2020-04-26 11:46:25 +02:00
Moritz Kröger 369786ed36
Merge pull request #196 from morkro/snyk-fix-c812232dbc01b5ed245876711ae8a2f2
[Snyk] Fix for 1 vulnerabilities
2020-01-27 13:30:22 +01:00
Moritz Kröger eb642d27b6
Merge pull request #195 from morkro/snyk-fix-f2d2a6b61452fd7a696ea7acd9316a0c
[Snyk] Fix for 1 vulnerabilities
2020-01-27 13:30:06 +01:00
snyk-bot 8552d3a7b3 fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-KINDOF-537849
2020-01-22 06:04:05 +00:00
snyk-bot 4eef55a015 fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-NODESASS-542662
2020-01-20 06:01:59 +00:00
Moritz Kröger 02e89b2fd1
Merge pull request #189 from morkro/snyk-fix-70e40f4b28ecfbb6e2d4472265fd7eb5
[Snyk] Fix for 1 vulnerable dependencies
2019-09-17 14:59:03 +03:00
dimi b989145a54 green logo added 2019-08-31 17:48:15 +02:00
dimi 83fd366b8c green commit 2019-08-31 17:23:59 +02:00
dimi 742dfeef6a dependency update 2019-08-31 15:21:48 +02:00
snyk-test 573451fb98 fix: .snyk, package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/SNYK-JS-LODASH-450202
2019-07-04 11:10:11 +00:00
Moritz Kröger 2ba505b320
Merge pull request #188 from morkro/snyk-fix-0f9ac244ab198c318ff7ff234d5aa177
[Snyk] Fix for 1 vulnerable dependencies
2019-07-04 12:09:25 +01:00
snyk-test f37d0f77c7 fix: .snyk, package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/SNYK-JS-LODASH-450202
2019-07-04 06:02:47 +00:00
Moritz Kröger 77ed7a0474
Merge pull request #187 from morkro/snyk-fix-4e7a75b14ca3fcabcd8d3fe39b399e93
[Snyk] Fix for 1 vulnerable dependencies
2019-06-21 08:44:52 +01:00
snyk-test 03ecf0a87d fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-SETVALUE-450213
2019-06-21 06:03:25 +00:00
Moritz Kröger b832ccf180
Hotfixes missing image in partner page attempt 2 2019-05-24 15:30:42 +02:00
Moritz Kröger eb9a0834ea 📈 Adds Sentry for error handling 2019-05-24 15:10:14 +02:00
Moritz Kröger 3cc0e1b981 🚑 Hotfixing missing logo in partner page 2019-05-24 15:06:20 +02:00
Moritz Kröger 41a3e62bf3
Update [Page] Party “pl” (#186)
Automatically generated. Merged on Netlify CMS.
2019-05-22 23:53:33 +01:00
Moritz Kröger fe2b3207ad
Update [Euromat] Results “pl” (#185)
Automatically generated. Merged on Netlify CMS.
2019-05-22 23:36:26 +01:00
Moritz Kröger 1a008ddcd1
Update [Euromat] Emphasis “pl” (#184)
Automatically generated. Merged on Netlify CMS.
2019-05-22 23:28:44 +01:00
Moritz Kröger 748554869a
Update [Page] Introduction “pl” (#183)
Automatically generated. Merged on Netlify CMS.
2019-05-22 23:15:35 +01:00
Moritz Kröger f677282d1c
Update [Euromat] Theses “pl” (#182)
Automatically generated. Merged on Netlify CMS.
2019-05-22 19:17:39 +01:00
Moritz Kröger da38dc48ac
Update [Page] Introduction “de” (#181)
Automatically generated. Merged on Netlify CMS.
2019-05-21 10:56:32 +01:00
Moritz Kröger 39c0035369
Update [Page] Introduction “de” (#180)
Automatically generated. Merged on Netlify CMS.
2019-05-21 10:51:46 +01:00
Moritz Kröger 441f55d680 🌐 Adds polish language 2019-05-20 14:29:18 +01:00
Moritz Kröger e2c5eb08a1
Update [Page] FAQ “dk” (#179)
Automatically generated. Merged on Netlify CMS.
2019-05-16 15:05:27 +01:00
Moritz Kröger b54743a764
Update [Page] FAQ “de” (#178)
Automatically generated. Merged on Netlify CMS.
2019-05-16 14:59:46 +01:00
Moritz Kröger 22349c4774
Update [Page] FAQ “cz” (#177)
Automatically generated. Merged on Netlify CMS.
2019-05-16 14:57:48 +01:00
Moritz Kröger 05341abda8
Update [Page] FAQ “si” (#176)
Automatically generated. Merged on Netlify CMS.
2019-05-14 13:02:04 +01:00