all developments of milestone 1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { IEvent } from "@/types/event.model";
|
||||
import type { IMedia } from "@/types/media.model";
|
||||
import type { IGroup } from "./actor";
|
||||
import { InstancePrivacyType, InstanceTermsType } from "./enums";
|
||||
|
||||
@@ -25,6 +26,10 @@ export interface IAdminSettings {
|
||||
instanceSlogan: string;
|
||||
instanceLongDescription: string;
|
||||
contact: string;
|
||||
instanceLogo: IMedia | null;
|
||||
defaultPicture: IMedia | null;
|
||||
primaryColor: string;
|
||||
secondaryColor: string;
|
||||
instanceTerms: string;
|
||||
instanceTermsType: InstanceTermsType;
|
||||
instanceTermsUrl: string | null;
|
||||
|
||||
@@ -37,10 +37,15 @@ export interface IConfig {
|
||||
longDescription: string;
|
||||
contact: string;
|
||||
slogan: string;
|
||||
instanceLogo: { url: string };
|
||||
defaultPicture: { url: string };
|
||||
primaryColor: string;
|
||||
secondaryColor: string;
|
||||
|
||||
registrationsOpen: boolean;
|
||||
registrationsAllowlist: boolean;
|
||||
demoMode: boolean;
|
||||
longEvents: boolean;
|
||||
countryCode: string;
|
||||
eventCategories: { id: string; label: string }[];
|
||||
languages: string[];
|
||||
|
||||
@@ -134,6 +134,8 @@ export enum SearchTabs {
|
||||
export enum ContentType {
|
||||
ALL = "ALL",
|
||||
EVENTS = "EVENTS",
|
||||
SHORTEVENTS = "SHORTEVENTS",
|
||||
LONGEVENTS = "LONGEVENTS",
|
||||
GROUPS = "GROUPS",
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ export interface IEventOptions {
|
||||
program: string;
|
||||
commentModeration: CommentModeration;
|
||||
showParticipationPrice: boolean;
|
||||
hideNumberOfParticipants: boolean;
|
||||
showStartTime: boolean;
|
||||
showEndTime: boolean;
|
||||
timezone: string | null;
|
||||
@@ -53,6 +54,8 @@ export class EventOptions implements IEventOptions {
|
||||
|
||||
showParticipationPrice = false;
|
||||
|
||||
hideNumberOfParticipants = false;
|
||||
|
||||
showStartTime = true;
|
||||
|
||||
showEndTime = true;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { Ref } from "vue";
|
||||
|
||||
export interface IMedia {
|
||||
id: string;
|
||||
url: string;
|
||||
@@ -21,3 +23,9 @@ export interface IMediaMetadata {
|
||||
height?: number;
|
||||
blurhash?: string;
|
||||
}
|
||||
|
||||
export interface IModifiableMedia {
|
||||
file: Ref<File | null>;
|
||||
firstHash: string | null;
|
||||
hash: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user