Convert to component based architecture

This commit is contained in:
Schmelczer András 2019-12-21 22:59:41 +01:00
parent eb2075aec5
commit cdaa423b8a
70 changed files with 1942 additions and 484 deletions

16
src/model/content.ts Normal file
View file

@ -0,0 +1,16 @@
import { url } from "./misc";
interface Anchor {
type: "a";
href: url;
text: string;
}
interface Video {
type: "video";
src: url;
}
export type TypedContent = Anchor | Video;
export type Content = Array<String | TypedContent>;