This commit is contained in:
Leendert de Borst
2025-06-23 15:46:48 +02:00
committed by Leendert de Borst
parent 822b95d940
commit 7690355434
11 changed files with 56 additions and 11 deletions

View File

@@ -174,6 +174,7 @@ else
}
}
/// <inheritdoc />
public void Dispose()
{
Navigation.LocationChanged -= OnLocationChanged;

View File

@@ -31,12 +31,21 @@
</li>
@code {
/// <summary>
/// The email model.
/// </summary>
[Parameter]
public required MailListViewModel Email { get; set; }
/// <summary>
/// OnClick handler for email.
/// </summary>
[Parameter]
public EventCallback<int> OnEmailClick { get; set; }
/// <summary>
/// OnClick handler for credential.
/// </summary>
[Parameter]
public EventCallback<Guid> OnCredentialClick { get; set; }
}
}

View File

@@ -1,17 +1,24 @@
@using Microsoft.AspNetCore.Components
<div class="skeleton-base @AdditionalClasses" style="@($"height: {Height}px;")">
@ChildContent
<div class="skeleton-shimmer"></div>
</div>
@code {
/// <summary>
/// The height of the skeleton loader.
/// </summary>
[Parameter]
public int Height { get; set; } = 60;
/// <summary>
/// Additional CSS classes to include.
/// </summary>
[Parameter]
public string AdditionalClasses { get; set; } = "";
/// <summary>
/// Child content to render within the skeleton loader.
/// </summary>
[Parameter]
public RenderFragment ChildContent { get; set; } = null!;
}
@@ -61,4 +68,4 @@
transparent 100%
);
}
</style>
</style>

View File

@@ -11,9 +11,15 @@
</div>
@code {
/// <summary>
/// The height of the skeleton loader element.
/// </summary>
[Parameter]
public int Height { get; set; } = 60;
/// <summary>
/// Amount of skeleton parts to render.
/// </summary>
[Parameter]
public int Parts { get; set; } = 2;
}
@@ -80,4 +86,4 @@
transparent 100%
);
}
</style>
</style>

View File

@@ -89,6 +89,7 @@
private BrowserType CurrentBrowser { get; set; }
private BrowserExtensionInfo? CurrentBrowserExtension { get; set; } = null;
/// <inheritdoc />
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();

View File

@@ -18,7 +18,7 @@
<span class="text-base font-bold text-blue-600 dark:text-blue-400">@(CurrentVersion?.ReleaseVersion ?? "...")</span>
</p>
<p class="flex justify-between items-center">
<span class="text-sm font-medium text-gray-600 dark:text-gray-400">AliasVault latest version:</span>
<span class="text-sm font-medium text-gray-600 dark:text-gray-400">New version:</span>
<span class="text-base font-bold text-green-600 dark:text-green-400">@(LatestVersion?.ReleaseVersion ?? "...")</span>
</p>
</div>
@@ -46,7 +46,7 @@
</div>
@code {
private bool IsPendingMigrations { get; set; } = false;
private bool IsPendingMigrations { get; set; }
private string ErrorMessage { get; set; } = string.Empty;
private SqlVaultVersion? CurrentVersion { get; set; }
private SqlVaultVersion? LatestVersion { get; set; }

View File

@@ -100,7 +100,7 @@ declare class VaultSqlGenerator {
/**
* Get complete schema SQL for creating new vault
*/
getCompleteSchemaeSql(): string;
getCompleteSchemaSql(): string;
}
/**

View File

@@ -100,7 +100,7 @@ declare class VaultSqlGenerator {
/**
* Get complete schema SQL for creating new vault
*/
getCompleteSchemaeSql(): string;
getCompleteSchemaSql(): string;
}
/**

View File

@@ -476,6 +476,13 @@ COMMIT;`
// src/sql/VaultVersions.ts
var VAULT_VERSIONS = [
{
revision: 0,
version: "1.0.0",
description: "Initial Migration",
releaseDate: "2024-07-08",
releaseVersion: "0.1.0"
},
{
revision: 1,
version: "1.0.1",
@@ -731,7 +738,7 @@ var VaultSqlGenerator = class {
/**
* Get complete schema SQL for creating new vault
*/
getCompleteSchemaeSql() {
getCompleteSchemaSql() {
return COMPLETE_SCHEMA_SQL;
}
};

View File

@@ -447,6 +447,13 @@ COMMIT;`
// src/sql/VaultVersions.ts
var VAULT_VERSIONS = [
{
revision: 0,
version: "1.0.0",
description: "Initial Migration",
releaseDate: "2024-07-08",
releaseVersion: "0.1.0"
},
{
revision: 1,
version: "1.0.1",
@@ -702,7 +709,7 @@ var VaultSqlGenerator = class {
/**
* Get complete schema SQL for creating new vault
*/
getCompleteSchemaeSql() {
getCompleteSchemaSql() {
return COMPLETE_SCHEMA_SQL;
}
};

View File

@@ -11,6 +11,13 @@ import { IVaultVersion } from "../types/VaultVersion";
* migration.
*/
export const VAULT_VERSIONS: IVaultVersion[] = [
{
revision: 0,
version: '1.0.0',
description: 'Initial Migration',
releaseDate: '2024-07-08',
releaseVersion: '0.1.0',
},
{
revision: 1,
version: '1.0.1',