-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31c9ff1
commit ea26a5f
Showing
11 changed files
with
91 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
using PipManager.Models.Pages; | ||
using PipManager.Services.Environment.Response; | ||
|
||
namespace PipManager.Models.Package; | ||
|
||
public class PackageItem | ||
{ | ||
public string? Name { get; set; } | ||
public string? Version { get; set; } | ||
public PackageVersion? DetailedVersion { get; set; } | ||
public string? Path { get; set; } | ||
public string? DistInfoPath { get; set; } | ||
public string? Summary { get; set; } | ||
public List<string>? Author { get; set; } | ||
public string? AuthorEmail { get; set; } | ||
public List<LibraryDetailProjectUrlModel>? ProjectUrl { get; set; } | ||
public Dictionary<string, List<string>>? Classifier { get; set; } | ||
public string? Name { get; init; } | ||
public string? Version { get; init; } | ||
public PackageVersion? DetailedVersion { get; init; } | ||
public string? Path { get; init; } | ||
public string? DistInfoPath { get; init; } | ||
public string? Summary { get; init; } | ||
public List<string>? Author { get; init; } | ||
public string? AuthorEmail { get; init; } | ||
public List<LibraryDetailProjectUrlModel>? ProjectUrl { get; init; } | ||
public Dictionary<string, List<string>>? Classifier { get; init; } | ||
public List<string>? RequiresDist { get; init; } | ||
public Dictionary<string, List<string>>? Metadata { get; set; } | ||
public List<string>? Record { get; set; } | ||
public Dictionary<string, List<string>>? Metadata { get; init; } | ||
public List<string>? Record { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using PipManager.Models.Package; | ||
|
||
namespace PipManager.Services.Overlay; | ||
|
||
public interface IOverlayService | ||
{ | ||
public void ShowPackageUpdateOverlay(List<PackageUpdateItem> packageUpdates, System.Action callback); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections.ObjectModel; | ||
using PipManager.Models.Package; | ||
using PipManager.ViewModels.Pages.Overlay; | ||
using PipManager.ViewModels.Windows; | ||
using PipManager.Views.Windows; | ||
|
||
namespace PipManager.Services.Overlay; | ||
|
||
public class OverlayService(OverlayViewModel overlayViewModel, MainWindowViewModel mainWindowViewModel): IOverlayService | ||
{ | ||
private void ShowOverlay() | ||
{ | ||
overlayViewModel.IsOverlayVisible = true; | ||
mainWindowViewModel.IsTitleBarCoverageGridVisible = false; | ||
} | ||
|
||
public void ShowPackageUpdateOverlay(List<PackageUpdateItem> packageUpdates, System.Action callback) | ||
{ | ||
overlayViewModel.ConfirmCallback = callback; | ||
overlayViewModel.PackageUpdateItems = new ObservableCollection<PackageUpdateItem>(packageUpdates); | ||
ShowOverlay(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters