fixes
This commit is contained in:
parent
971347de8c
commit
41c80b693d
|
@ -274,7 +274,7 @@ export default hasConfig
|
||||||
note = [note];
|
note = [note];
|
||||||
}
|
}
|
||||||
|
|
||||||
let deletionBatch = note
|
const deletionBatch = note
|
||||||
.map((n) => {
|
.map((n) => {
|
||||||
if (n instanceof Note) {
|
if (n instanceof Note) {
|
||||||
return n.id;
|
return n.id;
|
||||||
|
|
|
@ -3,10 +3,16 @@ import { i18n } from "@/i18n";
|
||||||
import { mainRouter } from "@/router";
|
import { mainRouter } from "@/router";
|
||||||
|
|
||||||
export async function search() {
|
export async function search() {
|
||||||
const { canceled, result: query } = await os.inputText({
|
let searchOptions = "";
|
||||||
title: i18n.ts.search,
|
|
||||||
placeholder: i18n.ts.searchPlaceholder,
|
let meta = null;
|
||||||
text:
|
|
||||||
|
os.api("server-info", {}).then((res) => {
|
||||||
|
meta = res;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (meta.meilisearch.health === "available") {
|
||||||
|
searchOptions =
|
||||||
"Advanced search operators\n" +
|
"Advanced search operators\n" +
|
||||||
"from:user => filter by user\n" +
|
"from:user => filter by user\n" +
|
||||||
"has:image/video/audio/text/file => filter by attachment types\n" +
|
"has:image/video/audio/text/file => filter by attachment types\n" +
|
||||||
|
@ -15,7 +21,12 @@ export async function search() {
|
||||||
"after:Date => show posts made after Date\n" +
|
"after:Date => show posts made after Date\n" +
|
||||||
'"text" => get posts with exact text between quotes\n' +
|
'"text" => get posts with exact text between quotes\n' +
|
||||||
"filter:following => show results only from users you follow\n" +
|
"filter:following => show results only from users you follow\n" +
|
||||||
"filter:followers => show results only from followers\n",
|
"filter:followers => show results only from followers\n";
|
||||||
|
}
|
||||||
|
const { canceled, result: query } = await os.inputText({
|
||||||
|
title: i18n.ts.search,
|
||||||
|
placeholder: i18n.ts.searchPlaceholder,
|
||||||
|
text: searchOptions,
|
||||||
});
|
});
|
||||||
if (canceled || query == null || query === "") return;
|
if (canceled || query == null || query === "") return;
|
||||||
|
|
||||||
|
@ -46,9 +57,7 @@ export async function search() {
|
||||||
// TODO
|
// TODO
|
||||||
//v.$root.$emit('warp', date);
|
//v.$root.$emit('warp', date);
|
||||||
os.alert({
|
os.alert({
|
||||||
icon: "ph-clock-counter-clockwise ph-bold ph-lg",
|
type: "waiting",
|
||||||
iconOnly: true,
|
|
||||||
autoClose: true,
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue