feat: refactor download components and enhance UI/UX

* Rename ElectronStore to LegacyStore for clarity in subscription manager.
* Remove unused deep link state in AppContent and add a TODO for future handling.
* Introduce a new DownloadDialog component for managing downloads.
* Update DownloadItem to include a details sheet for video metadata.
* Enhance PlaylistDownloadGroup to persist expanded state in local storage.
* Improve UnifiedDownloadHistory layout and integrate DownloadDialog for better user interaction.
* Update various UI components for consistency and improved styling.
* Add new localization strings for download actions across multiple languages.
This commit is contained in:
Nexmoe
2025-12-20 17:03:12 +08:00
parent 86e6b93476
commit a1c44baf65
29 changed files with 1880 additions and 1472 deletions

View File

@@ -493,7 +493,9 @@ export class SubscriptionManager extends EventEmitter {
private migrateLegacyStore(): void {
try {
const LegacyStore = require('electron-store')
const ElectronStore = require('electron-store')
// Access the default export
const LegacyStore = ElectronStore.default || ElectronStore
const store = new LegacyStore({
name: 'subscriptions',
defaults: {