From c607870f08eebfccb3b21f1f5d78089a5da65065 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 21 Feb 2020 14:27:04 +0100 Subject: [PATCH] DEV: Add more `@ember` imports (#9012) --- app/assets/javascripts/discourse-loader.js | 26 +++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse-loader.js b/app/assets/javascripts/discourse-loader.js index ab01553c1c9..9d14e3208ca 100644 --- a/app/assets/javascripts/discourse-loader.js +++ b/app/assets/javascripts/discourse-loader.js @@ -10,16 +10,31 @@ var define, requirejs; if (typeof Ember !== "undefined") { EMBER_MODULES = { 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": { default: Ember.Controller, inject: Ember.inject.controller }, + "@ember/debug": { + warn: Ember.warn + }, "@ember/object": { action: Ember._action, default: Ember.Object, get: Ember.get, getProperties: Ember.getProperties, + guidFor: Ember.guidFor, set: Ember.set, setProperties: Ember.setProperties, computed: Ember.computed, @@ -61,8 +76,12 @@ var define, requirejs; }, "@ember/object/mixin": { default: Ember.Mixin }, "@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/router": { default: Ember.Router }, "@ember/runloop": { bind: Ember.run.bind, cancel: Ember.run.cancel, @@ -81,6 +100,7 @@ var define, requirejs; }, "@ember/utils": { isPresent: Ember.isPresent, + isBlank: Ember.isBlank, isEmpty: Ember.isEmpty, isNone: Ember.isNone }, @@ -101,6 +121,7 @@ var define, requirejs; htmlSafe: Ember.String.htmlSafe }, "@ember/application": { + default: Ember.Application, setOwner: Ember.setOwner, getOwner: Ember.getOwner }, @@ -110,7 +131,6 @@ var define, requirejs; "@ember/error": { default: Ember.error }, - "@ember/object/internals": { guidFor: Ember.guidFor }