Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+5
-5
@@ -5,6 +5,7 @@ import type { KbCategoryDto } from "~/modules/knowledgeBase/dtos/KbCategoryDto";
|
||||
import ColorTextUtils from "~/utils/shared/colors/ColorTextUtils";
|
||||
import { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto";
|
||||
import ColorGroupHoverUtils from "~/utils/shared/colors/ColorGroupHoverUtils";
|
||||
import { sanitizeIconSvg } from "~/utils/html-sanitizer";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useLocaleFormatters } from "~/locale/format";
|
||||
|
||||
@@ -24,11 +25,10 @@ export default function KbCategoriesList({ kb, items }: { kb: KnowledgeBaseDto;
|
||||
{item.icon.startsWith("<svg") ? (
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html:
|
||||
item.icon.replace(
|
||||
"<svg",
|
||||
`<svg class='${clsx("h-12 w-12", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))}'`
|
||||
) ?? "",
|
||||
__html: sanitizeIconSvg(
|
||||
item.icon,
|
||||
clsx("h-12 w-12", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))
|
||||
),
|
||||
}}
|
||||
/>
|
||||
) : item.icon.includes("http") ? (
|
||||
|
||||
+5
-5
@@ -5,6 +5,7 @@ import type { KbCategoryDto } from "../../dtos/KbCategoryDto";
|
||||
import { KnowledgeBaseDto } from "../../dtos/KnowledgeBaseDto";
|
||||
import ColorTextUtils from "~/utils/shared/colors/ColorTextUtils";
|
||||
import ColorGroupHoverUtils from "~/utils/shared/colors/ColorGroupHoverUtils";
|
||||
import { sanitizeIconSvg } from "~/utils/html-sanitizer";
|
||||
|
||||
export default function KbCategoriesTopArticles({ kb, items }: { kb: KnowledgeBaseDto; items: KbCategoryDto[] }) {
|
||||
const { t } = useTranslation();
|
||||
@@ -21,11 +22,10 @@ export default function KbCategoriesTopArticles({ kb, items }: { kb: KnowledgeBa
|
||||
{item.icon.startsWith("<svg") ? (
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html:
|
||||
item.icon.replace(
|
||||
"<svg",
|
||||
`<svg class='${clsx("h-6 w-6", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))}'`
|
||||
) ?? "",
|
||||
__html: sanitizeIconSvg(
|
||||
item.icon,
|
||||
clsx("h-6 w-6", ColorTextUtils.getText500(kb.color), ColorGroupHoverUtils.getText700(kb.color))
|
||||
),
|
||||
}}
|
||||
/>
|
||||
) : item.icon.includes("http") ? (
|
||||
|
||||
Reference in new issue
Block a user