From 97605ec7d771be7a4c1d6b65fd0e8449ea8b87c5 Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Sun, 15 Oct 2023 21:50:28 +0200 Subject: [PATCH] fix some deprecations (#659) * get deprecation workflow up to date * fix routing.transition-methods deprecation * fix this-property-fallback deprecation * fix implicit-injections deprecation * argument-less-helper-paren-less-invocation * remove unmaintained ember-transition-helper which triggers deprecated-run-loop-and-computed-dot-access deprecation * reset to only log but not throw on errors to not block other development * reset double quote to single quote changes in templates and fix Prettier config * fix JS linting * ugprade ember-template-lint to fix parser --- .prettierrc.js | 9 +- app/components/create-options-datetime.hbs | 4 +- app/components/create-options.hbs | 2 +- app/controllers/application.js | 6 + app/controllers/create/options-datetime.js | 1 + app/controllers/create/options.js | 1 + app/controllers/create/settings.js | 1 + app/controllers/poll/participation.js | 1 + app/routes/create.js | 9 +- app/routes/poll.js | 3 +- app/templates/create.hbs | 50 ++- app/templates/create/index.hbs | 4 +- app/templates/create/meta.hbs | 2 +- app/templates/create/settings.hbs | 4 +- app/templates/poll.hbs | 130 ++++---- app/templates/poll/participation.hbs | 2 +- config/deprecation-workflow.js | 16 +- package.json | 3 +- .../create-options-datetime-test.js | 8 +- .../components/inline-datepicker-test.js | 4 +- tests/unit/controllers/application-test.js | 12 + yarn.lock | 297 ++++++++++-------- 22 files changed, 344 insertions(+), 225 deletions(-) create mode 100644 app/controllers/application.js create mode 100644 tests/unit/controllers/application-test.js diff --git a/.prettierrc.js b/.prettierrc.js index 534e6d3..e5f7b6d 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,5 +1,12 @@ 'use strict'; module.exports = { - singleQuote: true, + overrides: [ + { + files: '*.{js,ts}', + options: { + singleQuote: true, + }, + }, + ], }; diff --git a/app/components/create-options-datetime.hbs b/app/components/create-options-datetime.hbs index 236dcc4..3fcbc8f 100644 --- a/app/components/create-options-datetime.hbs +++ b/app/components/create-options-datetime.hbs @@ -6,8 +6,8 @@ {{/if}} @@ -14,23 +18,35 @@ {{/unless}} {{/each}} {{t "create.formStep.type"}} {{t "create.formStep.meta"}} @@ -42,8 +58,12 @@ {{#if this.isFindADate}} @@ -51,8 +71,12 @@ {{/if}} @@ -60,4 +84,4 @@ -{{outlet}} +{{outlet}} \ No newline at end of file diff --git a/app/templates/create/index.hbs b/app/templates/create/index.hbs index f3582b5..004e16a 100644 --- a/app/templates/create/index.hbs +++ b/app/templates/create/index.hbs @@ -2,8 +2,8 @@ diff --git a/app/templates/poll.hbs b/app/templates/poll.hbs index 93d2614..55e7952 100644 --- a/app/templates/poll.hbs +++ b/app/templates/poll.hbs @@ -1,46 +1,46 @@ {{#let @model as |poll|}} {{page-title poll.title}} -
-
-
-