DEV: Bump dependencies and fix linting (#247)
This commit is contained in:
parent
21a0546d7f
commit
b092d2f11a
|
@ -2,7 +2,7 @@ import Component from "@glimmer/component";
|
|||
import { action } from "@ember/object";
|
||||
import { service } from "@ember/service";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import I18n from "I18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class ChannelDetails extends Component {
|
||||
@service dialog;
|
||||
|
@ -11,7 +11,7 @@ export default class ChannelDetails extends Component {
|
|||
@action
|
||||
deleteChannel(channel) {
|
||||
this.dialog.deleteConfirm({
|
||||
message: I18n.t("chat_integration.channel_delete_confirm"),
|
||||
message: i18n("chat_integration.channel_delete_confirm"),
|
||||
didConfirm: () => {
|
||||
return channel
|
||||
.destroyRecord()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Component from "@glimmer/component";
|
||||
import { action } from "@ember/object";
|
||||
import I18n from "I18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class ChannelParamRow extends Component {
|
||||
get validation() {
|
||||
|
@ -13,14 +13,14 @@ export default class ChannelParamRow extends Component {
|
|||
} else if (new RegExp(this.args.param.regex).test(value)) {
|
||||
return {
|
||||
ok: true,
|
||||
reason: I18n.t(
|
||||
reason: i18n(
|
||||
"chat_integration.edit_channel_modal.channel_validation.ok"
|
||||
),
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
failed: true,
|
||||
reason: I18n.t(
|
||||
reason: i18n(
|
||||
"chat_integration.edit_channel_modal.channel_validation.fail"
|
||||
),
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking";
|
|||
import { action } from "@ember/object";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import I18n from "I18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class TestIntegration extends Component {
|
||||
@tracked loading = false;
|
||||
|
@ -24,7 +24,7 @@ export default class TestIntegration extends Component {
|
|||
});
|
||||
|
||||
this.loading = false;
|
||||
this.flash = I18n.t("chat_integration.test_modal.success");
|
||||
this.flash = i18n("chat_integration.test_modal.success");
|
||||
} catch (e) {
|
||||
popupAjaxError(e);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { tracked } from "@glimmer/tracking";
|
||||
import Category from "discourse/models/category";
|
||||
import RestModel from "discourse/models/rest";
|
||||
import I18n from "I18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class Rule extends RestModel {
|
||||
@tracked type = "normal";
|
||||
|
@ -12,14 +12,14 @@ export default class Rule extends RestModel {
|
|||
@tracked error_key = null;
|
||||
|
||||
available_types = [
|
||||
{ id: "normal", name: I18n.t("chat_integration.type.normal") },
|
||||
{ id: "normal", name: i18n("chat_integration.type.normal") },
|
||||
{
|
||||
id: "group_message",
|
||||
name: I18n.t("chat_integration.type.group_message"),
|
||||
name: i18n("chat_integration.type.group_message"),
|
||||
},
|
||||
{
|
||||
id: "group_mention",
|
||||
name: I18n.t("chat_integration.type.group_mention"),
|
||||
name: i18n("chat_integration.type.group_mention"),
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -32,7 +32,7 @@ export default class Rule extends RestModel {
|
|||
if (provider === "slack") {
|
||||
available.push({
|
||||
id: "thread",
|
||||
name: I18n.t("chat_integration.filter.thread"),
|
||||
name: i18n("chat_integration.filter.thread"),
|
||||
icon: "chevron-right",
|
||||
});
|
||||
}
|
||||
|
@ -40,17 +40,17 @@ export default class Rule extends RestModel {
|
|||
available.push(
|
||||
{
|
||||
id: "watch",
|
||||
name: I18n.t("chat_integration.filter.watch"),
|
||||
name: i18n("chat_integration.filter.watch"),
|
||||
icon: "circle-exclamation",
|
||||
},
|
||||
{
|
||||
id: "follow",
|
||||
name: I18n.t("chat_integration.filter.follow"),
|
||||
name: i18n("chat_integration.filter.follow"),
|
||||
icon: "circle",
|
||||
},
|
||||
{
|
||||
id: "mute",
|
||||
name: I18n.t("chat_integration.filter.mute"),
|
||||
name: i18n("chat_integration.filter.mute"),
|
||||
icon: "circle-xmark",
|
||||
}
|
||||
);
|
||||
|
@ -69,7 +69,7 @@ export default class Rule extends RestModel {
|
|||
}
|
||||
|
||||
get filterName() {
|
||||
return I18n.t(`chat_integration.filter.${this.filter}`);
|
||||
return i18n(`chat_integration.filter.${this.filter}`);
|
||||
}
|
||||
|
||||
updateProperties() {
|
||||
|
|
13
package.json
13
package.json
|
@ -1,15 +1,16 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@discourse/lint-configs": "2.2.2",
|
||||
"ember-template-lint": "6.0.0",
|
||||
"eslint": "9.15.0",
|
||||
"@discourse/lint-configs": "2.4.0",
|
||||
"ember-template-lint": "6.1.0",
|
||||
"eslint": "9.19.0",
|
||||
"prettier": "2.8.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18",
|
||||
"node": ">= 22",
|
||||
"npm": "please-use-pnpm",
|
||||
"yarn": "please-use-pnpm",
|
||||
"pnpm": ">= 9"
|
||||
}
|
||||
"pnpm": "9.x"
|
||||
},
|
||||
"packageManager": "pnpm@9.15.5"
|
||||
}
|
||||
|
|
1317
pnpm-lock.yaml
1317
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue