Add global search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-26 16:08:58 +02:00
parent bfc936f57c
commit 48935e2168
216 changed files with 3646 additions and 2806 deletions

View File

@@ -26,6 +26,8 @@ export interface IGroup extends IActor {
manuallyApprovesFollowers: boolean;
activity: Paginate<IActivity>;
followers: Paginate<IFollower>;
membersCount?: number;
followersCount?: number;
}
export class Group extends Actor implements IGroup {

View File

@@ -124,4 +124,10 @@ export interface IConfig {
eventParticipants: string[];
};
analytics: IAnalyticsConfig[];
search: {
global: {
isEnabled: boolean;
isDefault: boolean;
};
};
}

View File

@@ -286,3 +286,8 @@ export enum InstanceFollowStatus {
PENDING = "PENDING",
NONE = "NONE",
}
export enum SearchTargets {
INTERNAL = "INTERNAL",
GLOBAL = "GLOBAL",
}

View File

@@ -17,6 +17,8 @@ export interface IEventCardOptions {
loggedPerson?: IPerson | boolean;
hideDetails?: boolean;
organizerActor?: IActor | null;
isRemoteEvent?: boolean;
isLoggedIn?: boolean;
}
export interface IEventParticipantStats {

View File

@@ -10,7 +10,7 @@ export interface IPost {
local: boolean;
title: string;
body: string;
tags?: ITag[];
tags: ITag[];
picture?: IMedia | null;
draft: boolean;
visibility: PostVisibility;