Commit graph

443 commits

Author SHA1 Message Date
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
3e017231c0 subresource integrity attribute
http://www.w3.org/TR/SRI/
2015-08-06 16:48:40 +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
1c0fcbfc2d Update README.md 2015-08-01 22:17:32 +02:00
jelhan
72b8136636 do not watch /api for changes 2015-08-01 22:14:26 +02:00
jelhan
feb6fb2e15 only include necessary api files in dist 2015-08-01 22:04:20 +02:00
jelhan
d522ddba1e update README 2015-08-01 21:48:29 +02:00
jelhan
2ad55da50c create tmp data dir for tests if it does not exist 2015-08-01 21:37:15 +02:00
jelhan
200b25be5d Fix: .gitignore where to strict for codeception 2015-08-01 21:30:14 +02:00
jelhan
4ffe936e26 but now ... 2015-08-01 21:12:39 +02:00
jelhan
bfefb81af4 fix travis tests 2015-08-01 21:09:36 +02:00
jelhan
e94ee685ea tests for api using codeception 2015-08-01 21:05:22 +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
1f955d4e93 update ember-moment 2015-08-01 11:41:41 +02:00
jelhan
dfdbf98042 rewrite create a poll-tests as acceptance tests using pretender 2015-08-01 11:03:00 +02:00
jelhan
fe878c61ba move api into own directory 2015-07-31 23:26:46 +02:00
jelhan
e0a2fbdcf4 only include timezone data from 2010-2020
before all timezone data was included (1900-2038)
this reduces vendor.js production build by another 144KB
2015-07-31 14:39:59 +02:00
jelhan
d511417323 only include necessary moment locales
reduces vendor.js by 128KB in production build
2015-07-31 14:13:58 +02:00
jelhan
148cf81f01 php cli cron script to check and delete polls based on expiration date
should be sheduled by cron or something like
2015-07-29 20:31:48 +02:00
jelhan
f948750a77 malformed expiration date should not cause poll deletion 2015-07-29 12:08:01 +02:00
jelhan
eb798a3c4c use fixed version of ember-cli-build-info 2015-07-28 17:22:31 +02:00
jelhan
1f39409f66 avoid globale namespace 2015-07-27 20:56:52 +02:00
jelhan
f9eaa10ee1 refactor "participate in poll"-tests as acceptance tests using pretender instead of dummy data 2015-07-27 20:28:00 +02:00
jelhan
2670a07d04 Merge branch 'master' into pretender 2015-07-27 19:39:34 +02:00
jelhan
badc99d978 directory handle resource should be closed 2015-07-27 17:58:06 +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
f313bd29a2 v0.3.0 2015-07-26 16:42:39 +02:00
jelhan
2a3acf31ce Fix: webshim inputs were not updated 2015-07-23 23:49:23 +02:00
jelhan
c7440fd0b9 pretender... 2015-07-22 11:52:22 +02:00
jelhan
ae1a846f26 Fix: sort function must return positive or negative integer 2015-07-19 21:07:15 +02:00
jelhan
5181d45fc0 added some tests 2015-07-19 20:55:20 +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
612086c73c intend by 2 spaces 2015-07-07 11:52:46 +02:00
jelhan
6e9fbec6e7 Update: ember 1.12 and ember-cli 0.2.7 2015-07-02 15:54:09 +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
eb24c47e6a CSP header is applied on a per-page-basis and for AJAX response applied by the context that performed the fetch 2015-07-02 12:53:36 +02:00
jelhan
d48395d059 HSTS header should be set on server side; not by application 2015-07-02 12:34:03 +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