mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Prettier on importing mixin (#8270)
This commit is contained in:
parent
ba4b557114
commit
ced3807b23
@ -1,6 +1,6 @@
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create(ModalFunctionality, {
|
||||
reason: null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
queryParams: ["period"],
|
||||
|
@ -1,6 +1,6 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
const CUSTOM_TYPES = [
|
||||
"bool",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
@computed("value", "default")
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { NotificationLevels } from "discourse/lib/notification-levels";
|
||||
import { on } from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
bulkSelectEnabled: false,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { propertyEqual, setting } from "discourse/lib/computed";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
isCurrentUser: propertyEqual("model.id", "currentUser.id"),
|
||||
|
@ -4,7 +4,7 @@ import { schedule } from "@ember/runloop";
|
||||
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
||||
import afterTransition from "discourse/lib/after-transition";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
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
|
||||
// cleaned (usually on route change.)
|
||||
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";
|
||||
|
||||
const helper = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import UserBadge from "discourse/models/user-badge";
|
||||
import { convertIconClass } from "discourse-common/lib/icon-library";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
@computed("allBadges.[]", "userBadges.[]")
|
||||
|
@ -1,7 +1,7 @@
|
||||
import Eyeline from "discourse/lib/eyeline";
|
||||
import Scrolling from "discourse/mixins/scrolling";
|
||||
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.
|
||||
export default Mixin.create(Scrolling, {
|
||||
|
@ -1,5 +1,5 @@
|
||||
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
|
||||
const MOBILE_SCROLL_TOLERANCE = 5;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
flash(text, messageClass) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import InputValidation from "discourse/models/input-validation";
|
||||
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({
|
||||
@computed()
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This mixin allows a route to open the composer
|
||||
import Composer from "discourse/models/composer";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
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
|
||||
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 { 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({
|
||||
rejectedPasswords: null,
|
||||
|
@ -1,5 +1,5 @@
|
||||
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({
|
||||
saved: false,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { scheduleOnce } from "@ember/runloop";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import { deprecated } from "discourse/mixins/scroll-top";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
const context = {
|
||||
_scrollTop() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { scheduleOnce } from "@ember/runloop";
|
||||
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
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
```
|
||||
**/
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
const Singleton = Mixin.create({
|
||||
current() {
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
} from "discourse/lib/utilities";
|
||||
|
||||
import getUrl from "discourse-common/lib/get-url";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
uploading: false,
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
on,
|
||||
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({
|
||||
@on("init")
|
||||
|
@ -2,7 +2,7 @@ import InputValidation from "discourse/models/input-validation";
|
||||
import debounce from "discourse/lib/debounce";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
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({
|
||||
uniqueUsernameValidation: null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { CLOSE_STATUS_TYPE } from "discourse/controllers/edit-topic-timer";
|
||||
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({
|
||||
_computeIconsForValue(value) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { next } from "@ember/runloop";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { on } from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
init() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { throttle } from "@ember/runloop";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { on } from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
const { bind } = Ember.run;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
let _appendContentCallbacks = {};
|
||||
function appendContent(pluginApiIdentifiers, contentFunction) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
const { run, get } = Ember;
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
|
||||
export default Mixin.create({
|
||||
willDestroyElement() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import Mixin from "@ember/object/mixin";
|
||||
const { get, isNone, guidFor } = Ember;
|
||||
|
||||
export default Mixin.create({
|
||||
|
Loading…
x
Reference in New Issue
Block a user