mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 04:45:59 +03:00
[PR #243] feat: move NavigationTrackerService to CE Core and refactor MainLayout to [Inject] #325
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/243
State: closed
Merged: Yes
Summary
NavigationTrackerServicefrom EE to CECore/Servicesso both editions share the same implementationMainLayoutfrom primary constructor to[Inject]properties — derived classes (e.g.MainLayoutEE) no longer need to forward all constructor parametersNewRelease,IsUpdating,TriggerUpdateAsync) fromMainLayouttoHelpMenuwhere it logically belongsSubscriptionGatewrapper fromActiveSessionsCurrentPagecolumn sinceNavigationTrackerServiceis now in CEFiles changed
Core/Services/NavigationTrackerService.cs— new (moved from EE)Core/ServiceCollectionExtensions.cs— registerNavigationTrackerServiceas scopedCore/Components/Layout/MainLayout.razor.cs— refactored to[Inject], removed release logicCore/Components/Layout/MainLayout.razor— updated property referencesCore/Components/ActiveSessions.razor— removedSubscriptionGatefromCurrentPagecolumnNotes
NavigationTrackerServiceand its registration are removed in a companion MR on the EE repoMainLayoutEEis simplified to just overrideAdditionalLayoutComponents(no constructor needed)