* feat: pan Signed-off-by: Innei <tukon479@gmail.com> * fix: scroll to letter Signed-off-by: Innei <i@innei.in> * fix: sidebar navigation Signed-off-by: Innei <i@innei.in> * feat: add models and constants to mobile app, update tab view and recommendations - Added '@follow/models' and '@follow/constants' as workspace dependencies in pnpm-lock.yaml and package.json. - Updated TabView component to use Pressable instead of TouchableOpacity for better interaction. - Enhanced Recommendations component to utilize RSSHubCategoryCopyMap for tab names. - Refactored data handling in Recommendations to include RSSHubRouteDeclaration. - Updated ItemRenderer to display RecommendationCard for items. - Minor style adjustments in header actions and view tab components for improved UI consistency. Signed-off-by: Innei <i@innei.in> * feat: enhance RecommendationCard with grid layout for routes - Added Grid component to display routes in a two-column layout. - Introduced TouchableOpacity for route items to improve user interaction. - Adjusted styles for better responsiveness and visual appeal. Signed-off-by: Innei <i@innei.in> * init rsshub form Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com> Signed-off-by: Innei <i@innei.in>
31 lines
695 B
TypeScript
31 lines
695 B
TypeScript
import type { FeedViewType } from "@follow/constants"
|
|
|
|
export type RSSHubRouteType = Record<string, RSSHubRouteDeclaration>
|
|
export interface RSSHubRouteDeclaration {
|
|
routes: Routes
|
|
name: string
|
|
url: string
|
|
}
|
|
type Routes = Record<string, RSSHubRoute>
|
|
export type RSSHubParameterObject = {
|
|
description: string
|
|
default: string | null
|
|
options?: {
|
|
label: string
|
|
value: string
|
|
}[]
|
|
}
|
|
|
|
export type RSSHubParameter = string | RSSHubParameterObject
|
|
export type RSSHubRoute = {
|
|
path: string
|
|
categories: string[]
|
|
example: string
|
|
parameters: Record<string, RSSHubParameter>
|
|
name: string
|
|
maintainers: string[]
|
|
location: string
|
|
description: string
|
|
view?: FeedViewType
|
|
}
|