type BaseSource = {
* 并发率
*/
concurrentRate?: string
* 登录地址
*/
loginUrl?: string
* 登录UI
*/
loginUi?: string
* 请求头
*/
header?: string
* 启用cookieJar
*/
enabledCookieJar?: boolean
* js库
*/
jsLib?: string
}
type BookSoure = BaseSource & {
bookSourceUrl: string
bookSourceName: string
bookSourceGroup?: string
bookSourceType: number
bookUrlPattern?: string
customOrder: number
enabled: boolean
enabledExplore: boolean
loginCheckJs?: string
coverDecodeJs?: string
bookSourceComment?: string
variableComment?: string
lastUpdateTime: number
respondTime: number
weight: number
exploreUrl?: string
exploreScreen?: string
ruleExplore?: ExploreRule
searchUrl?: string
ruleSearch?: SearchRule
ruleBookInfo?: BookInfoRule
ruleToc?: TocRule
ruleContent?: ContentRule
ruleReview?: ReviewRule
}
type RuleSearch = {
checkKeyWord?: string
[prop: string]: string
}
[prop:string]: string
}
type BookInfoRule = {
[prop:string]: string
}
type TocRule = {
[prop:string]: string
}
type ContentRule = {
[prop:string]: string
}
type ReviewRule = {
[prop:string]: string
} */
type RssSource = BaseSource & {
sourceUrl: string
sourceName: string
sourceIcon: string
sourceGroup?: string
sourceComment?: string
enabled: boolean
variableComment?: string
loginCheckJs?: string
coverDecodeJs?: string
sortUrl?: string
singleUrl: boolean
articleStyle: number
ruleArticles?: string
ruleNextPage?: string
ruleTitle?: string
rulePubDate?: string
ruleDescription?: string
ruleImage?: string
ruleLink?: string
ruleContent?: string
contentWhitelist?: string
contentBlacklist?: string
* 跳转url拦截,
* js, 返回true拦截,js变量url,可以通过js打开url,比如调用阅读搜索,添加书架等,简化规则写法,不用webView js注入
* **/
shouldOverrideUrlLoading?: string
style?: string
enableJs: boolean
loadWithBaseUrl: boolean
injectJs?: string
lastUpdateTime: number
customOrder: number
}
type Source = BookSoure | RssSource
export { Source, BookSoure, RssSource }