mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:21:47 +08:00
DEV: Move discourse-common/(utils|lib)
to discourse/lib
(#30733)
`discourse-common` was created in the past to share logic between the 'wizard' app and the main 'discourse' app. Since then, the wizard has been consolidated into the main app, so the separation of `discourse-common` is no longer useful. This commit moves `discourse-common/(lib|utils)/*` into `discourse/lib/*`, adds shims for the imports, and updates existing uses in core.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||
import { service } from "@ember/service";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { bind } from "discourse/lib/decorators";
|
||||
import ComboBox from "select-kit/components/combo-box";
|
||||
import BaseField from "./da-base-field";
|
||||
import DAFieldDescription from "./da-field-description";
|
||||
|
@ -2,7 +2,7 @@ import { tracked } from "@glimmer/tracking";
|
||||
import { hash } from "@ember/helper";
|
||||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||
import { service } from "@ember/service";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { bind } from "discourse/lib/decorators";
|
||||
import MultiSelect from "select-kit/components/multi-select";
|
||||
import BaseField from "./da-base-field";
|
||||
import DAFieldDescription from "./da-field-description";
|
||||
|
@ -2,7 +2,7 @@ import Controller from "@ember/controller";
|
||||
import { action } from "@ember/object";
|
||||
import { service } from "@ember/service";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import escape from "discourse-common/lib/escape";
|
||||
import escape from "discourse/lib/escape";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class AutomationIndex extends Controller {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { iconHTML } from "discourse-common/lib/icon-library";
|
||||
import { iconHTML } from "discourse/lib/icon-library";
|
||||
|
||||
export default function formatEnabledAutomation(enabled, trigger) {
|
||||
if (enabled && trigger.id) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { makeArray } from "discourse/lib/helpers";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
let _lastCheckedByHandlers = {};
|
||||
|
||||
|
Reference in New Issue
Block a user