Commit graph

896 commits

Author SHA1 Message Date
Jeldrik Hanschke
400cf9f9fc remove dead configuration
ember-auto-import is not used and it's configuration should be under
`autoImport` and not `ember-auto-import` key.
2019-04-22 18:12:29 +02: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
jelhan
6c122148c3
fix: test must not trigger confirmation in IE 11 (#174)
Use test helpers provided by ember-cli-clipboard as they do not trigger confirmation in IE 11. Upgrades ember-cli-clipboard to latest version as the outdated version used before does not include these test helpers yet.

Also refactors test execution against BrowserStack to only run tests one by one. Not quite sure why but that fixes the IE 11 issue. Need to investigate later as that one slows down tests by requiring two additional builds.
2019-03-16 11:26:39 +01:00
jelhan
277e783e81
upgrade dependencies of API (#173)
* upgrade dependencies
* run tests against all supported PHP versions
2019-03-14 21:31:41 +01:00
jelhan
b8c02ca579
Replace SauceLabs with BrowserStack (#171) 2019-03-14 21:30:48 +01:00
jelhan
25b9bf0aba
CSP: allow image source self to fix favicon in chrome (#172) 2019-03-13 21:32:26 +01:00
jelhan
78e9d789e6
fix IE 11 (#170)
* upgrade ember-power-calendar for IE11 support

* Ember Bootstrap feature branch fixing IE 11 with unsupported input type

* upstream fix has been merged (but not released)
2019-03-13 21:11:08 +01:00
jelhan
82f89b74df
refactor in repo addon include api in build (#169)
* fs-extra dependency of in-repo-addon was not listed explicitly

* refactor: inclusion of api in build for readability

* fix: 'readdirSync' is assigned a value but never used
2019-03-08 01:19:17 +01:00
jelhan
215d980033
run tests against Firefox in CI (#168)
* run tests against Firefox in CI
* fix test for Firefox 56
2019-03-07 23:11:03 +01:00
jelhan
e53ac9a140
remove dead code from build (#167)
* cherry-pick needed helpers from ember-math-helpers

This reduces the build size by 1.2 KB after gzip.

* dep: remove ember-array-helper

array helper already provided by ember-composable-helpers
2019-02-24 01:04:26 +01:00
jelhan
95d53baae9
refactor: remove route actions (#166) 2019-02-24 00:32:37 +01:00
Jeldrik Hanschke
5637b1f444 dep ember-export-application-global is not needed anymore
It's most likely a leftover from upgrading ember a long time ago.
2019-02-24 00:18:13 +01:00
Jeldrik Hanschke
830478051b upgrade qunit to fix CSP violations in test runner
This one requires a migration from deprecated ember-cli-qunit to ember-qunit.
ember-qunit throws in Unit tests cause they interact with runloop but didn't
awaited everything to finish. An assertion was thrown therefor:

> Assertion Failed: expected container not to be destroyed
2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
3ed645709f upgrade ember-cli-content-security-policy to fix CSP violation by test loader assertion 2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
ac96aaf044 tests should fail if violating CSP 2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
68822aaa0f upgrade ember-bootstrap to fix CSP issue 2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
480ceb5e08 provide Content-Security-Policy by meta tag
Having both a Content-Security-Policy (CSP) in meta tag and per header
works fine together. They are merged and the strongest one is applied.
It makes Croodle safer for all users even if the hoster does not apply CSP
for some reason (e.g. they can't set custom headers).

It's still a good idea to recommend using a CSP header cause that ones
are applied earlier - even so this shouldn't be a problem cause we ensure
that CSP meta tag is present before any other link, style or script element.
2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
5381c87d73 downgrade Chart.js to fix CSP violations
https://github.com/chartjs/Chart.js/issues/5208
2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
ba57e915f8 X-Content-Security-Policy and X-Webkit-CSP are not needed anymore
All major browsers support standard by now. Only IE11 has limited support
for X-Content-Security-Policy. But that support is limited to sandbox
directive, which isn't used by Croodle.
2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
de52f7afd4 CSP referrer is deprecated, Referrer-Policy header should be used instead 2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
dcb70f74f8 deps: uprade ember-cli-content-security-policy 2019-02-23 23:56:49 +01:00
Jeldrik Hanschke
06a92b947f refactor: replace bootstrap-datepicker by ember-power-calendar
Also renders two linked calendars if there is enough space.

Closes #143
2019-01-20 17:08:16 +01:00
Jeldrik Hanschke
5b34199f41 refactor: drop jQuery from tests except for jQuery plugin bootstrap-datepicker 2019-01-18 20:42:21 +01:00
Jeldrik Hanschke
2def069142 deps: only include required component of Ember Boostrap in build
This reduced the vendor.js size from 1.54 MB (395.39 KB gzipped)
to 1.48 MB (385.52 KB gzipped).
2019-01-03 07:16:25 +01:00
Jeldrik Hanschke
dad9fbddf0 deps: drop bower 2019-01-03 07:09:36 +01:00
Jeldrik Hanschke
96f1990542 fix: label should reflect validation state of all times of a day 2019-01-03 00:46:36 +01:00
Jeldrik Hanschke
cf9efe993b refactor: replace LESS by SASS 2019-01-02 23:48:48 +01:00
Jeldrik Hanschke
af4fe70f72 refactor: drop ember-simple-select 2019-01-02 23:48:36 +01:00
Jeldrik Hanschke
3091f9ac5e deps: upgrade ember-page-title
Current page title is put before generic one, e.g. "Create a poll | Croodle"
instead of "Croodle | Create a poll". This was an upstream change with
could reasoning. Have a look here:
https://github.com/adopted-ember-addons/ember-page-title/releases/tag/5.0.0

Version 4.0.0 required the `{{head-layout}}` component in application's
template:
https://github.com/adopted-ember-addons/ember-page-title/releases/tag/4.0.0
2018-12-31 14:12:21 +01:00
Jeldrik Hanschke
3330151156 refactor: drop unnecessary dynamic component usage 2018-12-31 12:09:23 +01:00
Jeldrik Hanschke
174b6d493c refactor create/settings to avoid observer
This also fix a bug if user creates more than one croodle without reloading window
in between. In that case a data fragment is reused which throws.

It's also the first step in dropping {{simple-select}} which is very outdated.
2018-12-31 12:09:17 +01:00
Jeldrik Hanschke
f938f2ad93 update README
[skip ci]
2018-12-31 10:17:03 +01:00
Jeldrik Hanschke
bcd4bc7ac6 upgrade to ember 3.4 2018-12-31 10:17:03 +01:00
Jeldrik Hanschke
b7e63ed83b refactor: replace ember-object-at-helper by ember-composable-helpers 2018-12-30 10:06:49 +01:00
Jeldrik Hanschke
71d303174e refactor: drop ember-array-computed-macros 2018-12-30 01:04:33 +01:00
jelhan
b8af8ea121
Merge pull request #148 from jelhan/fix-translation-of-validation-errors
fix: validation errors should be translated
2018-12-29 22:09:22 +01:00
Jeldrik Hanschke
8f591e2978 refactor: use version provided in config in favor of ember-cli-build-info 2018-12-29 22:09:14 +01:00
Jeldrik Hanschke
b8d4087aaf fix: validation errors should be translated
https://github.com/jasonmit/ember-i18n-cp-validations/tree/v3.1.0#breaking-changes-between-2x-and-3x-for-ember-i18n-cp-validations
2018-12-29 21:23:29 +01:00
Jeldrik Hanschke
933a3bc6e8 reset deprecation workflow 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
11265cb82d deps: upgrade ember to 2.18 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
0749668435 deps: upgrade ember-native-dom-helpers 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
5cea1d48b6 deps: upgrade ember-awesome-macros 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
8f90414f0c deps: upgrade ember-cli-mirage 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
a6dee88dc1 deps: upgrade ember-moment 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
792d2089bb deps: remove unused dependencies 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
97e447bbe7 deps: yarn upgrade 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
39a5c7d94c deps: upgrade array-helper, math-helpers, truth-helpers and transition-helper 2018-12-29 20:23:19 +01:00
Jeldrik Hanschke
78ddf381c1 deps: upgrade ember-cli-bootstrap-datepicker
Drops another bower dependency. 🎉
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
9c4bd9e669
upgrade ember-bootstrap and ember-bootstrap-cp-validations to latest versions (#146)
Ember Bootstrap has changed a lot since the very outdated pre 1.0 release
which was used here. Changes are mostly about using composable components
and closure actions.

Also replaces PhantomJS with Chrome in CI cause PhantomJS is also very
outdated and causing test failure not related to any real world issues.
Ember CLI has replaced PhantomJS with Chrome in v2.15.1, which is the
upfollowing minor release to the version currently used.
2018-10-28 22:54:14 +01:00