mobilizon.chapril.org-mobil.../js/src/types/admin.model.ts
Thomas Citharel fa7cd7e0e3
New unlogged homepage
With fancy illustrations 

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 17:49:18 +02:00

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[];
}