mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +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,8 +1,8 @@
|
||||
import Component from "@ember/component";
|
||||
import { classNames, tagName } from "@ember-decorators/component";
|
||||
import { REPLACEMENTS } from "discourse-common/lib/icon-library";
|
||||
import discourseLater from "discourse-common/lib/later";
|
||||
import { afterRender } from "discourse-common/utils/decorators";
|
||||
import { afterRender } from "discourse/lib/decorators";
|
||||
import { REPLACEMENTS } from "discourse/lib/icon-library";
|
||||
import discourseLater from "discourse/lib/later";
|
||||
|
||||
@tagName("section")
|
||||
@classNames("styleguide-icons")
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Component from "@ember/component";
|
||||
import { classNameBindings, tagName } from "@ember-decorators/component";
|
||||
import computed from "discourse-common/utils/decorators";
|
||||
import computed from "discourse/lib/decorators";
|
||||
|
||||
@tagName("section")
|
||||
@classNameBindings(":styleguide-section", "sectionClass")
|
||||
|
Reference in New Issue
Block a user