aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/overviews
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-30 14:58:00 +0200
committerChocobozzz <me@florianbigard.com>2018-08-31 09:19:58 +0200
commit2d3741d6d92e9bd1f41694c7442a6d1da434e1f2 (patch)
tree93a1e609e14bc14ca9e77a6661ddc9c0e461d6f3 /shared/models/overviews
parentd9eaee3939bf2e93e5d775d32bce77842201faba (diff)
downloadPeerTube-2d3741d6d92e9bd1f41694c7442a6d1da434e1f2.tar.gz
PeerTube-2d3741d6d92e9bd1f41694c7442a6d1da434e1f2.tar.zst
PeerTube-2d3741d6d92e9bd1f41694c7442a6d1da434e1f2.zip
Videos overview page: first version
Diffstat (limited to 'shared/models/overviews')
-rw-r--r--shared/models/overviews/index.ts1
-rw-r--r--shared/models/overviews/videos-overview.ts18
2 files changed, 19 insertions, 0 deletions
diff --git a/shared/models/overviews/index.ts b/shared/models/overviews/index.ts
new file mode 100644
index 000000000..376609efa
--- /dev/null
+++ b/shared/models/overviews/index.ts
@@ -0,0 +1 @@
export * from './videos-overview'
diff --git a/shared/models/overviews/videos-overview.ts b/shared/models/overviews/videos-overview.ts
new file mode 100644
index 000000000..ee009d94c
--- /dev/null
+++ b/shared/models/overviews/videos-overview.ts
@@ -0,0 +1,18 @@
1import { Video, VideoChannelAttribute, VideoConstant } from '../videos'
2
3export interface VideosOverview {
4 channels: {
5 channel: VideoChannelAttribute
6 videos: Video[]
7 }[]
8
9 categories: {
10 category: VideoConstant<number>
11 videos: Video[]
12 }[]
13
14 tags: {
15 tag: string
16 videos: Video[]
17 }[]
18}