mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Add link support to resource creation and editing, including validation
This commit is contained in:
@@ -42,6 +42,7 @@ export interface TagWithCount extends Tag {
|
||||
export interface CreateResourceParams {
|
||||
title: string;
|
||||
alternative_titles: string[];
|
||||
links: RLink[];
|
||||
tags: number[];
|
||||
article: string;
|
||||
images: number[];
|
||||
@@ -53,6 +54,11 @@ export interface Image {
|
||||
height: number;
|
||||
}
|
||||
|
||||
export interface RLink {
|
||||
label: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface Resource {
|
||||
id: number;
|
||||
title: string;
|
||||
@@ -66,6 +72,7 @@ export interface ResourceDetails {
|
||||
id: number;
|
||||
title: string;
|
||||
alternativeTitles: string[];
|
||||
links: RLink[];
|
||||
article: string;
|
||||
createdAt: string;
|
||||
tags: Tag[];
|
||||
|
Reference in New Issue
Block a user