-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
117 lines (107 loc) · 2.56 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import type { ParsedContent, MarkdownParsedContent } from '@nuxt/content/dist/runtime/types';
export type Section = "journal" | "work" | "themes" | "tutorials" | "photos";
export type WorkType = "WordPress" | "Jamstack" | "Gridsome" | "Nuxt" | "Design" | "Joomla";
export interface Page extends MarkdownParsedContent {
title: string;
description: string;
draft: boolean;
image?: string;
}
export interface Post extends MarkdownParsedContent {
title: string;
description: string;
date: string;
image?: string;
tags: string[];
}
export interface Portfolio extends MarkdownParsedContent {
id?: string;
title: string;
slug: string;
status: string;
date: string;
draft: boolean;
type: WorkType;
tags: string[];
services: string[];
company?: string;
contact?: string;
description: string;
url: string;
image?: string;
thumb?: string;
gallery: string[];
video?: string;
}
export interface Theme extends MarkdownParsedContent {
id?: string;
title: string;
slug: string;
description: string;
date: string;
tags: string[];
platform: string;
demo_url: string;
repo_url: string;
download_theme: string;
download_source: string;
requirements?: string;
release_date?: string;
image?: string;
gallery?: string[];
}
export interface Tutorial extends MarkdownParsedContent {
id?: string;
title: string;
slug: string;
description: string;
date: string;
image?: string;
thumb?: string;
tags: string[];
topics: string[];
topic: string;
category: string;
type: string;
published: boolean;
difficulty: string;
}
export interface Album extends MarkdownParsedContent {
id?: string;
title: string;
description: string;
date: string;
image?: string;
category: string;
tags: string[];
gallery: string[];
}
export interface Video extends ParsedContent {
id?: string;
title: string;
slug: string;
description: string;
date: string;
image?: string;
video_id?: string;
video_url?: string;
duration?: string;
start?: string;
}
export type PostPreview = Omit<Post, 'body'>;
export type TutorialPreview = Omit<Tutorial, 'body'>;
export type PortfolioPreview = Omit<Portfolio, 'body'>;
export type AlbumPreview = Omit<Album, 'body'>;
export type ThemePreview = Omit<Theme, 'body'>;
export interface Subnav {
url: string,
text: string,
title?: string,
}
export interface Navigation {
url: string,
text: string,
title?: string,
icon?: string,
subnav?: Array<String>,
}