Various UI stuff (mainly implement mookup)
Fix lint Disable modern mode Fixes UI fixes Fixes Ignore .po~ files Fixes Fix homepage Fixes Fixes Mix format Fix tests Fix tests (yeah…) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -22,6 +22,19 @@ export class Actor implements IActor {
|
||||
summary: string = '';
|
||||
suspended: boolean = false;
|
||||
url: string = '';
|
||||
|
||||
get displayNameAndUsername(): string {
|
||||
return `${this.name} (${this.usernameWithDomain})`;
|
||||
}
|
||||
|
||||
public usernameWithDomain(): string {
|
||||
const domain = this.domain ? `@${this.domain}` : '';
|
||||
return `@${this.preferredUsername}${domain}`;
|
||||
}
|
||||
|
||||
public displayName(): string {
|
||||
return this.name != null && this.name !== '' ? this.name : this.usernameWithDomain();
|
||||
}
|
||||
}
|
||||
|
||||
export interface IPerson extends IActor {
|
||||
@@ -38,6 +51,10 @@ export class Person extends Actor implements IPerson {
|
||||
goingToEvents: IEvent[] = [];
|
||||
}
|
||||
|
||||
export class Group extends Actor implements IGroup {
|
||||
members: IMember[] = [];
|
||||
}
|
||||
|
||||
export interface IFeedToken {
|
||||
token: string;
|
||||
actor?: IPerson;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export interface IConfig {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
registrationsOpen: boolean;
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ export enum EventStatus {
|
||||
}
|
||||
|
||||
export enum EventVisibility {
|
||||
PUBLIC,
|
||||
UNLISTED,
|
||||
RESTRICTED,
|
||||
PRIVATE,
|
||||
PUBLIC = 'PUBLIC',
|
||||
UNLISTED = 'UNLISTED',
|
||||
RESTRICTED = 'RESTRICTED',
|
||||
PRIVATE = 'PRIVATE',
|
||||
}
|
||||
|
||||
export enum EventJoinOptions {
|
||||
|
||||
3
js/src/types/search.model.ts
Normal file
3
js/src/types/search.model.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface ISearch {
|
||||
__typename: string;
|
||||
}
|
||||
Reference in New Issue
Block a user