Revert "Add Video details page to settings"

This reverts commit 776481c513.
This commit is contained in:
MerlinScheurer
2025-05-10 15:04:03 +02:00
parent 776481c513
commit 25b6ca2a1a
11 changed files with 14 additions and 305 deletions

View File

@@ -1,6 +1,5 @@
import { ViewLayoutType } from '../../pages/Home';
import { SortByType, SortOrderType, ViewLayoutType } from '../../pages/Home';
import APIClient from '../../functions/APIClient';
import { SortByType, SortOrderType } from '../loader/loadVideoListByPage';
export type ColourVariants =
| 'dark.css'

View File

@@ -1,4 +1,4 @@
import { ConfigType, VideoType } from '../../pages/Home';
import { ConfigType, SortByType, SortOrderType, VideoType } from '../../pages/Home';
import { PaginationType } from '../../components/Pagination';
import APIClient from '../../functions/APIClient';
@@ -8,45 +8,9 @@ export type VideoListByFilterResponseType = {
paginate?: PaginationType;
};
export type SortByType =
| 'published'
| 'downloaded'
| 'views'
| 'likes'
| 'duration'
| 'mediasize'
| 'width'
| 'height';
export const SortByEnum = {
Published: 'published',
Downloaded: 'downloaded',
Views: 'views',
Likes: 'likes',
Duration: 'duration',
'Media Size': 'mediasize',
};
export const SortByExpandedEnum = {
...SortByEnum,
Width: 'width',
Height: 'height',
};
export type SortOrderType = 'asc' | 'desc';
export const SortOrderEnum = {
Asc: 'asc',
Desc: 'desc',
};
type WatchTypes = 'watched' | 'unwatched' | 'continue';
export type VideoTypes = 'videos' | 'streams' | 'shorts';
export type WatchTypes = 'watched' | 'unwatched' | 'continue';
export const WatchTypesEnum = {
Watched: 'watched',
Unwatched: 'unwatched',
Continue: 'continue',
};
type FilterType = {
page?: number;
playlist?: string;