From 389f2e8beee35c60da9b343883d0e09ca92f821b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 11 Feb 2024 20:12:01 +0000
Subject: [PATCH] fix(ofm): allow diacretic marks in tag regex (closes #830)
---
quartz/components/Graph.tsx | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx
index 0c2647f..9fce9bd 100644
--- a/quartz/components/Graph.tsx
+++ b/quartz/components/Graph.tsx
@@ -2,6 +2,8 @@
// @ts-ignore
import script from "./scripts/graph.inline"
import style from "./styles/graph.scss"
+import { i18n } from "../i18n"
+import { classNames } from "../util/lang"
export interface D3Config {
drag: boolean
@@ -52,12 +54,12 @@
}
export default ((opts?: GraphOptions) => {
- function Graph({ displayClass }: QuartzComponentProps) {
+ function Graph({ displayClass, cfg }: QuartzComponentProps) {
const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph }
const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph }
return (
- <div class={`graph ${displayClass ?? ""}`}>
- <h3>Graph View</h3>
+ <div class={classNames(displayClass, "graph")}>
+ <h3>{i18n(cfg.locale).components.graph.title}</h3>
<div class="graph-outer">
<div id="graph-container" data-cfg={JSON.stringify(localGraph)}></div>
<svg
--
Gitblit v1.10.0