mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
* [UI] Rounded all tile elements * [UI] Scaled entire UI down a few font sizes * [UI] Increase drawer font size, decrease PopupMenu font size * [UI] Sticky headers are now attached to AppBar * [TestFlight] v2.4.0 (240001) * [Clients/Queue] Animated play/pause icon * [Radarr] Releases are now shown as expandable tiles * [Headers] Match button size to input bar * [UI/Divider] Darken colour, slim down * [Sonarr/Releases] Updated release tiles to expandable tiles * [Sonarr] Removed sticky headers in upcoming & season details * [Sonarr] Remove unused routes * [Lidarr/Releases] Updated to expanded tile format * [Search] Updated result tiles to be expandable * [TestFlight] v2.4.0 (240002) * [Lists] Require or create a ScrollController for all LSLists * [Sonarr] Episode tiles now expandable, fixed statistics data crash * [TestFlight] v2.4.0 (240003) * [Popup Menu] Rounded shape on popup menus * [Sonarr] More sorting options for Sonarr catalogue & releases * [Sonarr/Catalogue] Sort by quality using id, not name * [AMOLED] Optional setting to add UI borders * [Refactor] Some file name changes * [Database] Cleanup reads and updates to database * [Module Flags] Hiding -rr's wouldn't hide the calendar setting * [Dropdowns] Changed remaining dropdowns to popup menus * [Sonarr] Safe-guard fetching episode queue * [TestFlight] v2.4.0 (240006) * [Changelog] Remove routes, redirect to documentation * [Search] Added sorting options to search/results, filter for results * [Sonarr/Add] Ability to set initial episode monitor status * [Images] Option to clear network image cache * [TestFlight] v3.0.0 (300001) * [Tweaks] Small tweaks to text, typos * [TestFlight] v3.0.0 (300002) * [Lidarr] Additional sorting options for catalogue * [Sonarr/Episode] Fix episode list crash * [Lidarr/Releases] Added widgets for hide, filter, sort * [Lidarr/Releases] Implemented sort, hide, and filter functionality * [TestFlight] v3.0.0 (300003) * [README] Added CI shield, updated version * [Sonarr] Ability to set initial page * [Radarr] Ability to set initial page * [Lidarr] Ability to set initial page * [NZBGet] Ability to set initial page * [SABnzbd] Ability to set initial page * [Home] Ability to set initial page * [Radarr] Implemented new sorting structure * [Radarr] Implemented filter, hide, and sorting of releases * [Radarr] Additional catalogue sorting methods * [TestFlight] v3.0.0 (300100)
51 lines
1.2 KiB
Dart
51 lines
1.2 KiB
Dart
import 'dart:convert';
|
|
import 'package:lunasea/core/database.dart';
|
|
|
|
class Export {
|
|
Export._();
|
|
|
|
static bool validateType(dynamic value) {
|
|
Type _type = value.runtimeType;
|
|
if(
|
|
_type == bool ||
|
|
_type == String ||
|
|
_type == int ||
|
|
_type == double
|
|
) return true;
|
|
return false;
|
|
}
|
|
|
|
static Map get _lunasea {
|
|
Map<String, dynamic> _data = {};
|
|
_data['profile'] = LunaSeaDatabaseValue.ENABLED_PROFILE.data;
|
|
return _data;
|
|
}
|
|
|
|
static List get _profiles {
|
|
Box<dynamic> _box = Database.profilesBox;
|
|
List _data = [];
|
|
for(var key in _box.keys) {
|
|
ProfileHiveObject profile = _box.get(key);
|
|
_data.add(profile.toMap());
|
|
}
|
|
return _data;
|
|
}
|
|
|
|
static List get _indexers {
|
|
Box<dynamic> _box = Database.indexersBox;
|
|
List _data = [];
|
|
for(var key in _box.keys) {
|
|
IndexerHiveObject indexer = _box.get(key);
|
|
_data.add(indexer.toMap());
|
|
}
|
|
return _data;
|
|
}
|
|
|
|
static String export() {
|
|
return json.encode({
|
|
"lunasea": _lunasea,
|
|
"profiles": _profiles,
|
|
"indexers": _indexers,
|
|
});
|
|
}
|
|
} |