fa7cd7e0e3
With fancy illustrations ✨
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
import { IEvent } from "@/types/event.model";
|
|
import { IGroup } from "./actor";
|
|
|
|
export interface IDashboard {
|
|
lastPublicEventPublished: IEvent;
|
|
lastGroupCreated: IGroup;
|
|
numberOfUsers: number;
|
|
numberOfEvents: number;
|
|
numberOfComments: number;
|
|
numberOfReports: number;
|
|
numberOfGroups: number;
|
|
numberOfFollowers: number;
|
|
numberOfFollowings: number;
|
|
numberOfConfirmedParticipationsToLocalEvents: number;
|
|
}
|
|
|
|
export enum InstanceTermsType {
|
|
DEFAULT = "DEFAULT",
|
|
URL = "URL",
|
|
CUSTOM = "CUSTOM",
|
|
}
|
|
|
|
export enum InstancePrivacyType {
|
|
DEFAULT = "DEFAULT",
|
|
URL = "URL",
|
|
CUSTOM = "CUSTOM",
|
|
}
|
|
|
|
export interface ILanguage {
|
|
code: string;
|
|
name: string;
|
|
}
|
|
|
|
export interface IAdminSettings {
|
|
instanceName: string;
|
|
instanceDescription: string;
|
|
instanceSlogan: string;
|
|
instanceLongDescription: string;
|
|
contact: string;
|
|
instanceTerms: string;
|
|
instanceTermsType: InstanceTermsType;
|
|
instanceTermsUrl: string | null;
|
|
instancePrivacyPolicy: string;
|
|
instancePrivacyPolicyType: InstanceTermsType;
|
|
instancePrivacyPolicyUrl: string | null;
|
|
instanceRules: string;
|
|
registrationsOpen: boolean;
|
|
instanceLanguages: string[];
|
|
}
|