refactor: replace ember-object-at-helper by ember-composable-helpers

This commit is contained in:
Jeldrik Hanschke 2018-12-30 09:06:40 +01:00 committed by jelhan
parent 71d303174e
commit b7e63ed83b
4 changed files with 14 additions and 11 deletions

View file

@ -28,7 +28,7 @@
{{#form.element {{#form.element
classNames='option' classNames='option'
label=date.dayFormatted label=date.dayFormatted
invisibleLabel=(eq date.dayFormatted (object-at dates (if index (sub index 1) dates.length) 'dayFormatted')) invisibleLabel=(eq date.dayFormatted (get (object-at (if index (sub index 1) dates.length) dates) 'dayFormatted'))
model=date model=date
property='time' property='time'
as |el| as |el|

View file

@ -14,6 +14,9 @@ module.exports = function(defaults) {
}, },
'ember-cli-babel': { 'ember-cli-babel': {
includePolyfill: true includePolyfill: true
},
'ember-composable-helpers': {
only: ['array', 'object-at'],
} }
}); });

View file

@ -18,7 +18,6 @@
"devDependencies": { "devDependencies": {
"bootstrap": "^3.3.7", "bootstrap": "^3.3.7",
"ember-ajax": "^3.0.0", "ember-ajax": "^3.0.0",
"ember-array-helper": "^5.0.0",
"ember-awesome-macros": "^3.1.0", "ember-awesome-macros": "^3.1.0",
"ember-bootstrap": "^2.1.2", "ember-bootstrap": "^2.1.2",
"ember-bootstrap-cp-validations": "^1.0.0", "ember-bootstrap-cp-validations": "^1.0.0",
@ -49,6 +48,7 @@
"ember-cli-shims": "^1.2.0", "ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0", "ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0", "ember-cli-uglify": "^2.0.0",
"ember-composable-helpers": "^2.1.0",
"ember-cp-validations": "^3.5.0", "ember-cp-validations": "^3.5.0",
"ember-data": "~2.18.0", "ember-data": "~2.18.0",
"ember-data-model-fragments": "^2.14.0", "ember-data-model-fragments": "^2.14.0",
@ -59,7 +59,6 @@
"ember-math-helpers": "^2.8.1", "ember-math-helpers": "^2.8.1",
"ember-moment": "^7.8.0", "ember-moment": "^7.8.0",
"ember-native-dom-helpers": "^0.6.2", "ember-native-dom-helpers": "^0.6.2",
"ember-object-at-helper": "0.1.0",
"ember-page-title": "^3.0.6", "ember-page-title": "^3.0.6",
"ember-radio-buttons": "^4.0.1", "ember-radio-buttons": "^4.0.1",
"ember-resolver": "^4.0.0", "ember-resolver": "^4.0.0",

View file

@ -4054,7 +4054,7 @@ ember-cli-babel@^5.1.3:
ember-cli-version-checker "^1.0.2" ember-cli-version-checker "^1.0.2"
resolve "^1.1.2" resolve "^1.1.2"
ember-cli-babel@^5.1.5, ember-cli-babel@^5.1.6: ember-cli-babel@^5.1.5:
version "5.2.8" version "5.2.8"
resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-5.2.8.tgz#0356b03cc3fdff5d0f2ecaa46a0e1cfaebffd876" resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-5.2.8.tgz#0356b03cc3fdff5d0f2ecaa46a0e1cfaebffd876"
integrity sha512-Mt9OOB5RaZwjde+LYef8EgwNVCAzsYDv4ktshblaXxr4m/Xm5/7/rxEu42RNrYkoy/qWpT9uhaD+JKK4riMf+w== integrity sha512-Mt9OOB5RaZwjde+LYef8EgwNVCAzsYDv4ktshblaXxr4m/Xm5/7/rxEu42RNrYkoy/qWpT9uhaD+JKK4riMf+w==
@ -4655,6 +4655,14 @@ ember-cli@~2.18.2:
walk-sync "^0.3.0" walk-sync "^0.3.0"
yam "0.0.22" yam "0.0.22"
ember-composable-helpers@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/ember-composable-helpers/-/ember-composable-helpers-2.1.0.tgz#71f75ab2de1c696d21939b5f9dcc62eaf2c947e5"
integrity sha512-H6KCyB/BzjR18MxQFcQQR5MDRmawCmCCZKHQTEpAwhs5wCDhnMMLUGINan+sY4NRPrStfpUlMoGg9fsksN2wJA==
dependencies:
broccoli-funnel "^1.0.1"
ember-cli-babel "^6.6.0"
ember-concurrency@^0.8.7: ember-concurrency@^0.8.7:
version "0.8.26" version "0.8.26"
resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-0.8.26.tgz#7aeaa5c00e87903a57726823efe68787a83154b0" resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-0.8.26.tgz#7aeaa5c00e87903a57726823efe68787a83154b0"
@ -4891,13 +4899,6 @@ ember-native-dom-helpers@^0.6.2:
broccoli-funnel "^1.1.0" broccoli-funnel "^1.1.0"
ember-cli-babel "^6.6.0" ember-cli-babel "^6.6.0"
ember-object-at-helper@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/ember-object-at-helper/-/ember-object-at-helper-0.1.0.tgz#735381aaaf3196f705fd7b08b918298a7c5e847c"
integrity sha1-c1OBqq8xlvcF/XsIuRgpinxehHw=
dependencies:
ember-cli-babel "^5.1.6"
ember-page-title@^3.0.6: ember-page-title@^3.0.6:
version "3.2.2" version "3.2.2"
resolved "https://registry.yarnpkg.com/ember-page-title/-/ember-page-title-3.2.2.tgz#241effbc8228ecfb75e33540f6707003fdf6db31" resolved "https://registry.yarnpkg.com/ember-page-title/-/ember-page-title-3.2.2.tgz#241effbc8228ecfb75e33540f6707003fdf6db31"