Convert to component based architecture
This commit is contained in:
parent
eb2075aec5
commit
cdaa423b8a
70 changed files with 1942 additions and 484 deletions
16
src/model/content.ts
Normal file
16
src/model/content.ts
Normal 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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue