mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-15 16:27:54 +02:00
Add Header, Footer, Basic Search
This commit is contained in:
34
Website/modules/interfaces/IManga.tsx
Normal file
34
Website/modules/interfaces/IManga.tsx
Normal file
@ -0,0 +1,34 @@
|
||||
import IMangaConnector from "./IMangaConnector";
|
||||
import KeyValuePair from "./KeyValuePair";
|
||||
import {Manga} from "../Manga";
|
||||
import {ReactElement} from "react";
|
||||
|
||||
export default interface IManga{
|
||||
"sortName": string,
|
||||
"authors": string[],
|
||||
"altTitles": KeyValuePair[],
|
||||
"description": string,
|
||||
"tags": string[],
|
||||
"coverUrl": string,
|
||||
"coverFileNameInCache": string,
|
||||
"links": KeyValuePair[],
|
||||
"year": number,
|
||||
"originalLanguage": string,
|
||||
"releaseStatus": number,
|
||||
"folderName": string,
|
||||
"publicationId": string,
|
||||
"internalId": string,
|
||||
"ignoreChaptersBelow": number,
|
||||
"latestChapterDownloaded": number,
|
||||
"latestChapterAvailable": number,
|
||||
"websiteUrl": string,
|
||||
"mangaConnector": IMangaConnector
|
||||
}
|
||||
|
||||
export function HTMLFromIManga(manga: IManga) : ReactElement {
|
||||
return (<div className="Manga" key={manga.internalId}>
|
||||
<p>{manga.sortName}</p>
|
||||
<p>Description: {manga.description}</p>
|
||||
<p>MangaConnector: {manga.mangaConnector.name}</p>
|
||||
</div>)
|
||||
}
|
5
Website/modules/interfaces/IMangaConnector.tsx
Normal file
5
Website/modules/interfaces/IMangaConnector.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
export default interface IMangaConnector {
|
||||
SupportedLanguages: string[];
|
||||
name: string;
|
||||
BaseUris: string[];
|
||||
}
|
4
Website/modules/interfaces/KeyValuePair.tsx
Normal file
4
Website/modules/interfaces/KeyValuePair.tsx
Normal file
@ -0,0 +1,4 @@
|
||||
export default interface KeyValuePair {
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
Reference in New Issue
Block a user