Commit graph

342 commits

Author SHA1 Message Date
jelhan
f42d68542e Fix jshint: Don't make functions within a loop 2016-01-18 18:50:26 +01:00
jelhan
865cf7fda4 remove unnecessary global 2016-01-09 00:49:36 +01:00
jelhan
db038b1e57 fix locale storage in cookie 2015-12-07 22:23:08 +01:00
jelhan
b33a2f84f2 fix jshint 2015-12-07 21:55:17 +01:00
jelhan
2ec58668b8 readd webshim polyfill for input[type=time]
needed by http://caniuse.com/#feat=input-datetime
was removed by 3563e41913
2015-12-07 21:51:07 +01:00
jelhan
52a20050f2 upgrade ember-cli to 1.13.13 2015-12-07 20:24:22 +01:00
jelhan
0531c94643 missing translation 2015-11-26 12:26:22 +01:00
jelhan
8e2c188cf6 update properties on locale change 2015-11-24 00:53:03 +01:00
jelhan
b08172e4b7 Fix JShint
forgot to remove global moment statement when replacing moment from view...
2015-11-23 13:34:47 +01:00
jelhan
20d3a29887 update dates on locale change
* upgraded ember-moment and use it application-wide service to set locale
* label on poll/participation now observes locale changes, but it's still hacky
* replace computed property on views poll by moment-format helper of ember-moment
2015-11-23 13:32:40 +01:00
jelhan
4d5d5489b4 readd i18n for validations 2015-11-22 19:31:16 +01:00
jelhan
798527a4ae refactor to be in line with https://github.com/Emerson/ember-form-master-2000/pull/38 2015-11-22 19:15:15 +01:00
jelhan
ae52eb8be1 refactor validator time and allow i18n of error messages for valid-collection 2015-11-22 19:11:32 +01:00
jelhan
8fd91171f9 Controller#needs is deprecated, please use Ember.inject.controller() instead
http://emberjs.com/deprecations/v1.x/#toc_controller-needs
2015-11-22 16:09:52 +01:00
jelhan
1e89776d9e DEPRECATION: You're using legacy binding syntax 2015-11-22 14:33:32 +01:00
jelhan
2f9ad47edf Fix bind-attr deprecation
http://emberjs.com/deprecations/v1.x/#toc_bind-attr
2015-11-22 14:28:32 +01:00
jelhan
fbd47f415b unused since ember-easy-form-extensions was dropped 2015-11-22 14:28:07 +01:00
jelhan
2f4c6f7d07 Fix: DEPRECATION: Using the '{{#each item in model}}' form of the {{#each}} helper
is deprecated. Please use the block param form instead ('{{#each model as |item|}}').
See http://emberjs.com/guides/deprecations/#toc_code-in-code-syntax-for-code-each-code
for more details.
2015-11-22 14:17:37 +01:00
jelhan
4c597352ad update ember-from-master-2000 2015-11-20 23:02:35 +01:00
jelhan
e1bb2da6d1 fix jshint 2015-11-20 11:31:40 +01:00
jelhan
8e45975c33 explicit define a default poll type 2015-11-20 11:19:28 +01:00
jelhan
c1dfa16eed update ember-i18n 2015-11-20 02:18:19 +01:00
jelhan
2e70110597 Fix: DS.ModelFragment was renamed to MF.Fragement in ember-data-model-fragments update
https://github.com/lytics/ember-data-model-fragments/blob/master/CHANGELOG.md#v1130-october-25-2015
2015-11-20 01:09:37 +01:00
jelhan
c0450a9af4 update ember-data-model-fragments 2015-11-20 00:18:09 +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
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
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
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
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
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
a8a10ad42a Fixes #74 and some other validation issues 2015-10-12 11:42:51 +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
jelhan
0ad6026715 includePlainOnCreate serializer option and use it for serverExpirationDate 2015-08-23 16:13:52 +02:00
jelhan
095ba3a2eb some documentation; no functional changes 2015-08-23 06:18:35 +02:00
jelhan
09c8310bb6 rewritten API models 2015-08-22 23:47:31 +02:00
jelhan
5a240e79e1 added some (ugly) tests for evaluation 2015-08-21 12:10:02 +02:00
jelhan
bfb7b1f48e Fix: top scrollbar width is wrong if vertical scrollbar is added without resize (document height becomes > than window height) 2015-08-20 14:52:11 +02:00
jelhan
12706d7d57 do not lookup encryption key by application container due this breaks tests in travis 2015-08-20 14:12:28 +02:00
jelhan
1136af5b74 remove deprecation: COMPUTED PROPERTIES WITH A SHARED GETTER AND SETTER
http://emberjs.com/deprecations/v1.x/#toc_computed-properties-with-a-shared-getter-and-setter
2015-08-19 22:24:20 +02:00
jelhan
398453c1e4 do encryption / decryption in serializer
before it was done as computed properties of model

accessing encryption key in serializer is done via global application var.
this should be removed in long-term
2015-08-19 22:00:01 +02:00
jelhan
0317c7c0c8 use ember-cli-build-info 2.0 to fix #65 2015-08-19 13:42:38 +02:00
jelhan
3e000f146d even more user-friendly evaluation 2015-08-19 13:27:14 +02:00
jelhan
839695b224 Merge branch 'master' into evaluation 2015-08-19 11:14:08 +02:00
jelhan
450a78255d expiration date should also be encrypted on get;
therefore we have to duplicate it in store:
* encrypted for to serve for clients (encryptedExpirationDate)
* unencrypted for server to check if it's exceeded (serverExpirationDate)
serverExpirationDate should never be send to client
2015-08-18 21:53:52 +02:00
jelhan
22d9e5045c Merge branch 'master' into evaluation 2015-08-01 23:54:53 +02:00
jelhan
7cef56c2d1 some more tests about showing correct dates and times and handeling
different time zones
2015-08-01 23:54:07 +02:00
jelhan
bf1f038a43 fix times in table headers 2015-08-01 22:53:58 +02:00
jelhan
fa0175e352 fix times in table headers 2015-08-01 22:43:06 +02:00
jelhan
6f7148a86f Merge branch 'master' into evaluation
Conflicts:
	app/controllers/poll.js
2015-08-01 22:22:07 +02:00
jelhan
d1c8646bda rewritten api using Slim Framework 2015-08-01 18:42:48 +02:00
jelhan
d26cd827c1 Fix: moment.localeData().longDateFormat() changed
More details: http://stackoverflow.com/questions/25179377/date-format-momentjs-extract-date-and-time-separately-using-locale-language/31761415#31761415
2015-08-01 13:51:04 +02:00
jelhan
eb798a3c4c use fixed version of ember-cli-build-info 2015-07-28 17:22:31 +02:00
jelhan
5a9f58f451 fix jshint warning 2015-07-27 17:57:50 +02:00
jelhan
3690a60496 [FEATURE] add expiration date for polls 2015-07-26 19:41:59 +02:00
jelhan
2a3acf31ce Fix: webshim inputs were not updated 2015-07-23 23:49:23 +02:00
jelhan
ae1a846f26 Fix: sort function must return positive or negative integer 2015-07-19 21:07:15 +02:00
jelhan
a59130633e Fix sort function: title is a string now 2015-07-19 20:12:51 +02:00
jelhan
6ded3e1f4e do not care about timezones if it's not necessary 2015-07-19 20:00:07 +02:00
jelhan
0be7babb26 timezone of user created poll should only be stored if it's necessary 2015-07-19 19:49:40 +02:00
jelhan
d651d869fb if poll is about date with times we shouldn't set options to dates without times specified 2015-07-19 19:39:48 +02:00
jelhan
5fa425443f do not use ISO 8601 date + time format if it's only about dates 2015-07-19 19:33:41 +02:00
jelhan
25eedaef3c Some browsers (especially old IE) does not support toISOString() for Date objects,
therefore using momentJS to provide toISOString() function
2015-07-19 19:20:31 +02:00
jelhan
9a29b07dad explicit convert Date objects to ISO Strings
before it was done implicit by JSON.stringify() on encryption since JSON does not support Date type
2015-07-18 21:00:28 +02:00
jelhan
ab4f88dd7f Fix: handling of different timezones
There were some timezone issues especially concerning daylight saving time (DST).
We should not rely on timezone offset since this will change due to DST.
Instead determine the users timezone (using jsTimezoneDetect therefore) and
then using this via moment-timezone.

This commit changes poll model. It drops timezoneOffset and adds timezone as a new property.
It's not tested yet against polls created before without timezone property. This has to be done before merge.

Also we should consider using ember-moment template helpers instead of our own formatted-date helper.
2015-07-15 16:20:24 +02:00
jelhan
2839b09ad9 more user-friendly evaluation 2015-07-15 14:24:57 +02:00
jelhan
612086c73c intend by 2 spaces 2015-07-07 11:52:46 +02:00
jelhan
fe0cd5fc82 Update: ember 1.12 and ember-cli 0.2.7 2015-07-02 15:53:02 +02:00
jelhan
34330cb730 remove version from package.json; having version as git tag is enough 2015-07-02 15:39:14 +02:00
jelhan
67cc41973f Ember.ObjectController is deprecated since ember 1.11
Ember.ObjectController was proxying model properties to controller. Ember.Controller which should be used is not.
Therefore we have to define if it's a property of controller or model.

Also added two more tests:
* anonymous participation
* do not force an answer for all options
2015-07-01 16:21:18 +02:00
jelhan
8c2a17df39 Fix: date without times were not sorted 2015-06-24 02:14:14 +02:00
jelhan
d6cf7efa3c add version information to
* build (as html meta tag)
* stored polls and users

Closes #65
2015-06-20 19:04:19 +02:00
jelhan
5cce0a236d Fix: freetext answer where broken by caba42a853
added test to not let it happen again
2015-06-20 18:33:51 +02:00
jelhan
7f1aa33e95 should not be in repository 2015-06-20 18:11:49 +02:00
jelhan
b627affb99 Fix: undefined property error caused by not removed event listener 2015-06-20 18:00:13 +02:00
jelhan
3530098982 Merge pull request #72 from j0rgeSD/master
Update translations.js
2015-06-09 11:08:33 +02:00
jelhan
f5b8546247 fix undefined error 2015-04-07 13:17:45 +02:00
jelhan
30e9b22797 Fix undefined if all dates are removed 2015-04-07 12:38:13 +02:00
jelhan
10f7b59986 jshint 2015-04-04 02:45:22 +02:00
jelhan
b1dc1b5bac use ember-cli-boostrap-datepicker 2015-04-04 02:43:59 +02:00
jelhan
83cce0d083 use testem proxies configuration 2015-04-04 01:13:27 +02:00
jelhan
ed8a102b3d causes "unknown mixin" error in tests
doesn't seem to be necessary anymore
2015-04-04 01:09:25 +02:00
jelhan
6a3bf398c2 Fix: div closed to early; box should be part of #poll 2015-04-02 21:23:06 +02:00
jelhan
b2db75221a fix 2015-04-02 21:16:31 +02:00
jelhan
caba42a853 using ember-cli-easyform-extensions as it support ember >= 1.10 2015-04-02 20:28:35 +02:00
jelhan
624cbdfb5f was added in 29e43c26e8 and should be reverted also 2015-04-02 14:09:08 +02:00
jelhan
d20aef363b Revert "add version to saved poll/user"
This reverts commit 3808de42ca.
2015-04-02 13:30:00 +02:00
jelhan
8c8e1d37cd missing closing tag 2015-03-25 18:57:27 +01:00
j0rgeSD
ab87f9be14 Update translations.js 2015-03-23 00:58:07 +01:00
j0rgeSD
b276d662bd Update translations.js 2015-03-19 11:47:33 +01:00
jelhan
76da012143 {view Ember.Select} is deprecated in favor of {view "ember"} since EmberJS 1.8 2015-02-17 02:50:16 +01:00
jelhan
7f3b1c19c2 only ask which timezone to use, if poll asks for dates defined with times
fixes #69
2015-02-16 21:26:36 +01:00
jelhan
72bdb5c788 fix: dates should be in correct order
wasn't if they are defined with times

fixes #68
2015-01-26 18:17:29 +01:00
jelhan
a372e0f369 fix tests in browser 2015-01-24 18:32:31 +01:00
jelhan
bc4ebadf1b fix: add a user to a default poll test 2015-01-24 18:31:21 +01:00
jelhan
04a1bafc47 should fix travix
starting missing api before running test via testem
2015-01-24 16:51:26 +01:00
jelhan
29e43c26e8 dummy polls for testing and development
test: add a user to a default poll

default poll url
http://localhost:4200/#/poll/defaultpoll?encryptionKey=0123456789abcdefghijklmnopqrstuvwxyzABC
2015-01-24 14:50:56 +01:00
jelhan
3808de42ca add version to saved poll/user 2015-01-24 14:33:02 +01:00
jelhan
5a50901be0 only letters and numbers in passphrase 2015-01-24 14:19:19 +01:00
jelhan
13ae84eaaf stronger passphrase using window.crypto if supported by browser 2015-01-24 14:17:52 +01:00
jelhan
f0a09d9aee handle connection issues on user save:
* show error message (modal)
* provide retry button

fixes #66
2015-01-21 01:30:14 +01:00
jelhan
4b98678323 embedded on GET but should not be on save 2015-01-20 22:47:04 +01:00
jelhan
1c831870e4 use ember-radio-button, an ember cli adddon, for radio buttons 2015-01-19 23:37:51 +01:00
jelhan
1e2dbd95e9 move language switch to application controller 2015-01-19 13:56:03 +01:00
jelhan
139b6b7088 upgrade ember-cli to 0.1.7
Tests doesn't run to due an error with relative api uri. This doesn't affect development or production environment.
2015-01-18 18:06:47 +01:00
jelhan
48e76cf45b remove unused global 2015-01-16 15:26:49 +01:00
jelhan
24fa65948c Fix typo 2015-01-16 15:18:57 +01:00
jelhan
e920daf053 Fix not working language switch in production environment
Fixes #64
2015-01-16 15:17:32 +01:00
jelhan
48ed039788 fixes top scrollbar resize issues
fixes #63
2015-01-16 14:12:34 +01:00
jelhan
7a4137af67 noscript information text
fixes #39
2015-01-13 19:27:36 +01:00
jelhan
3ffe1552af fix misleading text 2015-01-13 19:12:30 +01:00
jelhan
812bc84ff9 Fix illegal character issue introduced by pull request #62 2014-12-19 19:16:22 +01:00
shadow
483bfb1f91 [translation] - translated german text 2014-12-11 09:48:27 +01:00
shadow
b8f5290e83 [translation] - adjusted german text 2014-12-06 10:46:28 +01:00
jelhan
8af5a9df09 Integration Test for creation of a default poll 2014-11-26 13:15:05 +01:00
jelhan
7ba00a1b31 just change values instead of regenerating times array on copy first line action
fixes #37
2014-11-25 16:37:56 +01:00
jelhan
4a589cf97d another file from merge... 2014-11-25 16:26:22 +01:00
jelhan
538a486da7 removed files from merge 2014-11-25 16:12:46 +01:00
jelhan
b7379d2366 Merge branch 'master' of github.com:jelhan/croodle 2014-11-25 15:47:20 +01:00
jelhan
baa048f0df back button: load old selection into calendar 2014-11-25 15:44:56 +01:00
jelhan
791c612e2d Merge branch 'feat/backbutton-on-create' into feat/ember-cli
Conflicts:
	app/controllers/create/options-datetime.js
	app/controllers/create/options.js
	app/views/create/options-datetime.js
2014-11-21 12:38:32 +01:00
jelhan
016ccfc31c rewritten option and input field relationship
keep inputs while setting up poll and update options based on inputs by observer
2014-11-21 12:24:24 +01:00
dittler
58bd9b44f0 fix translation 2014-11-17 09:29:23 +01:00
jelhan
65406e2633 Merge branch 'master' into feat/ember-cli
Conflicts:
	app/index.html
2014-11-06 21:22:00 +01:00
jelhan
338deb80db bootstrap-datepicker: set language 2014-11-06 21:17:48 +01:00
jelhan
3db1dee801 better translations 2014-11-06 00:48:56 +01:00
jelhan
62d0ee760e use node-phpcgi instead of proxy to serve api
php-cgi has to be installed and path have to be correct in server/index.js; default is debian standard
2014-11-02 23:43:34 +01:00
jelhan
a1f88d3dba fix namespace reference to own application 2014-11-02 17:31:33 +01:00
jelhan
3e85382cf8 ember-validations as ember-addons 2014-11-02 16:55:10 +01:00