mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
REFACTOR: Remove Ember.Component
global variable
Use imports instead.
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import Component from "@ember/component";
|
||||
/* global Pikaday:true */
|
||||
import { propertyNotEqual } from "discourse/lib/computed";
|
||||
import loadScript from "discourse/lib/load-script";
|
||||
@ -5,7 +6,7 @@ import { default as computed } from "ember-addons/ember-computed-decorators";
|
||||
import { cookAsync } from "discourse/lib/text";
|
||||
import debounce from "discourse/lib/debounce";
|
||||
|
||||
export default Ember.Component.extend({
|
||||
export default Component.extend({
|
||||
timeFormat: "HH:mm:ss",
|
||||
dateFormat: "YYYY-MM-DD",
|
||||
dateTimeFormat: "YYYY-MM-DD HH:mm:ss",
|
||||
|
@ -1,3 +1,4 @@
|
||||
import Component from "@ember/component";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import {
|
||||
default as computed,
|
||||
@ -8,7 +9,7 @@ import {
|
||||
export const keepAliveDuration = 10000;
|
||||
export const bufferTime = 3000;
|
||||
|
||||
export default Ember.Component.extend({
|
||||
export default Component.extend({
|
||||
// Passed in variables
|
||||
action: null,
|
||||
post: null,
|
||||
|
@ -1,3 +1,4 @@
|
||||
import Component from "@ember/component";
|
||||
import {
|
||||
default as computed,
|
||||
on
|
||||
@ -9,7 +10,7 @@ import {
|
||||
|
||||
const MB_GET_LAST_MESSAGE = -2;
|
||||
|
||||
export default Ember.Component.extend({
|
||||
export default Component.extend({
|
||||
topicId: null,
|
||||
presenceUsers: null,
|
||||
|
||||
|
Reference in New Issue
Block a user