mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96e36e1d4c | ||
|
|
b1ef987f9d |
No files matched your search
Generated
+21
@@ -90,6 +90,9 @@ importers:
|
|||||||
react-icons:
|
react-icons:
|
||||||
specifier: ^5.5.0
|
specifier: ^5.5.0
|
||||||
version: 5.5.0(react@19.2.4)
|
version: 5.5.0(react@19.2.4)
|
||||||
|
react-router:
|
||||||
|
specifier: ^7.13.1
|
||||||
|
version: 7.13.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
wanakana:
|
wanakana:
|
||||||
specifier: ^5.3.1
|
specifier: ^5.3.1
|
||||||
version: 5.3.1
|
version: 5.3.1
|
||||||
@@ -1442,6 +1445,16 @@ packages:
|
|||||||
resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==}
|
resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
react-router@7.13.1:
|
||||||
|
resolution: {integrity: sha512-td+xP4X2/6BJvZoX6xw++A2DdEi++YypA69bJUV5oVvqf6/9/9nNlD70YO1e9d3MyamJEBQFEzk6mbfDYbqrSA==}
|
||||||
|
engines: {node: '>=20.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
react: '>=18'
|
||||||
|
react-dom: '>=18'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
react-dom:
|
||||||
|
optional: true
|
||||||
|
|
||||||
react@19.2.4:
|
react@19.2.4:
|
||||||
resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==}
|
resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
@@ -3321,6 +3334,14 @@ snapshots:
|
|||||||
|
|
||||||
react-refresh@0.17.0: {}
|
react-refresh@0.17.0: {}
|
||||||
|
|
||||||
|
react-router@7.13.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
|
||||||
|
dependencies:
|
||||||
|
cookie: 1.1.1
|
||||||
|
react: 19.2.4
|
||||||
|
set-cookie-parser: 2.7.2
|
||||||
|
optionalDependencies:
|
||||||
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
|
|
||||||
react@19.2.4: {}
|
react@19.2.4: {}
|
||||||
|
|
||||||
real-require@0.2.0: {}
|
real-require@0.2.0: {}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ pub struct YomitanRow {
|
|||||||
rules: String,
|
rules: String,
|
||||||
score: i64,
|
score: i64,
|
||||||
glossary_json: String,
|
glossary_json: String,
|
||||||
glossary_b: Vec<u8>,
|
|
||||||
sequence: Option<i64>,
|
sequence: Option<i64>,
|
||||||
term_tags: String,
|
term_tags: String,
|
||||||
dict_title: String,
|
dict_title: String,
|
||||||
@@ -118,26 +117,27 @@ impl YomitanDatabase {
|
|||||||
"
|
"
|
||||||
))?;
|
))?;
|
||||||
let rows = stmt.query_map(params![q_term_norm, q_reading, limit, offset], |r| {
|
let rows = stmt.query_map(params![q_term_norm, q_reading, limit, offset], |r| {
|
||||||
Ok(YomitanRow {
|
Ok((
|
||||||
|
YomitanRow {
|
||||||
term: r.get(0)?,
|
term: r.get(0)?,
|
||||||
reading: r.get(1)?,
|
reading: r.get(1)?,
|
||||||
def_tags: r.get(2)?,
|
def_tags: r.get(2)?,
|
||||||
rules: r.get(3)?,
|
rules: r.get(3)?,
|
||||||
score: r.get(4)?,
|
score: r.get(4)?,
|
||||||
glossary_json: String::new(),
|
glossary_json: String::from("[]"), // a valid JSON array
|
||||||
glossary_b: r.get(5)?,
|
|
||||||
sequence: r.get(6)?,
|
sequence: r.get(6)?,
|
||||||
term_tags: r.get(7)?,
|
term_tags: r.get(7)?,
|
||||||
dict_title: r.get(8)?,
|
dict_title: r.get(8)?,
|
||||||
})
|
},
|
||||||
|
r.get::<_, Vec<u8>>(5)?,
|
||||||
|
))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let mut out = Vec::new();
|
let mut out = Vec::new();
|
||||||
for row in rows {
|
for row in rows {
|
||||||
let mut r = row?;
|
let (mut r, glossary_b) = row?;
|
||||||
r.glossary_json =
|
r.glossary_json =
|
||||||
String::from_utf8(decompressor.decompress(&r.glossary_b, MAX_DECOMPRESSED_SIZE)?)?;
|
String::from_utf8(decompressor.decompress(&glossary_b, MAX_DECOMPRESSED_SIZE)?)?;
|
||||||
r.glossary_b = vec![];
|
|
||||||
|
|
||||||
out.push(r);
|
out.push(r);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
"react": "^19.1.0",
|
"react": "^19.1.0",
|
||||||
"react-dom": "^19.1.0",
|
"react-dom": "^19.1.0",
|
||||||
"react-icons": "^5.5.0",
|
"react-icons": "^5.5.0",
|
||||||
|
"react-router": "^7.13.1",
|
||||||
"wanakana": "^5.3.1",
|
"wanakana": "^5.3.1",
|
||||||
"zustand": "^5.0.11"
|
"zustand": "^5.0.11"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
-2
@@ -1,14 +1,27 @@
|
|||||||
import "./App.css";
|
import "./App.css";
|
||||||
|
|
||||||
|
import { createBrowserRouter } from "react-router";
|
||||||
|
import { RouterProvider } from "react-router/dom";
|
||||||
|
|
||||||
import LoadingDialog from "./components/LoadingDialog";
|
import LoadingDialog from "./components/LoadingDialog";
|
||||||
import { Provider } from "./components/ui/provider";
|
import { Provider } from "./components/ui/provider";
|
||||||
import SearchPage from "./pages/SearchPage";
|
|
||||||
|
const router = createBrowserRouter([
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
lazy: async () => {
|
||||||
|
return {
|
||||||
|
Component: (await import("./pages/SearchPage")).default,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Provider>
|
<Provider>
|
||||||
<>
|
<>
|
||||||
<SearchPage />
|
<RouterProvider router={router} />
|
||||||
<LoadingDialog />
|
<LoadingDialog />
|
||||||
</>
|
</>
|
||||||
</Provider>
|
</Provider>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ interface Progress {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function LoadingDialog() {
|
function LoadingDialog() {
|
||||||
const [messages, setMessages] = useState<Progress[]>([]);
|
const [messages, set_messages] = useState<Progress[]>([]);
|
||||||
|
|
||||||
const isInit = useRef(false);
|
const isInit = useRef(false);
|
||||||
|
|
||||||
@@ -106,11 +106,11 @@ function LoadingDialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await invoke("init_yomitan", { dicts, lang });
|
await invoke("init_yomitan", { dicts, lang });
|
||||||
setMessages([]);
|
set_messages([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
listen<LoadYomitanZipDirResult>("load-yomitan-dir", ({ payload }) => {
|
listen<LoadYomitanZipDirResult>("load-yomitan-dir", ({ payload }) => {
|
||||||
setMessages((messages) => {
|
set_messages((messages) => {
|
||||||
if (payload.new_dicts.length > 0) {
|
if (payload.new_dicts.length > 0) {
|
||||||
messages = [
|
messages = [
|
||||||
...messages,
|
...messages,
|
||||||
@@ -149,7 +149,7 @@ function LoadingDialog() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
function updateProgress(payload: Progress) {
|
function updateProgress(payload: Progress) {
|
||||||
setMessages((messages) => {
|
set_messages((messages) => {
|
||||||
const prev = messages[messages.length - 1];
|
const prev = messages[messages.length - 1];
|
||||||
if (prev?.message === payload.message) {
|
if (prev?.message === payload.message) {
|
||||||
messages = messages.slice(0, messages.length - 1);
|
messages = messages.slice(0, messages.length - 1);
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ import {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { toKana } from "wanakana";
|
import { useSearchParams } from "react-router";
|
||||||
|
import { toHiragana, toKana } from "wanakana";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
Card,
|
Card,
|
||||||
CloseButton,
|
CloseButton,
|
||||||
Group,
|
Field,
|
||||||
Input,
|
Input,
|
||||||
InputGroup,
|
InputGroup,
|
||||||
Stack,
|
Stack,
|
||||||
@@ -35,16 +36,27 @@ interface Entry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SearchPage() {
|
function SearchPage() {
|
||||||
const [q, setQ] = useState("");
|
const [searchParams, set_searchParams] = useSearchParams();
|
||||||
const [entries, setEntries] = useState<Entry[]>([]);
|
|
||||||
const [searchTimeout, setSearchTimeout] = useState(0);
|
useEffect(() => {
|
||||||
const [furigana, setFurigana] = useState("");
|
let q = searchParams.get("q") || "";
|
||||||
|
if (q) set_q(q);
|
||||||
|
}, [searchParams]);
|
||||||
|
|
||||||
|
function searchParams_setQ(q: string) {
|
||||||
|
if (searchParams.get("q") === q) return;
|
||||||
|
set_searchParams({ q });
|
||||||
|
}
|
||||||
|
|
||||||
|
const [q, set_q] = useState("");
|
||||||
|
const [entries, set_entries] = useState<Entry[]>([]);
|
||||||
|
const [searchTimeout, set_searchTimeout] = useState(0);
|
||||||
|
const [furigana, set_furigana] = useState("");
|
||||||
const [isAutoKana, set_isAutoKana] = useState(true);
|
const [isAutoKana, set_isAutoKana] = useState(true);
|
||||||
|
|
||||||
const nSearch = useRef(0);
|
const nSearch = useRef(0);
|
||||||
const searchboxRef = useRef<HTMLInputElement | null>(null);
|
const searchboxRef = useRef<HTMLInputElement | null>(null);
|
||||||
const resultScrollRef = useRef<HTMLElement | null>(null);
|
const resultScrollRef = useRef<HTMLElement | null>(null);
|
||||||
const prevNormQ = useRef("");
|
|
||||||
|
|
||||||
const lang = "ja-JP";
|
const lang = "ja-JP";
|
||||||
|
|
||||||
@@ -59,7 +71,7 @@ function SearchPage() {
|
|||||||
|
|
||||||
set_clipboardText((clipboardText) => {
|
set_clipboardText((clipboardText) => {
|
||||||
if (clipboardText !== newText) {
|
if (clipboardText !== newText) {
|
||||||
setQ(newText + " ");
|
searchParams_setQ(newText + " ");
|
||||||
return newText;
|
return newText;
|
||||||
}
|
}
|
||||||
return clipboardText;
|
return clipboardText;
|
||||||
@@ -75,7 +87,7 @@ function SearchPage() {
|
|||||||
|
|
||||||
function trySearch() {
|
function trySearch() {
|
||||||
if (!q.trim()) {
|
if (!q.trim()) {
|
||||||
setEntries([]);
|
set_entries([]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +100,7 @@ function SearchPage() {
|
|||||||
|
|
||||||
nSearch.current += 1;
|
nSearch.current += 1;
|
||||||
|
|
||||||
setSearchTimeout(
|
set_searchTimeout(
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (nSearch.current > 1) runSearch();
|
if (nSearch.current > 1) runSearch();
|
||||||
}, 250),
|
}, 250),
|
||||||
@@ -103,12 +115,11 @@ function SearchPage() {
|
|||||||
norm_q = norm_q.replace(/n$/i, "ん").replace(/[a-z]$/i, "");
|
norm_q = norm_q.replace(/n$/i, "ん").replace(/[a-z]$/i, "");
|
||||||
}
|
}
|
||||||
if (!norm_q) return;
|
if (!norm_q) return;
|
||||||
if (isNew && prevNormQ.current === norm_q) return;
|
|
||||||
prevNormQ.current = norm_q;
|
|
||||||
|
|
||||||
const ender = /\p{Z}$/u.test(q) ? "" : "*";
|
const ender =
|
||||||
|
/\p{Z}$/u.test(q) || [..."*?[]"].some((c) => q.includes(c)) ? "" : "*";
|
||||||
|
|
||||||
const re = /\<(.+?)\>\[(.+?)\]/g;
|
const re = /\<(.+?)\>{(.+?)}/g;
|
||||||
|
|
||||||
let qTerm = "";
|
let qTerm = "";
|
||||||
let qReading = "";
|
let qReading = "";
|
||||||
@@ -149,7 +160,7 @@ function SearchPage() {
|
|||||||
segs.map((s) => s.surface).join("") +
|
segs.map((s) => s.surface).join("") +
|
||||||
" ";
|
" ";
|
||||||
|
|
||||||
setQ(newQ);
|
searchParams_setQ(newQ);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -158,9 +169,9 @@ function SearchPage() {
|
|||||||
resultScrollRef.current.scrollTop = 0;
|
resultScrollRef.current.scrollTop = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
setEntries(result);
|
set_entries(result);
|
||||||
} else {
|
} else {
|
||||||
setEntries([...entries, ...result]);
|
set_entries([...entries, ...result]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -189,13 +200,11 @@ function SearchPage() {
|
|||||||
q = toKana(q, {
|
q = toKana(q, {
|
||||||
useObsoleteKana: true,
|
useObsoleteKana: true,
|
||||||
IMEMode: true,
|
IMEMode: true,
|
||||||
customKanaMapping: Object.fromEntries(
|
customKanaMapping: Object.fromEntries([..."<>{}"].map((c) => [c, c])),
|
||||||
"<>[]".split("").map((c) => [c, c]),
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
setQ(q);
|
set_q(q);
|
||||||
}
|
}
|
||||||
|
|
||||||
const FURIGANA_REGEX = /^[\p{scx=Hiragana}\p{scx=Katakana}]+$/u;
|
const FURIGANA_REGEX = /^[\p{scx=Hiragana}\p{scx=Katakana}]+$/u;
|
||||||
@@ -205,7 +214,7 @@ function SearchPage() {
|
|||||||
data: compositionData,
|
data: compositionData,
|
||||||
}) => {
|
}) => {
|
||||||
if (FURIGANA_REGEX.test(compositionData)) {
|
if (FURIGANA_REGEX.test(compositionData)) {
|
||||||
setFurigana(compositionData);
|
set_furigana(compositionData);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -214,14 +223,14 @@ function SearchPage() {
|
|||||||
target,
|
target,
|
||||||
}) => {
|
}) => {
|
||||||
const cleanedFuri = [...furigana.replace(/n/g, "ん")]
|
const cleanedFuri = [...furigana.replace(/n/g, "ん")]
|
||||||
.map((c) => katakanaToHiragana(c))
|
.map((c) => toHiragana(c, { passRomaji: true }))
|
||||||
.join("");
|
.join("");
|
||||||
|
|
||||||
let parts = compositionData.split(KANJI_REGEX);
|
let parts = compositionData.split(KANJI_REGEX);
|
||||||
if (parts.length === 1) return;
|
if (parts.length === 1) return;
|
||||||
|
|
||||||
const hiraganaParts = parts.map((p) =>
|
const hiraganaParts = parts.map((p) =>
|
||||||
[...p].map((c) => katakanaToHiragana(c)).join(""),
|
[...p].map((c) => toHiragana(c, { passRomaji: true })).join(""),
|
||||||
);
|
);
|
||||||
const regex = new RegExp(
|
const regex = new RegExp(
|
||||||
`^${hiraganaParts.map((p, idx) => `(${idx & 1 ? ".+" : p})`).join("")}$`,
|
`^${hiraganaParts.map((p, idx) => `(${idx & 1 ? ".+" : p})`).join("")}$`,
|
||||||
@@ -234,10 +243,10 @@ function SearchPage() {
|
|||||||
rt.shift();
|
rt.shift();
|
||||||
|
|
||||||
const markup = parts
|
const markup = parts
|
||||||
.map((p, idx) => (idx & 1 ? `<${p}>[${rt[idx]}]` : p))
|
.map((p, idx) => (idx & 1 ? `<${p}>{${rt[idx]}}` : p))
|
||||||
.join("");
|
.join("");
|
||||||
|
|
||||||
setQ((q) => {
|
set_q((q) => {
|
||||||
if (!(target instanceof HTMLInputElement)) return markup;
|
if (!(target instanceof HTMLInputElement)) return markup;
|
||||||
|
|
||||||
let { selectionStart } = target;
|
let { selectionStart } = target;
|
||||||
@@ -252,24 +261,29 @@ function SearchPage() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function katakanaToHiragana(k: string) {
|
|
||||||
let c = k.charCodeAt(0);
|
|
||||||
return c >= 12449 && c <= 12531
|
|
||||||
? String.fromCharCode(k.charCodeAt(0) - 96)
|
|
||||||
: k;
|
|
||||||
}
|
|
||||||
|
|
||||||
const clearButton = q.trim() ? (
|
const clearButton = q.trim() ? (
|
||||||
<CloseButton
|
<CloseButton
|
||||||
size={"xs"}
|
size={"xs"}
|
||||||
me={-2}
|
me={-2}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setQ("");
|
searchParams_setQ(q);
|
||||||
|
searchParams_setQ("");
|
||||||
|
set_q("");
|
||||||
searchboxRef.current ? searchboxRef.current.focus() : null;
|
searchboxRef.current ? searchboxRef.current.focus() : null;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
|
function onTermClicked(t: string) {
|
||||||
|
searchParams_setQ(q);
|
||||||
|
searchParams_setQ(t + " ");
|
||||||
|
}
|
||||||
|
|
||||||
|
function JSONdumpClean(o: Record<string, any>) {
|
||||||
|
const p = Object.entries(o).filter(([, v]) => v || v === 0);
|
||||||
|
return p.length ? JSON.stringify(Object.fromEntries(p), null, 1) : null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
style={{
|
style={{
|
||||||
@@ -287,7 +301,7 @@ function SearchPage() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Group attached w="full">
|
<Field.Root w="full">
|
||||||
<InputGroup endElement={clearButton}>
|
<InputGroup endElement={clearButton}>
|
||||||
<Input
|
<Input
|
||||||
id="greet-input"
|
id="greet-input"
|
||||||
@@ -302,8 +316,24 @@ function SearchPage() {
|
|||||||
placeholder="Search..."
|
placeholder="Search..."
|
||||||
/>
|
/>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
{/* <Button type="submit">Search</Button> */}
|
{q.includes(" ") ? (
|
||||||
</Group>
|
<Field.HelperText>
|
||||||
|
Space (" ") to mark word boundary for search
|
||||||
|
</Field.HelperText>
|
||||||
|
) : null}
|
||||||
|
{[..."*?[]"].some((c) => q.includes(c)) ? (
|
||||||
|
<Field.HelperText>
|
||||||
|
<code>{"*?[]"}</code> can be used as
|
||||||
|
<a
|
||||||
|
href="https://en.wikipedia.org/wiki/Glob_(programming)#Syntax"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
glob
|
||||||
|
</a>
|
||||||
|
</Field.HelperText>
|
||||||
|
) : null}
|
||||||
|
</Field.Root>
|
||||||
<div style={{ marginTop: "0.5em", display: "flex", gap: "1em" }}>
|
<div style={{ marginTop: "0.5em", display: "flex", gap: "1em" }}>
|
||||||
<Switch.Root
|
<Switch.Root
|
||||||
checked={isAutoKana}
|
checked={isAutoKana}
|
||||||
@@ -335,10 +365,23 @@ function SearchPage() {
|
|||||||
<li key={i} lang={lang} style={{ marginLeft: "1.5em" }}>
|
<li key={i} lang={lang} style={{ marginLeft: "1.5em" }}>
|
||||||
<div>
|
<div>
|
||||||
<Card.Root>
|
<Card.Root>
|
||||||
<Card.Header>
|
<Card.Header display={"block"}>
|
||||||
|
<a
|
||||||
|
onClick={() =>
|
||||||
|
onTermClicked(reading ? `<${term}>{${reading}}` : term)
|
||||||
|
}
|
||||||
|
>
|
||||||
{term}
|
{term}
|
||||||
{reading ? ` (${reading})` : ""} 【{dict_title}】
|
</a>
|
||||||
{JSON.stringify(it, (_, v) => v || undefined)}
|
{reading && reading !== term ? (
|
||||||
|
<>
|
||||||
|
{"("}
|
||||||
|
<a onClick={() => onTermClicked(reading)}>{reading}</a>
|
||||||
|
{")"}
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
|
<span>【{dict_title}】</span>
|
||||||
|
<span>{JSONdumpClean(it)}</span>
|
||||||
</Card.Header>
|
</Card.Header>
|
||||||
<Card.Body>
|
<Card.Body>
|
||||||
<div
|
<div
|
||||||
@@ -352,7 +395,7 @@ function SearchPage() {
|
|||||||
<Glossary
|
<Glossary
|
||||||
key={i}
|
key={i}
|
||||||
glossary={g}
|
glossary={g}
|
||||||
onTermClicked={(t) => setQ(t + " ")}
|
onTermClicked={onTermClicked}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,4 +29,7 @@ export default defineConfig(async () => ({
|
|||||||
ignored: ["**/src-tauri/**"],
|
ignored: ["**/src-tauri/**"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
chunkSizeWarningLimit: 1024, // default = 500 kB
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
Reference in new issue
Block a user