Skip to content

Commit

Permalink
refactor(core): destructure core folder and reintegrate extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JagandeepBrar committed Jun 14, 2022
1 parent 19475ac commit 5d52440
Show file tree
Hide file tree
Showing 397 changed files with 2,065 additions and 2,282 deletions.
50 changes: 1 addition & 49 deletions assets/changelog.json
@@ -1,49 +1 @@
{
"motd": "This release is the first build to be built on Flutter 3, which now supports 120hz displays and is more performant across the board!",
"new": [
{
"module": "-arr",
"changes": [
"(Details) Updated UI for viewing content links"
]
},
{
"module": "LunaSea",
"changes": [
"Support 120hz displays"
]
},
{
"module": "Notifications",
"changes": [
"Option to disable in-app notifications"
]
},
{
"module": "Radarr",
"changes": [
"(Links) Added Letterboxd"
]
},
{
"module": "Settings",
"changes": [
"(System) Ability to check for updates"
]
}
],
"fixes": [
{
"module": "-arr",
"changes": [
"(Releases) Correctly calculate age of releases"
]
},
{
"module": "UI/UX",
"changes": [
"(Scrollbar) Enable interactivity on all platforms"
]
}
]
}
{}
1 change: 0 additions & 1 deletion assets/localization/de.json
Expand Up @@ -61,7 +61,6 @@
"lunasea.New": "Neu",
"lunasea.NoModulesEnabled": "Keine Module aktiviert",
"lunasea.NotSet": "Nicht gesetzt",
"lunasea.OneHourAgo": "Vor einer Stunde",
"lunasea.Options": "Optionen",
"lunasea.Page": "Seite",
"lunasea.PlatformSpecific": "Plattformspezifisch",
Expand Down
17 changes: 15 additions & 2 deletions assets/localization/en.json
Expand Up @@ -41,35 +41,43 @@
"lunasea.ComingSoon": "Coming Soon",
"lunasea.Copied": "Copied",
"lunasea.CopiedContentToTheClipboard": "Copied Content to the Clipboard",
"lunasea.Critical": "Critical",
"lunasea.Dashboard": "Dashboard",
"lunasea.Days": "{} Days",
"lunasea.DaysAgo": "{} Days Ago",
"lunasea.Debug": "Debug",
"lunasea.Delete": "Delete",
"lunasea.Descending": "Descending",
"lunasea.Develop": "Develop",
"lunasea.Disable": "Disable",
"lunasea.Disabled": "Disabled",
"lunasea.Dismiss": "Dismiss",
"lunasea.Edge": "Edge",
"lunasea.Error": "Error",
"lunasea.ExternalModules": "External Modules",
"lunasea.Fixes": "Fixes",
"lunasea.FullChangelog": "Full Changelog",
"lunasea.GoBack": "Go Back",
"lunasea.GoToSettings": "Go to Settings",
"lunasea.GridView": "Grid View",
"lunasea.Home": "Home",
"lunasea.Hours": "{} Hours",
"lunasea.HoursAgo": "{} Hours Ago",
"lunasea.IncorrectEncryptionKey": "Incorrect encryption key",
"lunasea.Internal": "Internal",
"lunasea.InvalidFileTypeSelected": "Invalid File Type Selected",
"lunasea.JustNow": "Just Now",
"lunasea.Minutes": "{} Minutes",
"lunasea.MinutesAgo": "{} Minutes Ago",
"lunasea.Module": "Module",
"lunasea.ModuleIsNotEnabled": "{} Is Not Enabled",
"lunasea.New": "New",
"lunasea.NotSet": "Not Set",
"lunasea.NoModulesEnabled": "No Modules Enabled",
"lunasea.OneHourAgo": "1 Hour Ago",
"lunasea.OneMinuteAgo": "1 Minute Ago",
"lunasea.OneDay": "1 Day",
"lunasea.OneHour": "1 Hour",
"lunasea.OneMinute": "1 Minute",
"lunasea.OneSecond": "1 Second",
"lunasea.Options": "Options",
"lunasea.Page": "Page",
"lunasea.PlatformSpecific": "Platform-Specific",
Expand All @@ -83,19 +91,23 @@
"lunasea.Retry": "Retry",
"lunasea.ReturnToDashboard": "Return to Dashboard",
"lunasea.SearchTextBar": "Search…",
"lunasea.Seconds": "{} Seconds",
"lunasea.SecondsAgo": "{} Seconds Ago",
"lunasea.Set": "Set",
"lunasea.Settings": "Settings",
"lunasea.Stable": "Stable",
"lunasea.StartingView": "Starting View",
"lunasea.TransactionFailure": "Transaction Failure",
"lunasea.TryAgain": "Try Again",
"lunasea.Tweaks": "Tweaks",
"lunasea.UnderAMinute": "Under a Minute",
"lunasea.Unknown": "Unknown",
"lunasea.UnknownDate": "Unknown Date",
"lunasea.UnknownError": "Unknown Error",
"lunasea.UnknownModule": "Unknown Module",
"lunasea.Update": "Update",
"lunasea.View": "View",
"lunasea.Warning": "Warning",
"lunasea.Website": "Website",
"overseerr.Audio": "Audio",
"overseerr.Approved": "Approved",
Expand Down Expand Up @@ -522,6 +534,7 @@
"settings.UsernameValidation": "Username Required",
"settings.Version": "Version",
"settings.ViewRecentChanges": "View Recent Changes",
"settings.ViewTypeLogs": "View {} Logs",
"settings.WeblateDescription": "Help Localize LunaSea",
"settings.Website": "Website",
"settings.WebsiteDescription": "Visit LunaSea's Website",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/fr.json
Expand Up @@ -64,7 +64,6 @@
"lunasea.New": "Nouveau",
"lunasea.NoModulesEnabled": "Aucun module activé",
"lunasea.NotSet": "Non défini",
"lunasea.OneHourAgo": "Il y a une heure",
"lunasea.Options": "Options",
"lunasea.Page": "Page",
"lunasea.PlatformSpecific": "Spécifique à la plateforme",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/hu.json
Expand Up @@ -64,7 +64,6 @@
"lunasea.New": "Új",
"lunasea.NoModulesEnabled": "Nincs engedélyezett modul",
"lunasea.NotSet": "Nincs beállítva",
"lunasea.OneHourAgo": "1 órával ezelőtt",
"lunasea.Options": "Opciók",
"lunasea.Page": "Oldal",
"lunasea.PlatformSpecific": "Platform-specifikus",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/it.json
Expand Up @@ -62,7 +62,6 @@
"lunasea.New": "Nuovo",
"lunasea.NoModulesEnabled": "Nessun modulo abilitato",
"lunasea.NotSet": "Non impostato",
"lunasea.OneHourAgo": "1 ora fa",
"lunasea.Options": "Opzioni",
"lunasea.Page": "Pagina",
"lunasea.PlatformSpecific": "Specifico della piattaforma",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/nb-NO.json
Expand Up @@ -59,7 +59,6 @@
"lunasea.New": "Ny",
"lunasea.NoModulesEnabled": "Ingen påslåtte moduler",
"lunasea.NotSet": "Ikke satt",
"lunasea.OneHourAgo": "Én time siden",
"lunasea.Options": "Innstillinger",
"lunasea.Page": "Side",
"lunasea.PlatformSpecific": "Plattformsspesifikk",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/tr.json
Expand Up @@ -64,7 +64,6 @@
"lunasea.New": "Yeni",
"lunasea.NoModulesEnabled": "Etkin Modül Yok",
"lunasea.NotSet": "Ayarlanmadı",
"lunasea.OneHourAgo": "1 Saat Önce",
"lunasea.Options": "Seçenekler",
"lunasea.Page": "Sayfa",
"lunasea.PlatformSpecific": "Platforma Özgü",
Expand Down
1 change: 0 additions & 1 deletion assets/localization/zh-Hans.json
Expand Up @@ -64,7 +64,6 @@
"lunasea.New": "新的",
"lunasea.NoModulesEnabled": "未启用模块",
"lunasea.NotSet": "未设置",
"lunasea.OneHourAgo": "1小时前",
"lunasea.Options": "选项",
"lunasea.Page": "",
"lunasea.PlatformSpecific": "平台特定",
Expand Down
37 changes: 12 additions & 25 deletions lib/core.dart
@@ -1,32 +1,19 @@
export 'core/cache/memory_lru.dart';
export 'core/cache/memory_store.dart';
export 'core/extensions/async_snapshot.dart';
export 'core/extensions/datetime.dart';
export 'core/extensions/duration.dart';
export 'core/extensions/iap_product_details.dart';
export 'core/extensions/int.dart';
export 'core/extensions/navigator_state.dart';
export 'core/extensions/page_controller.dart';
export 'core/extensions/scroll_controller.dart';
export 'core/models/configuration.dart';
export 'core/models/logs.dart';
export 'core/models/types.dart';
export 'core/models/webhooks.dart';
export 'core/pages/invalid_route.dart';
export 'core/pages/not_enabled.dart';
export 'core/router/module_router.dart';
export 'core/router/page_router.dart';
export 'core/router/router.dart';
export 'core/services/the_movie_db.dart';
export 'core/state/module_state.dart';
export 'core/state/state.dart';
export 'core/utilities/changelog.dart';
export 'core/utilities/dialogs.dart';
/// This file is deprecated and should no longer be actively used.
/// All imports should happen directly and canonical export files will not be used anymore.
export 'deprecated/extensions/datetime.dart';
export 'deprecated/state/module_state.dart';
export 'deprecated/state/state.dart';
export 'deprecated/router/module_router.dart';
export 'deprecated/router/page_router.dart';
export 'deprecated/router/router.dart';

export 'types/loading_state.dart';
export 'database/box.dart';
export 'database/models/profile.dart';
export 'database/tables/lunasea.dart';
export 'system/logger.dart';
export 'system/profile.dart';
export 'utils/dialogs.dart';
export 'widgets/ui.dart';
export 'modules.dart';
export 'vendor.dart'
Expand Down
7 changes: 0 additions & 7 deletions lib/core/extensions/async_snapshot.dart

This file was deleted.

33 changes: 0 additions & 33 deletions lib/core/extensions/duration.dart

This file was deleted.

1 change: 0 additions & 1 deletion lib/core/extensions/iap_product_details.dart

This file was deleted.

80 changes: 0 additions & 80 deletions lib/core/extensions/int.dart

This file was deleted.

14 changes: 0 additions & 14 deletions lib/core/extensions/navigator_state.dart

This file was deleted.

16 changes: 0 additions & 16 deletions lib/core/extensions/scroll_controller.dart

This file was deleted.

7 changes: 0 additions & 7 deletions lib/core/go_router/page_router.dart

This file was deleted.

0 comments on commit 5d52440

Please sign in to comment.