mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-29 02:01:50 +01:00
1b122d1157
* add double page reader * implement singleRTL * add on image load handler * add retry display time interval * remove comments * add double page wrapper * fix image getting out of bounds * remove comments * remove unused styles * return imageStyle as type CSSProperties * rename DoublePagedReader to DoublePagedPager
155 lines
2.7 KiB
TypeScript
155 lines
2.7 KiB
TypeScript
/*
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* 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/. */
|
|
|
|
interface IExtension {
|
|
name: string
|
|
pkgName: string
|
|
versionName: string
|
|
versionCode: number
|
|
lang: string
|
|
isNsfw: boolean
|
|
apkName: string
|
|
iconUrl: string
|
|
installed: boolean
|
|
hasUpdate: boolean
|
|
obsolete: boolean
|
|
}
|
|
|
|
interface ISource {
|
|
id: string
|
|
name: string
|
|
lang: string
|
|
iconUrl: string
|
|
supportsLatest: boolean
|
|
history: any
|
|
}
|
|
|
|
interface IMangaCard {
|
|
id: number
|
|
title: string
|
|
thumbnailUrl: string
|
|
}
|
|
|
|
interface IManga {
|
|
id: number
|
|
sourceId: string
|
|
|
|
url: string
|
|
title: string
|
|
thumbnailUrl: string
|
|
|
|
artist: string
|
|
author: string
|
|
description: string
|
|
genre: string
|
|
status: string
|
|
|
|
inLibrary: boolean
|
|
source: ISource
|
|
|
|
freshData: boolean
|
|
}
|
|
|
|
interface IChapter {
|
|
url: string
|
|
name: string
|
|
uploadDate: number
|
|
chapterNumber: number
|
|
scanlator: String
|
|
mangaId: number
|
|
read: boolean
|
|
bookmarked: boolean
|
|
lastPageRead: number
|
|
index: number
|
|
chapterCount: number
|
|
pageCount: number
|
|
}
|
|
|
|
interface IEpisode {
|
|
url: string
|
|
name: string
|
|
uploadDate: number
|
|
episodeNumber: number
|
|
scanlator: String
|
|
animeId: number
|
|
read: boolean
|
|
bookmarked: boolean
|
|
lastPageRead: number
|
|
index: number
|
|
episodeCount: number
|
|
linkUrl: string
|
|
}
|
|
|
|
interface IPartialChpter {
|
|
pageCount: number
|
|
index: number
|
|
chapterCount: number
|
|
}
|
|
|
|
interface IPartialEpisode {
|
|
linkUrl: string
|
|
index: number
|
|
episodeCount: number
|
|
}
|
|
|
|
interface ICategory {
|
|
id: number
|
|
order: number
|
|
name: String
|
|
default: boolean
|
|
}
|
|
|
|
interface INavbarOverride {
|
|
status: boolean
|
|
value: any
|
|
}
|
|
|
|
type ReaderType =
|
|
'ContinuesVertical'|
|
|
'Webtoon' |
|
|
'SingleVertical' |
|
|
'SingleRTL' |
|
|
'SingleLTR' |
|
|
'DoubleVertical' |
|
|
'DoubleRTL' |
|
|
'DoubleLTR' |
|
|
'ContinuesHorizontal';
|
|
|
|
interface IReaderSettings{
|
|
staticNav: boolean
|
|
showPageNumber: boolean
|
|
loadNextonEnding: boolean
|
|
readerType: ReaderType
|
|
}
|
|
|
|
interface IReaderPage {
|
|
index: number
|
|
src: string
|
|
}
|
|
|
|
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
|
|
prevChapter: () => void
|
|
}
|
|
|
|
interface IAbout {
|
|
name: string
|
|
version: string
|
|
revision: string
|
|
buildType: 'Stable' | 'Preview'
|
|
buildTime: number
|
|
github: string
|
|
discord: string
|
|
}
|