Add video details view (#956)

* Add Video details page to settings

* Add option A

* Refac remove option A

* Refac viewStyleType and viewStyleEnum

* Add viewStyle Table

* Refac remove unused code

* Refac show resolution in one cell
This commit is contained in:
Merlin
2025-06-05 05:19:16 +02:00
committed by GitHub
parent 436a641746
commit aa08701049
24 changed files with 332 additions and 107 deletions

View File

@@ -1,5 +1,6 @@
import { SortByType, SortOrderType, ViewLayoutType } from '../../pages/Home';
import { ViewStylesType } from '../../configuration/constants/ViewStyle';
import APIClient from '../../functions/APIClient';
import { SortByType, SortOrderType } from '../loader/loadVideoListByPage';
export type ColourVariants =
| 'dark.css'
@@ -26,10 +27,10 @@ export type UserConfigType = {
page_size: number;
sort_by: SortByType;
sort_order: SortOrderType;
view_style_home: ViewLayoutType;
view_style_channel: ViewLayoutType;
view_style_downloads: ViewLayoutType;
view_style_playlist: ViewLayoutType;
view_style_home: ViewStylesType;
view_style_channel: ViewStylesType;
view_style_downloads: ViewStylesType;
view_style_playlist: ViewStylesType;
grid_items: number;
hide_watched: boolean;
file_size_unit: 'binary' | 'metric';