diff --git a/locales/ca-ES.yml b/locales/ca-ES.yml index f64f70583a..f438b4f9a8 100644 --- a/locales/ca-ES.yml +++ b/locales/ca-ES.yml @@ -1802,8 +1802,8 @@ pushNotificationNotSupported: El vostre navegador o servidor no admet notificaci push license: Llicència indexPosts: Índex de notes -indexFrom: Índex a partir de l'ID de Publicacions (deixeu en blanc per indexar cada - publicació) +indexFrom: Índex a partir de l'ID de Publicacions +indexFromDescription: Deixeu en blanc per indexar cada publicació indexNotice: Ara indexant. Això probablement trigarà una estona, si us plau, no reinicieu el servidor durant almenys una hora. _instanceTicker: diff --git a/locales/en-US.yml b/locales/en-US.yml index 5184df4bef..5b6af9bed0 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1065,7 +1065,8 @@ migrationConfirm: "Are you absolutely sure you want to migrate your account to { defaultReaction: "Default emoji reaction for outgoing and incoming posts" license: "License" indexPosts: "Index Posts" -indexFrom: "Index from Post ID onwards (leave blank to index every post)" +indexFrom: "Index from Post ID onwards" +indexFromDescription: "Leave blank to index every post" indexNotice: "Now indexing. This will probably take a while, please don't restart\ \ your server for at least an hour." customKaTeXMacro: "Custom KaTeX macros" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 84c894c7a8..94454f3f9d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -966,7 +966,8 @@ migrationConfirm: "本当にこのアカウントを {account} に引っ越し defaultReaction: "リモートとローカルの投稿に対するデフォルトの絵文字リアクション" license: "ライセンス" indexPosts: "投稿をインデックス" -indexFrom: "この投稿ID以降をインデックスする(空白で全ての投稿を指定します)" +indexFrom: "この投稿ID以降をインデックスする" +indexFromDescription: "空白で全ての投稿を指定します" indexNotice: "インデックスを開始しました。完了まで時間がかかる場合があるため、少なくとも1時間はサーバーを再起動しないでください。" customKaTeXMacro: "カスタムKaTeXマクロ" customKaTeXMacroDescription: "数式入力を楽にするためのマクロを設定しましょう!記法はLaTeXにおけるコマンドの定義と同様に \\newcommand{\\\ diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index c127c5a525..659e204af5 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -1898,7 +1898,8 @@ sendPushNotificationReadMessageCaption: Powiadomienie zawierające tekst "{empty defaultReaction: Domyślna reakcja emoji dla wychodzących i przychodzących wpisów license: Licencja indexPosts: Indeksuj wpisy -indexFrom: Indeksuj wpisy od ID (zostaw puste dla indeksowania wszystkich wpisów) +indexFrom: Indeksuj wpisy od ID +indexFromDescription: Zostaw puste dla indeksowania wszystkich wpisów indexNotice: Indeksuję. Zapewne zajmie to chwilę, nie restartuj serwera przez co najmniej godzinę. customKaTeXMacro: Niestandardowe makra KaTeX diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index 4d94ab287c..ad47d7d37c 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -1909,8 +1909,8 @@ recommendedInstances: Рекомендованные инстансы defaultReaction: Эмодзи реакция по умолчанию для выходящих и исходящих постов license: Лицензия indexPosts: Индексировать посты -indexFrom: Индексировать начиная с идентификатора поста и далее (оставьте пустым для - индексации каждого поста) +indexFrom: Индексировать начиная с идентификатора поста и далее +indexFromDescription: оставьте пустым для индексации каждого поста indexNotice: Теперь индексирование. Вероятно, это займет некоторое время, пожалуйста, не перезагружайте свой сервер по крайней мере в течение часа. customKaTeXMacro: Кастомные KaTex макросы diff --git a/packages/client/src/scripts/index-posts.ts b/packages/client/src/scripts/index-posts.ts index 9817a83284..94b545e90e 100644 --- a/packages/client/src/scripts/index-posts.ts +++ b/packages/client/src/scripts/index-posts.ts @@ -4,6 +4,7 @@ import * as os from "@/os"; export async function indexPosts() { const { canceled, result: index } = await os.inputText({ title: i18n.ts.indexFrom, + text: i18n.ts.indexFromDescription, }); if (canceled) return; diff --git a/packages/client/src/scripts/search.ts b/packages/client/src/scripts/search.ts index 379f09c089..2b52dc6683 100644 --- a/packages/client/src/scripts/search.ts +++ b/packages/client/src/scripts/search.ts @@ -3,16 +3,7 @@ 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 = + const searchOptions = "Advanced search operators\n" + "from:user => filter by user\n" + "has:image/video/audio/text/file => filter by attachment types\n" + @@ -22,7 +13,7 @@ export async function search() { '"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,