use cover instead of preview of coverSrc

This commit is contained in:
tmshv committed 2020-03-11 13:38:50 +03:00
1 parent a4d245007e
commit b7f3bbbcef
9 files changed
+72 -58

No files matched your search

+25 -12
View File
@@ -21,7 +21,20 @@ export type PageCardDto = {
title: string
featured: boolean
date: string
coverSrc: string
cover?: ImageDefinition
}
export type FileDefinition = {
url: string
slug: string
name: string
cover?: ImageDefinition
file: {
name: string
size: string
type: string
src: string
}
}
export interface IPage {
@@ -30,7 +43,7 @@ export interface IPage {
url: string
data: string
date: string
preview: ImageDefinition
cover: ImageDefinition
description: string
tokens: any[]
tags: ITag[]
@@ -96,14 +109,14 @@ export type ImageArtifact = {
}
export type ImageDefinition = {
file: string
hash: string
artifacts: {
original: ImageArtifact
large?: ImageArtifact
big?: ImageArtifact
medium?: ImageArtifact
small?: ImageArtifact
fb?: ImageArtifact
}
width: number
height: number
src: string
// file: string
// hash: string
// artifacts: {
// original: ImageArtifact
// large?: ImageArtifact
// }
}