all developments of milestone 1

This commit is contained in:
setop
2024-04-10 12:36:21 +00:00
parent a78dc261e5
commit 7030d56864
266 changed files with 5391 additions and 2609 deletions

View File

@@ -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;

View File

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

View File

@@ -134,6 +134,8 @@ export enum SearchTabs {
export enum ContentType {
ALL = "ALL",
EVENTS = "EVENTS",
SHORTEVENTS = "SHORTEVENTS",
LONGEVENTS = "LONGEVENTS",
GROUPS = "GROUPS",
}

View File

@@ -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;

View File

@@ -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;
}