mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add namespace to keywords
This commit is contained in:
1 file changed
+4
-4
@@ -17,9 +17,9 @@ import {
|
|||||||
|
|
||||||
const list = [];
|
const list = [];
|
||||||
const filterTags = {};
|
const filterTags = {};
|
||||||
const pinned: Record<string, string[]> = { category: [], difficulty: [] };
|
const pinned: Record<string, string[]> = { category: [], difficulty: [], namespace: [] };
|
||||||
const selections = { category: {}, difficulty: {} };
|
const selections = { category: {}, difficulty: {}, namespace: {} };
|
||||||
const selectedTags: Record<string, string[]> = { category: [], difficulty: [] };
|
const selectedTags: Record<string, string[]> = { category: [], difficulty: [], namespace: [] };
|
||||||
|
|
||||||
let selectedPids: string[] = [];
|
let selectedPids: string[] = [];
|
||||||
let clearSelectionHandler: (() => void) | null = null;
|
let clearSelectionHandler: (() => void) | null = null;
|
||||||
@@ -35,7 +35,7 @@ function setDomSelected($dom, selected, icon?) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const parserOptions = {
|
const parserOptions = {
|
||||||
keywords: ['category', 'difficulty'],
|
keywords: ['category', 'difficulty', 'namespace'],
|
||||||
offsets: true,
|
offsets: true,
|
||||||
alwaysArray: true,
|
alwaysArray: true,
|
||||||
tokenize: true,
|
tokenize: true,
|
||||||
|
|||||||
Reference in new issue
Block a user