@@ -14,12 +14,23 @@ export enum InstanceTermsType {
|
||||
CUSTOM = "CUSTOM",
|
||||
}
|
||||
|
||||
export enum InstancePrivacyType {
|
||||
DEFAULT = "DEFAULT",
|
||||
URL = "URL",
|
||||
CUSTOM = "CUSTOM",
|
||||
}
|
||||
|
||||
export interface IAdminSettings {
|
||||
instanceName: string;
|
||||
instanceDescription: string;
|
||||
instanceLongDescription: string;
|
||||
contact: string;
|
||||
instanceTerms: string;
|
||||
instanceTermsType: InstanceTermsType;
|
||||
instanceTermsUrl: string | null;
|
||||
instancePrivacyPolicy: string;
|
||||
instancePrivacyPolicyType: InstanceTermsType;
|
||||
instancePrivacyPolicyUrl: string | null;
|
||||
instanceRules: string;
|
||||
registrationsOpen: boolean;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { InstanceTermsType } from "./admin.model";
|
||||
import { InstanceTermsType, InstancePrivacyType } from "./admin.model";
|
||||
import { IProvider } from "./resource";
|
||||
|
||||
export interface IConfig {
|
||||
name: string;
|
||||
description: string;
|
||||
longDescription: string;
|
||||
contact: string;
|
||||
|
||||
registrationsOpen: boolean;
|
||||
registrationsWhitelist: boolean;
|
||||
@@ -59,10 +61,17 @@ export interface IConfig {
|
||||
type: InstanceTermsType;
|
||||
url: string;
|
||||
};
|
||||
privacy: {
|
||||
bodyHtml: string;
|
||||
type: InstancePrivacyType;
|
||||
url: string;
|
||||
};
|
||||
rules: string;
|
||||
resourceProviders: IProvider[];
|
||||
timezones: string[];
|
||||
features: {
|
||||
groups: boolean;
|
||||
};
|
||||
federating: boolean;
|
||||
version: string;
|
||||
}
|
||||
|
||||
5
js/src/types/statistics.model.ts
Normal file
5
js/src/types/statistics.model.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface IStatistics {
|
||||
numberOfUsers: number;
|
||||
numberOfEvents: number;
|
||||
numberOfComments: number;
|
||||
}
|
||||
Reference in New Issue
Block a user