Files
lunasea/lib/modules/nzbget/core/database.dart
Jagandeep Brar 7656943a52 [Release] v3.0.0 (300100) (#223)
* [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)
2020-06-30 03:34:45 -05:00

31 lines
767 B
Dart

import 'package:lunasea/core/database.dart';
class NZBGetDatabase {
NZBGetDatabase._();
static void registerAdapters() {}
}
enum NZBGetDatabaseValue {
NAVIGATION_INDEX,
}
extension NZBGetDatabaseValueExtension on NZBGetDatabaseValue {
String get key {
switch(this) {
case NZBGetDatabaseValue.NAVIGATION_INDEX: return 'NZBGET_NAVIGATION_INDEX';
}
throw Exception('key not found');
}
dynamic get data {
final _box = Database.lunaSeaBox;
switch(this) {
case NZBGetDatabaseValue.NAVIGATION_INDEX: return _box.get(this.key, defaultValue: 0);
}
throw Exception('data not found');
}
void put(dynamic value) => Database.lunaSeaBox.put(this.key, value);
}