DEV: Find/replace deprecated decorators

This commit is contained in:
Penar Musaraj 2020-02-19 11:57:59 -05:00
parent 150744ab20
commit 277346b097
11 changed files with 11 additions and 14 deletions

View File

@ -1,4 +1,4 @@
import { observes } from "ember-addons/ember-computed-decorators"; import { observes } from "discourse-common/utils/decorators";
export default Ember.Component.extend({ export default Ember.Component.extend({
@observes("hideSchema") @observes("hideSchema")

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "discourse-common/utils/decorators";
export default Ember.Component.extend({ export default Ember.Component.extend({
tagName: "ol", tagName: "ol",

View File

@ -1,4 +1,4 @@
import { on } from "ember-addons/ember-computed-decorators"; import { on } from "discourse-common/utils/decorators";
export default Ember.Component.extend({ export default Ember.Component.extend({
classNameBindings: [":schema-table", "open"], classNameBindings: [":schema-table", "open"],

View File

@ -1,7 +1,7 @@
import { import {
default as computed, default as computed,
observes observes
} from "ember-addons/ember-computed-decorators"; } from "discourse-common/utils/decorators";
import debounce from "discourse/lib/debounce"; import debounce from "discourse/lib/debounce";
export default Ember.Component.extend({ export default Ember.Component.extend({

View File

@ -2,7 +2,7 @@ import {
default as computed, default as computed,
on, on,
observes observes
} from "ember-addons/ember-computed-decorators"; } from "discourse-common/utils/decorators";
export default Ember.Component.extend({ export default Ember.Component.extend({
fileInput: null, fileInput: null,

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "discourse-common/utils/decorators";
// import Category from 'discourse/models/category'; // import Category from 'discourse/models/category';
const Category = Discourse.Category; const Category = Discourse.Category;

View File

@ -1,7 +1,7 @@
import { ajax } from "discourse/lib/ajax"; import { ajax } from "discourse/lib/ajax";
import Badge from "discourse/models/badge"; import Badge from "discourse/models/badge";
import { getOwner } from "discourse-common/lib/get-owner"; import { getOwner } from "discourse-common/lib/get-owner";
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "discourse-common/utils/decorators";
function randomIdShort() { function randomIdShort() {
return "xxxxxxxx".replace(/[xy]/g, () => { return "xxxxxxxx".replace(/[xy]/g, () => {

View File

@ -1,7 +1,4 @@
import { import { default as computed, on } from "discourse-common/utils/decorators";
default as computed,
on
} from "ember-addons/ember-computed-decorators";
export default Ember.Component.extend({ export default Ember.Component.extend({
classNames: ["share-report"], classNames: ["share-report"],

View File

@ -5,7 +5,7 @@ import { ajax } from "discourse/lib/ajax";
import { import {
default as computed, default as computed,
observes observes
} from "ember-addons/ember-computed-decorators"; } from "discourse-common/utils/decorators";
const NoQuery = Query.create({ name: "No queries", fake: true, group_ids: [] }); const NoQuery = Query.create({ name: "No queries", fake: true, group_ids: [] });

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "discourse-common/utils/decorators";
import ModalFunctionality from "discourse/mixins/modal-functionality"; import ModalFunctionality from "discourse/mixins/modal-functionality";
import { popupAjaxError } from "discourse/lib/ajax-error"; import { popupAjaxError } from "discourse/lib/ajax-error";

View File

@ -2,7 +2,7 @@ import {
default as computed, default as computed,
on, on,
observes observes
} from "ember-addons/ember-computed-decorators"; } from "discourse-common/utils/decorators";
import RestModel from "discourse/models/rest"; import RestModel from "discourse/models/rest";
const Query = RestModel.extend({ const Query = RestModel.extend({