Skip to content

Commit 7ae5a64

Browse files
committed
try to update ember
1 parent ee86587 commit 7ae5a64

File tree

64 files changed

+21610
-635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+21610
-635
lines changed

app/pods/application/controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Controller from '@ember/controller';
2-
import { computed } from '@ember-decorators/object';
3-
import { or, alias } from '@ember-decorators/object/computed';
4-
import { inject as service } from '@ember-decorators/service';
2+
import { computed } from '@ember/object';
3+
import { or, alias } from '@ember/object/computed';
4+
import { inject as service } from '@ember/service';
55

66
export default class ApplicationController extends Controller {
77
@service router

app/pods/application/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export default Route.extend(ApplicationRouteMixin, {
2121
},
2222
beforeModel (transition) {
2323

24-
if (!isNone(transition.queryParams.code)) {
24+
if (!isNone(transition.to.queryParams.code)) {
2525
if (this.get('session.isAuthenticated')) {
2626
return this.transitionTo({ queryParams: { code: undefined } })
2727
}
2828
// we have ?code qp
29-
const { code } = transition.queryParams
29+
const { code } = transition.to.queryParams
3030

3131
return this.session.authenticate('authenticator:jwt', { identification: code, password: code, code })
3232
.then(() => this.currentUser.load())

app/pods/classroom/timeline/contents/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Controller from '@ember/controller';
2-
import { action } from '@ember-decorators/object'
2+
import { action } from '@ember/object'
33

44
export default class ContentController extends Controller {
55
@action

app/pods/classroom/timeline/controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Controller from '@ember/controller';
2-
import { action } from '@ember-decorators/object';
3-
import { inject as service } from '@ember-decorators/service';
4-
import { computed } from '@ember-decorators/object';
2+
import { action } from '@ember/object';
3+
import { inject as service } from '@ember/service';
4+
import { computed } from '@ember/object';
55

66
export default class TimelineController extends Controller {
77
queryParams = ['showFeedback']

app/pods/components/accordion-head/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Component from '@ember/component';
2-
import { action, computed } from '@ember-decorators/object'
2+
import { action, computed } from '@ember/object'
33
import { isBlank } from '@ember/utils'
44

55
export default class AccordionHeadComponent extends Component {

app/pods/components/all-courses/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Component from '@ember/component';
2-
import { inject as service } from '@ember-decorators/service';
2+
import { inject as service } from '@ember/service';
33
import { restartableTask } from 'ember-concurrency-decorators';
44
import { alias } from '@ember/object/computed';
5-
import { action, computed } from '@ember-decorators/object';
5+
import { action, computed } from '@ember/object';
66

77
export default class AllCoursesComponent extends Component {
88

app/pods/components/available-run-card/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Component from '@ember/component';
2-
import { alias, equal, or } from '@ember-decorators/object/computed'
3-
import { inject as service } from '@ember-decorators/service'
2+
import { alias, equal, or } from '@ember/object/computed'
3+
import { inject as service } from '@ember/service'
44

55
export default class AvailableRunCardComponent extends Component {
66
classNames = ['card-layout', 'col-md-4', 'col-sm-6']

app/pods/components/card-grid/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Component from '@ember/component';
2-
import { action } from '@ember-decorators/object'
2+
import { action } from '@ember/object'
33

44
export default class CardGridComponent extends Component {
55
poppedIndex = -1

app/pods/components/carousel-cards/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Component from '@ember/component';
22
import { restartableTask } from 'ember-concurrency-decorators';
3-
import { inject as service } from '@ember-decorators/service';
4-
import { action } from '@ember-decorators/object'
3+
import { inject as service } from '@ember/service';
4+
import { action } from '@ember/object'
55
import $ from 'jquery';
66

77
class carouselCard {

app/pods/components/cart-dialog/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Component from '@ember/component';
22
import { restartableTask } from 'ember-concurrency-decorators';
3-
import { inject as service } from '@ember-decorators/service';
3+
import { inject as service } from '@ember/service';
44
import env from 'codingblocks-online/config/environment';
55

66
export default class CartDialog extends Component {

0 commit comments

Comments
 (0)