Changes
parent
2cdd3df6c3
commit
cd89634fd6
|
@ -2,7 +2,7 @@ export type PageMeta = {
|
||||||
name: string;
|
name: string;
|
||||||
lastModified: number;
|
lastModified: number;
|
||||||
lastOpened?: number;
|
lastOpened?: number;
|
||||||
created?: boolean;
|
perm: "ro" | "rw";
|
||||||
};
|
};
|
||||||
|
|
||||||
// Used by FilterBox
|
// Used by FilterBox
|
||||||
|
|
|
@ -20,7 +20,9 @@ export async function queryProvider({
|
||||||
}
|
}
|
||||||
let results = await fullTextSearch(phraseFilter.value, 100);
|
let results = await fullTextSearch(phraseFilter.value, 100);
|
||||||
|
|
||||||
let allPageMap: Map<string, any> = new Map(results.map((r) => [r.name, r]));
|
let allPageMap: Map<string, any> = new Map(
|
||||||
|
results.map((r: any) => [r.name, r])
|
||||||
|
);
|
||||||
for (let { page, value } of await scanPrefixGlobal("meta:")) {
|
for (let { page, value } of await scanPrefixGlobal("meta:")) {
|
||||||
let p = allPageMap.get(page);
|
let p = allPageMap.get(page);
|
||||||
if (p) {
|
if (p) {
|
||||||
|
|
Loading…
Reference in New Issue