feat: allow to filter events by local-only

In addition to internal (self + federated) and global (global external search engine), introduce the
self possibility

Closes #1322

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2024-02-09 10:54:00 +01:00
parent d1b1979ee5
commit 9d99684402
9 changed files with 87 additions and 8 deletions

View File

@@ -293,6 +293,7 @@ export enum InstanceFollowStatus {
}
export enum SearchTargets {
SELF = "SELF",
INTERNAL = "INTERNAL",
GLOBAL = "GLOBAL",
}

View File

@@ -68,6 +68,22 @@
<fieldset class="flex flex-col">
<legend class="sr-only">{{ t("Search target") }}</legend>
<div>
<input
id="selfTarget"
v-model="searchTarget"
type="radio"
name="selfTarget"
:value="SearchTargets.SELF"
class="w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600"
/>
<label
for="selfTarget"
class="ml-3 font-medium text-gray-900 dark:text-gray-300"
>{{ t("From this instance only") }}</label
>
</div>
<div>
<input
id="internalTarget"