DEV: Add more `@ember` imports (#9012)

This commit is contained in:
Jarek Radosz 2020-02-21 14:27:04 +01:00 committed by GitHub
parent cb69e89d7c
commit c607870f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 3 deletions

View File

@ -10,16 +10,31 @@ var define, requirejs;
if (typeof Ember !== "undefined") { if (typeof Ember !== "undefined") {
EMBER_MODULES = { EMBER_MODULES = {
jquery: { default: $ }, jquery: { default: $ },
"@ember/component": { default: Ember.Component }, "@ember/array": {
default: Ember.Array,
A: Ember.A
},
"@ember/array/proxy": {
default: Ember.ArrayProxy
},
"@ember/component": {
default: Ember.Component,
TextArea: Ember.TextArea,
TextField: Ember.TextField
},
"@ember/controller": { "@ember/controller": {
default: Ember.Controller, default: Ember.Controller,
inject: Ember.inject.controller inject: Ember.inject.controller
}, },
"@ember/debug": {
warn: Ember.warn
},
"@ember/object": { "@ember/object": {
action: Ember._action, action: Ember._action,
default: Ember.Object, default: Ember.Object,
get: Ember.get, get: Ember.get,
getProperties: Ember.getProperties, getProperties: Ember.getProperties,
guidFor: Ember.guidFor,
set: Ember.set, set: Ember.set,
setProperties: Ember.setProperties, setProperties: Ember.setProperties,
computed: Ember.computed, computed: Ember.computed,
@ -61,8 +76,12 @@ var define, requirejs;
}, },
"@ember/object/mixin": { default: Ember.Mixin }, "@ember/object/mixin": { default: Ember.Mixin },
"@ember/object/proxy": { default: Ember.ObjectProxy }, "@ember/object/proxy": { default: Ember.ObjectProxy },
"@ember/object/evented": { on: Ember.on }, "@ember/object/evented": {
default: Ember.Evented,
on: Ember.on
},
"@ember/routing/route": { default: Ember.Route }, "@ember/routing/route": { default: Ember.Route },
"@ember/routing/router": { default: Ember.Router },
"@ember/runloop": { "@ember/runloop": {
bind: Ember.run.bind, bind: Ember.run.bind,
cancel: Ember.run.cancel, cancel: Ember.run.cancel,
@ -81,6 +100,7 @@ var define, requirejs;
}, },
"@ember/utils": { "@ember/utils": {
isPresent: Ember.isPresent, isPresent: Ember.isPresent,
isBlank: Ember.isBlank,
isEmpty: Ember.isEmpty, isEmpty: Ember.isEmpty,
isNone: Ember.isNone isNone: Ember.isNone
}, },
@ -101,6 +121,7 @@ var define, requirejs;
htmlSafe: Ember.String.htmlSafe htmlSafe: Ember.String.htmlSafe
}, },
"@ember/application": { "@ember/application": {
default: Ember.Application,
setOwner: Ember.setOwner, setOwner: Ember.setOwner,
getOwner: Ember.getOwner getOwner: Ember.getOwner
}, },
@ -110,7 +131,6 @@ var define, requirejs;
"@ember/error": { "@ember/error": {
default: Ember.error default: Ember.error
}, },
"@ember/object/internals": { "@ember/object/internals": {
guidFor: Ember.guidFor guidFor: Ember.guidFor
} }