DEV: Find/replace deprecated decorators
This commit is contained in:
parent
150744ab20
commit
277346b097
|
@ -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")
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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"],
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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, () => {
|
||||||
|
|
|
@ -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"],
|
||||||
|
|
|
@ -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: [] });
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue