mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-02 04:16:38 +08:00
初始化
初始化项目
This commit is contained in:
@@ -39,7 +39,6 @@ export interface UserPermission {
|
||||
can_use_ai: boolean
|
||||
can_capture_frames: boolean
|
||||
can_manage_downloads: boolean
|
||||
can_view_discover: boolean
|
||||
can_manage_subscriptions: boolean
|
||||
can_manage_sites: boolean
|
||||
can_use_ai_assistant: boolean
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
export interface DiscoverSection {
|
||||
key: string
|
||||
label: string
|
||||
}
|
||||
|
||||
export interface DiscoverItem {
|
||||
TMDbID?: number
|
||||
Title?: string
|
||||
Overview?: string
|
||||
Rating?: number
|
||||
Year?: number
|
||||
PosterURL?: string
|
||||
BackdropURL?: string
|
||||
// Match struct (Go) is exported with capitalised JSON keys; the API
|
||||
// returns lower-cased aliases below for convenience.
|
||||
tmdb_id?: number
|
||||
title?: string
|
||||
overview?: string
|
||||
rating?: number
|
||||
year?: number
|
||||
poster_url?: string
|
||||
backdrop_url?: string
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
export * from './api'
|
||||
export * from './auth'
|
||||
export * from './discover'
|
||||
export * from './downloads'
|
||||
export * from './events'
|
||||
export * from './history'
|
||||
@@ -10,7 +9,3 @@ export * from './library'
|
||||
export * from './media'
|
||||
export * from './notifications'
|
||||
export * from './playProfiles'
|
||||
export * from './scheduler'
|
||||
export * from './sites'
|
||||
export * from './stats'
|
||||
export * from './subscriptions'
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
export interface SchedulerTaskConfig {
|
||||
id: string
|
||||
name: string
|
||||
description: string
|
||||
enabled: boolean
|
||||
interval: number
|
||||
last_run_at?: string
|
||||
next_run_at?: string
|
||||
}
|
||||
|
||||
export interface SchedulerStatus {
|
||||
running: boolean
|
||||
started_at?: string
|
||||
task_count: number
|
||||
tasks: SchedulerTaskConfig[]
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
export interface Site {
|
||||
id: string
|
||||
name: string
|
||||
type: string
|
||||
url: string
|
||||
auth_type: string
|
||||
cookie?: string
|
||||
api_key?: string
|
||||
auth_header?: string
|
||||
user_agent?: string
|
||||
rss_url?: string
|
||||
timeout?: number
|
||||
priority?: number
|
||||
use_proxy?: boolean
|
||||
rate_limit?: boolean
|
||||
browser_emulation?: boolean
|
||||
login_status?: string
|
||||
upload_bytes?: number
|
||||
download_bytes?: number
|
||||
downloader?: string
|
||||
enabled: boolean
|
||||
is_default: boolean
|
||||
extra?: string
|
||||
last_error?: string
|
||||
last_check_at?: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface SiteTypeInfo {
|
||||
value: string
|
||||
name: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface AuthTypeInfo {
|
||||
value: string
|
||||
name: string
|
||||
description: string
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
import type { Media } from './media'
|
||||
|
||||
export interface Hardware {
|
||||
cpu_percent: number
|
||||
memory_used: number
|
||||
memory_total: number
|
||||
disk_used: number
|
||||
disk_total: number
|
||||
go_version: string
|
||||
goroutines: number
|
||||
}
|
||||
|
||||
export interface StatsSnapshot {
|
||||
libraries: number
|
||||
media_count: number
|
||||
users_count: number
|
||||
total_size_bytes: number
|
||||
total_seconds: number
|
||||
recently_added: Media[]
|
||||
hardware: Hardware
|
||||
generated_at: string
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
export interface Subscription {
|
||||
id: string
|
||||
user_id: string
|
||||
name: string
|
||||
feed_url: string
|
||||
filter: string
|
||||
media_type?: string
|
||||
media_category?: string
|
||||
save_path?: string
|
||||
search_mode?: string
|
||||
imdb_id?: string
|
||||
source?: string
|
||||
poster_url?: string
|
||||
backdrop_url?: string
|
||||
overview?: string
|
||||
resolution?: string
|
||||
quality?: string
|
||||
effects?: string
|
||||
release_groups?: string
|
||||
exclude_words?: string
|
||||
min_seeders?: number
|
||||
max_seeders?: number
|
||||
min_size_gb?: number
|
||||
max_size_gb?: number
|
||||
free_only?: boolean
|
||||
wash_enabled?: boolean
|
||||
wash_priority?: string
|
||||
total_episodes?: number
|
||||
downloaded_episodes?: number
|
||||
local_media_count?: number
|
||||
missing_episodes?: number[]
|
||||
in_library?: boolean
|
||||
priority?: number
|
||||
enabled: boolean
|
||||
last_run_at?: string
|
||||
archived_at?: string
|
||||
archive_reason?: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
Reference in New Issue
Block a user