Skip to content

Commit

Permalink
DEV: Bump dependencies and fix linting (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Feb 6, 2025
1 parent 01ccfbc commit 4a4e482
Show file tree
Hide file tree
Showing 4 changed files with 754 additions and 598 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import { Promise } from "rsvp";
import { apiInitializer } from "discourse/lib/api";
import { isDevelopment } from "discourse/lib/environment";
import loadScript from "discourse/lib/load-script";
import DiscourseURL from "discourse/lib/url";
import { isDevelopment } from "discourse-common/config/environment";
import I18n from "I18n";
import { i18n } from "discourse-i18n";

function initializeAutocomplete(options) {
const algoliasearch = window.algoliasearch;
Expand All @@ -29,7 +29,7 @@ function initializeAutocomplete(options) {
panelContainer: ".algolia-autocomplete",
debug: options.debug,
detachedMediaQuery: "none",
placeholder: I18n.t("discourse_algolia.search_box_placeholder"),
placeholder: i18n("discourse_algolia.search_box_placeholder"),
getSources() {
return [
{
Expand Down Expand Up @@ -81,7 +81,7 @@ function initializeAutocomplete(options) {
</span>
<span
class="hit-post-topic-views"
title="${I18n.t("discourse_algolia.topic_views")}"
title="${i18n("discourse_algolia.topic_views")}"
>
${item.topic.views}
</span>
Expand Down Expand Up @@ -129,7 +129,7 @@ function initializeAutocomplete(options) {
},
noResults({ html }) {
return html`<div class="aa-empty">
${I18n.t("discourse_algolia.no_posts")}
${i18n("discourse_algolia.no_posts")}
</div>`;
},
},
Expand Down Expand Up @@ -186,7 +186,7 @@ function initializeAutocomplete(options) {
</span>
<span
class="hit-user-custom-ranking"
title="${I18n.t("discourse_algolia.user_likes")}"
title="${i18n("discourse_algolia.user_likes")}"
>
${likesElement}
</span>
Expand Down Expand Up @@ -227,7 +227,7 @@ function initializeAutocomplete(options) {
>
<span
class="hit-tag-topic_count"
title="${I18n.t("discourse_algolia.topic_tags")}"
title="${i18n("discourse_algolia.topic_tags")}"
>${item.topic_count}</span
>
</div> `;
Expand Down Expand Up @@ -261,15 +261,15 @@ function initializeAutocomplete(options) {
event.preventDefault();
event.stopPropagation();
}}"
>${I18n.t("discourse_algolia.advanced_search")}</a
>${i18n("discourse_algolia.advanced_search")}</a
>
</div>
<div class="right-container">
<a
target="_blank"
class="algolia-logo"
href="https://algolia.com/"
title="${I18n.t("discourse_algolia.powered_by")}"
title="${i18n("discourse_algolia.powered_by")}"
></a>
</div>
</div>
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
}
Loading

0 comments on commit 4a4e482

Please sign in to comment.