mirror of
https://github.com/discourse/discourse-category-icons.git
synced 2025-03-09 13:18:31 +00:00
DEV: Bump dependencies and fix linting (#52)
This commit is contained in:
parent
a4fb6da5fa
commit
73310bf79a
@ -3,15 +3,15 @@ import { h } from "virtual-dom";
|
||||
import categoriesBoxes from "discourse/components/categories-boxes";
|
||||
import categoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics";
|
||||
import categoryTitleLink from "discourse/components/category-title-link";
|
||||
import getURL from "discourse/lib/get-url";
|
||||
import CategoryHashtagType from "discourse/lib/hashtag-types/category";
|
||||
import { helperContext } from "discourse/lib/helpers";
|
||||
import { iconHTML, iconNode } from "discourse/lib/icon-library";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import { isRTL } from "discourse/lib/text-direction";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import Category from "discourse/models/category";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
import { helperContext } from "discourse-common/lib/helpers";
|
||||
import { iconHTML, iconNode } from "discourse-common/lib/icon-library";
|
||||
import I18n from "I18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
class CategoryHashtagTypeWithIcon extends CategoryHashtagType {
|
||||
constructor(dict, owner) {
|
||||
@ -76,7 +76,7 @@ export default {
|
||||
}
|
||||
|
||||
function buildTopicCount(count) {
|
||||
return `<span class="topic-count" aria-label="${I18n.t(
|
||||
return `<span class="topic-count" aria-label="${i18n(
|
||||
"category_row.topic_count",
|
||||
{ count }
|
||||
)}">× ${count}</span>`;
|
||||
@ -157,7 +157,7 @@ export default {
|
||||
|
||||
if (opts.plusSubcategories && opts.lastSubcategory) {
|
||||
afterBadgeWrapper += `<span class="plus-subcategories">
|
||||
${I18n.t("category_row.plus_subcategories", {
|
||||
${i18n("category_row.plus_subcategories", {
|
||||
count: opts.plusSubcategories,
|
||||
})}
|
||||
</span>`;
|
||||
|
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
generated
1317
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
import { visit } from "@ember/test-helpers";
|
||||
import { test } from "qunit";
|
||||
import { cloneJSON } from "discourse/lib/object";
|
||||
import TopicFixtures from "discourse/tests/fixtures/topic";
|
||||
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
||||
import { cloneJSON } from "discourse-common/lib/object";
|
||||
|
||||
function makeHashtagHTML(category) {
|
||||
return `<a class=\"hashtag-cooked\" href=\"${category.href}\" data-type=\"category\" data-slug=\"${category.slug}\" data-id=\"${category.id}\"><span class=\"hashtag-icon-placeholder\"><svg class=\"fa d-icon d-icon-square-full svg-icon svg-node\"><use href=\"#square-full\"></use></svg></span><span>${category.name}</span></a>`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user