mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
fixes
This commit is contained in:
parent
7a2b2b638a
commit
e761bd6b23
@ -274,7 +274,7 @@ export default hasConfig
|
||||
note = [note];
|
||||
}
|
||||
|
||||
let deletionBatch = note
|
||||
const deletionBatch = note
|
||||
.map((n) => {
|
||||
if (n instanceof Note) {
|
||||
return n.id;
|
||||
|
@ -3,19 +3,30 @@ import { i18n } from "@/i18n";
|
||||
import { mainRouter } from "@/router";
|
||||
|
||||
export async function search() {
|
||||
let searchOptions = "";
|
||||
|
||||
let meta = null;
|
||||
|
||||
os.api("server-info", {}).then((res) => {
|
||||
meta = res;
|
||||
});
|
||||
|
||||
if (meta.meilisearch.health === "available") {
|
||||
searchOptions =
|
||||
"Advanced search operators\n" +
|
||||
"from:user => filter by user\n" +
|
||||
"has:image/video/audio/text/file => filter by attachment types\n" +
|
||||
"domain:domain.com => filter by domain\n" +
|
||||
"before:Date => show posts made before Date\n" +
|
||||
"after:Date => show posts made after Date\n" +
|
||||
'"text" => get posts with exact text between quotes\n' +
|
||||
"filter:following => show results only from users you follow\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:
|
||||
"Advanced search operators\n" +
|
||||
"from:user => filter by user\n" +
|
||||
"has:image/video/audio/text/file => filter by attachment types\n" +
|
||||
"domain:domain.com => filter by domain\n" +
|
||||
"before:Date => show posts made before Date\n" +
|
||||
"after:Date => show posts made after Date\n" +
|
||||
'"text" => get posts with exact text between quotes\n' +
|
||||
"filter:following => show results only from users you follow\n" +
|
||||
"filter:followers => show results only from followers\n",
|
||||
text: searchOptions,
|
||||
});
|
||||
if (canceled || query == null || query === "") return;
|
||||
|
||||
@ -46,9 +57,7 @@ export async function search() {
|
||||
// TODO
|
||||
//v.$root.$emit('warp', date);
|
||||
os.alert({
|
||||
icon: "ph-clock-counter-clockwise ph-bold ph-lg",
|
||||
iconOnly: true,
|
||||
autoClose: true,
|
||||
type: "waiting",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user