Skip to content

Commit

Permalink
Remove deployment ID, add IDisposable
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Dec 4, 2024
1 parent fbc9667 commit 92d7ecc
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 19 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
# uses GitHub's checkout action to checkout code form the main branch
- uses: actions/[email protected]

- name: UpdateVersionInMainLayout
uses: datamonsters/replace-action@v2
with:
files: 'Pkmds.Web/Components/Layout/MainLayout.razor.cs'
replacements: '%%CACHE_VERSION%%=${{ github.run_id }}'

# sets up .NET SDK
- name: Setup .NET Core SDK
uses: actions/[email protected]
Expand Down
4 changes: 0 additions & 4 deletions Pkmds.Web/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@
Special thanks to Kaphotics, as well as <MudLink Href="https://github.com/kwsch/PKHeX/graphs/contributors"
Target="_blank">all the contributors to PKHeX and PKHeX.Core</MudLink>.
</MudText>
<MudText>
Deployment ID: <MudLink Href="@($"https://github.com/codemonkey85/PKMDS-Blazor/actions/runs/{DeploymentId}")"
Target="_blank">@DeploymentId</MudLink>
</MudText>
</MudStack>
</MudDrawer>
<MudMainContent>
Expand Down
3 changes: 0 additions & 3 deletions Pkmds.Web/Components/Layout/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ public partial class MainLayout : IDisposable
private bool isDarkMode;
private MudThemeProvider? mudThemeProvider;


private const string DeploymentId = "%%CACHE_VERSION%%";

protected override void OnInitialized() => RefreshService.OnAppStateChanged += StateHasChanged;

public void Dispose() => RefreshService.OnAppStateChanged -= StateHasChanged;
Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/LetsGoBoxComponent.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Pkmds.Web.Components;

public partial class LetsGoBoxComponent
public partial class LetsGoBoxComponent : IDisposable
{
public BoxEdit? BoxEdit { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/MarkingsContainer.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Pkmds.Web.Components;

public partial class MarkingsContainer
public partial class MarkingsContainer : IDisposable
{
[Parameter, EditorRequired]
public PKM? Pokemon { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/Pages/Home.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Pkmds.Web.Components.Pages;

public partial class Home
public partial class Home : IDisposable
{
private bool IsUpdateAvailable { get; set; } = false;

Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/PartyGrid.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Pkmds.Web.Components;

public partial class PartyGrid
public partial class PartyGrid : IDisposable
{
private void SetSelectedPokemon(PKM? pokemon, int slotNumber) =>
AppService.SetSelectedPartyPokemon(pokemon, slotNumber);
Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/PokemonSlotComponent.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Pkmds.Web.Components;

public partial class PokemonSlotComponent
public partial class PokemonSlotComponent : IDisposable
{
[Parameter, EditorRequired]
public int SlotNumber { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Services/BlazorAesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public IAesCryptographyProvider.IAes Create(byte[] key, CipherMode mode, Padding
#pragma warning disable CS9113 // Parameter is unread.
private class CryptoJsAes(JsService jsService, byte[] key, CipherMode mode, PaddingMode padding, byte[]? iv = null)
#pragma warning restore CS9113 // Parameter is unread.
: IAesCryptographyProvider.IAes
: IAesCryptographyProvider.IAes, IDisposable
{
public void EncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination) =>
jsService.EncryptAes(plaintext, destination, key, CipherMode.ECB);
Expand Down

0 comments on commit 92d7ecc

Please sign in to comment.