Skip to content

Commit 4fec89e

Browse files
committed
Update Title formatting and bump extension version
Updated Title properties across Razor files to dynamically include the application name using `ApplicationSettings.AppName` for consistent branding. Enhanced `<MudText>` to display localized class descriptions dynamically. Bumped `CleanArchitecture_CodeGenerator_BlazorApp` version from 0.6.5 to 0.6.6 in `source.extension.vsixmanifest` to reflect the new release.
1 parent 4bbbf9f commit 4fec89e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Templates/Pages/.create.razor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
private Create{itemname}Command _model = new();
3838
protected override Task OnInitializedAsync()
3939
{
40-
Title = L["New {itemname}"];
40+
Title = $"{ApplicationSettings.AppName} - { L["New {itemname}"] }";
4141
_breadcrumbItems = new List<BreadcrumbItem>
4242
{
4343
new BreadcrumbItem(L["Home"], href: "/"),

src/Templates/Pages/.edit.razor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
private Update{itemname}Command? _model;
4646
protected override async Task OnInitializedAsync()
4747
{
48-
Title = L["Edit {itemname}"];
48+
Title = $"{ApplicationSettings.AppName} - { L["Edit {itemname}"] }";
4949
_breadcrumbItems = new List<BreadcrumbItem>
5050
{
5151
new BreadcrumbItem(L["Home"], href: "/"),

src/Templates/Pages/.razor.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<MudStack Row AlignItems="AlignItems.Start">
3434
<MudIcon Icon="@Icons.Material.Filled.Window" Size="Size.Large" />
3535
<MudStack Spacing="0">
36-
<MudText Typo="Typo.subtitle2" Class="mb-2">@Title</MudText>
36+
<MudText Typo="Typo.subtitle2" Class="mb-2">@L[_{itemnamelowercase}Dto.GetClassDescription()]</MudText>
3737
<MudEnumSelect Style="min-width:120px" TEnum="{itemname}ListView" ValueChanged="OnListViewChanged" Value="_{nameofplurallowercase}Query.ListView" Dense="true" Label="@L["List View"]">
3838
</MudEnumSelect>
3939
</MudStack>
@@ -168,7 +168,7 @@
168168

169169
protected override async Task OnInitializedAsync()
170170
{
171-
Title = L[_{itemnamelowercase}Dto.GetClassDescription()];
171+
Title = $"{ApplicationSettings.AppName} - { L[_{itemnamelowercase}Dto.GetClassDescription()] }";
172172
_accessRights = await PermissionService.GetAccessRightsAsync<{nameofPlural}AccessRights>();
173173
}
174174

src/Templates/Pages/.view.razor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
private {itemname}Dto? _model;
3636
protected override async Task OnInitializedAsync()
3737
{
38-
Title = L["{itemname}"];
38+
Title = $"{ApplicationSettings.AppName} - { L["{itemname}"] }";
3939
_breadcrumbItems = new List<BreadcrumbItem>
4040
{
4141
new BreadcrumbItem(L["Home"], href: "/"),

src/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="CleanArchitecture_CodeGenerator_BlazorApp" Version="0.6.5" Language="en-US" Publisher="neozhu" />
4+
<Identity Id="CleanArchitecture_CodeGenerator_BlazorApp" Version="0.6.6" Language="en-US" Publisher="neozhu" />
55
<DisplayName>CleanArchitecture CodeGenerator For Blazor App</DisplayName>
66
<Description xml:space="preserve">The fastest and easiest way to generate application features code that up to clean architecture principles for Blazor Server Application</Description>
77
<MoreInfo>https://marketplace.visualstudio.com/items?itemName=CleanArchitecture.CodeGenerator</MoreInfo>

0 commit comments

Comments
 (0)