Commit graph

518 commits

Author SHA1 Message Date
jelhan
149cf7fe8b update ember-cli to 1.13.8 2015-11-20 00:17:15 +01:00
jelhan
b5ae0c47da run npm prune in test to prevent failing test because of extraneous packages 2015-11-19 22:06:28 +01:00
jelhan
f67381c6b9 remove ember-easy-form-extensions, finally 2015-11-19 21:51:49 +01:00
jelhan
3563e41913 time input as normal form instead of table
part of #76

replaces ember-easy-form-extensions and ember-validations by
ember-cp-validations and ember-form-master-2000

dropped webshim for input type time; should be readded to improve
user experience in browser which does not support this input field
yes (e.g. Internet Explorer, Edge, Firefox)
2015-11-19 21:16:32 +01:00
jelhan
f5f3f525f7 make validator reusable 2015-11-18 17:49:01 +01:00
jelhan
335dfd8ff2 validate each input field on it's own 2015-11-17 00:30:24 +01:00
jelhan
6f6cc8b61d rewritten create/index and create/meta with ember-cp-validations and ember-form-master-2000 2015-11-16 14:28:00 +01:00
jelhan
ca387848ed create/options input fields for make a poll with add / delete buttons
also rewritten using ember-cp-validations and ember-form-master-2000
2015-11-16 13:09:13 +01:00
jelhan
3706e88620 normal defaults and override them if necessary 2015-11-15 19:49:59 +01:00
jelhan
bd58f2865b was removed by c3ee937936 2015-11-15 19:24:47 +01:00
jelhan
8cb8b9bf6a fix jshint 2015-11-15 19:22:34 +01:00
jelhan
c3ee937936 showing errors after first input can get confusing since form field may
show errors while typing a correct value (e.g. for minimun length)
2015-11-15 19:19:33 +01:00
jelhan
de359576f5 fix: bootstrap layout 2015-11-15 17:03:55 +01:00
jelhan
8ecb082ce3 move 'horizontal' class to config in initializer 2015-11-15 16:50:19 +01:00
jelhan
01f9b6e61f extract participation form from participants table and make it a bootstrap form
started replacing ember-easy-form-extensions by ember-form-master-2000
and ember-validations by ember-cp-validations

using ember-form-master-2000 in old 0.2 release cause newer releases does not work with ember 0.12
should move to ember 2.x as soon as possible
therefore ember-easy-form-extensions has to be dropped and ember-i18n been updated

part of #76
2015-11-12 15:52:14 +01:00
jelhan
8b74eb7d86 fix side effect in unit tests for languages by only parsing a copy of imported languages object to ember-i18n 2015-11-04 12:49:28 +01:00
jelhan
82c22824a6 should use redirect hook instead of afterModel
details:
* http://guides.emberjs.com/v2.1.0/routing/redirection/#toc_child-routes
* http://emberjs.com/api/classes/Ember.Route.html#method_redirect
2015-11-04 12:09:42 +01:00
jelhan
b37a831d93 remove failing test which should ensure that all translations have same keys
ember-i18n pluralization seems to add another key to languages object (without pluralization)
not sure why this modified languages object is retrieved by test
810aa7f04b (pluralization)
2015-11-03 13:04:30 +01:00
jelhan
475245d04f evaluation summary as component 2015-11-03 12:57:41 +01:00
jelhan
858b75e543 routable tabs in poll view for participation and evaluation 2015-11-02 23:02:59 +01:00
jelhan
6bcf2fb088 updated README 2015-10-29 13:47:14 +01:00
jelhan
717dc2ea4a option dev is deprecated on composer since it's default now 2015-10-29 13:36:04 +01:00
jelhan
6d4fdd5e5b fix composer.lock 2015-10-29 13:35:35 +01:00
jelhan
ccbf95d3ad do not include codeception in production build
also updated composer to use latest versions (composer.lock)
2015-10-29 13:12:57 +01:00
jelhan
9ba5cdfb8e recommend HTTP Public Key Pinning (HPKP) 2015-10-29 12:55:03 +01:00
jelhan
8061760490 move encrypt / decrypt to methods of encryption service< 2015-10-29 12:50:00 +01:00
jelhan
bfe1f488d4 remove proof key knowledge cause it's not secure implemented yet 2015-10-29 12:48:46 +01:00
jelhan
176d45b317 use a service for encryption key handling 2015-10-25 19:38:14 +01:00
jelhan
3a197f20f3 Fix: show users sorted by creation date and correct date of last participation in evaluation 2015-10-25 17:15:57 +01:00
jelhan
1fd7f27f03 add legacy support 2015-10-25 16:46:11 +01:00
jelhan
6275fb54ec Merge branch 'model-fragments' of github.com:jelhan/croodle into model-fragments
Conflicts:
	app/templates/poll.hbs
	tests/acceptance/view-poll-test.js

There isn't any legacy support yet; so integration tests for legacy support will fail.
2015-10-25 16:01:55 +01:00
jelhan
cb2634e10a array transform is replaced by model fragments 2015-10-25 15:32:42 +01:00
jelhan
243ed3b12a model fragments for user selections (currently same as answers) 2015-10-25 15:32:42 +01:00
jelhan
d020f67e90 model fragments for options 2015-10-25 15:29:47 +01:00
jelhan
dd1a8436e0 model fragments for answers 2015-10-25 15:29:47 +01:00
jelhan
3c26bd7001 data of integration tests isn't cleared, so we can't be sure that there aren't more users by runs before 2015-10-25 15:26:27 +01:00
jelhan
128cb35162 another legacy test 2015-10-19 11:19:01 +02:00
jelhan
d09aa843bb introduce test helper for poll participation and extend some tests with it 2015-10-18 14:04:04 +02:00
jelhan
dec12d81a7 move legacy support to api 2015-10-17 15:44:27 +02:00
jelhan
cd7737d65b add legacy support for v0.3.0 2015-10-16 17:41:24 +02:00
jelhan
72d50350c4 Fixes #50 and tests for 1b02c26 2015-10-16 16:49:18 +02:00
jelhan
1b02c262d2 even more test helpers 2015-10-16 11:21:06 +02:00
jelhan
187155811c make more use of test helpers in acceptance tests 2015-10-14 20:36:47 +02:00
jelhan
bf1d18b2c0 array transform is replaced by model fragments 2015-10-13 21:46:49 +02:00
jelhan
9004eb6027 model fragments for user selections (currently same as answers) 2015-10-13 21:30:26 +02:00
jelhan
505319e464 model fragments for options 2015-10-13 11:29:51 +02:00
jelhan
3d4cf3f408 model fragments for answers 2015-10-12 13:40:29 +02:00
jelhan
a8a10ad42a Fixes #74 and some other validation issues 2015-10-12 11:42:51 +02:00
jelhan
38eecd64ff PHP 7 is right: an empty string is not a valid JSON 2015-08-23 19:04:58 +02:00
jelhan
b9bef69977 user has to proof that he knows encryption key when he participates
Therefore sha256 hash of encryption key is validated against one which is stored
on server on poll creation.
This one is transfered as X-Croodle-Proof-Key-Knowledge HTTP HEADER.

Prevents an attacker of transmitting data with wrong encryption key, which
would cause decryption errors for legit users.
2015-08-23 18:56:41 +02:00