mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
85 lines
2.8 KiB
Dart
85 lines
2.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lunasea/logic/automation/radarr.dart';
|
|
|
|
class Constants {
|
|
Constants._();
|
|
|
|
//Colors
|
|
static const PRIMARY_COLOR = 0xFF32323E;
|
|
static const SECONDARY_COLOR = 0xFF282834;
|
|
static const ACCENT_COLOR = 0xFF4ECCA3;
|
|
static const SPLASH_COLOR = 0xFF2EA07B;
|
|
static const LIST_COLOUR_ICONS = [
|
|
Colors.blue,
|
|
Color(ACCENT_COLOR),
|
|
Colors.orange,
|
|
Colors.red,
|
|
Colors.deepPurpleAccent,
|
|
Colors.blueGrey,
|
|
];
|
|
//Font-Related
|
|
static const LETTER_SPACING = -0.375;
|
|
//Functions
|
|
static const BYTE_SIZES = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'];
|
|
static const TIME_INTERVALS = ['m', 'h', 'd'];
|
|
//Changelog
|
|
static const EMPTY_CHANGELOG = [{
|
|
"version": "Changelog Error",
|
|
"new": ['Unable to fetch changes'],
|
|
"fixes": ['Unable to fetch changes'],
|
|
"tweaks": ['Unable to fetch changes'],
|
|
}];
|
|
static const Map LOWEST_VERSION = {
|
|
'major': 0,
|
|
'minor': 0,
|
|
'revision': 0,
|
|
'code': 0,
|
|
};
|
|
//Filesystem
|
|
static const FILESYSTEM_INVALID = '<<INVALID_FILESYSTEM>>';
|
|
static const ENCRYPTION_FAILURE = '<<INVALID_ENCRYPTION>>';
|
|
//Automation
|
|
static const Map historyReasonMessages = {
|
|
'Upgrade': 'Upgraded File',
|
|
'MissingFromDisk': 'Missing From Disk',
|
|
'Manual': 'Manually Removed',
|
|
};
|
|
//Lidarr
|
|
static const Map lidarrEventTypeMessages = {
|
|
'trackFileRenamed': 'Track File Renamed',
|
|
'trackFileDeleted': 'Track File Deleted',
|
|
'trackFileImported': 'Track File Imported',
|
|
'albumImportIncomplete': 'Album Import Incomplete',
|
|
'downloadImported': 'Download Imported',
|
|
'downloadFailed': 'Download Failed',
|
|
'grabbed': 'Grabbed From',
|
|
};
|
|
//Radarr
|
|
static final List<RadarrAvailabilityEntry> radarrMinAvailability = [
|
|
RadarrAvailabilityEntry('preDB', 'PreDB'),
|
|
RadarrAvailabilityEntry('announced', 'Announced'),
|
|
RadarrAvailabilityEntry('inCinemas', 'In Cinemas'),
|
|
RadarrAvailabilityEntry('released', 'Physical/Web'),
|
|
];
|
|
static const Map radarrEventTypeMessages = {
|
|
'movieFileRenamed': 'Movie File Renamed',
|
|
'movieFileDeleted': 'Movie File Deleted',
|
|
'downloadFolderImported': 'Imported Movie File',
|
|
'downloadFailed': 'Download Failed',
|
|
'grabbed': 'Grabbed From',
|
|
};
|
|
//Sonarr
|
|
static const Map sonarrEventTypeMessages = {
|
|
'episodeFileRenamed': 'Episode File Renamed',
|
|
'episodeFileDeleted': 'Episode File Deleted',
|
|
'downloadFolderImported': 'Imported Episode File',
|
|
'downloadFailed': 'Download Failed',
|
|
'grabbed': 'Grabbed From',
|
|
};
|
|
static const List sonarrSeriesTypes = [
|
|
'anime',
|
|
'daily',
|
|
'standard',
|
|
];
|
|
}
|