DEV: Sort imports

Automatically generated by `eslint --fix` to satisfy the updated configuration
This commit is contained in:
David Taylor 2023-10-10 19:38:59 +01:00
parent ee0fef489f
commit 48193767bf
1758 changed files with 5434 additions and 5502 deletions

View File

@ -1,11 +1,11 @@
import Component from "@ember/component";
import { action } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import { observes, on } from "@ember-decorators/object";
import Component from "@ember/component";
import getURL from "discourse-common/lib/get-url";
import loadScript from "discourse/lib/load-script";
import I18n from "I18n";
import getURL from "discourse-common/lib/get-url";
import { bind } from "discourse-common/utils/decorators";
import I18n from "I18n";
const COLOR_VARS_REGEX =
/\$(primary|secondary|tertiary|quaternary|header_background|header_primary|highlight|danger|success|love)(\s|;|-(low|medium|high))/g;

View File

@ -1,9 +1,9 @@
import Component from "@ember/component";
import { scheduleOnce } from "@ember/runloop";
import { classNames } from "@ember-decorators/component";
import { observes, on } from "@ember-decorators/object";
import Component from "@ember/component";
import I18n from "I18n";
import discourseDebounce from "discourse-common/lib/debounce";
import { scheduleOnce } from "@ember/runloop";
import I18n from "I18n";
@classNames("admin-backups-logs")
export default class AdminBackupsLogs extends Component {

View File

@ -1,6 +1,6 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { action } from "@ember/object";
import { tagName } from "@ember-decorators/component";
@tagName("")
export default class AdminEditableField extends Component {

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames } from "@ember-decorators/component";
@classNames("row")
export default class AdminFormRow extends Component {}

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
import loadScript from "discourse/lib/load-script";
@tagName("canvas")

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("")
export default class AdminNav extends Component {

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
@classNames("penalty-history")

View File

@ -1,6 +1,6 @@
import Component from "@ember/component";
import { action } from "@ember/object";
import { equal } from "@ember/object/computed";
import Component from "@ember/component";
import discourseComputed, {
afterRender,
} from "discourse-common/utils/decorators";

View File

@ -1,7 +1,7 @@
import { tagName } from "@ember-decorators/component";
import { equal } from "@ember/object/computed";
import Component from "@ember/component";
import { action } from "@ember/object";
import { equal } from "@ember/object/computed";
import { tagName } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";

View File

@ -1,6 +1,6 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { action } from "@ember/object";
import { tagName } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
@tagName("")

View File

@ -1,12 +1,12 @@
import { classNames } from "@ember-decorators/component";
import Report from "admin/models/report";
import Component from "@ember/component";
import discourseDebounce from "discourse-common/lib/debounce";
import loadScript from "discourse/lib/load-script";
import { makeArray } from "discourse-common/lib/helpers";
import { number } from "discourse/lib/formatter";
import { schedule } from "@ember/runloop";
import { classNames } from "@ember-decorators/component";
import { number } from "discourse/lib/formatter";
import loadScript from "discourse/lib/load-script";
import discourseDebounce from "discourse-common/lib/debounce";
import { makeArray } from "discourse-common/lib/helpers";
import { bind } from "discourse-common/utils/decorators";
import Report from "admin/models/report";
@classNames("admin-report-chart")
export default class AdminReportChart extends Component {

View File

@ -1,5 +1,5 @@
import { attributeBindings, classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { attributeBindings, classNames } from "@ember-decorators/component";
@classNames("admin-report-counters")
@attributeBindings("model.description:title")

View File

@ -1,6 +1,6 @@
import { classNameBindings, tagName } from "@ember-decorators/component";
import { match } from "@ember/object/computed";
import Component from "@ember/component";
import { match } from "@ember/object/computed";
import { classNameBindings, tagName } from "@ember-decorators/component";
@tagName("tr")
@classNameBindings("reverseColors")

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames } from "@ember-decorators/component";
@classNames("admin-report-inline-table")
export default class AdminReportInlineTable extends Component {}

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("tr")
export default class AdminReportPerDayCounts extends Component {}

View File

@ -1,12 +1,12 @@
import { classNames } from "@ember-decorators/component";
import Report from "admin/models/report";
import Component from "@ember/component";
import discourseDebounce from "discourse-common/lib/debounce";
import loadScript from "discourse/lib/load-script";
import { makeArray } from "discourse-common/lib/helpers";
import { number } from "discourse/lib/formatter";
import { schedule } from "@ember/runloop";
import { classNames } from "@ember-decorators/component";
import { number } from "discourse/lib/formatter";
import loadScript from "discourse/lib/load-script";
import discourseDebounce from "discourse-common/lib/debounce";
import { makeArray } from "discourse-common/lib/helpers";
import { bind } from "discourse-common/utils/decorators";
import Report from "admin/models/report";
@classNames("admin-report-chart", "admin-report-stacked-chart")
export default class AdminReportStackedChart extends Component {

View File

@ -1,9 +1,9 @@
import { classNames } from "@ember-decorators/component";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { alias } from "@ember/object/computed";
import { classNames } from "@ember-decorators/component";
import { setting } from "discourse/lib/computed";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
@classNames("admin-report-storage-stats")
export default class AdminReportStorageStats extends Component {

View File

@ -1,11 +1,11 @@
import Component from "@ember/component";
import { alias } from "@ember/object/computed";
import {
attributeBindings,
classNameBindings,
classNames,
tagName,
} from "@ember-decorators/component";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
@tagName("td")

View File

@ -1,10 +1,10 @@
import Component from "@ember/component";
import {
attributeBindings,
classNameBindings,
classNames,
tagName,
} from "@ember-decorators/component";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
@tagName("th")

View File

@ -1,5 +1,5 @@
import { classNames, tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames, tagName } from "@ember-decorators/component";
@tagName("tr")
@classNames("admin-report-table-row")

View File

@ -1,9 +1,9 @@
import { action } from "@ember/object";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
import { action } from "@ember/object";
import { alias } from "@ember/object/computed";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { makeArray } from "discourse-common/lib/helpers";
import discourseComputed from "discourse-common/utils/decorators";
const PAGES_LIMIT = 8;

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("tr")
export default class AdminReportTrustLevelCounts extends Component {}

View File

@ -1,17 +1,17 @@
import { classNameBindings, classNames } from "@ember-decorators/component";
import { alias, and, equal, notEmpty, or } from "@ember/object/computed";
import EmberObject, { action, computed } from "@ember/object";
import Report, { DAILY_LIMIT_DAYS, SCHEMA_VERSION } from "admin/models/report";
import Component from "@ember/component";
import I18n from "I18n";
import ReportLoader from "discourse/lib/reports-loader";
import discourseComputed from "discourse-common/utils/decorators";
import { exportEntity } from "discourse/lib/export-csv";
import EmberObject, { action, computed } from "@ember/object";
import { alias, and, equal, notEmpty, or } from "@ember/object/computed";
import { next } from "@ember/runloop";
import { isPresent } from "@ember/utils";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { exportEntity } from "discourse/lib/export-csv";
import { outputExportResult } from "discourse/lib/export-result";
import ReportLoader from "discourse/lib/reports-loader";
import { isTesting } from "discourse-common/config/environment";
import { makeArray } from "discourse-common/lib/helpers";
import { next } from "@ember/runloop";
import { outputExportResult } from "discourse/lib/export-result";
import discourseComputed from "discourse-common/utils/decorators";
import Report, { DAILY_LIMIT_DAYS, SCHEMA_VERSION } from "admin/models/report";
import I18n from "I18n";
const TABLE_OPTIONS = {
perPage: 8,

View File

@ -1,10 +1,10 @@
import Component from "@ember/component";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { fmt } from "discourse/lib/computed";
import { isDocumentRTL } from "discourse/lib/text-direction";
import { action, computed } from "@ember/object";
import { next } from "@ember/runloop";
import { fmt } from "discourse/lib/computed";
import { isDocumentRTL } from "discourse/lib/text-direction";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class AdminThemeEditor extends Component {
warning = null;

View File

@ -1,13 +1,13 @@
import discourseComputed from "discourse-common/utils/decorators";
import { i18n, propertyEqual } from "discourse/lib/computed";
import Component from "@ember/component";
import I18n from "I18n";
import UserField from "admin/models/user-field";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import { action } from "@ember/object";
import { schedule } from "@ember/runloop";
import { isEmpty } from "@ember/utils";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { schedule } from "@ember/runloop";
import { action } from "@ember/object";
import { i18n, propertyEqual } from "discourse/lib/computed";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import discourseComputed from "discourse-common/utils/decorators";
import UserField from "admin/models/user-field";
import I18n from "I18n";
export default Component.extend(bufferedProperty("userField"), {
tagName: "",

View File

@ -1,9 +1,9 @@
import { classNames } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import { alias, equal } from "@ember/object/computed";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
import { action } from "@ember/object";
import { alias, equal } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import { classNames } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
@classNames("watched-word")

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("")
export default class CancelLink extends Component {}

View File

@ -1,6 +1,6 @@
import { classNames } from "@ember-decorators/component";
import { action, computed } from "@ember/object";
import Component from "@ember/component";
import { action, computed } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import { observes } from "@ember-decorators/object";
/**

View File

@ -1,6 +1,6 @@
import { classNameBindings, classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { action, computed } from "@ember/object";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { ajax } from "discourse/lib/ajax";
@classNames("section", "dashboard-new-features")

View File

@ -1,9 +1,9 @@
import { action, computed } from "@ember/object";
import { inject as service } from "@ember/service";
import { reads } from "@ember/object/computed";
import Component from "@ember/component";
import I18n from "I18n";
import { action, computed } from "@ember/object";
import { reads } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class EmailStylesEditor extends Component {
@service dialog;

View File

@ -1,14 +1,14 @@
import { action } from "@ember/object";
import { tagName } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import { or } from "@ember/object/computed";
import Category from "discourse/models/category";
import Component from "@ember/component";
import I18n from "I18n";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import discourseComputed from "discourse-common/utils/decorators";
import { action } from "@ember/object";
import { or } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import { isEmpty } from "@ember/utils";
import { tagName } from "@ember-decorators/component";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import Category from "discourse/models/category";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
@tagName("tr")
export default class EmbeddableHost extends Component.extend(

View File

@ -1,8 +1,8 @@
import { classNames } from "@ember-decorators/component";
import { computed } from "@ember/object";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
import { computed } from "@ember/object";
import { dasherize } from "@ember/string";
import { classNames } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
@classNames("embed-setting")
export default class EmbeddingSetting extends Component {

View File

@ -1,11 +1,11 @@
import { classNameBindings } from "@ember-decorators/component";
import Component from "@ember/component";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { emojiUrlFor } from "discourse/lib/text";
import { action, set, setProperties } from "@ember/object";
import { schedule } from "@ember/runloop";
import { classNameBindings } from "@ember-decorators/component";
import { emojiUrlFor } from "discourse/lib/text";
import discourseLater from "discourse-common/lib/later";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
@classNameBindings(":value-list", ":emoji-list")
export default class EmojiValueList extends Component {

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames } from "@ember-decorators/component";
@classNames("flag-user-lists")
export default class FlagUserLists extends Component {}

View File

@ -1,12 +1,12 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { tracked } from "@glimmer/tracking";
import I18n from "I18n";
import { popupAjaxError } from "discourse/lib/ajax-error";
import FormTemplateValidationOptionsModal from "admin/components/modal/form-template-validation-options";
import { templateFormFields } from "admin/lib/template-form-fields";
import FormTemplate from "admin/models/form-template";
import FormTemplateValidationOptionsModal from "admin/components/modal/form-template-validation-options";
import I18n from "I18n";
export default class FormTemplateForm extends Component {
@service router;

View File

@ -1,5 +1,5 @@
import { observes, on } from "@ember-decorators/object";
import Component from "@ember/component";
import { observes, on } from "@ember-decorators/object";
import highlightSyntax from "discourse/lib/highlight-syntax";
export default class HighlightedCode extends Component {

View File

@ -1,6 +1,6 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { action } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
@classNames("inline-edit")

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import { classNames } from "@ember-decorators/component";
@classNames("install-theme-item")
export default class InstallThemeItem extends Component {}

View File

@ -1,14 +1,14 @@
import { classNames } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import AdminUser from "admin/models/admin-user";
import Component from "@ember/component";
import EmberObject, { action } from "@ember/object";
import I18n from "I18n";
import { inject as service } from "@ember/service";
import { classNames } from "@ember-decorators/component";
import { ajax } from "discourse/lib/ajax";
import copyText from "discourse/lib/copy-text";
import discourseComputed from "discourse-common/utils/decorators";
import discourseLater from "discourse-common/lib/later";
import { popupAjaxError } from "discourse/lib/ajax-error";
import copyText from "discourse/lib/copy-text";
import discourseLater from "discourse-common/lib/later";
import discourseComputed from "discourse-common/utils/decorators";
import AdminUser from "admin/models/admin-user";
import I18n from "I18n";
@classNames("ip-lookup")
export default class IpLookup extends Component {

View File

@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import I18n from "I18n";
import { escapeExpression } from "discourse/lib/utilities";
import I18n from "I18n";
export default class BadgePreview extends Component {
get processedSample() {

View File

@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class ColorSchemeSelectBase extends Component {
@tracked

View File

@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class CustomDateRange extends Component {
@tracked startDate = this.args.model.startDate;

View File

@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import AdminUser from "admin/models/admin-user";
import { action } from "@ember/object";
import { extractError } from "discourse/lib/ajax-error";
import AdminUser from "admin/models/admin-user";
import I18n from "I18n";
export default class DeleteUserPostsProgress extends Component {

View File

@ -1,11 +1,11 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { inject as service } from "@ember/service";
import { action } from "@ember/object";
import I18n from "I18n";
import { A } from "@ember/array";
import { ajax } from "discourse/lib/ajax";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { TrackedArray } from "@ember-compat/tracked-built-ins";
import { ajax } from "discourse/lib/ajax";
import I18n from "I18n";
export default class EditBadgeGroupings extends Component {
@service dialog;

View File

@ -1,12 +1,12 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { COMPONENTS, THEMES } from "admin/models/theme";
import { POPULAR_THEMES } from "discourse-common/lib/popular-themes";
import { ajax } from "discourse/lib/ajax";
import I18n from "I18n";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { POPULAR_THEMES } from "discourse-common/lib/popular-themes";
import { COMPONENTS, THEMES } from "admin/models/theme";
import I18n from "I18n";
const MIN_NAME_LENGTH = 4;

View File

@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { inject as service } from "@ember/service";
import { bind } from "discourse-common/utils/decorators";
import DiscourseURL from "discourse/lib/url";
import { bind } from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class MergeUsersProgress extends Component {

View File

@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { isEmpty } from "@ember/utils";
import { inject as service } from "@ember/service";
import { isEmpty } from "@ember/utils";
import { extractError } from "discourse/lib/ajax-error";
import I18n from "I18n";

View File

@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import I18n from "I18n";
import { ajax } from "discourse/lib/ajax";
import { tracked } from "@glimmer/tracking";
import I18n from "I18n";
export default class Reseed extends Component {
@service dialog;

View File

@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import I18n from "I18n";

View File

@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class UploadedImageList extends Component {
@tracked

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("tr")
export default class ModerationHistoryItem extends Component {}

View File

@ -1,12 +1,12 @@
import { tagName } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import Component from "@ember/component";
import I18n from "I18n";
import Permalink from "admin/models/permalink";
import discourseComputed, { bind } from "discourse-common/utils/decorators";
import { fmt } from "discourse/lib/computed";
import { schedule } from "@ember/runloop";
import { action } from "@ember/object";
import { schedule } from "@ember/runloop";
import { inject as service } from "@ember/service";
import { tagName } from "@ember-decorators/component";
import { fmt } from "discourse/lib/computed";
import discourseComputed, { bind } from "discourse-common/utils/decorators";
import Permalink from "admin/models/permalink";
import I18n from "I18n";
@tagName("")
export default class PermalinkForm extends Component {

View File

@ -1,5 +1,5 @@
import FilterComponent from "admin/components/report-filters/filter";
import { action } from "@ember/object";
import FilterComponent from "admin/components/report-filters/filter";
export default class Bool extends FilterComponent {
checked = false;

View File

@ -1,6 +1,6 @@
import { action } from "@ember/object";
import { readOnly } from "@ember/object/computed";
import FilterComponent from "admin/components/report-filters/filter";
import { action } from "@ember/object";
export default class Category extends FilterComponent {
@readOnly("filter.default") category;

View File

@ -1,5 +1,5 @@
import { classNames } from "@ember-decorators/component";
import { computed } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import FilterComponent from "admin/components/report-filters/filter";
@classNames("group-filter")

View File

@ -1,11 +1,11 @@
import { action } from "@ember/object";
import { classNames, tagName } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";
import Component from "@ember/component";
import I18n from "I18n";
import ScreenedIpAddress from "admin/models/screened-ip-address";
import { action } from "@ember/object";
import { schedule } from "@ember/runloop";
import { inject as service } from "@ember/service";
import { classNames, tagName } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
import ScreenedIpAddress from "admin/models/screened-ip-address";
import I18n from "I18n";
/**
A form to create an IP address that will be blocked or allowed.

View File

@ -1,9 +1,9 @@
import { classNameBindings } from "@ember-decorators/component";
import Component from "@ember/component";
import I18n from "I18n";
import { isEmpty } from "@ember/utils";
import { on } from "@ember-decorators/object";
import { action, set } from "@ember/object";
import { isEmpty } from "@ember/utils";
import { classNameBindings } from "@ember-decorators/component";
import { on } from "@ember-decorators/object";
import I18n from "I18n";
@classNameBindings(":value-list", ":secret-value-list")
export default class SecretValueList extends Component {

View File

@ -1,5 +1,5 @@
import { tagName } from "@ember-decorators/component";
import Component from "@ember/component";
import { tagName } from "@ember-decorators/component";
@tagName("")
export default class SilenceDetails extends Component {}

View File

@ -1,9 +1,9 @@
import { classNameBindings } from "@ember-decorators/component";
import { empty } from "@ember/object/computed";
import Component from "@ember/component";
import { action } from "@ember/object";
import discourseComputed from "discourse-common/utils/decorators";
import { empty } from "@ember/object/computed";
import { classNameBindings } from "@ember-decorators/component";
import { on } from "@ember-decorators/object";
import discourseComputed from "discourse-common/utils/decorators";
@classNameBindings(":simple-list", ":value-list")
export default class SimpleList extends Component {

View File

@ -1,6 +1,6 @@
import Component from "@ember/component";
import { readOnly } from "@ember/object/computed";
import BufferedContent from "discourse/mixins/buffered-content";
import Component from "@ember/component";
import SettingComponent from "admin/mixins/setting-component";
import SiteSetting from "admin/models/site-setting";

View File

@ -1,5 +1,5 @@
import { computed } from "@ember/object";
import Component from "@ember/component";
import { computed } from "@ember/object";
import { isEmpty } from "@ember/utils";
export default class Bool extends Component {

View File

@ -1,6 +1,6 @@
import Component from "@ember/component";
import { action, computed } from "@ember/object";
import Category from "discourse/models/category";
import Component from "@ember/component";
export default class CategoryList extends Component {
@computed("value")

View File

@ -1,5 +1,5 @@
import { action, computed } from "@ember/object";
import Component from "@ember/component";
import { action, computed } from "@ember/object";
function RGBToHex(rgb) {
// Choose correct separator

View File

@ -1,5 +1,5 @@
import { action, computed } from "@ember/object";
import Component from "@ember/component";
import { action, computed } from "@ember/object";
import { makeArray } from "discourse-common/lib/helpers";
export default class CompactList extends Component {

View File

@ -1,5 +1,5 @@
import { action, computed } from "@ember/object";
import Component from "@ember/component";
import { action, computed } from "@ember/object";
export default class GroupList extends Component {
tokenSeparator = "|";

View File

@ -1,7 +1,7 @@
import { classNameBindings, classNames } from "@ember-decorators/component";
import Component from "@ember/component";
import highlightHTML from "discourse/lib/highlight-html";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { on } from "@ember-decorators/object";
import highlightHTML from "discourse/lib/highlight-html";
@classNames("site-text")
@classNameBindings("siteText.overridden")

View File

@ -1,6 +1,6 @@
import { tagName } from "@ember-decorators/component";
import { action } from "@ember/object";
import Component from "@ember/component";
import { action } from "@ember/object";
import { tagName } from "@ember-decorators/component";
import DiscourseURL from "discourse/lib/url";
@tagName("")

View File

@ -1,8 +1,8 @@
import { inject as service } from "@ember/service";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import I18n from "I18n";
import { alias } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import UppyUploadMixin from "discourse/mixins/uppy-upload";
import I18n from "I18n";
export default class TagsUploader extends Component.extend(UppyUploadMixin) {
@service dialog;

View File

@ -1,6 +1,6 @@
import SiteSettingComponent from "./site-setting";
import { ajax } from "discourse/lib/ajax";
import { url } from "discourse/lib/computed";
import SiteSettingComponent from "./site-setting";
export default class extends SiteSettingComponent {
@url("model.id", "/admin/themes/%@/setting") updateUrl;

View File

@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { ajax } from "discourse/lib/ajax";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import I18n from "I18n";
export default class ThemeSettingsEditor extends Component {

View File

@ -1,7 +1,7 @@
import SiteSettingComponent from "./site-setting";
import { alias } from "@ember/object/computed";
import { ajax } from "discourse/lib/ajax";
import { url } from "discourse/lib/computed";
import { alias } from "@ember/object/computed";
import SiteSettingComponent from "./site-setting";
export default class ThemeTranslation extends SiteSettingComponent {
@alias("translation") setting;

View File

@ -1,10 +1,10 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import I18n from "I18n";
import { ajax } from "discourse/lib/ajax";
import { action } from "@ember/object";
import { isEmpty } from "@ember/utils";
import { ajax } from "discourse/lib/ajax";
import { extractError } from "discourse/lib/ajax-error";
import I18n from "I18n";
const THEME_FIELD_VARIABLE_TYPE_IDS = [2, 3, 4];
const SCSS_VARIABLE_NAMES = [

View File

@ -1,10 +1,10 @@
import { classNameBindings, classNames } from "@ember-decorators/component";
import { and, gt } from "@ember/object/computed";
import discourseComputed from "discourse-common/utils/decorators";
import Component from "@ember/component";
import { action } from "@ember/object";
import { and, gt } from "@ember/object/computed";
import { classNameBindings, classNames } from "@ember-decorators/component";
import { escape } from "pretty-text/sanitizer";
import { iconHTML } from "discourse-common/lib/icon-library";
import { action } from "@ember/object";
import discourseComputed from "discourse-common/utils/decorators";
const MAX_COMPONENTS = 4;

View File

@ -1,11 +1,11 @@
import { classNames } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import { equal, gt, gte } from "@ember/object/computed";
import { COMPONENTS, THEMES } from "admin/models/theme";
import Component from "@ember/component";
import discourseComputed, { bind } from "discourse-common/utils/decorators";
import { action } from "@ember/object";
import { equal, gt, gte } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import { classNames } from "@ember-decorators/component";
import DeleteThemesConfirm from "discourse/components/modal/delete-themes-confirm";
import discourseComputed, { bind } from "discourse-common/utils/decorators";
import { COMPONENTS, THEMES } from "admin/models/theme";
@classNames("themes-list")
export default class ThemesList extends Component {

View File

@ -1,10 +1,10 @@
import { action } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import discourseComputed from "discourse-common/utils/decorators";
import { on } from "@ember-decorators/object";
import { empty, reads } from "@ember/object/computed";
import Component from "@ember/component";
import { action } from "@ember/object";
import { empty, reads } from "@ember/object/computed";
import { classNames } from "@ember-decorators/component";
import { on } from "@ember-decorators/object";
import { makeArray } from "discourse-common/lib/helpers";
import discourseComputed from "discourse-common/utils/decorators";
@classNames("value-list")
export default class ValueList extends Component {

View File

@ -1,14 +1,14 @@
import { action } from "@ember/object";
import { classNames, tagName } from "@ember-decorators/component";
import { inject as service } from "@ember/service";
import { equal, not } from "@ember/object/computed";
import discourseComputed from "discourse-common/utils/decorators";
import { observes } from "@ember-decorators/object";
import Component from "@ember/component";
import I18n from "I18n";
import WatchedWord from "admin/models/watched-word";
import { isEmpty } from "@ember/utils";
import { action } from "@ember/object";
import { equal, not } from "@ember/object/computed";
import { schedule } from "@ember/runloop";
import { inject as service } from "@ember/service";
import { isEmpty } from "@ember/utils";
import { classNames, tagName } from "@ember-decorators/component";
import { observes } from "@ember-decorators/object";
import discourseComputed from "discourse-common/utils/decorators";
import WatchedWord from "admin/models/watched-word";
import I18n from "I18n";
@tagName("form")
@classNames("watched-word-form")

View File

@ -1,9 +1,9 @@
import { classNames } from "@ember-decorators/component";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import I18n from "I18n";
import UppyUploadMixin from "discourse/mixins/uppy-upload";
import { alias } from "@ember/object/computed";
import { classNames } from "@ember-decorators/component";
import { dialog } from "discourse/lib/uploads";
import UppyUploadMixin from "discourse/mixins/uppy-upload";
import I18n from "I18n";
@classNames("watched-words-uploader")
export default class WatchedWordUploader extends Component.extend(

View File

@ -1,11 +1,11 @@
import Component from "@glimmer/component";
import { ensureJSON, plainJSON, prettyJSON } from "discourse/lib/formatter";
import I18n from "I18n";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { inject as service } from "@ember/service";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { ensureJSON, plainJSON, prettyJSON } from "discourse/lib/formatter";
import I18n from "I18n";
export default class WebhookEvent extends Component {
@service dialog;

View File

@ -1,11 +1,11 @@
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { ajax } from "discourse/lib/ajax";
import { gt, readOnly } from "@ember/object/computed";
import { bind } from "discourse-common/utils/decorators";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { bind } from "discourse-common/utils/decorators";
export default class WebhookEvents extends Component {
@service messageBus;

View File

@ -1,12 +1,12 @@
import { equal } from "@ember/object/computed";
import Controller from "@ember/controller";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { isBlank } from "@ember/utils";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { action, get } from "@ember/object";
import { ajax } from "discourse/lib/ajax";
import { equal } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import { isBlank } from "@ember/utils";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
import ApiKeyUrlsModal from "../components/modal/api-key-urls";
export default class AdminApiKeysNewController extends Controller {

View File

@ -1,10 +1,10 @@
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { empty } from "@ember/object/computed";
import Controller from "@ember/controller";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import { inject as service } from "@ember/service";
import { isEmpty } from "@ember/utils";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { inject as service } from "@ember/service";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import ApiKeyUrlsModal from "../components/modal/api-key-urls";
export default class AdminApiKeysShowController extends Controller.extend(

View File

@ -1,12 +1,11 @@
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { alias, equal } from "@ember/object/computed";
import Controller, { inject as controller } from "@ember/controller";
import { i18n, setting } from "discourse/lib/computed";
import I18n from "I18n";
import { action } from "@ember/object";
import { alias, equal } from "@ember/object/computed";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { i18n, setting } from "discourse/lib/computed";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class AdminBackupsIndexController extends Controller {
@service dialog;

View File

@ -1,5 +1,5 @@
import { alias } from "@ember/object/computed";
import Controller, { inject as controller } from "@ember/controller";
import { alias } from "@ember/object/computed";
export default class AdminBackupsLogsController extends Controller {
@controller adminBackups;

View File

@ -1,5 +1,5 @@
import { and, not } from "@ember/object/computed";
import Controller from "@ember/controller";
import { and, not } from "@ember/object/computed";
export default class AdminBackupsController extends Controller {
@not("model.isOperationRunning") noOperationIsRunning;
@not("rollbackEnabled") rollbackDisabled;

View File

@ -1,6 +1,6 @@
import { tracked } from "@glimmer/tracking";
import Controller from "@ember/controller";
import { inject as service } from "@ember/service";
import { tracked } from "@glimmer/tracking";
export default class AdminBadgesController extends Controller {
@service router;

View File

@ -1,10 +1,10 @@
import { tracked } from "@glimmer/tracking";
import Controller from "@ember/controller";
import I18n from "I18n";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { ajax } from "discourse/lib/ajax";
import { extractError } from "discourse/lib/ajax-error";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
import { inject as service } from "@ember/service";
import I18n from "I18n";
export default class AdminBadgesAwardController extends Controller {
@service dialog;

View File

@ -1,5 +1,5 @@
import Controller from "@ember/controller";
import { tracked } from "@glimmer/tracking";
import Controller from "@ember/controller";
export default class AdminBadgesIndexController extends Controller {
// Set by the route

View File

@ -1,13 +1,13 @@
import Controller, { inject as controller } from "@ember/controller";
import { observes } from "@ember-decorators/object";
import I18n from "I18n";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { next } from "@ember/runloop";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import getURL from "discourse-common/lib/get-url";
import { tracked } from "@glimmer/tracking";
import Controller, { inject as controller } from "@ember/controller";
import { action } from "@ember/object";
import { next } from "@ember/runloop";
import { inject as service } from "@ember/service";
import { observes } from "@ember-decorators/object";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import getURL from "discourse-common/lib/get-url";
import I18n from "I18n";
const IMAGE = "image";
const ICON = "icon";

View File

@ -1,9 +1,9 @@
import Controller from "@ember/controller";
import I18n from "I18n";
import discourseLater from "discourse-common/lib/later";
import { action, computed } from "@ember/object";
import { clipboardCopy } from "discourse/lib/utilities";
import { inject as service } from "@ember/service";
import { clipboardCopy } from "discourse/lib/utilities";
import discourseLater from "discourse-common/lib/later";
import I18n from "I18n";
export default class AdminCustomizeColorsShowController extends Controller {
@service dialog;

View File

@ -1,9 +1,9 @@
import Controller from "@ember/controller";
import EmberObject, { action } from "@ember/object";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { inject as service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";
import ColorSchemeSelectBaseModal from "admin/components/modal/color-scheme-select-base";
import I18n from "I18n";
export default class AdminCustomizeColorsController extends Controller {
@service router;

View File

@ -1,8 +1,8 @@
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import Controller from "@ember/controller";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class AdminCustomizeEmailStyleEditController extends Controller {
@service dialog;

View File

@ -1,10 +1,10 @@
import { inject as service } from "@ember/service";
import Controller, { inject as controller } from "@ember/controller";
import I18n from "I18n";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import discourseComputed from "discourse-common/utils/decorators";
import { popupAjaxError } from "discourse/lib/ajax-error";
import I18n from "I18n";
export default class AdminCustomizeEmailTemplatesEditController extends Controller.extend(
bufferedProperty("emailTemplate")

View File

@ -1,6 +1,6 @@
import { sort } from "@ember/object/computed";
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { sort } from "@ember/object/computed";
import { inject as service } from "@ember/service";
export default class AdminCustomizeEmailTemplatesController extends Controller {

View File

@ -1,9 +1,9 @@
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { not } from "@ember/object/computed";
import Controller from "@ember/controller";
import { ajax } from "discourse/lib/ajax";
import { bufferedProperty } from "discourse/mixins/buffered-content";
import { propertyEqual } from "discourse/lib/computed";
import { bufferedProperty } from "discourse/mixins/buffered-content";
export default class AdminCustomizeRobotsTxtController extends Controller.extend(
bufferedProperty("model")

View File

@ -1,9 +1,9 @@
import { action } from "@ember/object";
import Controller from "@ember/controller";
import I18n from "I18n";
import discourseComputed from "discourse-common/utils/decorators";
import { url } from "discourse/lib/computed";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { url } from "discourse/lib/computed";
import discourseComputed from "discourse-common/utils/decorators";
import I18n from "I18n";
export default class AdminCustomizeThemesEditController extends Controller {
@service router;

View File

@ -1,4 +1,5 @@
import { inject as service } from "@ember/service";
import Controller from "@ember/controller";
import EmberObject, { action } from "@ember/object";
import {
empty,
filterBy,
@ -6,16 +7,15 @@ import {
match,
notEmpty,
} from "@ember/object/computed";
import { COMPONENTS, THEMES } from "admin/models/theme";
import Controller from "@ember/controller";
import EmberObject, { action } from "@ember/object";
import I18n from "I18n";
import ThemeSettings from "admin/models/theme-settings";
import discourseComputed from "discourse-common/utils/decorators";
import { makeArray } from "discourse-common/lib/helpers";
import { inject as service } from "@ember/service";
import { popupAjaxError } from "discourse/lib/ajax-error";
import { url } from "discourse/lib/computed";
import { makeArray } from "discourse-common/lib/helpers";
import discourseComputed from "discourse-common/utils/decorators";
import ThemeSettingsEditor from "admin/components/theme-settings-editor";
import { COMPONENTS, THEMES } from "admin/models/theme";
import ThemeSettings from "admin/models/theme-settings";
import I18n from "I18n";
import ThemeUploadAddModal from "../components/theme-upload-add";
const THEME_UPLOAD_VAR = 2;

View File

@ -1,6 +1,6 @@
import Controller from "@ember/controller";
import { THEMES } from "admin/models/theme";
import discourseComputed from "discourse-common/utils/decorators";
import { THEMES } from "admin/models/theme";
export default class AdminCustomizeThemesController extends Controller {
currentTab = THEMES;

View File

@ -1,14 +1,14 @@
import { action, computed } from "@ember/object";
import Controller, { inject as controller } from "@ember/controller";
import AdminDashboard from "admin/models/admin-dashboard";
import I18n from "I18n";
import PeriodComputationMixin from "admin/mixins/period-computation";
import Report from "admin/models/report";
import discourseComputed from "discourse-common/utils/decorators";
import { action, computed } from "@ember/object";
import { inject as service } from "@ember/service";
import { setting } from "discourse/lib/computed";
import getURL from "discourse-common/lib/get-url";
import { makeArray } from "discourse-common/lib/helpers";
import { setting } from "discourse/lib/computed";
import { inject as service } from "@ember/service";
import discourseComputed from "discourse-common/utils/decorators";
import PeriodComputationMixin from "admin/mixins/period-computation";
import AdminDashboard from "admin/models/admin-dashboard";
import Report from "admin/models/report";
import I18n from "I18n";
import CustomDateRangeModal from "../components/modal/custom-date-range";
function staticReport(reportType) {

View File

@ -1,9 +1,9 @@
import { action, computed } from "@ember/object";
import Controller from "@ember/controller";
import PeriodComputationMixin from "admin/mixins/period-computation";
import discourseComputed from "discourse-common/utils/decorators";
import getURL from "discourse-common/lib/get-url";
import { action, computed } from "@ember/object";
import { inject as service } from "@ember/service";
import getURL from "discourse-common/lib/get-url";
import discourseComputed from "discourse-common/utils/decorators";
import PeriodComputationMixin from "admin/mixins/period-computation";
import CustomDateRangeModal from "../components/modal/custom-date-range";
export default class AdminDashboardModerationController extends Controller.extend(

View File

@ -1,8 +1,8 @@
import Controller from "@ember/controller";
import { INPUT_DELAY } from "discourse-common/config/environment";
import discourseComputed from "discourse-common/utils/decorators";
import discourseDebounce from "discourse-common/lib/debounce";
import { action, get } from "@ember/object";
import { INPUT_DELAY } from "discourse-common/config/environment";
import discourseDebounce from "discourse-common/lib/debounce";
import discourseComputed from "discourse-common/utils/decorators";
export default class AdminDashboardReportsController extends Controller {
filter = null;

Some files were not shown because too many files have changed in this diff Show More