From 3efcc400730c6291019a84c2b6d021bc55362ce0 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Wed, 4 Sep 2024 14:36:15 +0200 Subject: [PATCH] chore(frontend): replace 's/inject as service/service/g' --- frontend/app/abilities/absence-credit.js | 2 +- frontend/app/abilities/overtime-credit.js | 2 +- frontend/app/abilities/page.js | 2 +- frontend/app/abilities/report.js | 2 +- frontend/app/abilities/user.js | 2 +- frontend/app/analysis/edit/controller.js | 2 +- frontend/app/analysis/index/controller.js | 2 +- frontend/app/application/route.js | 2 +- frontend/app/components/magic-link-modal/component.js | 2 +- frontend/app/components/progress-tooltip/component.js | 2 +- frontend/app/components/report-review-warning/component.js | 2 +- frontend/app/components/report-row/component.js | 2 +- frontend/app/components/sy-topnav/component.js | 2 +- frontend/app/components/task-selection/component.js | 2 +- frontend/app/components/tracking-bar/component.js | 2 +- frontend/app/components/user-selection/component.js | 2 +- frontend/app/index/activities/controller.js | 2 +- frontend/app/index/activities/edit/controller.js | 2 +- frontend/app/index/activities/edit/route.js | 2 +- frontend/app/index/attendances/controller.js | 2 +- frontend/app/index/controller.js | 2 +- frontend/app/index/reports/route.js | 2 +- frontend/app/index/route.js | 2 +- frontend/app/models/activity.js | 2 +- frontend/app/models/user.js | 2 +- frontend/app/projects/controller.js | 2 +- frontend/app/protected/controller.js | 2 +- frontend/app/protected/route.js | 2 +- frontend/app/services/current-user.js | 2 +- frontend/app/services/fetch.js | 2 +- frontend/app/services/metadata-fetcher.js | 2 +- frontend/app/services/rejected-reports.js | 2 +- frontend/app/services/tour.js | 2 +- frontend/app/services/tracking.js | 2 +- frontend/app/services/unverified-reports.js | 2 +- frontend/app/statistics/controller.js | 2 +- frontend/app/users/edit/controller.js | 2 +- .../app/users/edit/credits/absence-credits/edit/controller.js | 2 +- frontend/app/users/edit/credits/index/controller.js | 2 +- .../app/users/edit/credits/overtime-credits/edit/controller.js | 2 +- frontend/app/users/edit/index/controller.js | 2 +- frontend/app/users/edit/responsibilities/controller.js | 2 +- frontend/app/users/edit/route.js | 2 +- frontend/app/users/index/controller.js | 2 +- 44 files changed, 44 insertions(+), 44 deletions(-) diff --git a/frontend/app/abilities/absence-credit.js b/frontend/app/abilities/absence-credit.js index c8cea5d7c..3f120e59c 100644 --- a/frontend/app/abilities/absence-credit.js +++ b/frontend/app/abilities/absence-credit.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { Ability } from "ember-can"; export default class AbsenceCreditAbility extends Ability { diff --git a/frontend/app/abilities/overtime-credit.js b/frontend/app/abilities/overtime-credit.js index 040f38b39..f860d1b8e 100644 --- a/frontend/app/abilities/overtime-credit.js +++ b/frontend/app/abilities/overtime-credit.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { Ability } from "ember-can"; export default class OvertimeCreditAbility extends Ability { diff --git a/frontend/app/abilities/page.js b/frontend/app/abilities/page.js index 133f00e66..9357deac8 100644 --- a/frontend/app/abilities/page.js +++ b/frontend/app/abilities/page.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { Ability } from "ember-can"; export default class PageAbility extends Ability { diff --git a/frontend/app/abilities/report.js b/frontend/app/abilities/report.js index d883e2972..f6cf1cc20 100644 --- a/frontend/app/abilities/report.js +++ b/frontend/app/abilities/report.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { Ability } from "ember-can"; export default class ReportAbility extends Ability { diff --git a/frontend/app/abilities/user.js b/frontend/app/abilities/user.js index 750d76289..9bd41eef1 100644 --- a/frontend/app/abilities/user.js +++ b/frontend/app/abilities/user.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { Ability } from "ember-can"; export default class UserAbility extends Ability { diff --git a/frontend/app/analysis/edit/controller.js b/frontend/app/analysis/edit/controller.js index f8620bbd3..641ec99de 100644 --- a/frontend/app/analysis/edit/controller.js +++ b/frontend/app/analysis/edit/controller.js @@ -2,7 +2,7 @@ import { getOwner } from "@ember/application"; import Controller from "@ember/controller"; import { action } from "@ember/object"; import { later } from "@ember/runloop"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { dasherize } from "@ember/string"; import { tracked } from "@glimmer/tracking"; import { task } from "ember-concurrency"; diff --git a/frontend/app/analysis/index/controller.js b/frontend/app/analysis/index/controller.js index 67282e885..5252a8cb8 100644 --- a/frontend/app/analysis/index/controller.js +++ b/frontend/app/analysis/index/controller.js @@ -1,6 +1,6 @@ import { A } from "@ember/array"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { isTesting, macroCondition } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; import download from "downloadjs"; diff --git a/frontend/app/application/route.js b/frontend/app/application/route.js index 482dd8b32..b2473e3f0 100644 --- a/frontend/app/application/route.js +++ b/frontend/app/application/route.js @@ -4,7 +4,7 @@ * @public */ import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; /** * The application route diff --git a/frontend/app/components/magic-link-modal/component.js b/frontend/app/components/magic-link-modal/component.js index cb05e2a57..e7023a717 100644 --- a/frontend/app/components/magic-link-modal/component.js +++ b/frontend/app/components/magic-link-modal/component.js @@ -1,5 +1,5 @@ import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/components/progress-tooltip/component.js b/frontend/app/components/progress-tooltip/component.js index 61671ca67..2aec8f177 100644 --- a/frontend/app/components/progress-tooltip/component.js +++ b/frontend/app/components/progress-tooltip/component.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { isTesting, macroCondition } from "@embroider/macros"; import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/components/report-review-warning/component.js b/frontend/app/components/report-review-warning/component.js index 93bc3310d..ebc731e1a 100644 --- a/frontend/app/components/report-review-warning/component.js +++ b/frontend/app/components/report-review-warning/component.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; export default class ReportReviewWarning extends Component { diff --git a/frontend/app/components/report-row/component.js b/frontend/app/components/report-row/component.js index 2287894e6..afc75e117 100644 --- a/frontend/app/components/report-row/component.js +++ b/frontend/app/components/report-row/component.js @@ -1,5 +1,5 @@ import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; import { dropTask } from "ember-concurrency"; import ReportValidations from "timed/validations/report"; diff --git a/frontend/app/components/sy-topnav/component.js b/frontend/app/components/sy-topnav/component.js index 5ce5ca193..1e0f9c4ff 100644 --- a/frontend/app/components/sy-topnav/component.js +++ b/frontend/app/components/sy-topnav/component.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/components/task-selection/component.js b/frontend/app/components/task-selection/component.js index 1b72837b4..a213d5197 100644 --- a/frontend/app/components/task-selection/component.js +++ b/frontend/app/components/task-selection/component.js @@ -1,6 +1,6 @@ import { action } from "@ember/object"; import { later } from "@ember/runloop"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; import { restartableTask, timeout, dropTask } from "ember-concurrency"; import { trackedTask } from "ember-resources/util/ember-concurrency"; diff --git a/frontend/app/components/tracking-bar/component.js b/frontend/app/components/tracking-bar/component.js index e57f00268..2059bf921 100644 --- a/frontend/app/components/tracking-bar/component.js +++ b/frontend/app/components/tracking-bar/component.js @@ -3,7 +3,7 @@ * @submodule timed-components * @public */ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; /** diff --git a/frontend/app/components/user-selection/component.js b/frontend/app/components/user-selection/component.js index cd874a5db..23a662f9a 100644 --- a/frontend/app/components/user-selection/component.js +++ b/frontend/app/components/user-selection/component.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { restartableTask } from "ember-concurrency"; diff --git a/frontend/app/index/activities/controller.js b/frontend/app/index/activities/controller.js index 36b919f24..2d00ff6f7 100644 --- a/frontend/app/index/activities/controller.js +++ b/frontend/app/index/activities/controller.js @@ -5,7 +5,7 @@ */ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import moment from "moment"; import { resolve } from "rsvp"; diff --git a/frontend/app/index/activities/edit/controller.js b/frontend/app/index/activities/edit/controller.js index b9bc4c08c..b75f6350a 100644 --- a/frontend/app/index/activities/edit/controller.js +++ b/frontend/app/index/activities/edit/controller.js @@ -5,7 +5,7 @@ */ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import { timeout } from "ember-concurrency"; diff --git a/frontend/app/index/activities/edit/route.js b/frontend/app/index/activities/edit/route.js index 363670943..be01451f4 100644 --- a/frontend/app/index/activities/edit/route.js +++ b/frontend/app/index/activities/edit/route.js @@ -4,7 +4,7 @@ * @public */ import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Changeset from "ember-changeset"; import lookupValidator from "ember-changeset-validations"; import ActivityValidator from "timed/validations/activity"; diff --git a/frontend/app/index/attendances/controller.js b/frontend/app/index/attendances/controller.js index 0bb5d37e7..e070248bc 100644 --- a/frontend/app/index/attendances/controller.js +++ b/frontend/app/index/attendances/controller.js @@ -5,7 +5,7 @@ */ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import AttendanceValidator from "timed/validations/attendance"; /** diff --git a/frontend/app/index/controller.js b/frontend/app/index/controller.js index 83ddb0314..76d766aaf 100644 --- a/frontend/app/index/controller.js +++ b/frontend/app/index/controller.js @@ -1,7 +1,7 @@ import Controller from "@ember/controller"; import { action, get } from "@ember/object"; import { scheduleOnce } from "@ember/runloop"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { camelize } from "@ember/string"; import { isTesting, macroCondition } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/index/reports/route.js b/frontend/app/index/reports/route.js index be9ec0f41..3b7578fee 100644 --- a/frontend/app/index/reports/route.js +++ b/frontend/app/index/reports/route.js @@ -1,5 +1,5 @@ import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import moment from "moment"; export default class IndexReportsRoute extends Route { diff --git a/frontend/app/index/route.js b/frontend/app/index/route.js index f4353eec9..037c690c2 100644 --- a/frontend/app/index/route.js +++ b/frontend/app/index/route.js @@ -4,7 +4,7 @@ * @public */ import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import moment from "moment"; import { all } from "rsvp"; diff --git a/frontend/app/models/activity.js b/frontend/app/models/activity.js index 40c64e3a3..e92782c43 100644 --- a/frontend/app/models/activity.js +++ b/frontend/app/models/activity.js @@ -1,4 +1,4 @@ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Model, { attr, belongsTo } from "@ember-data/model"; import moment from "moment"; import { all } from "rsvp"; diff --git a/frontend/app/models/user.js b/frontend/app/models/user.js index a7d479b9c..3db1a1a6c 100644 --- a/frontend/app/models/user.js +++ b/frontend/app/models/user.js @@ -3,7 +3,7 @@ * @submodule timed-models * @public */ -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import Model, { attr, hasMany } from "@ember-data/model"; import moment from "moment"; /** diff --git a/frontend/app/projects/controller.js b/frontend/app/projects/controller.js index 73a1f98fc..356d86827 100644 --- a/frontend/app/projects/controller.js +++ b/frontend/app/projects/controller.js @@ -1,6 +1,6 @@ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import { dropTask, lastValue, task } from "ember-concurrency"; import uniqBy from "lodash.uniqby"; diff --git a/frontend/app/protected/controller.js b/frontend/app/protected/controller.js index 51ec8476d..37de2f534 100644 --- a/frontend/app/protected/controller.js +++ b/frontend/app/protected/controller.js @@ -1,6 +1,6 @@ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; export default class ProtectedController extends Controller { diff --git a/frontend/app/protected/route.js b/frontend/app/protected/route.js index dce4d99ad..cdf75afb5 100644 --- a/frontend/app/protected/route.js +++ b/frontend/app/protected/route.js @@ -1,6 +1,6 @@ import { action } from "@ember/object"; import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; /** * The protected route diff --git a/frontend/app/services/current-user.js b/frontend/app/services/current-user.js index f4db36698..d2e6524e2 100644 --- a/frontend/app/services/current-user.js +++ b/frontend/app/services/current-user.js @@ -1,4 +1,4 @@ -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import moment from "moment"; export default class CurrentUserService extends Service { diff --git a/frontend/app/services/fetch.js b/frontend/app/services/fetch.js index 8b43b16ae..e950f900f 100644 --- a/frontend/app/services/fetch.js +++ b/frontend/app/services/fetch.js @@ -1,4 +1,4 @@ -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import { isEmpty } from "@ember/utils"; import { isUnauthorizedResponse } from "ember-fetch/errors"; import { handleUnauthorized } from "ember-simple-auth-oidc"; diff --git a/frontend/app/services/metadata-fetcher.js b/frontend/app/services/metadata-fetcher.js index 44e0e583a..eeb9f7429 100644 --- a/frontend/app/services/metadata-fetcher.js +++ b/frontend/app/services/metadata-fetcher.js @@ -1,4 +1,4 @@ -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import { camelize, capitalize, dasherize } from "@ember/string"; import { restartableTask } from "ember-concurrency"; import DjangoDurationTransform from "timed/transforms/django-duration"; diff --git a/frontend/app/services/rejected-reports.js b/frontend/app/services/rejected-reports.js index 7180b22ce..88197b3ae 100644 --- a/frontend/app/services/rejected-reports.js +++ b/frontend/app/services/rejected-reports.js @@ -1,4 +1,4 @@ -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import { macroCondition, isTesting } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/services/tour.js b/frontend/app/services/tour.js index 49c616fdb..d57f0ac1f 100644 --- a/frontend/app/services/tour.js +++ b/frontend/app/services/tour.js @@ -1,5 +1,5 @@ import { schedule, later } from "@ember/runloop"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { waitFor } from "@ember/test-waiters"; import { isTesting, macroCondition } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/services/tracking.js b/frontend/app/services/tracking.js index c4a5cc676..0df09deef 100644 --- a/frontend/app/services/tracking.js +++ b/frontend/app/services/tracking.js @@ -1,6 +1,6 @@ import { getOwner } from "@ember/application"; import { scheduleOnce } from "@ember/runloop"; -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import { camelize, capitalize } from "@ember/string"; import { isTesting, macroCondition } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; diff --git a/frontend/app/services/unverified-reports.js b/frontend/app/services/unverified-reports.js index eb12282a9..b320b70e8 100644 --- a/frontend/app/services/unverified-reports.js +++ b/frontend/app/services/unverified-reports.js @@ -1,4 +1,4 @@ -import Service, { inject as service } from "@ember/service"; +import Service, { service } from "@ember/service"; import { isTesting, macroCondition } from "@embroider/macros"; import { tracked } from "@glimmer/tracking"; import moment from "moment"; diff --git a/frontend/app/statistics/controller.js b/frontend/app/statistics/controller.js index 153bbeb9f..f70de84ef 100644 --- a/frontend/app/statistics/controller.js +++ b/frontend/app/statistics/controller.js @@ -1,5 +1,5 @@ import { action, get, set } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import { restartableTask, hash } from "ember-concurrency"; import QPController from "timed/controllers/qpcontroller"; diff --git a/frontend/app/users/edit/controller.js b/frontend/app/users/edit/controller.js index 4a57bded3..4ce1e2a1d 100644 --- a/frontend/app/users/edit/controller.js +++ b/frontend/app/users/edit/controller.js @@ -1,5 +1,5 @@ import Controller from "@ember/controller"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { task, all, hash } from "ember-concurrency"; import moment from "moment"; diff --git a/frontend/app/users/edit/credits/absence-credits/edit/controller.js b/frontend/app/users/edit/credits/absence-credits/edit/controller.js index d0df7422d..cd48701b0 100644 --- a/frontend/app/users/edit/credits/absence-credits/edit/controller.js +++ b/frontend/app/users/edit/credits/absence-credits/edit/controller.js @@ -1,5 +1,5 @@ import Controller, { inject as controller } from "@ember/controller"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { task, dropTask } from "ember-concurrency"; import AbsenceCreditValidations from "timed/validations/absence-credit"; diff --git a/frontend/app/users/edit/credits/index/controller.js b/frontend/app/users/edit/credits/index/controller.js index b8a23c5b3..8d95c6471 100644 --- a/frontend/app/users/edit/credits/index/controller.js +++ b/frontend/app/users/edit/credits/index/controller.js @@ -1,6 +1,6 @@ import Controller, { inject as controller } from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import { dropTask, restartableTask } from "ember-concurrency"; import moment from "moment"; diff --git a/frontend/app/users/edit/credits/overtime-credits/edit/controller.js b/frontend/app/users/edit/credits/overtime-credits/edit/controller.js index 1a84e5442..331f1e216 100644 --- a/frontend/app/users/edit/credits/overtime-credits/edit/controller.js +++ b/frontend/app/users/edit/credits/overtime-credits/edit/controller.js @@ -1,5 +1,5 @@ import Controller, { inject as controller } from "@ember/controller"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { task, dropTask } from "ember-concurrency"; import OvertimeCreditValidations from "timed/validations/overtime-credit"; diff --git a/frontend/app/users/edit/index/controller.js b/frontend/app/users/edit/index/controller.js index 12e33b271..d8f911592 100644 --- a/frontend/app/users/edit/index/controller.js +++ b/frontend/app/users/edit/index/controller.js @@ -1,5 +1,5 @@ import Controller from "@ember/controller"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { task } from "ember-concurrency"; import moment from "moment"; diff --git a/frontend/app/users/edit/responsibilities/controller.js b/frontend/app/users/edit/responsibilities/controller.js index b0dcf0f3f..1fb06d7bd 100644 --- a/frontend/app/users/edit/responsibilities/controller.js +++ b/frontend/app/users/edit/responsibilities/controller.js @@ -1,6 +1,6 @@ import Controller from "@ember/controller"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { task } from "ember-concurrency"; import moment from "moment"; import { all } from "rsvp"; diff --git a/frontend/app/users/edit/route.js b/frontend/app/users/edit/route.js index 29d3fd117..6181570ba 100644 --- a/frontend/app/users/edit/route.js +++ b/frontend/app/users/edit/route.js @@ -1,5 +1,5 @@ import Route from "@ember/routing/route"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; export default class EditUserRoute extends Route { @service store; diff --git a/frontend/app/users/index/controller.js b/frontend/app/users/index/controller.js index d52e4f9ad..569cbd605 100644 --- a/frontend/app/users/index/controller.js +++ b/frontend/app/users/index/controller.js @@ -1,5 +1,5 @@ import { action, set } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { tracked } from "@glimmer/tracking"; import { restartableTask, timeout, hash } from "ember-concurrency"; import { task as trackedTask } from "ember-resources/util/ember-concurrency";