mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:01:49 +08:00
DEV: Clean up Ember imports (#8979)
Includes: * Import `computed` helpers * Import `@ember/application` * Import `isBlank` from `@ember/utils` * Import `A` from `@ember/array` * Import `EmberArray` from `@ember/array` * Import `ArrayProxy` from `@ember/array/proxy` * Import `warn` from `@ember/debug` * Import `EmberObject` from `@ember/object` * Import `Application` from `@ember/application` * Import `EmberRouter` from `@ember/routing/router` * Import `isPresent` from `@ember/utils` * Import `computed` from `@ember/object` * Import `guidFor` from `@ember/object` * Import `isArray` from `@ember/array` * Import `TextField` from `@ember/component` * Import `TextArea` from `@ember/component` * Import `Promise` from `rsvp` * Import `Evented` from `@ember/object/evented` * Replace deprecated `ember-addons/ember-computed-decorators` imports
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { A } from "@ember/array";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { gt, equal, or } from "@ember/object/computed";
|
||||
import EmberObject, { computed } from "@ember/object";
|
||||
@ -884,7 +885,7 @@ User.reopenClass(Singleton, {
|
||||
responses.set("count", responses.get("count") + stat.get("count"));
|
||||
});
|
||||
|
||||
const result = Ember.A();
|
||||
const result = A();
|
||||
result.pushObjects(stats.rejectBy("isResponse"));
|
||||
|
||||
let insertAt = 0;
|
||||
|
Reference in New Issue
Block a user