Files
lunasea/lib/core/constants.dart
Jagandeep Brar b4df26abb6 [TestFlight] v4.0.0+400003 (#246)
NEW
- [Quick Actions] Enable home screen quick actions to quickly launch into up to 4 modules
- [Tautulli/User] Implemented user pages including profile, history, synced, and IP addresses
- [Settings/Resources] Added link to join TestFlight

TWEAKS
- [Home/Modules] Slightly adjusted design of quick links
- [Settings] Slightly adjusted design of module tiles

FIXES
- [Home/Modules] Search tile would not show up after adding first indexer until a route change
- [Tautulli/Activity] Tautulli could show an incorrect transcode container
2020-08-27 09:26:05 -05:00

90 lines
3.7 KiB
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/core/module_map.dart';
import 'package:lunasea/modules.dart' show
LidarrConstants,
RadarrConstants,
SonarrConstants,
NZBGetConstants,
SABnzbdConstants,
SearchConstants,
SettingsConstants,
WakeOnLANConstants,
TautulliConstants;
class Constants {
Constants._();
static const APPLICATION_NAME = "LunaSea";
static const SENTRY_DSN = "https://511f76efcf714ecfb5ed6b26b5819bd6@o426090.ingest.sentry.io/5367513";
//Services
static const Map<String, ModuleMap> 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,
TautulliConstants.MODULE_KEY: TautulliConstants.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,
];
//Text
static const TEXT_EMDASH = '';
static const TEXT_BULLET = '';
static const TEXT_RARROW = '';
static const TEXT_LARROW = '';
//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 BIT_SIZES = ['b', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb'];
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 URL_TESTFLIGHT = 'https://testflight.apple.com/join/WWXaybra';
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',
};
}