FIX: Prettier on importing mixin (#8270)

This commit is contained in:
Mark VanLandingham
2019-10-30 15:13:48 -05:00
committed by GitHub
parent ba4b557114
commit ced3807b23
30 changed files with 30 additions and 30 deletions

View File

@ -1,6 +1,6 @@
import ModalFunctionality from "discourse/mixins/modal-functionality"; import ModalFunctionality from "discourse/mixins/modal-functionality";
import { popupAjaxError } from "discourse/lib/ajax-error"; import { popupAjaxError } from "discourse/lib/ajax-error";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create(ModalFunctionality, { export default Mixin.create(ModalFunctionality, {
reason: null, reason: null,

View File

@ -1,6 +1,6 @@
import DiscourseURL from "discourse/lib/url"; import DiscourseURL from "discourse/lib/url";
import computed from "ember-addons/ember-computed-decorators"; import computed from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
queryParams: ["period"], queryParams: ["period"],

View File

@ -1,6 +1,6 @@
import computed from "ember-addons/ember-computed-decorators"; import computed from "ember-addons/ember-computed-decorators";
import { categoryLinkHTML } from "discourse/helpers/category-link"; import { categoryLinkHTML } from "discourse/helpers/category-link";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
const CUSTOM_TYPES = [ const CUSTOM_TYPES = [
"bool", "bool",

View File

@ -1,5 +1,5 @@
import computed from "ember-addons/ember-computed-decorators"; import computed from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
@computed("value", "default") @computed("value", "default")

View File

@ -1,6 +1,6 @@
import { NotificationLevels } from "discourse/lib/notification-levels"; import { NotificationLevels } from "discourse/lib/notification-levels";
import { on } from "ember-addons/ember-computed-decorators"; import { on } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
bulkSelectEnabled: false, bulkSelectEnabled: false,

View File

@ -1,5 +1,5 @@
import { propertyEqual, setting } from "discourse/lib/computed"; import { propertyEqual, setting } from "discourse/lib/computed";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
isCurrentUser: propertyEqual("model.id", "currentUser.id"), isCurrentUser: propertyEqual("model.id", "currentUser.id"),

View File

@ -4,7 +4,7 @@ import { schedule } from "@ember/runloop";
import { wantsNewWindow } from "discourse/lib/intercept-click"; import { wantsNewWindow } from "discourse/lib/intercept-click";
import afterTransition from "discourse/lib/after-transition"; import afterTransition from "discourse/lib/after-transition";
import DiscourseURL from "discourse/lib/url"; import DiscourseURL from "discourse/lib/url";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
elementId: null, //click detection added for data-{elementId} elementId: null, //click detection added for data-{elementId}

View File

@ -1,4 +1,4 @@
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
// Include this mixin if you want to be notified when the dom should be // Include this mixin if you want to be notified when the dom should be
// cleaned (usually on route change.) // cleaned (usually on route change.)
export default Mixin.create({ export default Mixin.create({

View File

@ -1,4 +1,4 @@
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
import { debounce } from "@ember/runloop"; import { debounce } from "@ember/runloop";
const helper = { const helper = {

View File

@ -1,7 +1,7 @@
import computed from "ember-addons/ember-computed-decorators"; import computed from "ember-addons/ember-computed-decorators";
import UserBadge from "discourse/models/user-badge"; import UserBadge from "discourse/models/user-badge";
import { convertIconClass } from "discourse-common/lib/icon-library"; import { convertIconClass } from "discourse-common/lib/icon-library";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
@computed("allBadges.[]", "userBadges.[]") @computed("allBadges.[]", "userBadges.[]")

View File

@ -1,7 +1,7 @@
import Eyeline from "discourse/lib/eyeline"; import Eyeline from "discourse/lib/eyeline";
import Scrolling from "discourse/mixins/scrolling"; import Scrolling from "discourse/mixins/scrolling";
import { on } from "ember-addons/ember-computed-decorators"; import { on } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
// Provides the ability to load more items for a view which is scrolled to the bottom. // Provides the ability to load more items for a view which is scrolled to the bottom.
export default Mixin.create(Scrolling, { export default Mixin.create(Scrolling, {

View File

@ -1,5 +1,5 @@
import { debounce } from "@ember/runloop"; import { debounce } from "@ember/runloop";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
// Small buffer so that very tiny scrolls don't trigger mobile header switch // Small buffer so that very tiny scrolls don't trigger mobile header switch
const MOBILE_SCROLL_TOLERANCE = 5; const MOBILE_SCROLL_TOLERANCE = 5;

View File

@ -1,5 +1,5 @@
import showModal from "discourse/lib/show-modal"; import showModal from "discourse/lib/show-modal";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
flash(text, messageClass) { flash(text, messageClass) {

View File

@ -1,6 +1,6 @@
import InputValidation from "discourse/models/input-validation"; import InputValidation from "discourse/models/input-validation";
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
@computed() @computed()

View File

@ -1,6 +1,6 @@
// This mixin allows a route to open the composer // This mixin allows a route to open the composer
import Composer from "discourse/models/composer"; import Composer from "discourse/models/composer";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
openComposer(controller) { openComposer(controller) {

View File

@ -1,4 +1,4 @@
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
/** /**
Pan events is a mixin that allows components to detect and respond to swipe gestures Pan events is a mixin that allows components to detect and respond to swipe gestures
It fires callbacks for panStart, panEnd, panMove with the pan state, and the original event. It fires callbacks for panStart, panEnd, panMove with the pan state, and the original event.

View File

@ -1,6 +1,6 @@
import InputValidation from "discourse/models/input-validation"; import InputValidation from "discourse/models/input-validation";
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
rejectedPasswords: null, rejectedPasswords: null,

View File

@ -1,5 +1,5 @@
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
saved: false, saved: false,

View File

@ -1,7 +1,7 @@
import { scheduleOnce } from "@ember/runloop"; import { scheduleOnce } from "@ember/runloop";
import DiscourseURL from "discourse/lib/url"; import DiscourseURL from "discourse/lib/url";
import { deprecated } from "discourse/mixins/scroll-top"; import { deprecated } from "discourse/mixins/scroll-top";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
const context = { const context = {
_scrollTop() { _scrollTop() {

View File

@ -1,6 +1,6 @@
import { scheduleOnce } from "@ember/runloop"; import { scheduleOnce } from "@ember/runloop";
import debounce from "discourse/lib/debounce"; import debounce from "discourse/lib/debounce";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
/** /**
This object provides the DOM methods we need for our Mixin to bind to scrolling This object provides the DOM methods we need for our Mixin to bind to scrolling

View File

@ -45,7 +45,7 @@
``` ```
**/ **/
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
const Singleton = Mixin.create({ const Singleton = Mixin.create({
current() { current() {

View File

@ -4,7 +4,7 @@ import {
} from "discourse/lib/utilities"; } from "discourse/lib/utilities";
import getUrl from "discourse-common/lib/get-url"; import getUrl from "discourse-common/lib/get-url";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
uploading: false, uploading: false,

View File

@ -4,7 +4,7 @@ import {
on, on,
default as computed default as computed
} from "ember-addons/ember-computed-decorators"; } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
@on("init") @on("init")

View File

@ -2,7 +2,7 @@ import InputValidation from "discourse/models/input-validation";
import debounce from "discourse/lib/debounce"; import debounce from "discourse/lib/debounce";
import { setting } from "discourse/lib/computed"; import { setting } from "discourse/lib/computed";
import { default as computed } from "ember-addons/ember-computed-decorators"; import { default as computed } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
uniqueUsernameValidation: null, uniqueUsernameValidation: null,

View File

@ -1,6 +1,6 @@
import { CLOSE_STATUS_TYPE } from "discourse/controllers/edit-topic-timer"; import { CLOSE_STATUS_TYPE } from "discourse/controllers/edit-topic-timer";
import { timeframeDetails } from "select-kit/components/future-date-input-selector"; import { timeframeDetails } from "select-kit/components/future-date-input-selector";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
_computeIconsForValue(value) { _computeIconsForValue(value) {

View File

@ -1,7 +1,7 @@
import { next } from "@ember/runloop"; import { next } from "@ember/runloop";
import { schedule } from "@ember/runloop"; import { schedule } from "@ember/runloop";
import { on } from "ember-addons/ember-computed-decorators"; import { on } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
init() { init() {

View File

@ -1,7 +1,7 @@
import { throttle } from "@ember/runloop"; import { throttle } from "@ember/runloop";
import { schedule } from "@ember/runloop"; import { schedule } from "@ember/runloop";
import { on } from "ember-addons/ember-computed-decorators"; import { on } from "ember-addons/ember-computed-decorators";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
const { bind } = Ember.run; const { bind } = Ember.run;

View File

@ -1,4 +1,4 @@
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
let _appendContentCallbacks = {}; let _appendContentCallbacks = {};
function appendContent(pluginApiIdentifiers, contentFunction) { function appendContent(pluginApiIdentifiers, contentFunction) {

View File

@ -1,7 +1,7 @@
const { run, get } = Ember; const { run, get } = Ember;
import { ajax } from "discourse/lib/ajax"; import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error"; import { popupAjaxError } from "discourse/lib/ajax-error";
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
export default Mixin.create({ export default Mixin.create({
willDestroyElement() { willDestroyElement() {

View File

@ -1,4 +1,4 @@
import Mixin from '@ember/object/mixin'; import Mixin from "@ember/object/mixin";
const { get, isNone, guidFor } = Ember; const { get, isNone, guidFor } = Ember;
export default Mixin.create({ export default Mixin.create({