From e481996215aaccd7a898bb8af3a1f6303f902a5b Mon Sep 17 00:00:00 2001 From: Argo Date: Tue, 30 Nov 2021 05:44:01 +0000 Subject: [PATCH] =?UTF-8?q?!2155=20doc(#I4KEJQ):=20update=20codecov=20badg?= =?UTF-8?q?e=20*=20chore:=20bump=20version=20to=206.0.10=20*=20revert:=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=9C=AC=E5=9C=B0=E5=8C=96=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=20Ubuntu=20=E6=8A=A5=E9=94=99=20*=20chore:?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E5=B7=A5=E7=A8=8B=20*?= =?UTF-8?q?=20test:=20=E6=9B=B4=E6=96=B0=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=20*=20Revert=20"chore:=20=E5=A2=9E=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80"=20*=20chore:=20=E5=A2=9E=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=20*=20chore:=20=E6=B5=8B=E8=AF=95=20dev-tabl?= =?UTF-8?q?e=20=E5=88=86=E6=94=AF=20*=20doc:=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=20*=20doc:=20=E6=9B=B4=E6=94=B9=E5=88=86=E6=94=AF?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 1 + README.md | 6 +++--- README.zh-CN.md | 8 +++++--- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- test/UnitTest.Localization/LocalizerEnTest.cs | 3 +++ test/UnitTest.Localization/LocalizerZhTest.cs | 3 +++ 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 982ac6f3e..e306e8d5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: branches: - main - dev + - dev-table jobs: deploy: diff --git a/README.md b/README.md index deb9cf96f..91918cc6e 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ [![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE) [![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor) [![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor) -[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) +[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/main/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) ---- - English | 中文 +--- + ## Features - Enterprise-class UI designed for web applications. - A set of high-quality Blazor components out of the box. diff --git a/README.zh-CN.md b/README.zh-CN.md index db77e3e23..f3e5729b9 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -9,9 +9,8 @@ [![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE) [![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor) [![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor) -[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) +[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/main/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) ---- English | 中文 @@ -38,11 +37,14 @@ Blazor 是一个使用 .NET 生成交互式客户端 Web UI 的框架: ## 生态伙伴 -WTM 快速开发框架,设计的核心理念就是”尽一切可能提高开发效率“。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) +WTM 快速开发框架,设计的核心理念就是 "尽一切可能提高开发效率"。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) +WTM 快速开发框架,设计的核心理念就是 "尽一切可能提高开发效率"。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) + ## 开发环境搭建 + 1. 安装 .net core sdk 最新版 [官方网址](http://www.microsoft.com/net/download) 2. 安装 Visual Studio 2022 最新版 [官方网址](https://visualstudio.microsoft.com/vs/getting-started/) 3. 获取本项目代码 [BootstrapBlazor](https://gitee.com/LongbowEnterprise/BootstrapBlazor) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index ab5dc2299..bd053e683 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 6.0.9 + 6.0.10 diff --git a/test/UnitTest.Localization/LocalizerEnTest.cs b/test/UnitTest.Localization/LocalizerEnTest.cs index 9db0e5c5e..c9cf3136d 100644 --- a/test/UnitTest.Localization/LocalizerEnTest.cs +++ b/test/UnitTest.Localization/LocalizerEnTest.cs @@ -7,6 +7,7 @@ using BootstrapBlazor.Shared; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; using System.ComponentModel.DataAnnotations; +using System.Globalization; using UnitTest.Core; using Xunit; @@ -32,6 +33,8 @@ namespace UnitTest.Localization [Fact] public void Dummy_Resource_Ok() { + Assert.Equal("en-US", CultureInfo.CurrentUICulture.Name); + var val = Utility.GetDisplayName(typeof(DummyEn), nameof(DummyEn.Name)); Assert.Equal("TestName", val); diff --git a/test/UnitTest.Localization/LocalizerZhTest.cs b/test/UnitTest.Localization/LocalizerZhTest.cs index 835350b84..f33e5648f 100644 --- a/test/UnitTest.Localization/LocalizerZhTest.cs +++ b/test/UnitTest.Localization/LocalizerZhTest.cs @@ -7,6 +7,7 @@ using BootstrapBlazor.Shared; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; using System.ComponentModel.DataAnnotations; +using System.Globalization; using UnitTest.Core; using Xunit; @@ -32,6 +33,8 @@ namespace UnitTest.Localization [Fact] public void Dummy_Resource_Ok() { + Assert.Equal("zh-CN", CultureInfo.CurrentUICulture.Name); + var val = Utility.GetDisplayName(typeof(Dummy), nameof(Dummy.Name)); Assert.Equal("姓名", val);