mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: Avoid relative paths when importing in plugins.
This commit is contained in:
@ -12,7 +12,8 @@ import {
|
|||||||
EDITING,
|
EDITING,
|
||||||
COMPOSER_TYPE,
|
COMPOSER_TYPE,
|
||||||
KEEP_ALIVE_DURATION_SECONDS
|
KEEP_ALIVE_DURATION_SECONDS
|
||||||
} from "../lib/presence";
|
} from "discourse/plugins/discourse-presence/discourse/lib/presence";
|
||||||
|
|
||||||
import { REPLY, EDIT } from "discourse/models/composer";
|
import { REPLY, EDIT } from "discourse/models/composer";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
|
@ -2,7 +2,7 @@ import Component from "@ember/component";
|
|||||||
import { gt } from "@ember/object/computed";
|
import { gt } from "@ember/object/computed";
|
||||||
import { inject as service } from "@ember/service";
|
import { inject as service } from "@ember/service";
|
||||||
import discourseComputed, { on } from "discourse-common/utils/decorators";
|
import discourseComputed, { on } from "discourse-common/utils/decorators";
|
||||||
import { TOPIC_TYPE } from "../lib/presence";
|
import { TOPIC_TYPE } from "discourse/plugins/discourse-presence/discourse/lib/presence";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
topic: null,
|
topic: null,
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import Service from "@ember/service";
|
import Service from "@ember/service";
|
||||||
import Presence, { CLOSED } from "../lib/presence";
|
import Presence, {
|
||||||
|
CLOSED
|
||||||
|
} from "discourse/plugins/discourse-presence/discourse/lib/presence";
|
||||||
|
|
||||||
const PresenceManager = Service.extend({
|
const PresenceManager = Service.extend({
|
||||||
presences: null,
|
presences: null,
|
||||||
|
Reference in New Issue
Block a user