Adding MostComments sort, and FederatedInstances

This commit is contained in:
Dessalines 2021-02-01 12:43:10 -05:00
parent 30a53b7c3f
commit 46abc4db80
2 changed files with 8 additions and 1 deletions

View file

@ -100,7 +100,7 @@ export interface GetSiteResponse {
online: number; online: number;
version: string; version: string;
my_user?: UserSafeSettings; // Gives back your user and settings if logged in my_user?: UserSafeSettings; // Gives back your user and settings if logged in
federated_instances: string[]; federated_instances?: FederatedInstances;
} }
export interface TransferSite { export interface TransferSite {
@ -120,3 +120,9 @@ export interface SaveSiteConfig {
config_hjson: string; config_hjson: string;
auth: string; auth: string;
} }
export interface FederatedInstances {
linked: string[];
allowed: string[];
blocked: string[];
}

View file

@ -73,6 +73,7 @@ export enum SortType {
TopMonth = 'TopMonth', TopMonth = 'TopMonth',
TopYear = 'TopYear', TopYear = 'TopYear',
TopAll = 'TopAll', TopAll = 'TopAll',
MostComments = 'MostComments',
} }
export enum ListingType { export enum ListingType {