Skip to content

Commit

Permalink
chore(frontend): replace 's/inject as service/service/g'
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Sep 4, 2024
1 parent e11fb3e commit 3efcc40
Show file tree
Hide file tree
Showing 44 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion frontend/app/abilities/absence-credit.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/abilities/overtime-credit.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/abilities/page.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/abilities/report.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/abilities/user.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/analysis/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/analysis/index/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/application/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/magic-link-modal/component.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/progress-tooltip/component.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/report-review-warning/component.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/report-row/component.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/sy-topnav/component.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/task-selection/component.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/tracking-bar/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/user-selection/component.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/activities/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/activities/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/activities/edit/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/attendances/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/reports/route.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/index/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/models/activity.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
/**
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/projects/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/protected/controller.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/protected/route.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/current-user.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/fetch.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/metadata-fetcher.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/rejected-reports.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/tour.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/tracking.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/services/unverified-reports.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/statistics/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/edit/controller.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/edit/credits/index/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/edit/index/controller.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/edit/responsibilities/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/edit/route.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/users/index/controller.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 3efcc40

Please sign in to comment.