Files
lunasea/lib/core/constants.dart
Jagandeep Brar 98648ba858 [Release] v3.2.0+320003 (#230)
* [Database] Added client identifier (for later use)
* [UUID, Cleanup] Added UUID generator, follow guidelines for relative exports
* [Imports] Only show necessary imports for modules.dart import
* [Settings] Added stub Tautulli config page (hidden via module flags)
* [-arr/Details] Fix crashes related to setting state on unmounted widget
* [Radarr/Add] Fix crash when a movie does not have a minimum availability status
2020-07-29 15:49:38 -05:00

80 lines
3.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/modules.dart' show
LidarrConstants,
RadarrConstants,
SonarrConstants,
NZBGetConstants,
SABnzbdConstants,
SearchConstants,
SettingsConstants,
WakeOnLANConstants;
class Constants {
Constants._();
static const APPLICATION_NAME = "LunaSea";
static const SENTRY_DSN = "https://511f76efcf714ecfb5ed6b26b5819bd6@o426090.ingest.sentry.io/5367513";
//Services
static const Map MODULE_MAP = {
LidarrConstants.MODULE_KEY: LidarrConstants.MODULE_MAP,
RadarrConstants.MODULE_KEY: RadarrConstants.MODULE_MAP,
SonarrConstants.MODULE_KEY: SonarrConstants.MODULE_MAP,
NZBGetConstants.MODULE_KEY: NZBGetConstants.MODULE_MAP,
SABnzbdConstants.MODULE_KEY: SABnzbdConstants.MODULE_MAP,
SearchConstants.MODULE_KEY: SearchConstants.MODULE_MAP,
SettingsConstants.MODULE_KEY: SettingsConstants.MODULE_MAP,
WakeOnLANConstants.MODULE_KEY: WakeOnLANConstants.MODULE_MAP,
};
//Colors
static const PRIMARY_COLOR = 0xFF32323E;
static const SECONDARY_COLOR = 0xFF282834;
static const ACCENT_COLOR = 0xFF4ECCA3;
static const SPLASH_COLOR = 0xFF2EA07B;
//
static const LIST_COLOR_ICONS = [
Colors.blue,
Color(ACCENT_COLOR),
Colors.red,
Colors.orange,
Colors.purpleAccent,
Colors.blueGrey,
];
//UI
static const UI_ELEVATION = 0.0;
static const UI_CARD_MARGIN = EdgeInsets.symmetric(horizontal: 12.0, vertical: 6.0);
static const UI_NAVIGATION_SPEED = 250;
static const UI_BORDER_RADIUS = 10.0;
static const UI_FONT_SIZE_HEADER = 18.0;
static const UI_FONT_SIZE_STICKYHEADER = 14.0;
static const UI_FONT_SIZE_SUBHEADER = 12.0;
static const UI_FONT_SIZE_TITLE = 16.0;
static const UI_FONT_SIZE_SUBTITLE = 13.0;
//General
static const EMPTY_MAP = {};
static const EMPTY_LIST = [];
static const EMPTY_STRING = '';
//Error Values
static const CONFIGURATION_INVALID = '<<INVALID_CONFIGURATION>>';
static const ENCRYPTION_FAILURE = '<<INVALID_ENCRYPTION>>';
static const NO_SERVICES_ENABLED = '<<NO_SERVICES_ENABLED>>';
static const CHECK_LOGS_MESSAGE = 'Please check the logs for more details';
//Extensions
static const BYTE_SIZES = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'];
//URLs
static const URL_DOCUMENTATION = 'https://docs.lunasea.app';
static const URL_GITHUB = 'https://github.com/JagandeepBrar/LunaSea';
static const URL_REDDIT = 'https://www.reddit.com/r/LunaSeaApp';
static const URL_WEBSITE = 'https://www.lunasea.app';
static const URL_FEEDBACK = 'https://feedback.lunasea.app';
static const URL_LICENSES = 'https://github.com/LunaSeaApp/LunaSea/wiki/Licenses';
static const URL_CHANGELOG = 'https://docs.lunasea.app/development/changelog';
static const URL_DISCORD = 'https://discord.com/invite/8MH2N3h';
static const URL_SENTRY = 'https://sentry.io';
static const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15';
//Automation
static const Map historyReasonMessages = {
'Upgrade': 'Upgraded File',
'MissingFromDisk': 'Missing From Disk',
'Manual': 'Manually Removed',
};
}