2024-11-05 13:57:39 +01:00
|
|
|
export interface BlogForm {
|
2024-10-31 18:14:45 +01:00
|
|
|
title: string
|
|
|
|
content: string
|
|
|
|
image: string
|
2024-11-05 13:57:39 +01:00
|
|
|
summary: string
|
2024-10-31 18:14:45 +01:00
|
|
|
tags: string
|
2024-11-05 13:57:39 +01:00
|
|
|
nsfw: boolean
|
|
|
|
}
|
2024-10-31 18:14:45 +01:00
|
|
|
|
2024-11-05 13:57:39 +01:00
|
|
|
export interface BlogDetails extends BlogForm {
|
2024-10-31 18:14:45 +01:00
|
|
|
id: string
|
|
|
|
author: string
|
|
|
|
published_at: number
|
|
|
|
edited_at: number
|
2024-10-31 20:14:29 +01:00
|
|
|
rTag: string
|
|
|
|
dTag: string
|
|
|
|
aTag: string
|
|
|
|
tTags: string[]
|
2024-10-31 18:14:45 +01:00
|
|
|
}
|
|
|
|
|
2024-11-05 13:57:39 +01:00
|
|
|
export interface BlogEventSubmitForm extends Omit<BlogForm, 'nsfw'> {
|
2024-10-31 18:14:45 +01:00
|
|
|
nsfw: string
|
|
|
|
}
|
|
|
|
|
2024-11-05 13:57:39 +01:00
|
|
|
export interface BlogFormErrors extends Partial<BlogEventSubmitForm> {}
|
|
|
|
|
|
|
|
export interface BlogCardDetails extends BlogDetails {
|
|
|
|
naddr: string
|
|
|
|
}
|