Skip to content

Commit

Permalink
Merge pull request #5325 from bitfoundation/develop
Browse files Browse the repository at this point in the history
Version 5.6.1 (#5323)
  • Loading branch information
msynk authored Sep 20, 2023
2 parents 6980c30 + dbcfcb1 commit 511c224
Show file tree
Hide file tree
Showing 60 changed files with 161 additions and 141 deletions.
2 changes: 1 addition & 1 deletion src/Bit.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PackageProjectUrl>https://github.com/bitfoundation/bitplatform</PackageProjectUrl>
<PackageIconUrl>https://avatars.githubusercontent.com/u/22663390</PackageIconUrl>

<ReleaseVersion>5.6.0</ReleaseVersion>
<ReleaseVersion>5.6.1</ReleaseVersion>

<PackageReleaseNotes>https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion)</PackageReleaseNotes>
<PackageVersion>$(ReleaseVersion)</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<ProjectReference Include="..\..\..\Bit.BlazorUI.Icons\Bit.BlazorUI.Icons.csproj" />
<ProjectReference Include="..\..\..\Bit.BlazorUI.SourceGenerators\Bit.BlazorUI.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />

<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
</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>
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorUI/Demo/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
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.assetsExclude = [
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorUI/Demo/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Generated by bit-todo template v-5.6.0 -->
<!-- Generated by bit-todo template v-5.6.1 -->
<Project>
<PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<ProjectReference Include="..\..\..\Bit.BlazorUI\Bit.BlazorUI.csproj" />
<ProjectReference Condition=" '$(BlazorMode)' == 'BlazorWebAssembly' " Include="..\..\Client\Web\Bit.BlazorUI.Demo.Client.Web.csproj" />

<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/BlazorUI/Demo/Shared/Bit.BlazorUI.Demo.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,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
2 changes: 1 addition & 1 deletion src/Bswup/Bit.Bswup.Demo/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

self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
self.caseInsensitiveUrl = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bit version: 5.6.0
// bit version: 5.6.1

self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
self.caseInsensitiveUrl = true;
Expand Down
2 changes: 1 addition & 1 deletion src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window['bit-bswup.progress version'] = '5.6.0';
window['bit-bswup.progress version'] = '5.6.1';

; (function () {
(window as any).startBswupProgress = (autoReload: boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
self['bit-bswup.sw version'] = '5.6.0';
self['bit-bswup.sw version'] = '5.6.1';

interface Window {
clients: any
Expand Down
2 changes: 1 addition & 1 deletion src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window['bit-bswup version'] = '5.6.0';
window['bit-bswup version'] = '5.6.1';

declare const Blazor: any;

Expand Down
2 changes: 1 addition & 1 deletion src/Bswup/FullDemo/Client/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

// In development, always fetch from the network and do not enable offline support.
// This is because caching would make development more difficult (changes would not
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bit version: 5.6.0
// bit version: 5.6.1

self.assetsInclude = [];
self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
Expand Down
2 changes: 1 addition & 1 deletion src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window['bit-bup.progress version'] = '5.6.0';
window['bit-bup.progress version'] = '5.6.1';

; (function () {
(window as any).startBupProgress = (showLogs: boolean, showAssets: boolean, appContainerSelector: string, hideApp: boolean, autoHide: boolean) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Bup/Bit.Bup/Scripts/bit-bup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window['bit-bup version'] = '5.6.0';
window['bit-bup version'] = '5.6.1';

declare const Blazor: any;

Expand Down
Original file line number Diff line number Diff line change
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
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ namespace AdminPanel.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 @@ -35,9 +45,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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,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
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
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
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>
<!--/-:msbuild-conditional:noEmit -->
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,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
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,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
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,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
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
<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.Bup" Version="5.6.0" />
<PackageReference Include="Bit.Bswup" 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.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
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
{
<BitDropdown @bind-Value="SelectedCulture"
Class="culture-drp"
Items="GetCultures()"
OnSelectItem="(BitDropdownItem<string> item) => WrapHandled(OnCultureChanged)" />
Items="_cultures"
OnSelectItem="WrapHandled((BitDropdownItem<string> item) => OnCultureChanged())" />
}
<div class="footer-contact">info@bitplatform.dev</div>
<div class="footer-copyright">Made with <span class="text--red">♥</span> by bit platform</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ public partial class Footer
{
[AutoInject] private BitThemeManager _bitThemeManager { get; set; } = default!;

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 All @@ -29,9 +39,6 @@ private async Task OnCultureChanged()
NavigationManager.ForceReload();
}

private static List<BitDropdownItem<string>> GetCultures() =>
CultureInfoManager.SupportedCultures.Select(sc => new BitDropdownItem<string> { Value = sc.code, Text = sc.name }).ToList();

private async Task ToggleTheme()
{
await _bitThemeManager.ToggleDarkLightAsync();
Expand Down
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
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Generated by bit-dual template v-5.6.0 -->
<!-- Generated by bit-dual template v-5.6.1 -->
<Project>
<!--/-:msbuild-conditional:noEmit -->
<PropertyGroup>
Expand Down
Loading

0 comments on commit 511c224

Please sign in to comment.