mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 02:43:08 -05:00
DEV: Sort imports alphabetically (#11382)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import I18n from "I18n";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import PermissionType from "discourse/models/permission-type";
|
||||
import Category from "discourse/models/category";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { computed, set } from "@ember/object";
|
||||
import Category from "discourse/models/category";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import I18n from "I18n";
|
||||
import PermissionType from "discourse/models/permission-type";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { isNone } from "@ember/utils";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import I18n from "I18n";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import { computed } from "@ember/object";
|
||||
import Category from "discourse/models/category";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import Category from "discourse/models/category";
|
||||
import I18n from "I18n";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { computed } from "@ember/object";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export const NO_CATEGORIES_ID = "no-categories";
|
||||
export const ALL_CATEGORIES_ID = "all-categories";
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import ComboBoxSelectBoxHeaderComponent from "select-kit/components/combo-box/combo-box-header";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import layout from "select-kit/templates/components/category-drop/category-drop-header";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import { schedule } from "@ember/runloop";
|
||||
|
||||
export default ComboBoxSelectBoxHeaderComponent.extend({
|
||||
layout,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { or } from "@ember/object/computed";
|
||||
import NotificationOptionsComponent from "select-kit/components/notifications-button";
|
||||
import { or } from "@ember/object/computed";
|
||||
|
||||
export default NotificationOptionsComponent.extend({
|
||||
pluginApiIdentifiers: ["category-notifications-button"],
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { reads, bool } from "@ember/object/computed";
|
||||
import SelectKitRowComponent from "select-kit/components/select-kit/select-kit-row";
|
||||
import Category from "discourse/models/category";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { bool, reads } from "@ember/object/computed";
|
||||
import { isEmpty, isNone } from "@ember/utils";
|
||||
import Category from "discourse/models/category";
|
||||
import SelectKitRowComponent from "select-kit/components/select-kit/select-kit-row";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { computed } from "@ember/object";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
import layout from "select-kit/templates/components/category-row";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
|
||||
function htmlToText(encodedString) {
|
||||
const elem = document.createElement("textarea");
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import I18n from "I18n";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import EmberObject, { get, computed } from "@ember/object";
|
||||
import { mapBy } from "@ember/object/computed";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import EmberObject, { computed, get } from "@ember/object";
|
||||
import Category from "discourse/models/category";
|
||||
import I18n from "I18n";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { categoryBadgeHTML } from "discourse/helpers/category-link";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { mapBy } from "@ember/object/computed";
|
||||
|
||||
export default MultiSelectComponent.extend({
|
||||
pluginApiIdentifiers: ["category-selector"],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default ComboBoxComponent.extend({
|
||||
pluginApiIdentifiers: ["color-palettes"],
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import SelectKitRowComponent from "select-kit/components/select-kit/select-kit-row";
|
||||
import { computed } from "@ember/object";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import layout from "select-kit/templates/components/color-palettes/color-palettes-row";
|
||||
|
||||
export default SelectKitRowComponent.extend({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { reads, and } from "@ember/object/computed";
|
||||
import { and, reads } from "@ember/object/computed";
|
||||
import SingleSelectHeaderComponent from "select-kit/components/select-kit/single-select-header";
|
||||
import { computed } from "@ember/object";
|
||||
import layout from "select-kit/templates/components/combo-box/combo-box-header";
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import {
|
||||
PRIVATE_MESSAGE,
|
||||
CREATE_TOPIC,
|
||||
CREATE_SHARED_DRAFT,
|
||||
REPLY,
|
||||
CREATE_TOPIC,
|
||||
EDIT,
|
||||
PRIVATE_MESSAGE,
|
||||
REPLY,
|
||||
} from "discourse/models/composer";
|
||||
import Draft from "discourse/models/draft";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
import bootbox from "bootbox";
|
||||
import { camelize } from "@ember/string";
|
||||
import { computed } from "@ember/object";
|
||||
import { equal } from "@ember/object/computed";
|
||||
import { camelize } from "@ember/string";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import bootbox from "bootbox";
|
||||
|
||||
// Component can get destroyed and lose state
|
||||
let _topicSnapshot = null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import SelectKitRowComponent from "select-kit/components/select-kit/select-kit-row";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import layout from "select-kit/templates/components/create-color-row";
|
||||
import { schedule } from "@ember/runloop";
|
||||
|
||||
export default SelectKitRowComponent.extend({
|
||||
layout,
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import SingleSelectHeaderComponent from "select-kit/components/select-kit/single-select-header";
|
||||
import { computed } from "@ember/object";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import layout from "select-kit/templates/components/dropdown-select-box/dropdown-select-box-header";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export default SingleSelectHeaderComponent.extend({
|
||||
layout,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import SelectKitRowComponent from "select-kit/components/select-kit/select-kit-row";
|
||||
import layout from "select-kit/templates/components/dropdown-select-box/dropdown-select-box-row";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export default SelectKitRowComponent.extend({
|
||||
layout,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { CLOSE_STATUS_TYPE } from "discourse/controllers/edit-topic-timer";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import DatetimeMixin from "select-kit/components/future-date-input-selector/mixin";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { equal } from "@ember/object/computed";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import { CLOSE_STATUS_TYPE } from "discourse/controllers/edit-topic-timer";
|
||||
import DatetimeMixin from "select-kit/components/future-date-input-selector/mixin";
|
||||
|
||||
const TIMEFRAME_BASE = {
|
||||
enabled: () => true,
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
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 { isNone } from "@ember/utils";
|
||||
import { timeframeDetails } from "select-kit/components/future-date-input-selector";
|
||||
|
||||
export default Mixin.create({
|
||||
_computeIconsForValue(value) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import I18n from "I18n";
|
||||
import { reads, gte } from "@ember/object/computed";
|
||||
import { gte, reads } from "@ember/object/computed";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import { action, computed } from "@ember/object";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
classNames: ["group-members-dropdown"],
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { computed } from "@ember/object";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import {
|
||||
convertIconClass,
|
||||
disableMissingIconWarning,
|
||||
enableMissingIconWarning,
|
||||
} from "discourse-common/lib/icon-library";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { computed } from "@ember/object";
|
||||
import { isDevelopment } from "discourse-common/config/environment";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default MultiSelectComponent.extend({
|
||||
pluginApiIdentifiers: ["icon-picker"],
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { MAIN_COLLECTION } from "select-kit/components/select-kit";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { computed } from "@ember/object";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export default MultiSelectComponent.extend({
|
||||
pluginApiIdentifiers: ["list-setting"],
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import I18n from "I18n";
|
||||
import { empty, or } from "@ember/object/computed";
|
||||
import ComboBox from "select-kit/components/combo-box";
|
||||
import { ERRORS_COLLECTION } from "select-kit/components/select-kit";
|
||||
import I18n from "I18n";
|
||||
import TagsMixin from "select-kit/mixins/tags";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { computed } from "@ember/object";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
const SELECTED_TAGS_COLLECTION = "MINI_TAG_CHOOSER_SELECTED_TAGS";
|
||||
import { ERRORS_COLLECTION } from "select-kit/components/select-kit";
|
||||
import { setting } from "discourse/lib/computed";
|
||||
|
||||
export default ComboBox.extend(TagsMixin, {
|
||||
pluginApiIdentifiers: ["mini-tag-chooser"],
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { empty, reads } from "@ember/object/computed";
|
||||
import Component from "@ember/component";
|
||||
import { computed } from "@ember/object";
|
||||
import { reads, empty } from "@ember/object/computed";
|
||||
import layout from "select-kit/templates/components/mini-tag-chooser/selected-collection";
|
||||
|
||||
export default Component.extend({
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import SelectKitComponent from "select-kit/components/select-kit";
|
||||
import { computed } from "@ember/object";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import { isPresent } from "@ember/utils";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import layout from "select-kit/templates/components/multi-select";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default SelectKitComponent.extend({
|
||||
pluginApiIdentifiers: ["multi-select"],
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import I18n from "I18n";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
const { isEmpty } = Ember;
|
||||
import SelectKitFilterComponent from "select-kit/components/select-kit/select-kit-filter";
|
||||
const { isEmpty } = Ember;
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import layout from "select-kit/templates/components/select-kit/select-kit-filter";
|
||||
|
||||
export default SelectKitFilterComponent.extend({
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
||||
import { computed } from "@ember/object";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import layout from "select-kit/templates/components/multi-select/multi-select-header";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default SelectKitHeaderComponent.extend({
|
||||
classNames: ["multi-select-header"],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import { allLevels, buttonDetails } from "discourse/lib/notification-levels";
|
||||
import { computed, setProperties } from "@ember/object";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
pluginApiIdentifiers: ["notifications-button"],
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import I18n from "I18n";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
import { computed } from "@ember/object";
|
||||
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export default DropdownSelectBoxRowComponent.extend({
|
||||
classNames: ["notifications-button-row"],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
||||
import I18n from "I18n";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import layout from "select-kit/templates/components/period-chooser/period-chooser-row";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import layout from "select-kit/templates/components/pinned-button";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import I18n from "I18n";
|
||||
import { action, computed } from "@ember/object";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import { computed, action } from "@ember/object";
|
||||
import I18n from "I18n";
|
||||
|
||||
const UNPINNED = "unpinned";
|
||||
const PINNED = "pinned";
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
import { createPopper } from "@popperjs/core";
|
||||
import I18n from "I18n";
|
||||
import EmberObject, { computed, get } from "@ember/object";
|
||||
import { guidFor } from "@ember/object/internals";
|
||||
import Component from "@ember/component";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import Mixin from "@ember/object/mixin";
|
||||
import { isPresent, isEmpty, isNone } from "@ember/utils";
|
||||
import {
|
||||
next,
|
||||
debounce,
|
||||
cancel,
|
||||
throttle,
|
||||
bind,
|
||||
schedule,
|
||||
} from "@ember/runloop";
|
||||
import { Promise } from "rsvp";
|
||||
import PluginApiMixin, {
|
||||
applyContentPluginApiCallbacks,
|
||||
applyOnChangePluginApiCallbacks,
|
||||
} from "select-kit/mixins/plugin-api";
|
||||
import {
|
||||
bind,
|
||||
cancel,
|
||||
debounce,
|
||||
next,
|
||||
schedule,
|
||||
throttle,
|
||||
} from "@ember/runloop";
|
||||
import { isEmpty, isNone, isPresent } from "@ember/utils";
|
||||
import Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import Mixin from "@ember/object/mixin";
|
||||
import { Promise } from "rsvp";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import { createPopper } from "@popperjs/core";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import { guidFor } from "@ember/object/internals";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export const MAIN_COLLECTION = "MAIN_COLLECTION";
|
||||
export const ERRORS_COLLECTION = "ERRORS_COLLECTION";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Component from "@ember/component";
|
||||
import { computed } from "@ember/object";
|
||||
import { bind } from "@ember/runloop";
|
||||
import { computed } from "@ember/object";
|
||||
import layout from "select-kit/templates/components/select-kit/select-kit-body";
|
||||
|
||||
export default Component.extend({
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import I18n from "I18n";
|
||||
import Component from "@ember/component";
|
||||
import I18n from "I18n";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import { computed } from "@ember/object";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
import { isPresent } from "@ember/utils";
|
||||
import { computed } from "@ember/object";
|
||||
import { not } from "@ember/object/computed";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import layout from "select-kit/templates/components/select-kit/select-kit-filter";
|
||||
import { not } from "@ember/object/computed";
|
||||
|
||||
export default Component.extend(UtilsMixin, {
|
||||
layout,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { computed } from "@ember/object";
|
||||
import Component from "@ember/component";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { computed } from "@ember/object";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { schedule } from "@ember/runloop";
|
||||
|
||||
export default Component.extend(UtilsMixin, {
|
||||
eventType: "click",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import I18n from "I18n";
|
||||
import { action, computed } from "@ember/object";
|
||||
import Component from "@ember/component";
|
||||
import { computed, action } from "@ember/object";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { guidFor } from "@ember/object/internals";
|
||||
import I18n from "I18n";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import { guidFor } from "@ember/object/internals";
|
||||
import layout from "select-kit/templates/components/select-kit/select-kit-row";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default Component.extend(UtilsMixin, {
|
||||
layout,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { computed, get, action } from "@ember/object";
|
||||
import { action, computed, get } from "@ember/object";
|
||||
import Component from "@ember/component";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import UtilsMixin from "select-kit/mixins/utils";
|
||||
import layout from "select-kit/templates/components/selected-name";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default Component.extend(UtilsMixin, {
|
||||
tagName: "",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { computed } from "@ember/object";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import TagsMixin from "select-kit/mixins/tags";
|
||||
import { computed } from "@ember/object";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default MultiSelectComponent.extend(TagsMixin, {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import Category from "discourse/models/category";
|
||||
import { readOnly, or, equal, gte } from "@ember/object/computed";
|
||||
import { equal, gte, or, readOnly } from "@ember/object/computed";
|
||||
import { i18n, setting } from "discourse/lib/computed";
|
||||
import Category from "discourse/models/category";
|
||||
import ComboBoxComponent from "select-kit/components/combo-box";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import TagsMixin from "select-kit/mixins/tags";
|
||||
import { computed } from "@ember/object";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import TagsMixin from "select-kit/mixins/tags";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { computed } from "@ember/object";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default MultiSelectComponent.extend(TagsMixin, {
|
||||
pluginApiIdentifiers: ["tag-group-chooser"],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
|
||||
export default DropdownSelectBoxComponent.extend({
|
||||
pluginApiIdentifiers: ["toolbar-popup-menu-options"],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Component from "@ember/component";
|
||||
import { action, computed } from "@ember/object";
|
||||
import Component from "@ember/component";
|
||||
import layout from "select-kit/templates/components/topic-notifications-button";
|
||||
|
||||
export default Component.extend({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import NotificationsButtonComponent from "select-kit/components/notifications-button";
|
||||
import { topicLevels } from "discourse/lib/notification-levels";
|
||||
import { computed } from "@ember/object";
|
||||
import { topicLevels } from "discourse/lib/notification-levels";
|
||||
|
||||
export default NotificationsButtonComponent.extend({
|
||||
pluginApiIdentifiers: ["topic-notifications-options"],
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import userSearch, {
|
||||
eagerCompleteSearch,
|
||||
skipSearch,
|
||||
} from "discourse/lib/user-search";
|
||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||
import { computed } from "@ember/object";
|
||||
import userSearch, {
|
||||
skipSearch,
|
||||
eagerCompleteSearch,
|
||||
} from "discourse/lib/user-search";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
|
||||
export default MultiSelectComponent.extend({
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import I18n from "I18n";
|
||||
import DropdownSelectBox from "select-kit/components/dropdown-select-box";
|
||||
import I18n from "I18n";
|
||||
import { computed } from "@ember/object";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
import { computed } from "@ember/object";
|
||||
|
||||
export default DropdownSelectBox.extend({
|
||||
classNames: ["user-notifications", "user-notifications-dropdown"],
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import I18n from "I18n";
|
||||
import { reads } from "@ember/object/computed";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import Mixin from "@ember/object/mixin";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { makeArray } from "discourse-common/lib/helpers";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { reads } from "@ember/object/computed";
|
||||
|
||||
export default Mixin.create({
|
||||
searchTags(url, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user