Skip to content

Commit

Permalink
Merge pull request #5976 from bitfoundation/develop
Browse files Browse the repository at this point in the history
Version 7.1.0 (#5971)
  • Loading branch information
msynk authored Nov 8, 2023
2 parents 58d2524 + 2790c02 commit 50fc761
Show file tree
Hide file tree
Showing 465 changed files with 19,656 additions and 10,061 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can contribute to bit platform with issues and PRs. Simply filing issues for

We always welcome bug reports, API proposals and overall feedback. Here are a few tips on how you can make reporting your issue as effective as possible.

The bit platform codebase is consisted of multiple projects/products in a monorepo structure. Depending on the feedback you might want to file the issue with enough information to distinguish it among these projects/products.
The bit platform codebase consists of multiple projects/products in a monorepo structure. Depending on the feedback you might want to file the issue with enough information to distinguish it among these projects/products.

### Finding Existing Issues

Expand All @@ -32,7 +32,7 @@ When ready to submit a bug report, please use the [Bug Report issue template](ht

#### Are Minimal Reproductions Required?

In certain cases, creating a minimal reproduction might not be practical (e.g. due to nondeterministic factors, external dependencies). In such cases you would be asked to provide as much information as possible. If maintainers are unable to root cause the problem, they might still close the issue as not actionable. While not required, minimal reproductions are strongly encouraged and will significantly improve the chances of your issue being prioritized and fixed by the maintainers.
In certain cases, creating a minimal reproduction might not be practical (e.g. due to nondeterministic factors, external dependencies). In such cases you would be asked to provide as much information as possible. If maintainers are unable to root cause of the problem, they might still close the issue as not actionable. While not required, minimal reproductions are strongly encouraged and will significantly improve the chances of your issue being prioritized and fixed by the maintainers.

#### How to Create a Minimal Reproduction

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
![Code size](https://img.shields.io/github/languages/code-size/bitfoundation/bitplatform.svg?logo=github)
![CI Status](https://github.com/bitfoundation/bitplatform/actions/workflows/bit.ci.yml/badge.svg)
![NuGet version](https://img.shields.io/nuget/v/bit.blazorui.svg?logo=nuget)
[![Nuget downloads](https://img.shields.io/badge/packages_download-3.6M-blue.svg?logo=nuget)](https://www.nuget.org/profiles/bit-foundation)
[![Nuget downloads](https://img.shields.io/badge/packages_download-3.7M-blue.svg?logo=nuget)](https://www.nuget.org/profiles/bit-foundation)

<br/>
<hr />

![image](https://user-images.githubusercontent.com/6169846/271820882-0d816266-ebd1-4c2b-a3b7-296b35248536.png)
<br/>
Join us and start contributing to bit platform in [hacktoberfest](https://hacktoberfest.com/). you can find the up-for-grabs issues [here](https://github.com/bitfoundation/bitplatform/labels/up%20for%20grabs).
Join us and start contributing to bit platform in [hacktoberfest](https://hacktoberfest.com/). you can find the the `good first issues` [here](https://github.com/bitfoundation/bitplatform/labels/good%20first%20issue).

<hr />
<br/>
Expand Down
8 changes: 4 additions & 4 deletions docs/how-to-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Projects

bit platform consists of multiple different projects/prodcuts with the following being the most important ones:
bit platform consists of multiple different projects/products with the following being the most important ones:

- [bit platform website](../src/Websites/Platform/)
- [bit BlazorUI (Blazor components)](../src/BlazorUI/)
Expand All @@ -34,7 +34,7 @@ Building each bit platform project requires specific steps that are explained pe
<br/>

### bit platform Website
This website only requires the basic requirements and can be simply built by runnning the following command in the `Bit.Websites.Platform.Web` project folder:
This website only requires the basic requirements and can be simply built by running the following command in the `Bit.Websites.Platform.Web` project folder:

```bash
dotnet build
Expand Down Expand Up @@ -92,7 +92,7 @@ dotnet build
### bit Project Templates
Like the bit BlazorUI Demo project, the project templates (located in the `src/Templates` folder) have two different projects (Web & App) with different requirements to build.

For exmaple for the `AdminPanel` porject template in the `AdminPanel/Bit.AdminPanel` folder:
For example for the `AdminPanel` project template in the `AdminPanel/Bit.AdminPanel` folder:

The `Web` project just like the bit platform website only needs the basic requirements and can be simply built by running the following command in the `AdminPanel.Client.Web` project folder (`src/Client/Web`):

Expand All @@ -117,4 +117,4 @@ To build the App project run the following command in the `AdminPanel.Client.App

```bash
dotnet build
```
```
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>7.0.0</ReleaseVersion>
<ReleaseVersion>7.1.0</ReleaseVersion>

<PackageReleaseNotes>https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion)</PackageReleaseNotes>
<PackageVersion>$(ReleaseVersion)</PackageVersion>
Expand Down
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@
<Exec Command="node_modules/.bin/sass Styles/bit.blazorui.assets.scss:wwwroot/styles/bit.blazorui.assets.css --style compressed --load-path=. --update" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,15 @@
<Exec Condition=" '$(Configuration)' == 'Release' " Command="node_modules/.bin/esbuild wwwroot/scripts/bit.blazorui.extras.js --minify --outfile=wwwroot/scripts/bit.blazorui.extras.js --allow-overwrite" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@
<Exec Command="node_modules/.bin/sass Styles/bit.blazorui.icons.scss:wwwroot/styles/bit.blazorui.icons.css --style compressed --load-path=. --update" StandardOutputImportance="high" StandardErrorImportance="high" />
</Target>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/BlazorUI/Bit.BlazorUI.SourceGenerators/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### bit Source Generators
2 changes: 1 addition & 1 deletion src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="bunit.web" Version="1.24.9-preview" />
<PackageReference Include="bunit.web" Version="1.24.10" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
Expand Down
78 changes: 78 additions & 0 deletions src/BlazorUI/Bit.BlazorUI.Tests/Buttons/BitButtonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,82 @@ public void BitButtonButtonStateNotOverriddenInEditContextTest()

Assert.AreEqual("button", bitButton.GetAttribute("type"));
}

[DataTestMethod,
DataRow(BitButtonColor.Info),
DataRow(BitButtonColor.Success),
DataRow(BitButtonColor.Warning),
DataRow(BitButtonColor.SevereWarning),
DataRow(BitButtonColor.Error),
DataRow(null),
]
[TestMethod]
public void BitButtonColorOfButtonTest(BitButtonColor? color)
{
var com = RenderComponent<BitButton>(parameters =>
{
if (color.HasValue)
{
parameters.Add(p => p.Color, color.Value);
}
});

var bitButton = com.Find(".bit-btn");

var colorClassName = color switch
{
BitButtonColor.Info => "bit-btn-inf",
BitButtonColor.Success => "bit-btn-suc",
BitButtonColor.Warning => "bit-btn-wrn",
BitButtonColor.SevereWarning => "bit-btn-swr",
BitButtonColor.Error => "bit-btn-err",
_ => String.Empty
};

if (color.HasValue)
{
Assert.IsTrue(bitButton.ClassList.Contains(colorClassName));
}
else
{
Assert.AreEqual(2, bitButton.ClassList.Length);
}
}

[DataTestMethod,
DataRow(BitButtonSize.Small),
DataRow(BitButtonSize.Medium),
DataRow(BitButtonSize.Large),
DataRow(null)
]
[TestMethod]
public void BitButtonSizeOfButtonTest(BitButtonSize? size)
{
var com = RenderComponent<BitButton>(parameters =>
{
if (size.HasValue)
{
parameters.Add(p => p.Size, size.Value);
}
});

var bitButton = com.Find(".bit-btn");

var sizeClassName = size switch
{
BitButtonSize.Small => "bit-btn-sm",
BitButtonSize.Medium => "bit-btn-md",
BitButtonSize.Large => "bit-btn-lg",
_ => String.Empty
};

if (size.HasValue)
{
Assert.IsTrue(bitButton.ClassList.Contains(sizeClassName));
}
else
{
Assert.AreEqual(2, bitButton.ClassList.Length);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;

namespace Bit.BlazorUI.Tests.Pickers;
namespace Bit.BlazorUI.Tests.DatePicker;

public class BitDatePickerTestModel
{
Expand Down
Loading

0 comments on commit 50fc761

Please sign in to comment.