Skip to content

Commit

Permalink
DEV: Update linting (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 20, 2024
1 parent 3a58ba6 commit efb7f36
Show file tree
Hide file tree
Showing 7 changed files with 247 additions and 257 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default class DataExplorerBarChart extends Component {
gridColor = themeColor("--primary-low");
labelsColor = themeColor("--primary-medium");

willDestroy() {
super.willDestroy(...arguments);
this.chart.destroy();
}

get config() {
const data = this.data;
const options = this.options;
Expand Down Expand Up @@ -84,9 +89,4 @@ export default class DataExplorerBarChart extends Component {
this.chart.data = this.data;
this.chart.update();
}

willDestroy() {
super.willDestroy(...arguments);
this.chart.destroy();
}
}
4 changes: 4 additions & 0 deletions assets/javascripts/discourse/components/query-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,19 @@ export default class QueryResult extends Component {
lookupUser(id) {
return this.transformedUserTable[id];
}

lookupBadge(id) {
return this.transformedBadgeTable[id];
}

lookupPost(id) {
return this.transformedPostTable[id];
}

lookupTopic(id) {
return this.transformedTopicTable[id];
}

lookupGroup(id) {
return this.transformedGroupTable[id];
}
Expand Down
1 change: 1 addition & 0 deletions assets/javascripts/discourse/models/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default class Query extends RestModel {
beforeUpdate() {
this.set("updateing", true);
}

afterUpdate() {
this.set("updateing", false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
{{else}}
<div class="sql">
<CodeView
@value={{selectedItem.sql}}
@value={{this.selectedItem.sql}}
@codeClass="sql"
@setDirty={{this.setDirty}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<td>
<LinkTo
@route="group.reports.show"
@models={{array group.name query.id}}
@models={{array this.group.name query.id}}
>
{{query.name}}
</LinkTo>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "2.0.1",
"@discourse/lint-configs": "2.2.0",
"ember-template-lint": "6.0.0",
"eslint": "9.14.0",
"prettier": "2.8.8"
Expand Down
483 changes: 234 additions & 249 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit efb7f36

Please sign in to comment.