Configure global storage

This commit is contained in:
Jorik Schellekens
2020-09-01 10:14:13 +02:00
parent 890669741c
commit 47fe7860c3
7 changed files with 313 additions and 54 deletions
+14 -6
View File
@@ -20,10 +20,10 @@ import { SafeLink } from '../parser/types';
* A collection of descriptive tags that can be added to
* a clients description.
*/
export enum Tag {
IOS = 'IOS',
ANDROID = 'ANDROID',
DESKTOP = 'DESKTOP',
export enum Platform {
iOS = 'iOS',
Android = 'ANDROID',
Desktop = 'DESKTOP',
}
/*
@@ -45,6 +45,12 @@ export enum ClientKind {
TEXT_CLIENT = 'TEXT_CLIENT',
}
export enum ClientId {
Element = 'element.io',
ElementDevelop = 'develop.element.io',
WeeChat = 'weechat',
}
/*
* The descriptive details of a client
*/
@@ -54,8 +60,10 @@ export interface ClientDescription {
homepage: string;
logo: string;
description: string;
tags: Tag[];
platform: Platform;
maturity: Maturity;
clientId: ClientId;
experimental: boolean;
}
/*
@@ -72,7 +80,7 @@ export interface LinkedClient extends ClientDescription {
*/
export interface TextClient extends ClientDescription {
kind: ClientKind.TEXT_CLIENT;
toInviteString(parsedLink: SafeLink): string;
toInviteString(parsedLink: SafeLink): JSX.Element;
}
/*