mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: Use import x
rather than import { default as x }
(#23496)
This commit is contained in:
parent
d7bb8f68d6
commit
7b7a59b576
@ -5,9 +5,8 @@ import UppyUploadMixin from "discourse/mixins/uppy-upload";
|
||||
import discourseComputed, { on } from "discourse-common/utils/decorators";
|
||||
import { getURLWithCDN } from "discourse-common/lib/get-url";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import {
|
||||
import lightbox, {
|
||||
cleanupLightboxes,
|
||||
default as lightbox,
|
||||
setupLightboxes,
|
||||
} from "discourse/lib/lightbox";
|
||||
import { next } from "@ember/runloop";
|
||||
|
@ -1,6 +1,5 @@
|
||||
import {
|
||||
import createPMRoute, {
|
||||
NEW_FILTER,
|
||||
default as createPMRoute,
|
||||
} from "discourse/routes/build-private-messages-route";
|
||||
|
||||
export default createPMRoute("user", "private-messages-new", NEW_FILTER);
|
||||
|
@ -1,6 +1,5 @@
|
||||
import {
|
||||
import createPMRoute, {
|
||||
UNREAD_FILTER,
|
||||
default as createPMRoute,
|
||||
} from "discourse/routes/build-private-messages-route";
|
||||
|
||||
export default createPMRoute("user", "private-messages-unread", UNREAD_FILTER);
|
||||
|
@ -1,5 +1,4 @@
|
||||
import {
|
||||
default as deprecated,
|
||||
import deprecated, {
|
||||
withSilencedDeprecations,
|
||||
withSilencedDeprecationsAsync,
|
||||
} from "discourse-common/lib/deprecated";
|
||||
|
@ -2,7 +2,7 @@ import { module, test } from "qunit";
|
||||
import { setupRenderingTest } from "ember-qunit";
|
||||
import { click, doubleClick, render } from "@ember/test-helpers";
|
||||
import { hbs } from "ember-cli-htmlbars";
|
||||
import { default as ClassicComponent } from "@ember/component";
|
||||
import ClassicComponent from "@ember/component";
|
||||
|
||||
module("Unit | Lib | ember-action-modifer", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
@ -1,13 +1,13 @@
|
||||
/* eslint-disable ember/require-tagless-components */
|
||||
/* eslint-disable ember/no-classic-classes */
|
||||
/* eslint-disable ember/no-classic-components */
|
||||
|
||||
import { module, test } from "qunit";
|
||||
import { setupRenderingTest } from "ember-qunit";
|
||||
import { click, render } from "@ember/test-helpers";
|
||||
import { hbs } from "ember-cli-htmlbars";
|
||||
|
||||
/* eslint-disable ember/require-tagless-components */
|
||||
/* eslint-disable ember/no-classic-classes */
|
||||
/* eslint-disable ember/no-classic-components */
|
||||
import { default as ClassicComponent } from "@ember/component";
|
||||
import { default as GlimmerComponent } from "@glimmer/component";
|
||||
import ClassicComponent from "@ember/component";
|
||||
import GlimmerComponent from "@glimmer/component";
|
||||
import { action } from "@ember/object";
|
||||
|
||||
// Configure test-local Classic and Glimmer components that
|
||||
|
Loading…
Reference in New Issue
Block a user