mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FIX: Prettier on importing mixin (#8270)
This commit is contained in:

committed by
GitHub

parent
ba4b557114
commit
ced3807b23
@ -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,
|
||||||
|
@ -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"],
|
||||||
|
@ -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",
|
||||||
|
@ -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")
|
||||||
|
@ -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,
|
||||||
|
@ -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"),
|
||||||
|
@ -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}
|
||||||
|
@ -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({
|
||||||
|
@ -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 = {
|
||||||
|
@ -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.[]")
|
||||||
|
@ -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, {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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()
|
||||||
|
@ -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) {
|
||||||
|
@ -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.
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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() {
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
@ -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,
|
||||||
|
@ -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")
|
||||||
|
@ -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,
|
||||||
|
@ -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) {
|
||||||
|
@ -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() {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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() {
|
||||||
|
@ -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({
|
||||||
|
Reference in New Issue
Block a user