From c5ef4651797b411ed9201239f205d13bd163742e Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 14 May 2020 10:04:45 +0800 Subject: [PATCH] DEV: Avoid relative paths when importing in plugins. --- .../discourse/components/composer-presence-display.js.es6 | 3 ++- .../discourse/components/topic-presence-display.js.es6 | 2 +- .../javascripts/discourse/services/presence-manager.js.es6 | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 index a01c982471e..110bfb49d35 100644 --- a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 +++ b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 @@ -12,7 +12,8 @@ import { EDITING, COMPOSER_TYPE, KEEP_ALIVE_DURATION_SECONDS -} from "../lib/presence"; +} from "discourse/plugins/discourse-presence/discourse/lib/presence"; + import { REPLY, EDIT } from "discourse/models/composer"; export default Component.extend({ diff --git a/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.js.es6 b/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.js.es6 index c44742c9aa9..b64fd93c38e 100644 --- a/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.js.es6 +++ b/plugins/discourse-presence/assets/javascripts/discourse/components/topic-presence-display.js.es6 @@ -2,7 +2,7 @@ import Component from "@ember/component"; import { gt } from "@ember/object/computed"; import { inject as service } from "@ember/service"; 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({ topic: null, diff --git a/plugins/discourse-presence/assets/javascripts/discourse/services/presence-manager.js.es6 b/plugins/discourse-presence/assets/javascripts/discourse/services/presence-manager.js.es6 index 3913009b30f..11b6c9e5e75 100644 --- a/plugins/discourse-presence/assets/javascripts/discourse/services/presence-manager.js.es6 +++ b/plugins/discourse-presence/assets/javascripts/discourse/services/presence-manager.js.es6 @@ -1,5 +1,7 @@ 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({ presences: null,