DEV: import I18n instead of global usage (#9768)

Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
Co-authored-by: Robin Ward <robin.ward@gmail.com>

Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
This commit is contained in:
Robin Ward
2020-05-13 16:23:41 -04:00
committed by GitHub
parent 1059557ce1
commit eab560fe2a
352 changed files with 369 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { computed } from "@ember/object";
import { setting } from "discourse/lib/computed";

View File

@@ -1,3 +1,4 @@
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";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import { readOnly } from "@ember/object/computed";
import { computed } from "@ember/object";
import ComboBoxComponent from "select-kit/components/combo-box";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import {
PRIVATE_MESSAGE,

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import { computed } from "@ember/object";
import { equal } from "@ember/object/computed";
import { isEmpty } from "@ember/utils";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import { reads, gte } from "@ember/object/computed";
import ComboBoxComponent from "select-kit/components/combo-box";
import DiscourseURL from "discourse/lib/url";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { action, computed } from "@ember/object";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import { empty, or } from "@ember/object/computed";
import ComboBox from "select-kit/components/combo-box";
import TagsMixin from "select-kit/mixins/tags";

View File

@@ -1,3 +1,4 @@
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";

View File

@@ -1,3 +1,4 @@
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";

View File

@@ -1,3 +1,4 @@
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";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { computed } from "@ember/object";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
import discourseComputed from "discourse-common/utils/decorators";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
import { iconHTML } from "discourse-common/lib/icon-library";
import { computed, action } from "@ember/object";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import EmberObject, { computed, get, guidFor } from "@ember/object";
import Component from "@ember/component";
import deprecated from "discourse-common/lib/deprecated";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import Component from "@ember/component";
import discourseComputed from "discourse-common/utils/decorators";
import { isPresent } from "@ember/utils";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import Component from "@ember/component";
import { computed } from "@ember/object";
import { makeArray } from "discourse-common/lib/helpers";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
const HEADING_COLLECTION = "HEADING_COLLECTION";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import DropdownSelectBox from "select-kit/components/dropdown-select-box";
import { popupAjaxError } from "discourse/lib/ajax-error";
import showModal from "discourse/lib/show-modal";

View File

@@ -1,3 +1,4 @@
import I18n from "I18n";
import { reads } from "@ember/object/computed";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";