Skip to content

Commit df19986

Browse files
Refactor database, update dependencies, and enhance UI (#136)
Refactored database connection management to use scoped SQLite connections and added new methods for database operations. Updated target framework to .NET 10.0 and upgraded multiple NuGet packages for improved compatibility and security. Introduced a `SortService` for consistent alphabetical sorting of subscriptions, resource groups, and key vaults. Enhanced the UI with a "Recreate Database" option and updated repository links to reflect new branding. Improved macOS keychain management with fallback CLI support and added methods for password purging. Cleaned up code, removed redundancies, and ensured better error handling across the application.
1 parent f588fe0 commit df19986

File tree

15 files changed

+481
-239
lines changed

15 files changed

+481
-239
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ on:
1616
branches: [ "master", "dev" ]
1717
pull_request:
1818
branches: [ "master", "dev" ]
19-
schedule:
20-
- cron: '30 21 * * 6'
2119

2220
jobs:
2321
analyze:
@@ -80,7 +78,7 @@ jobs:
8078
- if: matrix.build-mode == 'manual'
8179
shell: bash
8280
run: |
83-
dotnet build
81+
dotnet build kv.sln
8482
8583
- name: Perform CodeQL Analysis
8684
uses: github/codeql-action/analyze@v3

Desktop/Desktop.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<OutputType>WinExe</OutputType>
44
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
55
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
6-
<TargetFrameworks>net9.0</TargetFrameworks>
6+
<TargetFrameworks>net10.0</TargetFrameworks>
77
<!-- <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('osx'))">$(TargetFrameworks);net8.0-macos</TargetFrameworks> -->
8-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
8+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
99
<WindowsSdkPackageVersion Condition="$([MSBuild]::IsOSPlatform('windows'))">10.0.19041.41</WindowsSdkPackageVersion>
1010

1111
<Nullable>enable</Nullable>
@@ -44,8 +44,8 @@
4444

4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.6" />
48-
<PackageReference Include="Avalonia.Desktop" Version="11.3.2" />
47+
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="10.0.0" />
48+
<PackageReference Include="Avalonia.Desktop" Version="11.3.8" />
4949
</ItemGroup>
5050

5151

KeyVaultExplorer/App.axaml.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public static void CreateDesktopResources()
3232

3333
Dispatcher.UIThread.Post(async () =>
3434
{
35-
await KvExplorerDb.OpenSqlConnection();
36-
3735
if (!dbExists)
3836
KvExplorerDb.InitializeDatabase();
3937
}, DispatcherPriority.Loaded);
@@ -52,13 +50,6 @@ public static void CreateDesktopResources()
5250
}
5351
}
5452

55-
private void MainWindowOnClosing(object? sender, WindowClosingEventArgs e)
56-
{
57-
if (sender is Window window)
58-
{
59-
KvExplorerDb.CloseSqlConnection();
60-
}
61-
}
6253

6354
public override void Initialize()
6455
{

KeyVaultExplorer/Assets/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleShortVersionString</key>
66
<string>0.0.0.2</string>
77
<key>CFBundleIdentifier</key>
8-
<string>us.sidesteplabs.KeyVaultExplorer</string>
8+
<string>us.cricketthomas.KeyVaultExplorer</string>
99
<key>CFBundleInfoDictionaryVersion</key>
1010
<string>6.0</string>
1111
<key>NSAppTransportSecurity</key>

0 commit comments

Comments
 (0)