Commit graph

59 commits

Author SHA1 Message Date
Jeldrik Hanschke
748b17e0ea
answers could be derived from answerType (#704)
* answers could be derived from answerType

* improve readability of API test data

* update API tests for removed answers property
2023-10-23 17:33:25 +02:00
Jeldrik Hanschke
3a23719127
do not rely on Array prototype extensions (#692)
* Array.any() relies on prototype extensions

* remove remaining usage of array prototype extensions
2023-10-18 14:52:57 +02:00
renovate[bot]
98ff62af80
Update dependency prettier to v3 (#668)
* Update dependency prettier to v3

* upgrade eslint-plugin-prettier and run prettier on all files

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
2023-10-17 10:44:45 +02:00
Jeldrik Hanschke
02058ab756
upgrade to Ember 3.28 blueprints (#647) 2023-10-15 20:37:03 +02:00
Jeldrik Hanschke
82ec8b59f7
refactor to tracked properties (#621) 2023-10-15 17:32:11 +02:00
Jeldrik Hanschke
857f2baa16
simplify form validation and drop ember-cp-validations (#631)
* replace ember-cp-validations with custom validation logic for poll creation

* refactor poll participation to not use ember-cp-validations

* drop ember-cp-validations from create.settings route

* remove unused leftovers from ember-cp-validations

* fix potential leak

* assertion thrown in CI tests (Firefox) indicate that listener is cleaned up automatically

* synchronize translations
2023-10-15 15:27:02 +02:00
Jeldrik Hanschke
2a4b1f8b73
Use native browser APIs and Luxon instead of Moment (#612) 2023-09-21 12:30:14 +02:00
Jeldrik Hanschke
8a62662e6e
migrate from ember-i18n to ember-intl (#358)
* mark string as html safe before passing to translation instead of bypassing HTML escape using {{{unsafe}}} syntax
* replace ember-i18n with ember-intl
2020-01-30 00:23:12 +01:00
Jeldrik Hanschke
c9482786c1
refactor to native ECMAScript classes (#344)
Replaces Ember's old object model by native ECMAScript classes. Mostly automated with ember-native-class-codemod.
2020-01-18 10:13:50 +01:00
Jeldrik Hanschke
061b9a0d4a
use ember data modules for import (#340) 2020-01-08 15:58:52 +01:00
Jeldrik Hanschke
6571a07ca5
show validation error if time input is partially filled (#279) 2019-11-02 16:51:47 +01:00
jelhan
bb160cc503
refactor participants table (#164)
- Drops floatthead and additional scrollbar
- Makes header and first column sticky
- Refactors code for readability

Sticky header is only working in Firefox. Chrome and Edge does not support `position: sticky` for `<thead>`. Haven't tested Safari.
2019-04-20 23:29:59 +02:00
Jeldrik Hanschke
bcd4bc7ac6 upgrade to ember 3.4 2018-12-31 10:17:03 +01:00
Jeldrik Hanschke
11265cb82d deps: upgrade ember to 2.18 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
6592102837 deps: upgrade ember-cp-validations to 3.x 2018-12-29 20:23:19 +01:00
jelhan
53a34fcc2f Fixes DEPRECATION: Importing from the model-fragments module is deprecated.
Instead import from `ember-data-model-fragments
2017-08-01 09:48:48 +02:00
jelhan
1400b71417 updates ember, ember data and ember data model fragments and fixes some container deprecation 2016-08-12 23:09:37 +02:00
jelhan
c8fbc62d8c deprecations in ember data 1.13 2016-08-12 13:33:03 +02:00
jelhan
aafe5966e3 Fix: Confusing unique validation error messages for options 2016-07-03 16:50:42 +02:00
jelhan
7b2a9672f4 Fixes: Date in poll evaluation summary does not observe locale changes. 2016-06-20 20:48:48 +02:00
jelhan
308b8fb367 preserve existing times if day selection is changed 2016-06-13 11:14:42 +02:00
jelhan
86a233fb02 Fix: do not delete a date if it's the last one for this day
Details: https://github.com/jelhan/croodle/issues/99#issuecomment-225140574
2016-06-10 20:59:02 +02:00
jelhan
2c11fe41bf perserve validation state in create/options-datetime by avoiding rerender 2016-06-08 13:56:06 +02:00
jelhan
568e23e0bc update validation error on locale change 2016-05-23 13:40:45 +02:00
jelhan
fba32d3590 Fix deprecation: using @each as a leaf node in a dependent key
http://emberjs.com/deprecations/v1.x/#toc_using-code-each-code-as-a-leaf-node-in-a-dependent-key

Also fixes coding style:
* use Ember.computed instead of {}.property()
* use Ember.observer instead of {}.observes()
2016-05-20 23:43:05 +02:00
jelhan
70f7879ee7 Fixes #55 2016-05-20 21:49:29 +02:00
jelhan
08e9f68197 remove polls isDateTime attribute 2016-05-18 13:18:36 -07:00
jelhan
4b33ddf48e Support polls findADate with mixed dates and datetimes 2016-02-13 18:37:33 +01:00
jelhan
906ab6f053 We don't need this check; should be present also if it's a date 2016-02-08 21:01:15 +01:00
jelhan
e0ca28602c some more JSCS 2016-01-31 14:32:32 +01:00
jelhan
8f08e57d1d fix some more code style issues 2016-01-28 23:48:14 +01:00
jelhan
ce2a8c8e1f done most things except date with times
also validation messages are missing
2016-01-19 04:56:51 +01:00
jelhan
e1bb2da6d1 fix jshint 2015-11-20 11:31:40 +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
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
176d45b317 use a service for encryption key handling 2015-10-25 19:38:14 +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
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
12706d7d57 do not lookup encryption key by application container due this breaks tests in travis 2015-08-20 14:12:28 +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
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
3690a60496 [FEATURE] add expiration date for polls 2015-07-26 19:41:59 +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