Files
suwayomi-material-you-webui/webUI/react/src/typings.d.ts

121 lines
2.1 KiB
TypeScript
Raw Normal View History

/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
2021-01-26 23:32:12 +03:30
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
2020-12-24 16:50:50 +01:00
interface IExtension {
name: string
pkgName: string
2020-12-24 16:50:50 +01:00
versionName: string
versionCode: number
lang: string
isNsfw: boolean
2020-12-25 03:08:08 +03:30
apkName: string
iconUrl: string
2021-03-29 02:47:51 +04:30
installed: boolean
hasUpdate: boolean
2021-03-29 02:47:51 +04:30
obsolete: boolean
2020-12-24 16:50:50 +01:00
}
2020-12-25 06:36:34 +03:30
interface ISource {
2020-12-25 22:14:54 +03:30
id: string
2020-12-25 06:36:34 +03:30
name: string
lang: string
iconUrl: string
supportsLatest: boolean
2020-12-25 22:14:54 +03:30
history: any
2020-12-25 06:36:34 +03:30
}
2020-12-25 17:42:22 +01:00
interface IMangaCard {
id: number
title: string
thumbnailUrl: string
}
2020-12-25 17:42:22 +01:00
interface IManga {
2021-01-19 20:20:28 +03:30
id: number
sourceId: string
url: string
2020-12-25 22:14:54 +03:30
title: string
thumbnailUrl: string
artist: string
author: string
description: string
genre: string
status: string
inLibrary: boolean
source: ISource
freshData: boolean
2020-12-25 17:42:22 +01:00
}
2021-01-19 21:02:57 +03:30
interface IChapter {
2021-01-20 00:04:12 +03:30
id: number
2021-01-19 21:02:57 +03:30
url: string
name: string
2021-05-11 18:45:53 +04:30
uploadDate: number
chapterNumber: number
2021-01-19 21:02:57 +03:30
scanlator: String
2021-01-20 00:04:12 +03:30
mangaId: number
2021-05-11 18:45:53 +04:30
read: boolean
bookmarked: boolean
lastPageRead: number
2021-05-14 17:31:07 +04:30
index: number
2021-03-23 03:50:55 +04:30
chapterCount: number
2021-02-04 03:42:30 +03:30
pageCount: number
2021-01-19 21:02:57 +03:30
}
2021-02-20 01:23:52 +03:30
2021-03-23 03:50:55 +04:30
interface IPartialChpter {
pageCount: number
2021-05-14 17:31:07 +04:30
index: number
2021-03-23 03:50:55 +04:30
chapterCount: number
}
2021-02-20 01:23:52 +03:30
interface ICategory {
id: number
order: number
name: String
default: boolean
2021-02-20 01:23:52 +03:30
}
2021-03-18 21:46:24 +03:30
interface INavbarOverride {
status: boolean
value: any
2021-03-29 02:47:51 +04:30
}
2021-05-15 17:18:57 +04:30
2021-05-15 23:22:37 +04:30
type ReaderType =
'ContinuesVertical'|
'Webtoon' |
'SingleVertical' |
'SingleRTL' |
'SingleLTR' |
'ContinuesHorizontal';
2021-05-15 17:18:57 +04:30
interface IReaderSettings{
staticNav: boolean
showPageNumber: boolean
loadNextonEnding: boolean
2021-05-15 23:22:37 +04:30
readerType: ReaderType
2021-05-15 17:18:57 +04:30
}
interface IReaderPage {
index: number
src: string
}
2021-05-15 23:22:37 +04:30
interface IReaderProps {
pages: Array<IReaderPage>
pageCount: number
setCurPage: React.Dispatch<React.SetStateAction<number>>
curPage: number
settings: IReaderSettings
manga: IMangaCard | IManga
chapter: IChapter | IPartialChpter
nextChapter: () => void
2021-05-15 23:22:37 +04:30
}