DEV: Update linting (#267)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Component from "@glimmer/component";
|
||||
import loadScript from "discourse/lib/load-script";
|
||||
import themeColor from "../lib/themeColor";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { action } from "@ember/object";
|
||||
import loadScript from "discourse/lib/load-script";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import themeColor from "../lib/themeColor";
|
||||
|
||||
export default class DataExplorerBarChart extends Component {
|
||||
chart;
|
||||
@@ -86,6 +86,7 @@ export default class DataExplorerBarChart extends Component {
|
||||
}
|
||||
|
||||
willDestroy() {
|
||||
super.willDestroy(...arguments);
|
||||
this.chart.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { debounce } from "discourse-common/utils/decorators";
|
||||
import { isBlank, isEmpty } from "@ember/utils";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import { isBlank, isEmpty } from "@ember/utils";
|
||||
import { debounce } from "discourse-common/utils/decorators";
|
||||
|
||||
export default class ExplorerSchema extends Component {
|
||||
@tracked filter;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
|
||||
export default class OneTable extends Component {
|
||||
@tracked open = this.args.table.open;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
{{else if (eq this.type "user_id")}}
|
||||
<EmailGroupUserChooser
|
||||
@value={{this.value}}
|
||||
@options={{(hash maximum=1)}}
|
||||
@options={{hash maximum=1}}
|
||||
@onChange={{this.updateValue}}
|
||||
name={{@info.identifier}}
|
||||
/>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import Component from "@glimmer/component";
|
||||
import I18n from "I18n";
|
||||
import Category from "discourse/models/category";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { dasherize } from "@ember/string";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { inject as service } from "@ember/service";
|
||||
import Category from "discourse/models/category";
|
||||
import I18n from "I18n";
|
||||
|
||||
const layoutMap = {
|
||||
int: "int",
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
import Component from "@glimmer/component";
|
||||
import I18n from "I18n";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import Badge from "discourse/models/badge";
|
||||
import { capitalize } from "@ember/string";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { inject as service } from "@ember/service";
|
||||
import TopicViewComponent from "./result-types/topic";
|
||||
import TextViewComponent from "./result-types/text";
|
||||
import PostViewComponent from "./result-types/post";
|
||||
import ReltimeViewComponent from "./result-types/reltime";
|
||||
import { capitalize } from "@ember/string";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import Badge from "discourse/models/badge";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import I18n from "I18n";
|
||||
import BadgeViewComponent from "./result-types/badge";
|
||||
import UrlViewComponent from "./result-types/url";
|
||||
import UserViewComponent from "./result-types/user";
|
||||
import CategoryViewComponent from "./result-types/category";
|
||||
import GroupViewComponent from "./result-types/group";
|
||||
import HtmlViewComponent from "./result-types/html";
|
||||
import JsonViewComponent from "./result-types/json";
|
||||
import CategoryViewComponent from "./result-types/category";
|
||||
import PostViewComponent from "./result-types/post";
|
||||
import ReltimeViewComponent from "./result-types/reltime";
|
||||
import TextViewComponent from "./result-types/text";
|
||||
import TopicViewComponent from "./result-types/topic";
|
||||
import UrlViewComponent from "./result-types/url";
|
||||
import UserViewComponent from "./result-types/user";
|
||||
|
||||
const VIEW_COMPONENTS = {
|
||||
topic: TopicViewComponent,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Component from "@glimmer/component";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { cached } from "@glimmer/tracking";
|
||||
import { capitalize } from "@ember/string";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import { cached } from "@glimmer/tracking";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import TextViewComponent from "./result-types/text";
|
||||
|
||||
export default class QueryRowContent extends Component {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { convertIconClass, iconHTML } from "discourse-common/lib/icon-library";
|
||||
|
||||
export default class Badge extends Component {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Component from "@glimmer/component";
|
||||
import FullscreenCodeModal from "discourse/components/modal/fullscreen-code";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { action } from "@ember/object";
|
||||
import { cached } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import { inject as service } from "@ember/service";
|
||||
import FullscreenCodeModal from "discourse/components/modal/fullscreen-code";
|
||||
|
||||
export default class Json extends Component {
|
||||
@service dialog;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
|
||||
|
||||
export default class Reltime extends Component {
|
||||
get boundDateReplacement() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Component from "@glimmer/component";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
|
||||
export default class ShareReport extends Component {
|
||||
@tracked visible = false;
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import Controller from "@ember/controller";
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
import Query from "discourse/plugins/discourse-data-explorer/discourse/models/query";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { action } from "@ember/object";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { Promise } from "rsvp";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import showModal from "discourse/lib/show-modal";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import I18n from "I18n";
|
||||
import { Promise } from "rsvp";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import Query from "discourse/plugins/discourse-data-explorer/discourse/models/query";
|
||||
|
||||
const NoQuery = Query.create({ name: "No queries", fake: true, group_ids: [] });
|
||||
|
||||
export default class PluginsExplorerController extends Controller {
|
||||
@service("router") router;
|
||||
@service dialog;
|
||||
@service appEvents;
|
||||
|
||||
@@ -264,7 +265,7 @@ export default class PluginsExplorerController extends Controller {
|
||||
sortByProperty: "last_run_at",
|
||||
sortDescending: true,
|
||||
});
|
||||
this.transitionToRoute({ queryParams: { id: null, params: null } });
|
||||
this.router.transitionTo({ queryParams: { id: null, params: null } });
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import Controller from "@ember/controller";
|
||||
import { action } from "@ember/object";
|
||||
import { inject as service } from "@ember/service";
|
||||
import BookmarkModal from "discourse/components/modal/bookmark";
|
||||
import { BookmarkFormData } from "discourse/lib/bookmark";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { BookmarkFormData } from "discourse/lib/bookmark";
|
||||
import {
|
||||
NO_REMINDER_ICON,
|
||||
WITH_REMINDER_ICON,
|
||||
} from "discourse/models/bookmark";
|
||||
import { action } from "@ember/object";
|
||||
import { bind } from "discourse-common/utils/decorators";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { inject as service } from "@ember/service";
|
||||
|
||||
export default class GroupReportsShowController extends Controller {
|
||||
@service currentUser;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import RestModel from "discourse/models/rest";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
|
||||
export default class Query extends RestModel {
|
||||
static updatePropertyNames = [
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="desc">
|
||||
<DTextarea
|
||||
@value={{this.selectedItem.description}}
|
||||
@placeholder={{(i18n "explorer.description_placeholder")}}
|
||||
@placeholder={{i18n "explorer.description_placeholder"}}
|
||||
@input={{this.setDirty}}
|
||||
/>
|
||||
</div>
|
||||
@@ -296,7 +296,7 @@
|
||||
@field="name"
|
||||
@labelKey="explorer.query_user"
|
||||
@order={{this.order}}
|
||||
@asc={{(not this.sortDescending)}}
|
||||
@asc={{not this.sortDescending}}
|
||||
@automatic="true"
|
||||
/>
|
||||
</div>
|
||||
@@ -311,7 +311,7 @@
|
||||
@field="username"
|
||||
@labelKey="explorer.query_user"
|
||||
@order={{this.order}}
|
||||
@asc={{(not this.sortDescending)}}
|
||||
@asc={{not this.sortDescending}}
|
||||
@automatic="true"
|
||||
/>
|
||||
</div>
|
||||
@@ -331,7 +331,7 @@
|
||||
@field="last_run_at"
|
||||
@labelKey="explorer.query_time"
|
||||
@order={{this.order}}
|
||||
@asc={{(not this.sortDescending)}}
|
||||
@asc={{not this.sortDescending}}
|
||||
@automatic="true"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<LinkTo
|
||||
@route={{"group.reports.show"}}
|
||||
@route="group.reports.show"
|
||||
@models={{array group.name query.id}}
|
||||
>
|
||||
{{query.name}}
|
||||
|
||||
Reference in New Issue
Block a user