1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-02-05 01:52:22 +05:30

(feat): added stop all button in library, improved library layout and other minor ui improvements

This commit is contained in:
2025-07-13 19:39:11 +05:30
Verified
parent ad6f1938de
commit 5f93e3e526
4 changed files with 403 additions and 319 deletions

View File

@@ -1,4 +1,4 @@
import { BasePathsStore, CurrentVideoMetadataStore, DownloadActionStatesStore, DownloaderPageStatesStore, DownloadStatesStore, KvPairsStatesStore, SettingsPageStatesStore } from '@/types/store';
import { BasePathsStore, CurrentVideoMetadataStore, DownloadActionStatesStore, DownloaderPageStatesStore, DownloadStatesStore, KvPairsStatesStore, LibraryPageStatesStore, SettingsPageStatesStore } from '@/types/store';
import { create } from 'zustand';
export const useBasePathsStore = create<BasePathsStore>((set) => ({
@@ -58,6 +58,11 @@ export const useDownloaderPageStatesStore = create<DownloaderPageStatesStore>((s
setSelectedPlaylistVideoIndex: (index) => set(() => ({ selectedPlaylistVideoIndex: index }))
}));
export const useLibraryPageStatesStore = create<LibraryPageStatesStore>((set) => ({
activeTab: 'completed',
setActiveTab: (tab) => set(() => ({ activeTab: tab }))
}));
export const useDownloadActionStatesStore = create<DownloadActionStatesStore>((set) => ({
downloadActions: {},
setIsResumingDownload: (download_id, isResuming) => set((state) => ({