Skip to content

Commit

Permalink
feat: update to bit 6.5.1 #21 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi authored Sep 21, 2023
1 parent 482e1c2 commit 4c175a7
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 31 deletions.
12 changes: 6 additions & 6 deletions src/Client/App/Bit.TemplatePlayground.Client.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- App Identifier -->
<ApplicationId>com.bitplatform.Bit.TemplatePlayground.Template</ApplicationId>
<ApplicationIdGuid>73E4BE29-BCCC-4018-B9DE-231918FD09B4</ApplicationIdGuid>
<ApplicationIdGuid>C213DBF0-CB2E-48FD-A195-69556F481A83</ApplicationIdGuid>

<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
Expand Down Expand Up @@ -87,14 +87,14 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<PackageReference Include="Bit.BlazorUI" Version="5.6.0" />
<PackageReference Include="Bit.BlazorUI.Icons" Version="5.6.0" />
<PackageReference Include="Bit.BlazorUI.Assets" Version="5.6.0" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.0">
<PackageReference Include="Bit.BlazorUI" Version="5.6.1" />
<PackageReference Include="Bit.BlazorUI.Icons" Version="5.6.1" />
<PackageReference Include="Bit.BlazorUI.Assets" Version="5.6.1" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="5.6.0">
<PackageReference Include="Bit.SourceGenerators" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions src/Client/Core/Bit.TemplatePlayground.Client.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<Content Remove="appsettings.json" />
<EmbeddedResource Include="appsettings.json" />

<PackageReference Include="Bit.BlazorUI" Version="5.6.0" />
<PackageReference Include="Bit.BlazorUI.Icons" Version="5.6.0" />
<PackageReference Include="Bit.BlazorUI.Assets" Version="5.6.0" />
<PackageReference Include="Bit.BlazorUI.Extras" Version="5.6.0" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.0">
<PackageReference Include="Bit.BlazorUI" Version="5.6.1" />
<PackageReference Include="Bit.BlazorUI.Icons" Version="5.6.1" />
<PackageReference Include="Bit.BlazorUI.Assets" Version="5.6.1" />
<PackageReference Include="Bit.BlazorUI.Extras" Version="5.6.1" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="5.6.0">
<PackageReference Include="Bit.SourceGenerators" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/Client/Core/Shared/Footer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@if (SelectedCulture is not null)
{
<BitDropdown @bind-Value="SelectedCulture"
Items="GetCultures()"
OnSelectItem="(BitDropdownItem<string> item) => WrapHandled(OnCultureChanged)" />
Items="_cultures"
OnSelectItem="WrapHandled((BitDropdownItem<string> item) => OnCultureChanged())" />
}
</div>
<div class="footer-social-lnk-grp">
Expand Down
15 changes: 10 additions & 5 deletions src/Client/Core/Shared/Footer.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ namespace Bit.TemplatePlayground.Client.Core.Shared;

public partial class Footer
{
private BitDropdownItem<string>[] _cultures = default!;

protected override Task OnInitAsync()
{
_cultures = CultureInfoManager.SupportedCultures
.Select(sc => new BitDropdownItem<string> { Value = sc.code, Text = sc.name })
.ToArray();
return base.OnInitAsync();
}

#if MultilingualEnabled

protected async override Task OnAfterFirstRenderAsync()
Expand Down Expand Up @@ -34,9 +44,4 @@ private async Task OnCultureChanged()

NavigationManager.ForceReload();
}

private static List<BitDropdownItem<string>> GetCultures()
{
return CultureInfoManager.SupportedCultures.Select(sc => new BitDropdownItem<string> { Value = sc.code, Text = sc.name }).ToList();
}
}
8 changes: 4 additions & 4 deletions src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Bit.Bup" Version="5.6.0" />
<PackageReference Include="Bit.Bswup" Version="5.6.0" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.0">
<PackageReference Include="Bit.Bup" Version="5.6.1" />
<PackageReference Include="Bit.Bswup" Version="5.6.1" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="5.6.0">
<PackageReference Include="Bit.SourceGenerators" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Web/wwwroot/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bit version: 5.6.0
// bit version: 5.6.1
// https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup

// Make sure to apply all changes you make here to the service-worker.published.js file too (if required).
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Web/wwwroot/service-worker.published.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bit version: 5.6.0
// bit version: 5.6.1
// https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup

self.assetsInclude = [];
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Generated by bit-admin template v-5.6.0 -->
<!-- Generated by bit-admin template v-5.6.1 -->
<Project>
<PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Infra/Iac/Bit.TemplatePlayground.Iac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Shared\Bit.TemplatePlayground.Shared.csproj" />
<ProjectReference Include="..\..\Shared\Bit.TemplatePlayground.Shared.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

<EmbeddedResource Include="Resources\*.cshtml" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.2.0" />
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.0">
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="5.6.0">
<PackageReference Include="Bit.SourceGenerators" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/Shared/Bit.TemplatePlayground.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.0">
<PackageReference Include="Bit.CodeAnalyzers" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Bit.SourceGenerators" Version="5.6.0">
<PackageReference Include="Bit.SourceGenerators" Version="5.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 4c175a7

Please sign in to comment.