mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
full text search and UI button
This commit is contained in:
1 parent
afacdc0856
commit
f0cafa450d
10 files changed
+189
-65
No files matched your search
@@ -115,6 +115,9 @@ function SearchPage() {
|
||||
if (isAutoKana) {
|
||||
norm_q = norm_q.replace(/n$/i, "ん").replace(/[a-z]$/i, "");
|
||||
}
|
||||
|
||||
norm_q = norm_q.replace(/*/g, "*").replace(/?/g, "?").replace(/^〜/, "~");
|
||||
|
||||
if (!norm_q) return;
|
||||
|
||||
const ender =
|
||||
@@ -391,6 +394,9 @@ function SearchPage() {
|
||||
{")"}
|
||||
</>
|
||||
) : null}
|
||||
<button onClick={() => onTermClicked("~" + term)}>
|
||||
🔗
|
||||
</button>
|
||||
<span>【{dict_title}】</span>
|
||||
<span>{JSONdumpClean(it)}</span>
|
||||
</Card.Header>
|
||||
|
||||
Reference in new issue
Block a user