diff --git a/.editorconfig b/.editorconfig index c21432b7..afd728bb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -53,6 +53,8 @@ dotnet_style_qualification_for_event = false:refactoring # Use language keywords instead of framework type names for type references dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion dotnet_style_predefined_type_for_member_access = true:suggestion +# Always add accessibility modifiers +dotnet_style_require_accessibility_modifiers=always:warning # Suggest more modern language features when available dotnet_style_object_initializer = true:suggestion @@ -232,23 +234,32 @@ dotnet_diagnostic.CS8509.severity = error # CA2007: Consider calling ConfigureAwait on the awaited task dotnet_diagnostic.CA2007.severity = none -# CA2227: 集合属性应为只读 +# CA2227: 闆嗗悎灞炴у簲涓哄彧璇 dotnet_diagnostic.CA2227.severity = none -# CA1303: 请不要将文本作为本地化参数传递 +# CA1303: 璇蜂笉瑕佸皢鏂囨湰浣滀负鏈湴鍖栧弬鏁颁紶閫 dotnet_diagnostic.CA1303.severity = none -# CA2208: 正确实例化参数异常 +# CA2208: 姝g‘瀹炰緥鍖栧弬鏁板紓甯 dotnet_diagnostic.CA2208.severity = none -# CA1819: 属性不应返回数组 +# CA1819: 灞炴т笉搴旇繑鍥炴暟缁 dotnet_diagnostic.CA1819.severity = none -# CA2225: 运算符重载具有命名的备用项 +# CA2225: 杩愮畻绗﹂噸杞藉叿鏈夊懡鍚嶇殑澶囩敤椤 dotnet_diagnostic.CA2225.severity = none -# CA1308: 将字符串规范化为大写 +# CA1308: 灏嗗瓧绗︿覆瑙勮寖鍖栦负澶у啓 dotnet_diagnostic.CA1308.severity = none -# CA1040: 避免使用空接口 -dotnet_diagnostic.CA1040.severity = none \ No newline at end of file +# CA1040: 閬垮厤浣跨敤绌烘帴鍙 +dotnet_diagnostic.CA1040.severity = none + +# CA1852: sealed internal types, https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1852 +dotnet_diagnostic.CA1852.severity = warning + +# IDE0040: add accessibility modifiers, https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0040 +dotnet_diagnostic.IDE0040.severity = warning + +# IDE005: remove unnecessary usings, https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005?pivots=lang-csharp-vb +dotnet_diagnostic.IDE0005.severity = error diff --git a/components/GlobalSuppressions.cs b/components/GlobalSuppressions.cs index 46861e42..d03acb58 100644 --- a/components/GlobalSuppressions.cs +++ b/components/GlobalSuppressions.cs @@ -1,7 +1,6 @@ -锘// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. -// Project-level suppressions either have no target or are given -// a specific target and scoped to a namespace, type, member, etc. +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System.Diagnostics.CodeAnalysis; diff --git a/components/IsExternalInit.cs b/components/IsExternalInit.cs index dfa0af30..ba17ea98 100644 --- a/components/IsExternalInit.cs +++ b/components/IsExternalInit.cs @@ -1,4 +1,8 @@ -锘縩amespace System.Runtime.CompilerServices +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Runtime.CompilerServices { internal sealed class IsExternalInit { diff --git a/components/alert/AlertType.cs b/components/alert/AlertType.cs index e9a84dca..0c72b081 100644 --- a/components/alert/AlertType.cs +++ b/components/alert/AlertType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class AlertType { diff --git a/components/anchor/AnchorLinkEqualityComparer.cs b/components/anchor/AnchorLinkEqualityComparer.cs index 48636b02..8bda1a16 100644 --- a/components/anchor/AnchorLinkEqualityComparer.cs +++ b/components/anchor/AnchorLinkEqualityComparer.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/anchor/IAnchor.cs b/components/anchor/IAnchor.cs index b8995fc6..7444893e 100644 --- a/components/anchor/IAnchor.cs +++ b/components/anchor/IAnchor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/auto-complete/AutoCompleteInput.cs b/components/auto-complete/AutoCompleteInput.cs index 79bee417..d461f1dc 100644 --- a/components/auto-complete/AutoCompleteInput.cs +++ b/components/auto-complete/AutoCompleteInput.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/auto-complete/AutoCompleteOptGroup.razor.cs b/components/auto-complete/AutoCompleteOptGroup.razor.cs index fec72976..5f19fdb3 100644 --- a/components/auto-complete/AutoCompleteOptGroup.razor.cs +++ b/components/auto-complete/AutoCompleteOptGroup.razor.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/auto-complete/AutoCompleteSearch.cs b/components/auto-complete/AutoCompleteSearch.cs index f0ed78bb..92902a81 100644 --- a/components/auto-complete/AutoCompleteSearch.cs +++ b/components/auto-complete/AutoCompleteSearch.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/auto-complete/IAutoCompleteInput.cs b/components/auto-complete/IAutoCompleteInput.cs index 6574534d..16dc77eb 100644 --- a/components/auto-complete/IAutoCompleteInput.cs +++ b/components/auto-complete/IAutoCompleteInput.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/auto-complete/IAutoCompleteRef.cs b/components/auto-complete/IAutoCompleteRef.cs index 539a0fe6..660635a0 100644 --- a/components/auto-complete/IAutoCompleteRef.cs +++ b/components/auto-complete/IAutoCompleteRef.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/avatar/AvatarGroup.razor.cs b/components/avatar/AvatarGroup.razor.cs index 705790dc..9d58d0f1 100644 --- a/components/avatar/AvatarGroup.razor.cs +++ b/components/avatar/AvatarGroup.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/avatar/AvatarShape.cs b/components/avatar/AvatarShape.cs index cfc31ce1..a30d3d93 100644 --- a/components/avatar/AvatarShape.cs +++ b/components/avatar/AvatarShape.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class AvatarShape { diff --git a/components/badge/BadgeColor.cs b/components/badge/BadgeColor.cs index 57a6e848..d8ac99eb 100644 --- a/components/badge/BadgeColor.cs +++ b/components/badge/BadgeColor.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class BadgeColor { diff --git a/components/badge/BadgeStatus.cs b/components/badge/BadgeStatus.cs index 6c69b18e..4eab0086 100644 --- a/components/badge/BadgeStatus.cs +++ b/components/badge/BadgeStatus.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class BadgeStatus { diff --git a/components/breadcrumb/BreadcrumbOption.cs b/components/breadcrumb/BreadcrumbOption.cs index 6c3b68bc..6630c4d7 100644 --- a/components/breadcrumb/BreadcrumbOption.cs +++ b/components/breadcrumb/BreadcrumbOption.cs @@ -1,6 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/calendar/CalendarHeaderRenderCallback.cs b/components/calendar/CalendarHeaderRenderCallback.cs index f6d9a967..d270f48d 100644 --- a/components/calendar/CalendarHeaderRenderCallback.cs +++ b/components/calendar/CalendarHeaderRenderCallback.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/calendar/internal/CalendarPanelChooser.razor.cs b/components/calendar/internal/CalendarPanelChooser.razor.cs index 6ec4c39f..b83d6c9d 100644 --- a/components/calendar/internal/CalendarPanelChooser.razor.cs +++ b/components/calendar/internal/CalendarPanelChooser.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign.Internal diff --git a/components/carousel/CarouselDotPosition.cs b/components/carousel/CarouselDotPosition.cs index 3b4cf4fb..2c9e00b5 100644 --- a/components/carousel/CarouselDotPosition.cs +++ b/components/carousel/CarouselDotPosition.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class CarouselDotPosition { diff --git a/components/carousel/CarouselEffect.cs b/components/carousel/CarouselEffect.cs index 84938cfd..57199f56 100644 --- a/components/carousel/CarouselEffect.cs +++ b/components/carousel/CarouselEffect.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class CarouselEffect { diff --git a/components/cascader/CascaderNode.cs b/components/cascader/CascaderNode.cs index 51b41f49..8856b680 100644 --- a/components/cascader/CascaderNode.cs +++ b/components/cascader/CascaderNode.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.Linq; namespace AntDesign diff --git a/components/checkbox/CheckBoxOption.cs b/components/checkbox/CheckBoxOption.cs index 25891521..5fea8092 100644 --- a/components/checkbox/CheckBoxOption.cs +++ b/components/checkbox/CheckBoxOption.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class CheckboxOption { diff --git a/components/checkbox/Checkbox.razor.cs b/components/checkbox/Checkbox.razor.cs index 317e82f5..4d70583e 100644 --- a/components/checkbox/Checkbox.razor.cs +++ b/components/checkbox/Checkbox.razor.cs @@ -3,12 +3,12 @@ // See the LICENSE file in the project root for more information. using System; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; -using AntDesign.Internal; using System.Collections.Generic; using System.Linq; +using System.Linq.Expressions; +using System.Threading.Tasks; +using AntDesign.Internal; +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/checkbox/CheckboxGroup.razor.cs b/components/checkbox/CheckboxGroup.razor.cs index fb084921..9887444a 100644 --- a/components/checkbox/CheckboxGroup.razor.cs +++ b/components/checkbox/CheckboxGroup.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using AntDesign.Internal; diff --git a/components/checkbox/CheckboxGroupMixedMode.cs b/components/checkbox/CheckboxGroupMixedMode.cs index ac13f007..add3c8dd 100644 --- a/components/checkbox/CheckboxGroupMixedMode.cs +++ b/components/checkbox/CheckboxGroupMixedMode.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum CheckboxGroupMixedMode { diff --git a/components/checkbox/EnumCheckboxGroup.cs b/components/checkbox/EnumCheckboxGroup.cs index d23f0591..e0b608b4 100644 --- a/components/checkbox/EnumCheckboxGroup.cs +++ b/components/checkbox/EnumCheckboxGroup.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Linq; -using System.Text; namespace AntDesign { diff --git a/components/checkbox/ICheckboxGroup.cs b/components/checkbox/ICheckboxGroup.cs index ed39eb8f..cf2164e7 100644 --- a/components/checkbox/ICheckboxGroup.cs +++ b/components/checkbox/ICheckboxGroup.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace AntDesign.Internal { public interface ICheckboxGroup diff --git a/components/collapse/CollapseExpandIconPosition.cs b/components/collapse/CollapseExpandIconPosition.cs index fb210a67..3930f387 100644 --- a/components/collapse/CollapseExpandIconPosition.cs +++ b/components/collapse/CollapseExpandIconPosition.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class CollapseExpandIconPosition { diff --git a/components/collapse/Panel.razor.cs b/components/collapse/Panel.razor.cs index 4bf31139..15c92971 100644 --- a/components/collapse/Panel.razor.cs +++ b/components/collapse/Panel.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using AntDesign.JsInterop; using Microsoft.AspNetCore.Components; diff --git a/components/config-provider/ConfigService.cs b/components/config-provider/ConfigService.cs index 199f247b..a1a08013 100644 --- a/components/config-provider/ConfigService.cs +++ b/components/config-provider/ConfigService.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.JSInterop; diff --git a/components/config-provider/GlobalTheme.cs b/components/config-provider/GlobalTheme.cs index 1c4dfc12..eb1e9864 100644 --- a/components/config-provider/GlobalTheme.cs +++ b/components/config-provider/GlobalTheme.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class GlobalTheme : EnumValue { diff --git a/components/core/AntSizeLDSType.cs b/components/core/AntSizeLDSType.cs index f179b1aa..94c05faf 100644 --- a/components/core/AntSizeLDSType.cs +++ b/components/core/AntSizeLDSType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class AntSizeLDSType { diff --git a/components/core/Base/AntComponentBase.cs b/components/core/Base/AntComponentBase.cs index 38c58fec..b6afe8ca 100644 --- a/components/core/Base/AntComponentBase.cs +++ b/components/core/Base/AntComponentBase.cs @@ -1,9 +1,13 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; +using AntDesign.Core.Extensions; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; -using AntDesign.Core.Extensions; namespace AntDesign { @@ -109,7 +113,7 @@ namespace AntDesign /// /// Element that will receive focus. /// Whether to scroll to focused element - protected async Task FocusAsync(ElementReference target, bool preventScroll = false) + protected async Task FocusAsync(ElementReference target, bool preventScroll = false) => await Js.FocusAsync(target, preventScroll); /// diff --git a/components/core/Base/AntContainerComponentBase.cs b/components/core/Base/AntContainerComponentBase.cs index 076f3ec8..a1f7a62b 100644 --- a/components/core/Base/AntContainerComponentBase.cs +++ b/components/core/Base/AntContainerComponentBase.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; namespace AntDesign diff --git a/components/core/Base/AntDomComponentBase.cs b/components/core/Base/AntDomComponentBase.cs index fef8d9a7..b47e819f 100644 --- a/components/core/Base/AntDomComponentBase.cs +++ b/components/core/Base/AntDomComponentBase.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/core/Base/AntInputComponentBase.cs b/components/core/Base/AntInputComponentBase.cs index 113db5c6..87c32c41 100644 --- a/components/core/Base/AntInputComponentBase.cs +++ b/components/core/Base/AntInputComponentBase.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections; using System.Collections.Generic; using System.Globalization; diff --git a/components/core/Base/TemplateComponentBase.cs b/components/core/Base/TemplateComponentBase.cs index 7b69931a..017d08db 100644 --- a/components/core/Base/TemplateComponentBase.cs +++ b/components/core/Base/TemplateComponentBase.cs @@ -1,4 +1,9 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/core/Component/Overlay/Overlay.razor.cs b/components/core/Component/Overlay/Overlay.razor.cs index 98cde0e5..75792ce5 100644 --- a/components/core/Component/Overlay/Overlay.razor.cs +++ b/components/core/Component/Overlay/Overlay.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Text.Json; diff --git a/components/core/Component/Overlay/type/PlacementDirection.cs b/components/core/Component/Overlay/type/PlacementDirection.cs index 71f44faf..0714ab30 100644 --- a/components/core/Component/Overlay/type/PlacementDirection.cs +++ b/components/core/Component/Overlay/type/PlacementDirection.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { internal enum PlacementDirection { diff --git a/components/core/Component/Overlay/type/TriggerBoundaryAdjustMode.cs b/components/core/Component/Overlay/type/TriggerBoundaryAdjustMode.cs index 5f51d3c5..6aa2dcb8 100644 --- a/components/core/Component/Overlay/type/TriggerBoundaryAdjustMode.cs +++ b/components/core/Component/Overlay/type/TriggerBoundaryAdjustMode.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum TriggerBoundaryAdjustMode { diff --git a/components/core/Component/Overlay/type/TriggerType.cs b/components/core/Component/Overlay/type/TriggerType.cs index 975d16e0..618dafd4 100644 --- a/components/core/Component/Overlay/type/TriggerType.cs +++ b/components/core/Component/Overlay/type/TriggerType.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel; namespace AntDesign diff --git a/components/core/ConfigProvider/Form/FormConfig.cs b/components/core/ConfigProvider/Form/FormConfig.cs index 1c090a25..2144a5a2 100644 --- a/components/core/ConfigProvider/Form/FormConfig.cs +++ b/components/core/ConfigProvider/Form/FormConfig.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class FormConfig { diff --git a/components/core/ConfigProvider/Form/FormValidateErrorMessages.cs b/components/core/ConfigProvider/Form/FormValidateErrorMessages.cs index 245a8177..d9361499 100644 --- a/components/core/ConfigProvider/Form/FormValidateErrorMessages.cs +++ b/components/core/ConfigProvider/Form/FormValidateErrorMessages.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; - namespace AntDesign { public class FormValidateErrorMessages diff --git a/components/core/CssSizeLength.cs b/components/core/CssSizeLength.cs index 3893d8f0..63bc6284 100644 --- a/components/core/CssSizeLength.cs +++ b/components/core/CssSizeLength.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Runtime.CompilerServices; diff --git a/components/core/Direction.cs b/components/core/Direction.cs index bac1f5fb..0bfb9ad9 100644 --- a/components/core/Direction.cs +++ b/components/core/Direction.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum AntDirectionVHIType { diff --git a/components/core/DynamicComponent/Component.cs b/components/core/DynamicComponent/Component.cs index ca5223ee..5ee48633 100644 --- a/components/core/DynamicComponent/Component.cs +++ b/components/core/DynamicComponent/Component.cs @@ -12,7 +12,7 @@ namespace AntDesign { public class Component : ComponentBase { - static Assembly _antAssembly; + private static Assembly _antAssembly; [Parameter] public Type Type { get; set; } diff --git a/components/core/EnumValue.cs b/components/core/EnumValue.cs index 37890eeb..6e89c6f7 100644 --- a/components/core/EnumValue.cs +++ b/components/core/EnumValue.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/core/EventCallbackArgs/DateRangeChangedEventArgs.cs b/components/core/EventCallbackArgs/DateRangeChangedEventArgs.cs index 95346f0b..2f5f82b6 100644 --- a/components/core/EventCallbackArgs/DateRangeChangedEventArgs.cs +++ b/components/core/EventCallbackArgs/DateRangeChangedEventArgs.cs @@ -1,4 +1,6 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign { diff --git a/components/core/EventCallbackArgs/DateTimeChangedEventArgs.cs b/components/core/EventCallbackArgs/DateTimeChangedEventArgs.cs index 9ca0f129..9a3abc28 100644 --- a/components/core/EventCallbackArgs/DateTimeChangedEventArgs.cs +++ b/components/core/EventCallbackArgs/DateTimeChangedEventArgs.cs @@ -1,4 +1,6 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign { diff --git a/components/core/EventCallbackArgs/OnResizeEventArgs.cs b/components/core/EventCallbackArgs/OnResizeEventArgs.cs index b2a24ff5..9912fd9a 100644 --- a/components/core/EventCallbackArgs/OnResizeEventArgs.cs +++ b/components/core/EventCallbackArgs/OnResizeEventArgs.cs @@ -1,4 +1,7 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign { public class OnResizeEventArgs diff --git a/components/core/EventUtil.cs b/components/core/EventUtil.cs index 4571ddeb..623645d7 100644 --- a/components/core/EventUtil.cs +++ b/components/core/EventUtil.cs @@ -31,13 +31,12 @@ namespace AntDesign // By implementing IHandleEvent, we can override the event handling logic on a per-handler basis // The logic here just calls the callback without triggering any re-rendering - class ReceiverBase : IHandleEvent + private class ReceiverBase : IHandleEvent { public Task HandleEventAsync(EventCallbackWorkItem item, object arg) => item.InvokeAsync(arg); } - - class SyncReceiver : ReceiverBase + private sealed class SyncReceiver : ReceiverBase { private Action callback; @@ -49,7 +48,7 @@ namespace AntDesign public void Invoke() => callback(); } - class SyncReceiver : ReceiverBase + private sealed class SyncReceiver : ReceiverBase { private Action callback; @@ -61,7 +60,7 @@ namespace AntDesign public void Invoke(T arg) => callback(arg); } - class AsyncReceiver : ReceiverBase + private sealed class AsyncReceiver : ReceiverBase { private Func callback; @@ -73,7 +72,7 @@ namespace AntDesign public Task Invoke() => callback(); } - class AsyncReceiver: ReceiverBase + private sealed class AsyncReceiver : ReceiverBase { private Func callback; diff --git a/components/core/Extensions/DataConversionExtensions.cs b/components/core/Extensions/DataConversionExtensions.cs index 1dc25b7b..9412ebb8 100644 --- a/components/core/Extensions/DataConversionExtensions.cs +++ b/components/core/Extensions/DataConversionExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System.Runtime.CompilerServices; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Runtime.CompilerServices; namespace AntDesign.core.Extensions { diff --git a/components/core/Extensions/EnumerableExtensions.cs b/components/core/Extensions/EnumerableExtensions.cs index 8ca83d02..7e0967e2 100644 --- a/components/core/Extensions/EnumerableExtensions.cs +++ b/components/core/Extensions/EnumerableExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/components/core/Extensions/HttpClientExtensions.cs b/components/core/Extensions/HttpClientExtensions.cs index 3f76f495..52462762 100644 --- a/components/core/Extensions/HttpClientExtensions.cs +++ b/components/core/Extensions/HttpClientExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Net.Http; using System.Text; using System.Text.Json; diff --git a/components/core/Extensions/JSRuntimeExtensions.cs b/components/core/Extensions/JSRuntimeExtensions.cs index d15ef18b..a0bd6197 100644 --- a/components/core/Extensions/JSRuntimeExtensions.cs +++ b/components/core/Extensions/JSRuntimeExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/core/Extensions/ObjectExtensions.cs b/components/core/Extensions/ObjectExtensions.cs index fb93a5e7..cf805b92 100644 --- a/components/core/Extensions/ObjectExtensions.cs +++ b/components/core/Extensions/ObjectExtensions.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace AntDesign.Core.Extensions { internal static class ObjectExtensions diff --git a/components/core/Extensions/ParameterViewExtensions.cs b/components/core/Extensions/ParameterViewExtensions.cs index 01a04fe5..53a5fc35 100644 --- a/components/core/Extensions/ParameterViewExtensions.cs +++ b/components/core/Extensions/ParameterViewExtensions.cs @@ -1,5 +1,8 @@ -锘縰sing System; -using System.Collections; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/core/Extensions/ServiceCollectionExtensions.cs b/components/core/Extensions/ServiceCollectionExtensions.cs index 75324d3b..ba501369 100644 --- a/components/core/Extensions/ServiceCollectionExtensions.cs +++ b/components/core/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; using System.Runtime.InteropServices; using System.Text.Encodings.Web; using AntDesign; diff --git a/components/core/FocusBehavior.cs b/components/core/FocusBehavior.cs index f41c3cbc..da1ab57e 100644 --- a/components/core/FocusBehavior.cs +++ b/components/core/FocusBehavior.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum FocusBehavior { diff --git a/components/core/Forms/ExpressionFormatter.cs b/components/core/Forms/ExpressionFormatter.cs index d0155da1..3db7d636 100644 --- a/components/core/Forms/ExpressionFormatter.cs +++ b/components/core/Forms/ExpressionFormatter.cs @@ -330,4 +330,4 @@ internal static class ExpressionFormatter } } } -#endif \ No newline at end of file +#endif diff --git a/components/core/Forms/HtmlFieldPrefix.cs b/components/core/Forms/HtmlFieldPrefix.cs index a79b2a2e..84869564 100644 --- a/components/core/Forms/HtmlFieldPrefix.cs +++ b/components/core/Forms/HtmlFieldPrefix.cs @@ -48,4 +48,4 @@ internal class HtmlFieldPrefix(LambdaExpression initial) return ExpressionFormatter.FormatLambda(expression, prefix); } } -#endif \ No newline at end of file +#endif diff --git a/components/core/Forms/IControlValueAccessor.cs b/components/core/Forms/IControlValueAccessor.cs index 1fd7d07c..f1e723ce 100644 --- a/components/core/Forms/IControlValueAccessor.cs +++ b/components/core/Forms/IControlValueAccessor.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Forms +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Forms { public interface IControlValueAccessor { diff --git a/components/core/Forms/ReverseStringBuilder.cs b/components/core/Forms/ReverseStringBuilder.cs index acbce9ef..0483ece6 100644 --- a/components/core/Forms/ReverseStringBuilder.cs +++ b/components/core/Forms/ReverseStringBuilder.cs @@ -170,4 +170,4 @@ internal ref struct ReverseStringBuilder } } } -#endif \ No newline at end of file +#endif diff --git a/components/core/ForwardRef.cs b/components/core/ForwardRef.cs index b27c7119..2fd06425 100644 --- a/components/core/ForwardRef.cs +++ b/components/core/ForwardRef.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { @@ -18,4 +22,4 @@ namespace AntDesign _current = value; } } -} \ No newline at end of file +} diff --git a/components/core/HashCodes/HashCode.cs b/components/core/HashCodes/HashCode.cs index 59312e8d..c825eac1 100644 --- a/components/core/HashCodes/HashCode.cs +++ b/components/core/HashCodes/HashCode.cs @@ -1,10 +1,14 @@ -锘縩amespace AntDesign.Core.HashCodes +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Core.HashCodes { /// /// Provides a hash comparison of two parameter values /// /// - static class HashCode + internal static class HashCode { private static readonly HashCodeProvider _provider = HashCodeProvider.Create(typeof(TParameter)); diff --git a/components/core/HashCodes/HashCodeExtensions.cs b/components/core/HashCodes/HashCodeExtensions.cs index 219bdf7f..a7664861 100644 --- a/components/core/HashCodes/HashCodeExtensions.cs +++ b/components/core/HashCodes/HashCodeExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign.Core.HashCodes diff --git a/components/core/HashCodes/HashCodeProvider.cs b/components/core/HashCodes/HashCodeProvider.cs index 04a9a876..e30706df 100644 --- a/components/core/HashCodes/HashCodeProvider.cs +++ b/components/core/HashCodes/HashCodeProvider.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections; using System.Collections.Generic; diff --git a/components/core/HashCodes/ParameterDescriptor.cs b/components/core/HashCodes/ParameterDescriptor.cs index 641e3786..6912e8f9 100644 --- a/components/core/HashCodes/ParameterDescriptor.cs +++ b/components/core/HashCodes/ParameterDescriptor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; diff --git a/components/core/Helpers/ClassMapper.cs b/components/core/Helpers/ClassMapper.cs index a6572051..52f4b39c 100644 --- a/components/core/Helpers/ClassMapper.cs +++ b/components/core/Helpers/ClassMapper.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/core/Helpers/DateHelper.cs b/components/core/Helpers/DateHelper.cs index dfd8dd94..7d0966e3 100644 --- a/components/core/Helpers/DateHelper.cs +++ b/components/core/Helpers/DateHelper.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; namespace AntDesign diff --git a/components/core/Helpers/Formatter.cs b/components/core/Helpers/Formatter.cs index 23474260..770ac94b 100644 --- a/components/core/Helpers/Formatter.cs +++ b/components/core/Helpers/Formatter.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq.Expressions; diff --git a/components/core/Helpers/MemberPath/GetItemExpressionReplacer.cs b/components/core/Helpers/MemberPath/GetItemExpressionReplacer.cs index 38b6688c..2a0c92fd 100644 --- a/components/core/Helpers/MemberPath/GetItemExpressionReplacer.cs +++ b/components/core/Helpers/MemberPath/GetItemExpressionReplacer.cs @@ -1,5 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System.Linq.Expressions; using System.Reflection; diff --git a/components/core/Helpers/MemberPath/InvalidPathException.cs b/components/core/Helpers/MemberPath/InvalidPathException.cs index 7a66760b..7541fdc0 100644 --- a/components/core/Helpers/MemberPath/InvalidPathException.cs +++ b/components/core/Helpers/MemberPath/InvalidPathException.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System; diff --git a/components/core/Helpers/MemberPath/PathCharState.cs b/components/core/Helpers/MemberPath/PathCharState.cs index fb8bd613..12742641 100644 --- a/components/core/Helpers/MemberPath/PathCharState.cs +++ b/components/core/Helpers/MemberPath/PathCharState.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Core.Helpers.MemberPath { diff --git a/components/core/Helpers/MemberPath/PathExtensions.cs b/components/core/Helpers/MemberPath/PathExtensions.cs index 628ec16d..0dfbd51f 100644 --- a/components/core/Helpers/MemberPath/PathExtensions.cs +++ b/components/core/Helpers/MemberPath/PathExtensions.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Core.Helpers.MemberPath { diff --git a/components/core/Helpers/MemberPath/PathHelper.Generic.cs b/components/core/Helpers/MemberPath/PathHelper.Generic.cs index 71b5abb5..c3a75f66 100644 --- a/components/core/Helpers/MemberPath/PathHelper.Generic.cs +++ b/components/core/Helpers/MemberPath/PathHelper.Generic.cs @@ -1,5 +1,6 @@ -// Licensed to the .NET Foundation under one or more agreements. +锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System; using System.Linq.Expressions; diff --git a/components/core/Helpers/MemberPath/PathHelper.cs b/components/core/Helpers/MemberPath/PathHelper.cs index abda1af0..0c1d3980 100644 --- a/components/core/Helpers/MemberPath/PathHelper.cs +++ b/components/core/Helpers/MemberPath/PathHelper.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System; using System.Collections.Concurrent; diff --git a/components/core/Helpers/MemberPath/PathNode.cs b/components/core/Helpers/MemberPath/PathNode.cs index f85c31d3..90b3eb89 100644 --- a/components/core/Helpers/MemberPath/PathNode.cs +++ b/components/core/Helpers/MemberPath/PathNode.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. using System; diff --git a/components/core/Helpers/MemberPath/PathNodeType.cs b/components/core/Helpers/MemberPath/PathNodeType.cs index a4ba630a..07c08752 100644 --- a/components/core/Helpers/MemberPath/PathNodeType.cs +++ b/components/core/Helpers/MemberPath/PathNodeType.cs @@ -1,5 +1,6 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Core.Helpers.MemberPath { diff --git a/components/core/Helpers/MomentHelper.cs b/components/core/Helpers/MomentHelper.cs index dc006bde..707a939b 100644 --- a/components/core/Helpers/MomentHelper.cs +++ b/components/core/Helpers/MomentHelper.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/core/Helpers/RenderFragmentHelper.cs b/components/core/Helpers/RenderFragmentHelper.cs index ef65804e..34b2335d 100644 --- a/components/core/Helpers/RenderFragmentHelper.cs +++ b/components/core/Helpers/RenderFragmentHelper.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/core/Helpers/StyleHelper.cs b/components/core/Helpers/StyleHelper.cs index b49471a5..845e0d01 100644 --- a/components/core/Helpers/StyleHelper.cs +++ b/components/core/Helpers/StyleHelper.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class StyleHelper { diff --git a/components/core/Internal/ComponentRenderedText.cs b/components/core/Internal/ComponentRenderedText.cs index 515425ca..190a3c3a 100644 --- a/components/core/Internal/ComponentRenderedText.cs +++ b/components/core/Internal/ComponentRenderedText.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/core/Internal/EventHandlers.cs b/components/core/Internal/EventHandlers.cs index 4b014cf6..a5a4ca39 100644 --- a/components/core/Internal/EventHandlers.cs +++ b/components/core/Internal/EventHandlers.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/core/Internal/HtmlRender.cs b/components/core/Internal/HtmlRender.cs index afaef455..d2ff8ab6 100644 --- a/components/core/Internal/HtmlRender.cs +++ b/components/core/Internal/HtmlRender.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.ExceptionServices; diff --git a/components/core/Internal/HtmlRenderService.cs b/components/core/Internal/HtmlRenderService.cs index 0137d048..dcc75fd3 100644 --- a/components/core/Internal/HtmlRenderService.cs +++ b/components/core/Internal/HtmlRenderService.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; namespace AntDesign @@ -41,4 +45,4 @@ namespace AntDesign } } } -} \ No newline at end of file +} diff --git a/components/core/JsInterop/DomEventListener.cs b/components/core/JsInterop/DomEventListener.cs index 64fda72c..b88e41bb 100644 --- a/components/core/JsInterop/DomEventListener.cs +++ b/components/core/JsInterop/DomEventListener.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/components/core/JsInterop/DomEventService.cs b/components/core/JsInterop/DomEventService.cs index 945e0524..732f139d 100644 --- a/components/core/JsInterop/DomEventService.cs +++ b/components/core/JsInterop/DomEventService.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.JSInterop; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.JSInterop; namespace AntDesign.JsInterop { diff --git a/components/core/JsInterop/DomEventSubscription.cs b/components/core/JsInterop/DomEventSubscription.cs index 25b928b8..fc301dfc 100644 --- a/components/core/JsInterop/DomEventSubscription.cs +++ b/components/core/JsInterop/DomEventSubscription.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/components/core/JsInterop/DomRect.cs b/components/core/JsInterop/DomRect.cs index 7d7701ea..ae169a58 100644 --- a/components/core/JsInterop/DomRect.cs +++ b/components/core/JsInterop/DomRect.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; namespace AntDesign.JsInterop { diff --git a/components/core/JsInterop/EventArg/MouseEvent.cs b/components/core/JsInterop/EventArg/MouseEvent.cs index b09d8560..e786aa32 100644 --- a/components/core/JsInterop/EventArg/MouseEvent.cs +++ b/components/core/JsInterop/EventArg/MouseEvent.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.core.JsInterop.EventArg +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.core.JsInterop.EventArg { public class MouseEvent { diff --git a/components/core/JsInterop/HtmlElement.cs b/components/core/JsInterop/HtmlElement.cs index a2e45810..f310d9db 100644 --- a/components/core/JsInterop/HtmlElement.cs +++ b/components/core/JsInterop/HtmlElement.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; namespace AntDesign.JsInterop { diff --git a/components/core/JsInterop/IDomEventListener.cs b/components/core/JsInterop/IDomEventListener.cs index 1adf5d13..a0a9d295 100644 --- a/components/core/JsInterop/IDomEventListener.cs +++ b/components/core/JsInterop/IDomEventListener.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; diff --git a/components/core/JsInterop/InteropService.cs b/components/core/JsInterop/InteropService.cs index 0026dacb..1384500d 100644 --- a/components/core/JsInterop/InteropService.cs +++ b/components/core/JsInterop/InteropService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.JSInterop; diff --git a/components/core/JsInterop/JSInteropConstants.cs b/components/core/JsInterop/JSInteropConstants.cs index 9c5bf766..97a288b9 100644 --- a/components/core/JsInterop/JSInteropConstants.cs +++ b/components/core/JsInterop/JSInteropConstants.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/core/JsInterop/ObservableApi/BoxSize.cs b/components/core/JsInterop/ObservableApi/BoxSize.cs index 94026eba..18004d92 100644 --- a/components/core/JsInterop/ObservableApi/BoxSize.cs +++ b/components/core/JsInterop/ObservableApi/BoxSize.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; namespace AntDesign.Core.JsInterop.ObservableApi { diff --git a/components/core/JsInterop/ObservableApi/ResizeObserverEntry.cs b/components/core/JsInterop/ObservableApi/ResizeObserverEntry.cs index 36e389a8..6af59282 100644 --- a/components/core/JsInterop/ObservableApi/ResizeObserverEntry.cs +++ b/components/core/JsInterop/ObservableApi/ResizeObserverEntry.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; using AntDesign.JsInterop; using Microsoft.AspNetCore.Components; diff --git a/components/core/JsInterop/Window.cs b/components/core/JsInterop/Window.cs index 2d67c39c..c79f2575 100644 --- a/components/core/JsInterop/Window.cs +++ b/components/core/JsInterop/Window.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; namespace AntDesign.JsInterop { diff --git a/components/core/JsInterop/modules/components/OverlayPosition.cs b/components/core/JsInterop/modules/components/OverlayPosition.cs index 99769aec..989f4193 100644 --- a/components/core/JsInterop/modules/components/OverlayPosition.cs +++ b/components/core/JsInterop/modules/components/OverlayPosition.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; namespace AntDesign.Core.JsInterop.Modules.Components { diff --git a/components/core/Point.cs b/components/core/Point.cs index 390ca582..69fb8600 100644 --- a/components/core/Point.cs +++ b/components/core/Point.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class Point { diff --git a/components/core/PresetColor.cs b/components/core/PresetColor.cs index 867e357d..27f755c3 100644 --- a/components/core/PresetColor.cs +++ b/components/core/PresetColor.cs @@ -1,5 +1,11 @@ -namespace AntDesign { - public enum PresetColor { +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign +{ + public enum PresetColor + { Pink, Red, Yellow, @@ -12,6 +18,6 @@ namespace AntDesign { Magenta, Volcano, Gold, - Lime + Lime } -} \ No newline at end of file +} diff --git a/components/core/Reflection/ExpressionActivator.cs b/components/core/Reflection/ExpressionActivator.cs index 654f5fc9..3162f43f 100644 --- a/components/core/Reflection/ExpressionActivator.cs +++ b/components/core/Reflection/ExpressionActivator.cs @@ -1,8 +1,10 @@ -锘縰sing System; -using System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; -using System.Text; namespace AntDesign.Core.Reflection { diff --git a/components/core/Reflection/PropertyReflector.cs b/components/core/Reflection/PropertyReflector.cs index 3225f166..a748301c 100644 --- a/components/core/Reflection/PropertyReflector.cs +++ b/components/core/Reflection/PropertyReflector.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; diff --git a/components/core/Reflection/TypeDefined.cs b/components/core/Reflection/TypeDefined.cs index 1b28020f..dc7167e6 100644 --- a/components/core/Reflection/TypeDefined.cs +++ b/components/core/Reflection/TypeDefined.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign.Core.Reflection { diff --git a/components/core/RerenderStrategy.cs b/components/core/RerenderStrategy.cs index 3670e980..353fefee 100644 --- a/components/core/RerenderStrategy.cs +++ b/components/core/RerenderStrategy.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// /// Rerender strategy diff --git a/components/core/Services/ClientDimensionService.cs b/components/core/Services/ClientDimensionService.cs index 707c662b..82d482b7 100644 --- a/components/core/Services/ClientDimensionService.cs +++ b/components/core/Services/ClientDimensionService.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.JSInterop; namespace AntDesign.core.Services; diff --git a/components/core/Services/IComponentIdGenerator.cs b/components/core/Services/IComponentIdGenerator.cs index b1a9dd05..dd43e3ab 100644 --- a/components/core/Services/IComponentIdGenerator.cs +++ b/components/core/Services/IComponentIdGenerator.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public interface IComponentIdGenerator { diff --git a/components/core/Services/Internal/GuidComponentIdGenerator.cs b/components/core/Services/Internal/GuidComponentIdGenerator.cs index 879ed16d..0c57f993 100644 --- a/components/core/Services/Internal/GuidComponentIdGenerator.cs +++ b/components/core/Services/Internal/GuidComponentIdGenerator.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/core/SortDirection.cs b/components/core/SortDirection.cs index 470a4f2a..52f845d1 100644 --- a/components/core/SortDirection.cs +++ b/components/core/SortDirection.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class SortDirection : EnumValue { diff --git a/components/date-picker/IDatePicker.cs b/components/date-picker/IDatePicker.cs index 8f7e3b17..b368c69e 100644 --- a/components/date-picker/IDatePicker.cs +++ b/components/date-picker/IDatePicker.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; namespace AntDesign diff --git a/components/date-picker/MonthPicker.cs b/components/date-picker/MonthPicker.cs index 3ec12e96..d5ef8f82 100644 --- a/components/date-picker/MonthPicker.cs +++ b/components/date-picker/MonthPicker.cs @@ -1,4 +1,7 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign { public class MonthPicker : DatePicker diff --git a/components/date-picker/QuarterPicker.cs b/components/date-picker/QuarterPicker.cs index 22e24d0b..bb6b48be 100644 --- a/components/date-picker/QuarterPicker.cs +++ b/components/date-picker/QuarterPicker.cs @@ -1,4 +1,7 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign { public class QuarterPicker : DatePicker diff --git a/components/date-picker/RangePicker.razor.cs b/components/date-picker/RangePicker.razor.cs index 6d564975..0d9e79de 100644 --- a/components/date-picker/RangePicker.razor.cs +++ b/components/date-picker/RangePicker.razor.cs @@ -1,12 +1,14 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Linq; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; +using AntDesign.core.Extensions; using AntDesign.Core.Extensions; using AntDesign.Internal; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using AntDesign.core.Extensions; namespace AntDesign { @@ -520,7 +522,7 @@ namespace AntDesign if (isValueChanged && startDate is not null && endDate is not null) { - CurrentValue = DataConversionExtensions.Convert(currentValueArray); + CurrentValue = DataConversionExtensions.Convert(currentValueArray); InvokeOnChange(); } diff --git a/components/date-picker/RangePickerDefaults.cs b/components/date-picker/RangePickerDefaults.cs index 90c0e90a..d19c50f1 100644 --- a/components/date-picker/RangePickerDefaults.cs +++ b/components/date-picker/RangePickerDefaults.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using AntDesign.Internal; namespace AntDesign diff --git a/components/date-picker/WeekPicker.cs b/components/date-picker/WeekPicker.cs index a0e1f123..b7b8d106 100644 --- a/components/date-picker/WeekPicker.cs +++ b/components/date-picker/WeekPicker.cs @@ -1,4 +1,7 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign { public class WeekPicker : DatePicker diff --git a/components/date-picker/YearPicker.cs b/components/date-picker/YearPicker.cs index f384b78c..0fe1286c 100644 --- a/components/date-picker/YearPicker.cs +++ b/components/date-picker/YearPicker.cs @@ -1,4 +1,7 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign { public class YearPicker : DatePicker diff --git a/components/date-picker/internal/DatePickerBase.cs b/components/date-picker/internal/DatePickerBase.cs index a83be8a1..047185a0 100644 --- a/components/date-picker/internal/DatePickerBase.cs +++ b/components/date-picker/internal/DatePickerBase.cs @@ -13,7 +13,6 @@ using AntDesign.Datepicker.Locale; using AntDesign.Internal; using AntDesign.JsInterop; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; using Microsoft.JSInterop; using OneOf; diff --git a/components/date-picker/internal/DatePickerDatetimePanel.razor.cs b/components/date-picker/internal/DatePickerDatetimePanel.razor.cs index beba7135..02741afc 100644 --- a/components/date-picker/internal/DatePickerDatetimePanel.razor.cs +++ b/components/date-picker/internal/DatePickerDatetimePanel.razor.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/components/date-picker/internal/DatePickerPanelBase.cs b/components/date-picker/internal/DatePickerPanelBase.cs index 4fd3b9ae..fb254399 100644 --- a/components/date-picker/internal/DatePickerPanelBase.cs +++ b/components/date-picker/internal/DatePickerPanelBase.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Globalization; using AntDesign.Internal; diff --git a/components/date-picker/internal/DatePickerPanelChooser.razor.cs b/components/date-picker/internal/DatePickerPanelChooser.razor.cs index 39bfaec2..fe0bfce7 100644 --- a/components/date-picker/internal/DatePickerPanelChooser.razor.cs +++ b/components/date-picker/internal/DatePickerPanelChooser.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign.Internal diff --git a/components/date-picker/internal/DatePickerStatus.cs b/components/date-picker/internal/DatePickerStatus.cs index 24c3228a..f1738a7a 100644 --- a/components/date-picker/internal/DatePickerStatus.cs +++ b/components/date-picker/internal/DatePickerStatus.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign.Internal { diff --git a/components/date-picker/internal/DatePickerTemplate.razor.cs b/components/date-picker/internal/DatePickerTemplate.razor.cs index 0a094cf2..be834482 100644 --- a/components/date-picker/internal/DatePickerTemplate.razor.cs +++ b/components/date-picker/internal/DatePickerTemplate.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Text; using Microsoft.AspNetCore.Components; diff --git a/components/date-picker/internal/DayOfWeekHelper.cs b/components/date-picker/internal/DayOfWeekHelper.cs index 41835236..32ace246 100644 --- a/components/date-picker/internal/DayOfWeekHelper.cs +++ b/components/date-picker/internal/DayOfWeekHelper.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/date-picker/internal/InternalConvert.cs b/components/date-picker/internal/InternalConvert.cs index 8d861bef..addda7eb 100644 --- a/components/date-picker/internal/InternalConvert.cs +++ b/components/date-picker/internal/InternalConvert.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Linq; diff --git a/components/date-picker/internal/PickerPanelBase.cs b/components/date-picker/internal/PickerPanelBase.cs index dfff7ff4..7a28d077 100644 --- a/components/date-picker/internal/PickerPanelBase.cs +++ b/components/date-picker/internal/PickerPanelBase.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign.Internal diff --git a/components/date-picker/locale/DatePickerLocale.cs b/components/date-picker/locale/DatePickerLocale.cs index 7d132b57..fab638f9 100644 --- a/components/date-picker/locale/DatePickerLocale.cs +++ b/components/date-picker/locale/DatePickerLocale.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Text.Json.Serialization; diff --git a/components/date-picker/locale/FormatAnalyzer.cs b/components/date-picker/locale/FormatAnalyzer.cs index 83eaba2c..39156219 100644 --- a/components/date-picker/locale/FormatAnalyzer.cs +++ b/components/date-picker/locale/FormatAnalyzer.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/components/date-picker/types/DatePickerDisabledTime.cs b/components/date-picker/types/DatePickerDisabledTime.cs index 8dbeb195..0be406df 100644 --- a/components/date-picker/types/DatePickerDisabledTime.cs +++ b/components/date-picker/types/DatePickerDisabledTime.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class DatePickerDisabledTime { diff --git a/components/date-picker/types/DatePickerPlaceholder.cs b/components/date-picker/types/DatePickerPlaceholder.cs index 4535c04d..afcb38ef 100644 --- a/components/date-picker/types/DatePickerPlaceholder.cs +++ b/components/date-picker/types/DatePickerPlaceholder.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { internal class DatePickerPlaceholder { diff --git a/components/date-picker/types/DatePickerSize.cs b/components/date-picker/types/DatePickerSize.cs index eb94fc2f..219a7417 100644 --- a/components/date-picker/types/DatePickerSize.cs +++ b/components/date-picker/types/DatePickerSize.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class DatePickerSize { diff --git a/components/date-picker/types/DatePickerType.cs b/components/date-picker/types/DatePickerType.cs index 8dd3c300..88d9da23 100644 --- a/components/date-picker/types/DatePickerType.cs +++ b/components/date-picker/types/DatePickerType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class DatePickerType { diff --git a/components/descriptions/IDescriptionsItem.cs b/components/descriptions/IDescriptionsItem.cs index dce74f3f..dfa9577c 100644 --- a/components/descriptions/IDescriptionsItem.cs +++ b/components/descriptions/IDescriptionsItem.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/drawer/Drawer.razor.cs b/components/drawer/Drawer.razor.cs index a8cb8c57..1f69c21a 100644 --- a/components/drawer/Drawer.razor.cs +++ b/components/drawer/Drawer.razor.cs @@ -5,7 +5,6 @@ using System; using System.Text.RegularExpressions; using System.Threading.Tasks; -using System.Timers; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using OneOf; diff --git a/components/drawer/DrawerContainer.razor.cs b/components/drawer/DrawerContainer.razor.cs index 7a74307c..3403a67c 100644 --- a/components/drawer/DrawerContainer.razor.cs +++ b/components/drawer/DrawerContainer.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/drawer/DrawerRef.cs b/components/drawer/DrawerRef.cs index 473b131b..d06cb999 100644 --- a/components/drawer/DrawerRef.cs +++ b/components/drawer/DrawerRef.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel; using System.Threading.Tasks; @@ -77,7 +81,7 @@ namespace AntDesign public Func OnClosed { get; set; } - internal DrawerRef(DrawerOptions options, DrawerService service) :base(options,service) + internal DrawerRef(DrawerOptions options, DrawerService service) : base(options, service) { } diff --git a/components/drawer/config/DrawerOptions.cs b/components/drawer/config/DrawerOptions.cs index 75c0210c..0e7b9781 100644 --- a/components/drawer/config/DrawerOptions.cs +++ b/components/drawer/config/DrawerOptions.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; using OneOf; namespace AntDesign diff --git a/components/empty/EmptyLocale.cs b/components/empty/EmptyLocale.cs index 451ddb02..9cdf883a 100644 --- a/components/empty/EmptyLocale.cs +++ b/components/empty/EmptyLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class EmptyLocale { diff --git a/components/flex/Flex.razor.cs b/components/flex/Flex.razor.cs index 3a761b02..97adf9f4 100644 --- a/components/flex/Flex.razor.cs +++ b/components/flex/Flex.razor.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; diff --git a/components/form/ColLayoutParam.cs b/components/form/ColLayoutParam.cs index 3f0f09ed..d5c33985 100644 --- a/components/form/ColLayoutParam.cs +++ b/components/form/ColLayoutParam.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using OneOf; namespace AntDesign diff --git a/components/form/EventCallbackArgs/FormProviderFinishEventArgs.cs b/components/form/EventCallbackArgs/FormProviderFinishEventArgs.cs index 7ea29f79..e3ad1e1c 100644 --- a/components/form/EventCallbackArgs/FormProviderFinishEventArgs.cs +++ b/components/form/EventCallbackArgs/FormProviderFinishEventArgs.cs @@ -1,6 +1,8 @@ -锘 +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Collections.Generic; -using AntDesign.Internal; namespace AntDesign { diff --git a/components/form/Form.razor.cs b/components/form/Form.razor.cs index bd38b56a..14c35343 100644 --- a/components/form/Form.razor.cs +++ b/components/form/Form.razor.cs @@ -474,11 +474,11 @@ namespace AntDesign public EditContext EditContext => _editContext; - bool UseLocaleValidateMessage => Locale.DefaultValidateMessages != null; + private bool UseLocaleValidateMessage => Locale.DefaultValidateMessages != null; bool IForm.UseLocaleValidateMessage => UseLocaleValidateMessage; - bool UseRulesValidator => UseLocaleValidateMessage || ValidateMode != FormValidateMode.Default; + private bool UseRulesValidator => UseLocaleValidateMessage || ValidateMode != FormValidateMode.Default; private void BuildEditContext() { diff --git a/components/form/FormItem.razor.cs b/components/form/FormItem.razor.cs index c3ff2996..9fb66faf 100644 --- a/components/form/FormItem.razor.cs +++ b/components/form/FormItem.razor.cs @@ -11,7 +11,6 @@ using System.Linq.Expressions; using System.Reflection; using AntDesign.Core.Helpers.MemberPath; using AntDesign.Core.Reflection; -using AntDesign.Form.Locale; using AntDesign.Forms; using AntDesign.Internal; using AntDesign.Internal.Form.Validate; diff --git a/components/form/FormLocale.cs b/components/form/FormLocale.cs index b286abfd..aeb674a1 100644 --- a/components/form/FormLocale.cs +++ b/components/form/FormLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Form.Locale +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Form.Locale { public class FormLocale { diff --git a/components/form/FormProvider.razor.cs b/components/form/FormProvider.razor.cs index 69bb9674..452897cd 100644 --- a/components/form/FormProvider.razor.cs +++ b/components/form/FormProvider.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using AntDesign.Internal; using Microsoft.AspNetCore.Components; diff --git a/components/form/FormRequiredMark.cs b/components/form/FormRequiredMark.cs index acbb13c3..db5a487c 100644 --- a/components/form/FormRequiredMark.cs +++ b/components/form/FormRequiredMark.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum FormRequiredMark { diff --git a/components/form/FormValidateStatus.cs b/components/form/FormValidateStatus.cs index cd5f4ee3..fe2df56f 100644 --- a/components/form/FormValidateStatus.cs +++ b/components/form/FormValidateStatus.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum FormValidateStatus { diff --git a/components/form/GenerateFormItem.razor.cs b/components/form/GenerateFormItem.razor.cs index a3c0a122..d71196a8 100644 --- a/components/form/GenerateFormItem.razor.cs +++ b/components/form/GenerateFormItem.razor.cs @@ -5,12 +5,10 @@ #nullable enable using System; using System.ComponentModel; -using System.Linq; using System.Linq.Expressions; using System.Reflection; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; -using AntDesign.Internal; namespace AntDesign; diff --git a/components/form/Internal/IForm.cs b/components/form/Internal/IForm.cs index eeab602a..41f098ec 100644 --- a/components/form/Internal/IForm.cs +++ b/components/form/Internal/IForm.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using AntDesign.Form.Locale; using AntDesign.Forms; using AntDesign.Internal; diff --git a/components/form/Internal/IFormItem.cs b/components/form/Internal/IFormItem.cs index 29d2a060..271cdcd8 100644 --- a/components/form/Internal/IFormItem.cs +++ b/components/form/Internal/IFormItem.cs @@ -1,4 +1,8 @@ -锘縰sing System.ComponentModel.DataAnnotations; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; diff --git a/components/form/Internal/IFormProvider.cs b/components/form/Internal/IFormProvider.cs index dedd5c17..dadae8f1 100644 --- a/components/form/Internal/IFormProvider.cs +++ b/components/form/Internal/IFormProvider.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Internal +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Internal { public interface IFormProvider { diff --git a/components/form/Internal/Validate/FormValidateHelper.cs b/components/form/Internal/Validate/FormValidateHelper.cs index 051848c2..5b3a7677 100644 --- a/components/form/Internal/Validate/FormValidateHelper.cs +++ b/components/form/Internal/Validate/FormValidateHelper.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Linq; diff --git a/components/form/Internal/Validate/ValidationAttribute/ArrayLengthAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/ArrayLengthAttribute.cs index 4040e89c..17134173 100644 --- a/components/form/Internal/Validate/ValidationAttribute/ArrayLengthAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/ArrayLengthAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Globalization; diff --git a/components/form/Internal/Validate/ValidationAttribute/ArrayRangeAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/ArrayRangeAttribute.cs index 1d2968c8..45e437d7 100644 --- a/components/form/Internal/Validate/ValidationAttribute/ArrayRangeAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/ArrayRangeAttribute.cs @@ -3,10 +3,8 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; -using System.Text; namespace AntDesign.Internal.Form.Validate { diff --git a/components/form/Internal/Validate/ValidationAttribute/NumberAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/NumberAttribute.cs index ef3a4c71..99492992 100644 --- a/components/form/Internal/Validate/ValidationAttribute/NumberAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/NumberAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System.ComponentModel.DataAnnotations; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.ComponentModel.DataAnnotations; using System.Globalization; namespace AntDesign.Internal.Form.Validate diff --git a/components/form/Internal/Validate/ValidationAttribute/NumberMaxAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/NumberMaxAttribute.cs index aae6434b..3733ec9d 100644 --- a/components/form/Internal/Validate/ValidationAttribute/NumberMaxAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/NumberMaxAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Globalization; diff --git a/components/form/Internal/Validate/ValidationAttribute/NumberMinAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/NumberMinAttribute.cs index b879dcba..e90b1b0b 100644 --- a/components/form/Internal/Validate/ValidationAttribute/NumberMinAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/NumberMinAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Globalization; diff --git a/components/form/Internal/Validate/ValidationAttribute/OneOfAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/OneOfAttribute.cs index be6528ec..4ddb7d85 100644 --- a/components/form/Internal/Validate/ValidationAttribute/OneOfAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/OneOfAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Text.Json; diff --git a/components/form/Internal/Validate/ValidationAttribute/StringRangeAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/StringRangeAttribute.cs index 36618716..3aed2eeb 100644 --- a/components/form/Internal/Validate/ValidationAttribute/StringRangeAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/StringRangeAttribute.cs @@ -2,11 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; -using System.Text; namespace AntDesign.Internal.Form.Validate { diff --git a/components/form/Internal/Validate/ValidationAttribute/TypeAttribute.cs b/components/form/Internal/Validate/ValidationAttribute/TypeAttribute.cs index c27f45a2..b45e8a68 100644 --- a/components/form/Internal/Validate/ValidationAttribute/TypeAttribute.cs +++ b/components/form/Internal/Validate/ValidationAttribute/TypeAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Text.RegularExpressions; diff --git a/components/form/Validate/Rule/FormFieldType.cs b/components/form/Validate/Rule/FormFieldType.cs index a645e290..b2aa6589 100644 --- a/components/form/Validate/Rule/FormFieldType.cs +++ b/components/form/Validate/Rule/FormFieldType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum FormFieldType { diff --git a/components/form/Validate/Rule/FormRulesValidator.cs b/components/form/Validate/Rule/FormRulesValidator.cs index bd70dd76..e275972f 100644 --- a/components/form/Validate/Rule/FormRulesValidator.cs +++ b/components/form/Validate/Rule/FormRulesValidator.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; diff --git a/components/form/Validate/Rule/FormValidationContext.cs b/components/form/Validate/Rule/FormValidationContext.cs index c1bc4f10..c48b62ff 100644 --- a/components/form/Validate/Rule/FormValidationContext.cs +++ b/components/form/Validate/Rule/FormValidationContext.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/form/Validate/Rule/FormValidationRule.cs b/components/form/Validate/Rule/FormValidationRule.cs index 5218e2d6..98f1ba8b 100644 --- a/components/form/Validate/Rule/FormValidationRule.cs +++ b/components/form/Validate/Rule/FormValidationRule.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/components/form/types/FormLayout.cs b/components/form/types/FormLayout.cs index 518cf51e..eaf38315 100644 --- a/components/form/types/FormLayout.cs +++ b/components/form/types/FormLayout.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class FormLayout { diff --git a/components/grid/GridRow.cs b/components/grid/GridRow.cs index dd3ac1fb..7bb2d266 100644 --- a/components/grid/GridRow.cs +++ b/components/grid/GridRow.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class GridRow : Row { diff --git a/components/grid/Row.razor.cs b/components/grid/Row.razor.cs index 80cce9da..3f4d0a1b 100644 --- a/components/grid/Row.razor.cs +++ b/components/grid/Row.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using AntDesign.JsInterop; diff --git a/components/icon/IconFont.razor.cs b/components/icon/IconFont.razor.cs index 2d5c560e..2d6cb6f1 100644 --- a/components/icon/IconFont.razor.cs +++ b/components/icon/IconFont.razor.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class IconFont : Icon { diff --git a/components/icon/IconLocale.cs b/components/icon/IconLocale.cs index 3a4490d6..d63c5c29 100644 --- a/components/icon/IconLocale.cs +++ b/components/icon/IconLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class IconLocale { diff --git a/components/icon/IconService.cs b/components/icon/IconService.cs index 633068b2..1229c0d6 100644 --- a/components/icon/IconService.cs +++ b/components/icon/IconService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/components/icon/IconThemeType.cs b/components/icon/IconThemeType.cs index 27abf1cc..e74c5754 100644 --- a/components/icon/IconThemeType.cs +++ b/components/icon/IconThemeType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class IconThemeType { diff --git a/components/icon/IconType.cs b/components/icon/IconType.cs index 35e8f4c3..573dcdd1 100644 --- a/components/icon/IconType.cs +++ b/components/icon/IconType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class IconType { diff --git a/components/icon/internal/IconStore.cs b/components/icon/internal/IconStore.cs index 82a8a063..a71c224c 100644 --- a/components/icon/internal/IconStore.cs +++ b/components/icon/internal/IconStore.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/image/ImageLocale.cs b/components/image/ImageLocale.cs index 9fb819d4..321a9050 100644 --- a/components/image/ImageLocale.cs +++ b/components/image/ImageLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class ImageLocale { diff --git a/components/image/ImagePreview.razor.cs b/components/image/ImagePreview.razor.cs index d4807921..e9b41a79 100644 --- a/components/image/ImagePreview.razor.cs +++ b/components/image/ImagePreview.razor.cs @@ -1,8 +1,8 @@ -锘縰sing System; -using System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Threading.Tasks; -using System.Xml; -using AntDesign.Core.Extensions; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using Microsoft.JSInterop; diff --git a/components/image/ImagePreviewContainer.razor.cs b/components/image/ImagePreviewContainer.razor.cs index b038c03a..65543dfc 100644 --- a/components/image/ImagePreviewContainer.razor.cs +++ b/components/image/ImagePreviewContainer.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/image/ImageRef.cs b/components/image/ImageRef.cs index 5156c186..6e370527 100644 --- a/components/image/ImageRef.cs +++ b/components/image/ImageRef.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; namespace AntDesign diff --git a/components/image/ImageService.cs b/components/image/ImageService.cs index ed2b738a..432fd3b1 100644 --- a/components/image/ImageService.cs +++ b/components/image/ImageService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/input-number/InputNumber.razor.cs b/components/input-number/InputNumber.razor.cs index 2f8726bd..f29f3e38 100644 --- a/components/input-number/InputNumber.razor.cs +++ b/components/input-number/InputNumber.razor.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Linq.Expressions; -using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using AntDesign.Core.Helpers; diff --git a/components/input-number/InputNumberMath.cs b/components/input-number/InputNumberMath.cs index 7929c0be..5c3160ae 100644 --- a/components/input-number/InputNumberMath.cs +++ b/components/input-number/InputNumberMath.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; namespace AntDesign diff --git a/components/input/Input.cs b/components/input/Input.cs index 8e9185b3..88691f56 100644 --- a/components/input/Input.cs +++ b/components/input/Input.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using System.Collections.Generic; using System.Text.Json; using System.Threading; diff --git a/components/input/InputPassword.razor.cs b/components/input/InputPassword.razor.cs index 2f399e93..adede416 100644 --- a/components/input/InputPassword.razor.cs +++ b/components/input/InputPassword.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using AntDesign.Core.Extensions; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/input/InputSize.cs b/components/input/InputSize.cs index f597ac8d..e036e005 100644 --- a/components/input/InputSize.cs +++ b/components/input/InputSize.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class InputSize { @@ -6,4 +10,4 @@ public const string Large = "large"; public const string Small = "small"; } -} \ No newline at end of file +} diff --git a/components/input/Search.razor.cs b/components/input/Search.razor.cs index 54b2d390..12d172da 100644 --- a/components/input/Search.razor.cs +++ b/components/input/Search.razor.cs @@ -1,7 +1,11 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using OneOf; -using System.Threading.Tasks; namespace AntDesign { diff --git a/components/input/TextArea.razor.cs b/components/input/TextArea.razor.cs index 77339d03..0aa86d18 100644 --- a/components/input/TextArea.razor.cs +++ b/components/input/TextArea.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Diagnostics; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics; using System.Text.Json; using System.Threading.Tasks; using AntDesign.Internal; diff --git a/components/input/TextAreaInfo.cs b/components/input/TextAreaInfo.cs index fafcc96e..7982745a 100644 --- a/components/input/TextAreaInfo.cs +++ b/components/input/TextAreaInfo.cs @@ -1,17 +1,21 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign.Internal { - public class TextAreaInfo - { - public double ScrollHeight { get; set; } + public class TextAreaInfo + { + public double ScrollHeight { get; set; } - public double LineHeight { get; set; } + public double LineHeight { get; set; } - public double PaddingTop { get; set; } + public double PaddingTop { get; set; } - public double PaddingBottom { get; set; } + public double PaddingBottom { get; set; } - public double BorderTop { get; set; } - - public double BorderBottom { get; set; } - } + public double BorderTop { get; set; } + + public double BorderBottom { get; set; } + } } diff --git a/components/layout/BreakpointType.cs b/components/layout/BreakpointType.cs index e439b176..9d70d4f7 100644 --- a/components/layout/BreakpointType.cs +++ b/components/layout/BreakpointType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum BreakpointType { diff --git a/components/layout/Sider.razor.cs b/components/layout/Sider.razor.cs index b9c2b36d..572af189 100644 --- a/components/layout/Sider.razor.cs +++ b/components/layout/Sider.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using AntDesign.JsInterop; using Microsoft.AspNetCore.Components; diff --git a/components/layout/SiderTheme.cs b/components/layout/SiderTheme.cs index 44652c00..df8b1a23 100644 --- a/components/layout/SiderTheme.cs +++ b/components/layout/SiderTheme.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class SiderTheme : EnumValue { diff --git a/components/list/AntList.razor.cs b/components/list/AntList.razor.cs index 24d3dc8c..4ccff9df 100644 --- a/components/list/AntList.razor.cs +++ b/components/list/AntList.razor.cs @@ -126,9 +126,9 @@ namespace AntDesign ListItemLayout IAntList.ItemLayout => ItemLayout; double IAntList.ColumnWidth => _columnWidth; - double _columnWidth; - int _columns = 0; - bool _isInitialized = false; + private double _columnWidth; + private int _columns = 0; + private bool _isInitialized = false; protected override void OnInitialized() { diff --git a/components/locale-provider/GlobalLocale.cs b/components/locale-provider/GlobalLocale.cs index 50abc25d..5ac2f1ca 100644 --- a/components/locale-provider/GlobalLocale.cs +++ b/components/locale-provider/GlobalLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class GlobalLocale { diff --git a/components/locale-provider/Locale.cs b/components/locale-provider/Locale.cs index 57530d2e..4617078d 100644 --- a/components/locale-provider/Locale.cs +++ b/components/locale-provider/Locale.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; using System.Text.Json.Serialization; using AntDesign.Form.Locale; diff --git a/components/locale-provider/LocaleProvider.cs b/components/locale-provider/LocaleProvider.cs index 9de46728..3cff7365 100644 --- a/components/locale-provider/LocaleProvider.cs +++ b/components/locale-provider/LocaleProvider.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; diff --git a/components/mentions/Mentions.razor.cs b/components/mentions/Mentions.razor.cs index a074591a..e1c8a73c 100644 --- a/components/mentions/Mentions.razor.cs +++ b/components/mentions/Mentions.razor.cs @@ -160,13 +160,13 @@ namespace AntDesign await ItemClick(ActiveOptionValue); } - async Task HideOverlay() + private async Task HideOverlay() { await JS.InvokeAsync(JSInteropConstants.SetPopShowFlag, false); await _overlayTrigger.Hide(); } - async Task ShowOverlay(bool reCalcPosition) + private async Task ShowOverlay(bool reCalcPosition) { await JS.InvokeAsync(JSInteropConstants.SetPopShowFlag, true); ActiveOptionValue = ShowOptions.First().Value; @@ -184,13 +184,13 @@ namespace AntDesign await InvokeStateHasChangedAsync(); } - async void OnKeyDown(KeyboardEventArgs args) + private async void OnKeyDown(KeyboardEventArgs args) { //鈫戙佲啌銆佸洖杞﹂敭鍙兘鏀捐繘js閲屽垽鏂紝涓嶇劧鍦⊿ever寮傛妯″紡涓嬫棤娉曟嫤鎴師閿姛鑳 //寮鍚诞绐楃殑鍒ゆ柇鏀惧湪oninput閲岋紝涓嶇劧浼氭湁闂 if (args.Key == "Escape") await HideOverlay(); } - async Task OnInput(ChangeEventArgs args) + private async Task OnInput(ChangeEventArgs args) { Value = args.Value.ToString(); await ValueChanged.InvokeAsync(Value); diff --git a/components/mentions/MentionsDynamicOption.cs b/components/mentions/MentionsDynamicOption.cs index 629123f4..e352dfd1 100644 --- a/components/mentions/MentionsDynamicOption.cs +++ b/components/mentions/MentionsDynamicOption.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/mentions/MentionsTextareaTemplateOptions.cs b/components/mentions/MentionsTextareaTemplateOptions.cs index cc045edf..ac193a11 100644 --- a/components/mentions/MentionsTextareaTemplateOptions.cs +++ b/components/mentions/MentionsTextareaTemplateOptions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/menu/AntMenuMode.cs b/components/menu/AntMenuMode.cs index f684d3c8..c2dca1b5 100644 --- a/components/menu/AntMenuMode.cs +++ b/components/menu/AntMenuMode.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class AntMenuMode : EnumValue { diff --git a/components/menu/AntMenuTheme.cs b/components/menu/AntMenuTheme.cs index d0c0fd0d..1eb85a75 100644 --- a/components/menu/AntMenuTheme.cs +++ b/components/menu/AntMenuTheme.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class AntMenuTheme : EnumValue { diff --git a/components/menu/MenuItem.razor.cs b/components/menu/MenuItem.razor.cs index 2d11ce06..726357cf 100644 --- a/components/menu/MenuItem.razor.cs +++ b/components/menu/MenuItem.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/menu/MenuItemGroup.razor.cs b/components/menu/MenuItemGroup.razor.cs index e749dc77..141dfd72 100644 --- a/components/menu/MenuItemGroup.razor.cs +++ b/components/menu/MenuItemGroup.razor.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/menu/MenuLink.cs b/components/menu/MenuLink.cs index fca8604c..ccba3b2a 100644 --- a/components/menu/MenuLink.cs +++ b/components/menu/MenuLink.cs @@ -1,4 +1,7 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Collections.Generic; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; diff --git a/components/menu/MenuMode.cs b/components/menu/MenuMode.cs index 69f47c93..2c356b04 100644 --- a/components/menu/MenuMode.cs +++ b/components/menu/MenuMode.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class MenuMode : EnumValue { diff --git a/components/menu/MenuTheme.cs b/components/menu/MenuTheme.cs index f8c61af0..bb3e1a70 100644 --- a/components/menu/MenuTheme.cs +++ b/components/menu/MenuTheme.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class MenuTheme : EnumValue { diff --git a/components/menu/SubMenu.razor.cs b/components/menu/SubMenu.razor.cs index 9917484c..b9aef88a 100644 --- a/components/menu/SubMenu.razor.cs +++ b/components/menu/SubMenu.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; using System.Threading.Tasks; using AntDesign.Internal; diff --git a/components/menu/internal/SubMenuTrigger.razor.cs b/components/menu/internal/SubMenuTrigger.razor.cs index 2865b207..4d9ffefa 100644 --- a/components/menu/internal/SubMenuTrigger.razor.cs +++ b/components/menu/internal/SubMenuTrigger.razor.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign.Internal { diff --git a/components/message/Message.razor.cs b/components/message/Message.razor.cs index 4a539d50..92cd84b4 100644 --- a/components/message/Message.razor.cs +++ b/components/message/Message.razor.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; diff --git a/components/message/MessageItem.razor.cs b/components/message/MessageItem.razor.cs index 23dd4e71..cabd26be 100644 --- a/components/message/MessageItem.razor.cs +++ b/components/message/MessageItem.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/message/MessageResult.cs b/components/message/MessageResult.cs index 037ec9e5..46e5948b 100644 --- a/components/message/MessageResult.cs +++ b/components/message/MessageResult.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; namespace AntDesign diff --git a/components/message/MessageService.cs b/components/message/MessageService.cs index 92e08a2b..9a342bdc 100644 --- a/components/message/MessageService.cs +++ b/components/message/MessageService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/message/config/MessageConfig.cs b/components/message/config/MessageConfig.cs index a90ba6c8..d07e58ca 100644 --- a/components/message/config/MessageConfig.cs +++ b/components/message/config/MessageConfig.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/message/config/MessageGlobalConfig.cs b/components/message/config/MessageGlobalConfig.cs index 43bdbcd6..c9994c67 100644 --- a/components/message/config/MessageGlobalConfig.cs +++ b/components/message/config/MessageGlobalConfig.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class MessageGlobalConfig { diff --git a/components/message/type/MessageAnimationType.cs b/components/message/type/MessageAnimationType.cs index e8844f5a..4029b7a6 100644 --- a/components/message/type/MessageAnimationType.cs +++ b/components/message/type/MessageAnimationType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { internal class MessageAnimationType { diff --git a/components/message/type/MessageType.cs b/components/message/type/MessageType.cs index 7d3603c3..c78bbff7 100644 --- a/components/message/type/MessageType.cs +++ b/components/message/type/MessageType.cs @@ -1,6 +1,10 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { - public enum MessageType:byte + public enum MessageType : byte { Info = 0, Success = 1, diff --git a/components/modal/config/ButtonProps.cs b/components/modal/config/ButtonProps.cs index e68dc698..a42e2763 100644 --- a/components/modal/config/ButtonProps.cs +++ b/components/modal/config/ButtonProps.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; using OneOf; namespace AntDesign diff --git a/components/modal/config/ConfirmButtonOptions.cs b/components/modal/config/ConfirmButtonOptions.cs index a70765e0..9cb4d636 100644 --- a/components/modal/config/ConfirmButtonOptions.cs +++ b/components/modal/config/ConfirmButtonOptions.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// /// config the confirm button's properties diff --git a/components/modal/config/ConfirmOptions.cs b/components/modal/config/ConfirmOptions.cs index 31a6c256..f7220539 100644 --- a/components/modal/config/ConfirmOptions.cs +++ b/components/modal/config/ConfirmOptions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/config/DialogOptions.cs b/components/modal/config/DialogOptions.cs index 7402d774..02aeb0ae 100644 --- a/components/modal/config/DialogOptions.cs +++ b/components/modal/config/DialogOptions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/config/IModalTemplate.cs b/components/modal/config/IModalTemplate.cs index 154d2c16..b55d70b1 100644 --- a/components/modal/config/IModalTemplate.cs +++ b/components/modal/config/IModalTemplate.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.ComponentModel; using System.Threading.Tasks; diff --git a/components/modal/config/ModalClosingEventArgs.cs b/components/modal/config/ModalClosingEventArgs.cs index 98ea219e..43233cdd 100644 --- a/components/modal/config/ModalClosingEventArgs.cs +++ b/components/modal/config/ModalClosingEventArgs.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components.Web; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components.Web; namespace AntDesign { diff --git a/components/modal/config/ModalOptions.cs b/components/modal/config/ModalOptions.cs index 5b99045a..e09393ca 100644 --- a/components/modal/config/ModalOptions.cs +++ b/components/modal/config/ModalOptions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/modal/confirmDialog/ComfirmContainer.razor.cs b/components/modal/confirmDialog/ComfirmContainer.razor.cs index 0ad00576..c551f88b 100644 --- a/components/modal/confirmDialog/ComfirmContainer.razor.cs +++ b/components/modal/confirmDialog/ComfirmContainer.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/confirmDialog/Confirm.razor.cs b/components/modal/confirmDialog/Confirm.razor.cs index 394c9443..a924d9ae 100644 --- a/components/modal/confirmDialog/Confirm.razor.cs +++ b/components/modal/confirmDialog/Confirm.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; @@ -35,8 +39,7 @@ namespace AntDesign private string _okBtnId = "ant-blazor-" + Guid.NewGuid(); private string _cancelBtnId = "ant-blazor-" + Guid.NewGuid(); - - DialogOptions _dialogOptions; + private DialogOptions _dialogOptions; private DialogOptions BuildDialogOptions(ConfirmOptions confirmOptions) { DialogOptions config = new DialogOptions() diff --git a/components/modal/confirmDialog/ConfirmRef.cs b/components/modal/confirmDialog/ConfirmRef.cs index 7bfce2b4..bb141c65 100644 --- a/components/modal/confirmDialog/ConfirmRef.cs +++ b/components/modal/confirmDialog/ConfirmRef.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; namespace AntDesign diff --git a/components/modal/confirmDialog/ConfirmService.cs b/components/modal/confirmDialog/ConfirmService.cs index 1e7cd1b4..cf301287 100644 --- a/components/modal/confirmDialog/ConfirmService.cs +++ b/components/modal/confirmDialog/ConfirmService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/modal/confirmDialog/IConfirmService.cs b/components/modal/confirmDialog/IConfirmService.cs index 30148fd9..a06968f9 100644 --- a/components/modal/confirmDialog/IConfirmService.cs +++ b/components/modal/confirmDialog/IConfirmService.cs @@ -1,4 +1,7 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/modal/confirmDialog/ModalServiceForConfirm.cs b/components/modal/confirmDialog/ModalServiceForConfirm.cs index 8a912512..e3b5e1e4 100644 --- a/components/modal/confirmDialog/ModalServiceForConfirm.cs +++ b/components/modal/confirmDialog/ModalServiceForConfirm.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/core/Dialog.razor.cs b/components/modal/core/Dialog.razor.cs index 0a8a2a02..d0cb46f9 100644 --- a/components/modal/core/Dialog.razor.cs +++ b/components/modal/core/Dialog.razor.cs @@ -1,9 +1,12 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Components.Web; namespace AntDesign diff --git a/components/modal/core/DialogWrapper.razor.cs b/components/modal/core/DialogWrapper.razor.cs index 30091251..4a3a4361 100644 --- a/components/modal/core/DialogWrapper.razor.cs +++ b/components/modal/core/DialogWrapper.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.ComponentModel; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.ComponentModel; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/modalDialog/Modal.razor.cs b/components/modal/modalDialog/Modal.razor.cs index 70d9615e..2998cbaf 100644 --- a/components/modal/modalDialog/Modal.razor.cs +++ b/components/modal/modalDialog/Modal.razor.cs @@ -5,7 +5,6 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Routing; using Microsoft.AspNetCore.Components.Web; using OneOf; @@ -308,7 +307,7 @@ namespace AntDesign [Parameter] public bool ForceRender { get; set; } - #endregion Parameter + #endregion Parameter #pragma warning disable 649 private DialogWrapper _dialogWrapper; diff --git a/components/modal/modalDialog/ModalCancelFooter.razor.cs b/components/modal/modalDialog/ModalCancelFooter.razor.cs index d598637b..aaecfe28 100644 --- a/components/modal/modalDialog/ModalCancelFooter.razor.cs +++ b/components/modal/modalDialog/ModalCancelFooter.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/modal/modalDialog/ModalContainer.razor.cs b/components/modal/modalDialog/ModalContainer.razor.cs index fee2c2ed..31a91102 100644 --- a/components/modal/modalDialog/ModalContainer.razor.cs +++ b/components/modal/modalDialog/ModalContainer.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/modal/modalDialog/ModalFooter.razor.cs b/components/modal/modalDialog/ModalFooter.razor.cs index 4ff54901..5f442806 100644 --- a/components/modal/modalDialog/ModalFooter.razor.cs +++ b/components/modal/modalDialog/ModalFooter.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; @@ -9,12 +13,14 @@ namespace AntDesign /// public partial class ModalFooter { - public static RenderFragment DefaultOkFooter = builder => { + public static RenderFragment DefaultOkFooter = builder => + { builder.OpenComponent(0); builder.CloseComponent(); }; - public static RenderFragment DefaultCancelFooter = builder => { + public static RenderFragment DefaultCancelFooter = builder => + { builder.OpenComponent(0); builder.CloseComponent(); }; diff --git a/components/modal/modalDialog/ModalHeader.razor.cs b/components/modal/modalDialog/ModalHeader.razor.cs index 2411b696..35a5fb33 100644 --- a/components/modal/modalDialog/ModalHeader.razor.cs +++ b/components/modal/modalDialog/ModalHeader.razor.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Linq.Expressions; using Microsoft.AspNetCore.Components; namespace AntDesign.Internal.ModalDialog diff --git a/components/modal/modalDialog/ModalLocale.cs b/components/modal/modalDialog/ModalLocale.cs index b42e6603..77c8057f 100644 --- a/components/modal/modalDialog/ModalLocale.cs +++ b/components/modal/modalDialog/ModalLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// /// diff --git a/components/modal/modalDialog/ModalOkFooter.razor.cs b/components/modal/modalDialog/ModalOkFooter.razor.cs index 63641a54..71c580dd 100644 --- a/components/modal/modalDialog/ModalOkFooter.razor.cs +++ b/components/modal/modalDialog/ModalOkFooter.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/modal/modalDialog/ModalRef.cs b/components/modal/modalDialog/ModalRef.cs index bceaa922..a42d6bbe 100644 --- a/components/modal/modalDialog/ModalRef.cs +++ b/components/modal/modalDialog/ModalRef.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; namespace AntDesign diff --git a/components/modal/modalDialog/ModalServiceForModal.cs b/components/modal/modalDialog/ModalServiceForModal.cs index 69e5e1d2..1cc9f3bd 100644 --- a/components/modal/modalDialog/ModalServiceForModal.cs +++ b/components/modal/modalDialog/ModalServiceForModal.cs @@ -1,7 +1,9 @@ -锘縰sing System; -using System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; namespace AntDesign diff --git a/components/modal/type/ConfirmAutoFocusButton.cs b/components/modal/type/ConfirmAutoFocusButton.cs index 45f7256e..fd33d5e2 100644 --- a/components/modal/type/ConfirmAutoFocusButton.cs +++ b/components/modal/type/ConfirmAutoFocusButton.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum ConfirmAutoFocusButton { diff --git a/components/modal/type/ConfirmButtons.cs b/components/modal/type/ConfirmButtons.cs index 81ec1737..2ed8baaf 100644 --- a/components/modal/type/ConfirmButtons.cs +++ b/components/modal/type/ConfirmButtons.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// diff --git a/components/modal/type/ConfirmIcon.cs b/components/modal/type/ConfirmIcon.cs index 8283dd25..c4e68e05 100644 --- a/components/modal/type/ConfirmIcon.cs +++ b/components/modal/type/ConfirmIcon.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/modal/type/ConfirmResult.cs b/components/modal/type/ConfirmResult.cs index fa558d14..60554011 100644 --- a/components/modal/type/ConfirmResult.cs +++ b/components/modal/type/ConfirmResult.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// /// which the confirm button is clicked diff --git a/components/modal/type/ModalAnimation.cs b/components/modal/type/ModalAnimation.cs index f1f9d194..c8538e52 100644 --- a/components/modal/type/ModalAnimation.cs +++ b/components/modal/type/ModalAnimation.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class ModalAnimation { diff --git a/components/notification/NotificationBase.cs b/components/notification/NotificationBase.cs index aa88520b..6623e312 100644 --- a/components/notification/NotificationBase.cs +++ b/components/notification/NotificationBase.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { /// /// diff --git a/components/notification/NotificationItem.razor.cs b/components/notification/NotificationItem.razor.cs index 3597f9bd..a93b29ff 100644 --- a/components/notification/NotificationItem.razor.cs +++ b/components/notification/NotificationItem.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/notification/NotificationRef.cs b/components/notification/NotificationRef.cs index a3bc376a..f453c32f 100644 --- a/components/notification/NotificationRef.cs +++ b/components/notification/NotificationRef.cs @@ -20,7 +20,7 @@ namespace AntDesign private readonly NotificationService _service; - internal NotificationRef(NotificationService service,NotificationConfig config) + internal NotificationRef(NotificationService service, NotificationConfig config) { _service = service; Config = config; diff --git a/components/notification/NotificationService.cs b/components/notification/NotificationService.cs index c678232a..811bb94e 100644 --- a/components/notification/NotificationService.cs +++ b/components/notification/NotificationService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/notification/config/NotificationConfig.cs b/components/notification/config/NotificationConfig.cs index f539a4e9..03270cf5 100644 --- a/components/notification/config/NotificationConfig.cs +++ b/components/notification/config/NotificationConfig.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/notification/config/NotificationGlobalConfig.cs b/components/notification/config/NotificationGlobalConfig.cs index 7765605c..f61a7b11 100644 --- a/components/notification/config/NotificationGlobalConfig.cs +++ b/components/notification/config/NotificationGlobalConfig.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/notification/type/AnimationType.cs b/components/notification/type/AnimationType.cs index a8f475e4..5f860adb 100644 --- a/components/notification/type/AnimationType.cs +++ b/components/notification/type/AnimationType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { internal static class AnimationType { diff --git a/components/notification/type/NotificationPlacement.cs b/components/notification/type/NotificationPlacement.cs index c23eb3ad..efbe72b1 100644 --- a/components/notification/type/NotificationPlacement.cs +++ b/components/notification/type/NotificationPlacement.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum NotificationPlacement { diff --git a/components/notification/type/NotificationType.cs b/components/notification/type/NotificationType.cs index 164a1c4e..336a5551 100644 --- a/components/notification/type/NotificationType.cs +++ b/components/notification/type/NotificationType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum NotificationType { diff --git a/components/page-header/PageHeaderLocale.cs b/components/page-header/PageHeaderLocale.cs index b0e75b31..26a18c8b 100644 --- a/components/page-header/PageHeaderLocale.cs +++ b/components/page-header/PageHeaderLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class PageHeaderLocale { diff --git a/components/pagination/PaginationLocale.cs b/components/pagination/PaginationLocale.cs index d7e29582..32de7e77 100644 --- a/components/pagination/PaginationLocale.cs +++ b/components/pagination/PaginationLocale.cs @@ -1,4 +1,8 @@ -锘縰sing System.Text.Json.Serialization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Text.Json.Serialization; namespace AntDesign { diff --git a/components/popconfirm/PopconfirmLocale.cs b/components/popconfirm/PopconfirmLocale.cs index 1acc0c34..bd1940d2 100644 --- a/components/popconfirm/PopconfirmLocale.cs +++ b/components/popconfirm/PopconfirmLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class PopconfirmLocale { diff --git a/components/progress/Progress.razor.cs b/components/progress/Progress.razor.cs index cb36895d..8759e60c 100644 --- a/components/progress/Progress.razor.cs +++ b/components/progress/Progress.razor.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/progress/ProgressEnum.cs b/components/progress/ProgressEnum.cs index f030fc79..1b92ce07 100644 --- a/components/progress/ProgressEnum.cs +++ b/components/progress/ProgressEnum.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public sealed class ProgressSize : EnumValue { diff --git a/components/radio/RadioGroup.razor.cs b/components/radio/RadioGroup.razor.cs index fca990c1..7f1a4700 100644 --- a/components/radio/RadioGroup.razor.cs +++ b/components/radio/RadioGroup.razor.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using OneOf; diff --git a/components/rate/RateItem.razor.cs b/components/rate/RateItem.razor.cs index b17c44ed..6fcd853a 100644 --- a/components/rate/RateItem.razor.cs +++ b/components/rate/RateItem.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/select/EnumSelect.cs b/components/select/EnumSelect.cs index e89a0575..2afa3c42 100644 --- a/components/select/EnumSelect.cs +++ b/components/select/EnumSelect.cs @@ -2,13 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using AntDesign; -using AntDesign.Select.Internal; -using Microsoft.AspNetCore.Components; -using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/select/Select.razor.cs b/components/select/Select.razor.cs index 617e0f8d..727e91b7 100644 --- a/components/select/Select.razor.cs +++ b/components/select/Select.razor.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.ComponentModel; -using System.Globalization; using System.Linq; using System.Reflection; using System.Text.Json; @@ -322,7 +321,7 @@ namespace AntDesign internal ElementReference DropDownRef => _dropDown.GetOverlayComponent().Ref; private ElementReference _scrollableSelectDiv; - + private TItemValue _selectedValue; private TItemValue _defaultValue; private bool _defaultValueIsNotNull; @@ -1052,7 +1051,7 @@ namespace AntDesign } #region Events - + protected override async Task OnValueChangeAsync(TItemValue value) { if (!_optionsHasInitialized) // This is important because otherwise the initial value is overwritten by the EventCallback of ValueChanged and would be NULL. diff --git a/components/select/SelectBase.razor.cs b/components/select/SelectBase.razor.cs index 42001267..8ee186b8 100644 --- a/components/select/SelectBase.razor.cs +++ b/components/select/SelectBase.razor.cs @@ -11,13 +11,13 @@ using System.Linq; using System.Text.Json; using System.Threading.Tasks; using AntDesign.Core.Extensions; +using AntDesign.Core.Helpers.MemberPath; using AntDesign.Internal; using AntDesign.Select; using AntDesign.Select.Internal; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using OneOf; -using AntDesign.Core.Helpers.MemberPath; #endregion using block diff --git a/components/select/SelectOption.razor.cs b/components/select/SelectOption.razor.cs index 806aacba..8c0aacc1 100644 --- a/components/select/SelectOption.razor.cs +++ b/components/select/SelectOption.razor.cs @@ -3,12 +3,12 @@ // See the LICENSE file in the project root for more information. using System; +using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; using AntDesign.Select.Internal; -using System.Globalization; -using System.Collections.Generic; +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/select/internal/LabelTemplateItem.razor.cs b/components/select/internal/LabelTemplateItem.razor.cs index 502e5b60..da3d9a76 100644 --- a/components/select/internal/LabelTemplateItem.razor.cs +++ b/components/select/internal/LabelTemplateItem.razor.cs @@ -1,8 +1,8 @@ 锘// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.AspNetCore.Components; using AntDesign.Select.Internal; +using Microsoft.AspNetCore.Components; #pragma warning disable 1591 // Disable missing XML comment diff --git a/components/select/internal/SelectOptionGroup.razor.cs b/components/select/internal/SelectOptionGroup.razor.cs index 76f7c201..cc1dcf50 100644 --- a/components/select/internal/SelectOptionGroup.razor.cs +++ b/components/select/internal/SelectOptionGroup.razor.cs @@ -10,7 +10,8 @@ namespace AntDesign.Select.Internal { private const string ClassNamePrefix = "ant-select-item-group"; [CascadingParameter] internal SelectBase SelectParent { get; set; } - string _oldGroupName = string.Empty; + + private string _oldGroupName = string.Empty; protected override void OnInitialized() { diff --git a/components/select/internal/SelectSuffixIcon.razor.cs b/components/select/internal/SelectSuffixIcon.razor.cs index da001294..0dd7ed57 100644 --- a/components/select/internal/SelectSuffixIcon.razor.cs +++ b/components/select/internal/SelectSuffixIcon.razor.cs @@ -1,4 +1,7 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Text.Json; using System.Threading.Tasks; using AntDesign.JsInterop; @@ -18,11 +21,11 @@ namespace AntDesign.Select.Internal public bool ShowSearchIcon { get; set; } [Parameter] - public bool ShowArrowIcon { get; set; } + public bool ShowArrowIcon { get; set; } [Parameter] - public EventCallback OnClearClick { get; set; } - + public EventCallback OnClearClick { get; set; } + [CascadingParameter(Name = "ParentSelect")] internal SelectBase ParentSelect { get; set; } [Inject] private IDomEventListener DomEventListener { get; set; } diff --git a/components/skeleton/SkeletonElement.razor.cs b/components/skeleton/SkeletonElement.razor.cs index 880a0164..ba7f6327 100644 --- a/components/skeleton/SkeletonElement.razor.cs +++ b/components/skeleton/SkeletonElement.razor.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; using OneOf; namespace AntDesign diff --git a/components/skeleton/SkeletonType.cs b/components/skeleton/SkeletonType.cs index a73c88ca..9af3ae62 100644 --- a/components/skeleton/SkeletonType.cs +++ b/components/skeleton/SkeletonType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class SkeletonElementSize { diff --git a/components/slider/SliderMark.cs b/components/slider/SliderMark.cs index fe9ee7a9..aad4c7a8 100644 --- a/components/slider/SliderMark.cs +++ b/components/slider/SliderMark.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/space/SpaceItem.razor.cs b/components/space/SpaceItem.razor.cs index 337ea895..886abb90 100644 --- a/components/space/SpaceItem.razor.cs +++ b/components/space/SpaceItem.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/statistic/CountDown.razor.cs b/components/statistic/CountDown.razor.cs index 6f77a566..7ed9db2e 100644 --- a/components/statistic/CountDown.razor.cs +++ b/components/statistic/CountDown.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/components/table/ActionColumn.razor.cs b/components/table/ActionColumn.razor.cs index d60933b1..ae6d7253 100644 --- a/components/table/ActionColumn.razor.cs +++ b/components/table/ActionColumn.razor.cs @@ -1,4 +1,8 @@ -锘縰sing AntDesign.TableModels; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using AntDesign.TableModels; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/table/Column.razor.cs b/components/table/Column.razor.cs index 8d23680f..de62dadb 100644 --- a/components/table/Column.razor.cs +++ b/components/table/Column.razor.cs @@ -1,18 +1,22 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; -using System.Linq; using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.Linq; using System.Linq.Expressions; using System.Reflection; +using System.Text.Json; +using System.Threading.Tasks; +using AntDesign.Core.Extensions; +using AntDesign.Core.Helpers; +using AntDesign.Filters; using AntDesign.Internal; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; -using System.Text.Json; -using AntDesign.Core.Helpers; -using AntDesign.Filters; -using System.Threading.Tasks; -using AntDesign.Core.Extensions; using Microsoft.JSInterop; namespace AntDesign diff --git a/components/table/ColumnBase.cs b/components/table/ColumnBase.cs index 17f307ec..f3e5fbd8 100644 --- a/components/table/ColumnBase.cs +++ b/components/table/ColumnBase.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; diff --git a/components/table/ColumnContext.cs b/components/table/ColumnContext.cs index bad57e2e..1d28e951 100644 --- a/components/table/ColumnContext.cs +++ b/components/table/ColumnContext.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/table/Filters/GuidFieldFilterType.cs b/components/table/Filters/GuidFieldFilterType.cs index cf1818d8..b570f6a7 100644 --- a/components/table/Filters/GuidFieldFilterType.cs +++ b/components/table/Filters/GuidFieldFilterType.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Linq.Expressions; using Microsoft.AspNetCore.Components; namespace AntDesign.Filters diff --git a/components/table/Filters/NumberFieldFilterType.cs b/components/table/Filters/NumberFieldFilterType.cs index 11682ca6..ad75da66 100644 --- a/components/table/Filters/NumberFieldFilterType.cs +++ b/components/table/Filters/NumberFieldFilterType.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; using System.Linq.Expressions; using Microsoft.AspNetCore.Components; diff --git a/components/table/Filters/TableFilterInputRenderOptions.cs b/components/table/Filters/TableFilterInputRenderOptions.cs index ff277ccb..244423e9 100644 --- a/components/table/Filters/TableFilterInputRenderOptions.cs +++ b/components/table/Filters/TableFilterInputRenderOptions.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; diff --git a/components/table/GenerateColumns.razor.cs b/components/table/GenerateColumns.razor.cs index 2c4df703..50e91293 100644 --- a/components/table/GenerateColumns.razor.cs +++ b/components/table/GenerateColumns.razor.cs @@ -6,7 +6,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; -using System.Text; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; diff --git a/components/table/IColumn.cs b/components/table/IColumn.cs index 4995b72f..2e1df2a9 100644 --- a/components/table/IColumn.cs +++ b/components/table/IColumn.cs @@ -1,4 +1,8 @@ -锘縰sing AntDesign.TableModels; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using AntDesign.TableModels; namespace AntDesign { diff --git a/components/table/IFieldColumn.cs b/components/table/IFieldColumn.cs index 99697249..342d9ba2 100644 --- a/components/table/IFieldColumn.cs +++ b/components/table/IFieldColumn.cs @@ -1,6 +1,8 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Linq; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq.Expressions; using AntDesign.TableModels; diff --git a/components/table/ISelectionColumn.cs b/components/table/ISelectionColumn.cs index 6f31a042..8a36e4d8 100644 --- a/components/table/ISelectionColumn.cs +++ b/components/table/ISelectionColumn.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/table/ITable.cs b/components/table/ITable.cs index d3784a90..cce86b41 100644 --- a/components/table/ITable.cs +++ b/components/table/ITable.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using AntDesign.Filters; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; diff --git a/components/table/Internal/MultiLevelDynamicGroupByHelper.cs b/components/table/Internal/MultiLevelDynamicGroupByHelper.cs index 0cb6481c..1af74542 100644 --- a/components/table/Internal/MultiLevelDynamicGroupByHelper.cs +++ b/components/table/Internal/MultiLevelDynamicGroupByHelper.cs @@ -3,12 +3,10 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Linq; -using System.Text; -using System.Dynamic; using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Linq.Expressions; using AntDesign.TableModels; namespace AntDesign.Internal; diff --git a/components/table/Internal/TItemProxy.cs b/components/table/Internal/TItemProxy.cs index 972af46a..c69e28ff 100644 --- a/components/table/Internal/TItemProxy.cs +++ b/components/table/Internal/TItemProxy.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Reflection; -using System.Text; namespace AntDesign.Table.Internal { diff --git a/components/table/Selection.razor.cs b/components/table/Selection.razor.cs index 26672884..16536623 100644 --- a/components/table/Selection.razor.cs +++ b/components/table/Selection.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.Linq; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; diff --git a/components/table/Table.razor.RowData.cs b/components/table/Table.razor.RowData.cs index 09fa2595..4262c7b4 100644 --- a/components/table/Table.razor.RowData.cs +++ b/components/table/Table.razor.RowData.cs @@ -1,4 +1,9 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Collections.Generic; using System.Linq; using AntDesign.TableModels; diff --git a/components/table/Table.razor.Selection.cs b/components/table/Table.razor.Selection.cs index 589b2985..a4599c09 100644 --- a/components/table/Table.razor.Selection.cs +++ b/components/table/Table.razor.Selection.cs @@ -1,6 +1,9 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; using System.Linq; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; @@ -95,7 +98,7 @@ namespace AntDesign select.SetSelected(false, _selection.CheckStrictly); } - _preventRowDataTriggerSelectedRowsChanged = false; + _preventRowDataTriggerSelectedRowsChanged = false; _selection?.StateHasChanged(); SelectionChanged(); diff --git a/components/table/Table.razor.cs b/components/table/Table.razor.cs index 27672389..57acde00 100644 --- a/components/table/Table.razor.cs +++ b/components/table/Table.razor.cs @@ -4,23 +4,23 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; +using System.Reflection; using System.Runtime.CompilerServices; using System.Text.Json; using System.Threading.Tasks; +using AntDesign.core.Services; using AntDesign.Core.HashCodes; +using AntDesign.Core.Reflection; using AntDesign.Filters; +using AntDesign.Internal; using AntDesign.JsInterop; +using AntDesign.Table.Internal; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Logging; using Microsoft.JSInterop; -using System.Reflection; -using AntDesign.core.Services; -using AntDesign.Table.Internal; -using AntDesign.Core.Reflection; -using System.Diagnostics.CodeAnalysis; -using AntDesign.Internal; #if NET5_0_OR_GREATER diff --git a/components/table/TableLocale.cs b/components/table/TableLocale.cs index 117e602b..8c6b9ed8 100644 --- a/components/table/TableLocale.cs +++ b/components/table/TableLocale.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/table/TableModels/ITableFilterModel.cs b/components/table/TableModels/ITableFilterModel.cs index ac9c323f..5bb3e05e 100644 --- a/components/table/TableModels/ITableFilterModel.cs +++ b/components/table/TableModels/ITableFilterModel.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; diff --git a/components/table/TableModels/ITableSortModel.cs b/components/table/TableModels/ITableSortModel.cs index f5449aa0..ece51041 100644 --- a/components/table/TableModels/ITableSortModel.cs +++ b/components/table/TableModels/ITableSortModel.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; namespace AntDesign.TableModels diff --git a/components/table/TableModels/QueryModel.cs b/components/table/TableModels/QueryModel.cs index fb9b02c0..e4672895 100644 --- a/components/table/TableModels/QueryModel.cs +++ b/components/table/TableModels/QueryModel.cs @@ -1,9 +1,12 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text.Json.Serialization; -using AntDesign.Filters; namespace AntDesign.TableModels { diff --git a/components/table/TableModels/RowData.cs b/components/table/TableModels/RowData.cs index 2b2f1fd5..3ae961b7 100644 --- a/components/table/TableModels/RowData.cs +++ b/components/table/TableModels/RowData.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; diff --git a/components/table/TableModels/SortModel.cs b/components/table/TableModels/SortModel.cs index 0587f926..a235b822 100644 --- a/components/table/TableModels/SortModel.cs +++ b/components/table/TableModels/SortModel.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; diff --git a/components/tabs/Reuse/IReuseTabsPage.cs b/components/tabs/Reuse/IReuseTabsPage.cs index 927b069f..a4399fb3 100644 --- a/components/tabs/Reuse/IReuseTabsPage.cs +++ b/components/tabs/Reuse/IReuseTabsPage.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/tabs/Reuse/ReuseTabs.razor.cs b/components/tabs/Reuse/ReuseTabs.razor.cs index 78819bb3..88329c97 100644 --- a/components/tabs/Reuse/ReuseTabs.razor.cs +++ b/components/tabs/Reuse/ReuseTabs.razor.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Routing; diff --git a/components/tabs/Reuse/ReuseTabsPageItem.cs b/components/tabs/Reuse/ReuseTabsPageItem.cs index 292a472a..1a7ce3f3 100644 --- a/components/tabs/Reuse/ReuseTabsPageItem.cs +++ b/components/tabs/Reuse/ReuseTabsPageItem.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign @@ -23,4 +27,4 @@ namespace AntDesign public int Order { get; set; } = 9999; } -} \ No newline at end of file +} diff --git a/components/tabs/Reuse/ReuseTabsPageTitleAttribute.cs b/components/tabs/Reuse/ReuseTabsPageTitleAttribute.cs index 4b1b341f..fdcd96d0 100644 --- a/components/tabs/Reuse/ReuseTabsPageTitleAttribute.cs +++ b/components/tabs/Reuse/ReuseTabsPageTitleAttribute.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/tabs/Reuse/ReuseTabsRouteData.cs b/components/tabs/Reuse/ReuseTabsRouteData.cs index 2498c494..f03d370a 100644 --- a/components/tabs/Reuse/ReuseTabsRouteData.cs +++ b/components/tabs/Reuse/ReuseTabsRouteData.cs @@ -2,10 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; using System.Reflection; -using System.Text; using System.Text.Json.Serialization; using Microsoft.AspNetCore.Components; diff --git a/components/tabs/TabPosition.cs b/components/tabs/TabPosition.cs index 7c786803..fff24d72 100644 --- a/components/tabs/TabPosition.cs +++ b/components/tabs/TabPosition.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum TabPosition { diff --git a/components/tabs/TabSize.cs b/components/tabs/TabSize.cs index e2e58525..89d381c3 100644 --- a/components/tabs/TabSize.cs +++ b/components/tabs/TabSize.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum TabSize { diff --git a/components/tabs/TabType.cs b/components/tabs/TabType.cs index a9bda655..55c5a36c 100644 --- a/components/tabs/TabType.cs +++ b/components/tabs/TabType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum TabType { diff --git a/components/tabs/Tabs.razor.cs b/components/tabs/Tabs.razor.cs index 4fade21f..0c205881 100644 --- a/components/tabs/Tabs.razor.cs +++ b/components/tabs/Tabs.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; diff --git a/components/time-picker/TimePickerLocale.cs b/components/time-picker/TimePickerLocale.cs index debd096f..8fd58d01 100644 --- a/components/time-picker/TimePickerLocale.cs +++ b/components/time-picker/TimePickerLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TimePickerLocale { diff --git a/components/timeline/TimelineItem.cs b/components/timeline/TimelineItem.cs index da40efd0..9303e53e 100644 --- a/components/timeline/TimelineItem.cs +++ b/components/timeline/TimelineItem.cs @@ -1,5 +1,9 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Linq; +using Microsoft.AspNetCore.Components; namespace AntDesign { diff --git a/components/transfer/TransferChangeArgs.cs b/components/transfer/TransferChangeArgs.cs index 670fd81a..8d3329a7 100644 --- a/components/transfer/TransferChangeArgs.cs +++ b/components/transfer/TransferChangeArgs.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TransferChangeArgs { diff --git a/components/transfer/TransferDirection.cs b/components/transfer/TransferDirection.cs index 56d38af2..badaf2c7 100644 --- a/components/transfer/TransferDirection.cs +++ b/components/transfer/TransferDirection.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum TransferDirection { diff --git a/components/transfer/TransferItem.cs b/components/transfer/TransferItem.cs index 43435d8f..bc21e2ef 100644 --- a/components/transfer/TransferItem.cs +++ b/components/transfer/TransferItem.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/transfer/TransferLocale.cs b/components/transfer/TransferLocale.cs index 8a2f15e2..1dedb824 100644 --- a/components/transfer/TransferLocale.cs +++ b/components/transfer/TransferLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TransferLocale { diff --git a/components/transfer/TransferScrollArgs.cs b/components/transfer/TransferScrollArgs.cs index 62076822..a99a9249 100644 --- a/components/transfer/TransferScrollArgs.cs +++ b/components/transfer/TransferScrollArgs.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign { diff --git a/components/transfer/TransferSearchArgs.cs b/components/transfer/TransferSearchArgs.cs index 5e4fc49b..c10a447d 100644 --- a/components/transfer/TransferSearchArgs.cs +++ b/components/transfer/TransferSearchArgs.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TransferSearchArgs { diff --git a/components/transfer/TransferSelectChangeArgs.cs b/components/transfer/TransferSelectChangeArgs.cs index b81c686d..f828565e 100644 --- a/components/transfer/TransferSelectChangeArgs.cs +++ b/components/transfer/TransferSelectChangeArgs.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TransferSelectChangeArgs { diff --git a/components/tree-select/ITreeSelect.cs b/components/tree-select/ITreeSelect.cs index fb583ce8..5c2b9d33 100644 --- a/components/tree-select/ITreeSelect.cs +++ b/components/tree-select/ITreeSelect.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace AntDesign { public interface ITreeSelect diff --git a/components/tree-select/TreeSelect.razor.cs b/components/tree-select/TreeSelect.razor.cs index 6c31c107..8929f2d3 100644 --- a/components/tree-select/TreeSelect.razor.cs +++ b/components/tree-select/TreeSelect.razor.cs @@ -6,10 +6,10 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using AntDesign.Core.Extensions; using AntDesign.JsInterop; using AntDesign.Select.Internal; using Microsoft.AspNetCore.Components; -using AntDesign.Core.Extensions; using OneOf; namespace AntDesign diff --git a/components/tree/Tree.razor.cs b/components/tree/Tree.razor.cs index 0f87b74f..6f834e7e 100644 --- a/components/tree/Tree.razor.cs +++ b/components/tree/Tree.razor.cs @@ -6,12 +6,10 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using System.Text.Json; using System.Threading.Tasks; using AntDesign.JsInterop; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using AntDesign.Core.Extensions; namespace AntDesign { diff --git a/components/tree/TreeEventArgs.cs b/components/tree/TreeEventArgs.cs index c5e65a11..051410aa 100644 --- a/components/tree/TreeEventArgs.cs +++ b/components/tree/TreeEventArgs.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components.Web; namespace AntDesign @@ -9,7 +13,7 @@ namespace AntDesign public TreeEventArgs(Tree tree) { Tree = tree; } public TreeEventArgs(Tree tree, TreeNode node) { Tree = tree; Node = node; } public TreeEventArgs(Tree tree, TreeNode node, MouseEventArgs originalEvent) { Tree = tree; Node = node; OriginalEvent = originalEvent; } - public TreeEventArgs(Tree tree, TreeNode node, MouseEventArgs originalEvent, bool dropBelow ) { Tree = tree; Node = node; OriginalEvent = originalEvent; DropBelow = dropBelow; } + public TreeEventArgs(Tree tree, TreeNode node, MouseEventArgs originalEvent, bool dropBelow) { Tree = tree; Node = node; OriginalEvent = originalEvent; DropBelow = dropBelow; } public Tree Tree { get; set; } public TreeNode Node { get; set; } @@ -23,7 +27,7 @@ namespace AntDesign /// 鍘熺敓浜嬩欢 /// public MouseEventArgs OriginalEvent { get; set; } - + /// /// Whether to drop dragged node as a sibling (below) or as a child of target node. /// diff --git a/components/tree/TreeNodeCheckbox.razor.cs b/components/tree/TreeNodeCheckbox.razor.cs index 20ed2562..7fc02605 100644 --- a/components/tree/TreeNodeCheckbox.razor.cs +++ b/components/tree/TreeNodeCheckbox.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/tree/TreeNodeSwitcher.razor.cs b/components/tree/TreeNodeSwitcher.razor.cs index aa747ecf..83643bfb 100644 --- a/components/tree/TreeNodeSwitcher.razor.cs +++ b/components/tree/TreeNodeSwitcher.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/tree/TreeNodeTitle.razor.cs b/components/tree/TreeNodeTitle.razor.cs index b7373899..cc77cddb 100644 --- a/components/tree/TreeNodeTitle.razor.cs +++ b/components/tree/TreeNodeTitle.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; diff --git a/components/typography/Link.cs b/components/typography/Link.cs index fa01edbe..eeb511c1 100644 --- a/components/typography/Link.cs +++ b/components/typography/Link.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/typography/Text.cs b/components/typography/Text.cs index 09a377ed..6fbddc20 100644 --- a/components/typography/Text.cs +++ b/components/typography/Text.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/typography/TextElementType.cs b/components/typography/TextElementType.cs index a7dd149f..de371b5d 100644 --- a/components/typography/TextElementType.cs +++ b/components/typography/TextElementType.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public static class TextElementType { diff --git a/components/typography/TextLocale.cs b/components/typography/TextLocale.cs index 5dc9c570..d550ee49 100644 --- a/components/typography/TextLocale.cs +++ b/components/typography/TextLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class TextLocale { diff --git a/components/typography/Title.cs b/components/typography/Title.cs index 38ead1dc..1eebf162 100644 --- a/components/typography/Title.cs +++ b/components/typography/Title.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using Microsoft.AspNetCore.Components; namespace AntDesign diff --git a/components/upload/UploadButton.razor.cs b/components/upload/UploadButton.razor.cs index e119cfa6..151a566a 100644 --- a/components/upload/UploadButton.razor.cs +++ b/components/upload/UploadButton.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/components/upload/UploadFileItem.cs b/components/upload/UploadFileItem.cs index 5b90e80f..d4756f91 100644 --- a/components/upload/UploadFileItem.cs +++ b/components/upload/UploadFileItem.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Linq; using System.Text.Json; diff --git a/components/upload/UploadInfo.cs b/components/upload/UploadInfo.cs index dbe13a10..080ee161 100644 --- a/components/upload/UploadInfo.cs +++ b/components/upload/UploadInfo.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign { diff --git a/components/upload/UploadLocale.cs b/components/upload/UploadLocale.cs index 8fcfcfb0..493ed79e 100644 --- a/components/upload/UploadLocale.cs +++ b/components/upload/UploadLocale.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public class UploadLocale { diff --git a/components/upload/UploadState.cs b/components/upload/UploadState.cs index 69854f9f..e32e4063 100644 --- a/components/upload/UploadState.cs +++ b/components/upload/UploadState.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign { public enum UploadState { diff --git a/components/watermark/Watermark.razor.cs b/components/watermark/Watermark.razor.cs index f9315193..b59e3892 100644 --- a/components/watermark/Watermark.razor.cs +++ b/components/watermark/Watermark.razor.cs @@ -3,11 +3,8 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading.Tasks; -using System.Web; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; diff --git a/site/AntDesign.Docs.Build.CLI/AppCommandResolver.cs b/site/AntDesign.Docs.Build.CLI/AppCommandResolver.cs index 7c4e64ff..27b8b6cd 100644 --- a/site/AntDesign.Docs.Build.CLI/AppCommandResolver.cs +++ b/site/AntDesign.Docs.Build.CLI/AppCommandResolver.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Collections.Generic; using Microsoft.Extensions.CommandLineUtils; @@ -20,4 +24,4 @@ namespace AntDesign.Docs.Build.CLI } } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Command/GenerateDocsToHtmlCommand.cs b/site/AntDesign.Docs.Build.CLI/Command/GenerateDocsToHtmlCommand.cs index b4488092..c1f869e4 100644 --- a/site/AntDesign.Docs.Build.CLI/Command/GenerateDocsToHtmlCommand.cs +++ b/site/AntDesign.Docs.Build.CLI/Command/GenerateDocsToHtmlCommand.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.IO; using System.Text.Encodings.Web; using System.Text.Json; diff --git a/site/AntDesign.Docs.Build.CLI/Command/GenerateIconsToJsonCommand.cs b/site/AntDesign.Docs.Build.CLI/Command/GenerateIconsToJsonCommand.cs index 577e0588..628fc553 100644 --- a/site/AntDesign.Docs.Build.CLI/Command/GenerateIconsToJsonCommand.cs +++ b/site/AntDesign.Docs.Build.CLI/Command/GenerateIconsToJsonCommand.cs @@ -1,11 +1,14 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Encodings.Web; using System.Text.Json; using AntDesign.Docs.Build.CLI.Extensions; -using AntDesign.Docs.Build.CLI.Utils; using Microsoft.Extensions.CommandLineUtils; namespace AntDesign.Docs.Build.CLI.Command diff --git a/site/AntDesign.Docs.Build.CLI/Command/GenerateMenuJsonCommand.cs b/site/AntDesign.Docs.Build.CLI/Command/GenerateMenuJsonCommand.cs index d1821add..8de032cf 100644 --- a/site/AntDesign.Docs.Build.CLI/Command/GenerateMenuJsonCommand.cs +++ b/site/AntDesign.Docs.Build.CLI/Command/GenerateMenuJsonCommand.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/site/AntDesign.Docs.Build.CLI/CommandLineApplicationFactory.cs b/site/AntDesign.Docs.Build.CLI/CommandLineApplicationFactory.cs index 0b9ce50d..e5eab13a 100644 --- a/site/AntDesign.Docs.Build.CLI/CommandLineApplicationFactory.cs +++ b/site/AntDesign.Docs.Build.CLI/CommandLineApplicationFactory.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using AntDesign.Docs.Build.CLI.Extensions; using Microsoft.Extensions.CommandLineUtils; @@ -36,4 +40,4 @@ namespace AntDesign.Docs.Build.CLI return app; } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Extensions/CommandLineApplicationExtensions.cs b/site/AntDesign.Docs.Build.CLI/Extensions/CommandLineApplicationExtensions.cs index 261dec28..a134f55e 100644 --- a/site/AntDesign.Docs.Build.CLI/Extensions/CommandLineApplicationExtensions.cs +++ b/site/AntDesign.Docs.Build.CLI/Extensions/CommandLineApplicationExtensions.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Reflection; using Microsoft.Extensions.CommandLineUtils; @@ -33,4 +37,4 @@ namespace AntDesign.Docs.Build.CLI.Extensions return versionAttribute; } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Extensions/ProcessExtensions.cs b/site/AntDesign.Docs.Build.CLI/Extensions/ProcessExtensions.cs index 8d771c29..e67ca0e6 100644 --- a/site/AntDesign.Docs.Build.CLI/Extensions/ProcessExtensions.cs +++ b/site/AntDesign.Docs.Build.CLI/Extensions/ProcessExtensions.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Diagnostics; namespace AntDesign.Docs.Build.CLI.Extensions @@ -10,4 +14,4 @@ namespace AntDesign.Docs.Build.CLI.Extensions process.StandardInput.WriteLine(command); } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/IAppCommand.cs b/site/AntDesign.Docs.Build.CLI/IAppCommand.cs index 5b846a4b..754ad7da 100644 --- a/site/AntDesign.Docs.Build.CLI/IAppCommand.cs +++ b/site/AntDesign.Docs.Build.CLI/IAppCommand.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Microsoft.Extensions.CommandLineUtils; namespace AntDesign.Docs.Build.CLI @@ -8,4 +12,4 @@ namespace AntDesign.Docs.Build.CLI void Execute(CommandLineApplication command); } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/IAppCommandResolver.cs b/site/AntDesign.Docs.Build.CLI/IAppCommandResolver.cs index 43cd1829..73637cfe 100644 --- a/site/AntDesign.Docs.Build.CLI/IAppCommandResolver.cs +++ b/site/AntDesign.Docs.Build.CLI/IAppCommandResolver.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Microsoft.Extensions.CommandLineUtils; namespace AntDesign.Docs.Build.CLI @@ -6,4 +10,4 @@ namespace AntDesign.Docs.Build.CLI { void Resolve(CommandLineApplication application); } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Program.cs b/site/AntDesign.Docs.Build.CLI/Program.cs index f749fe99..20966d21 100644 --- a/site/AntDesign.Docs.Build.CLI/Program.cs +++ b/site/AntDesign.Docs.Build.CLI/Program.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Net.Http; using AntDesign.Docs.Build.CLI.Command; using AntDesign.Docs.Build.CLI.Services.Translation; @@ -10,7 +14,7 @@ using Microsoft.Extensions.Options; namespace AntDesign.Docs.Build.CLI { - internal class Program + internal sealed class Program { private static int Main(string[] args) { diff --git a/site/AntDesign.Docs.Build.CLI/Utils/ConsoleUtils.cs b/site/AntDesign.Docs.Build.CLI/Utils/ConsoleUtils.cs index 77019ff7..4cd368f1 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/ConsoleUtils.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/ConsoleUtils.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign.Docs.Build.CLI.Utils { diff --git a/site/AntDesign.Docs.Build.CLI/Utils/DirectoryProvider.cs b/site/AntDesign.Docs.Build.CLI/Utils/DirectoryProvider.cs index 8a93cf7f..8446a96a 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/DirectoryProvider.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/DirectoryProvider.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.IO; @@ -40,4 +44,4 @@ namespace AntDesign.Docs.Build.CLI.Utils return Path.Combine(AdditonalDepsRootDirectory, additonalName); } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Utils/DocParser.cs b/site/AntDesign.Docs.Build.CLI/Utils/DocParser.cs index dd98b127..ce80ad72 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/DocParser.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/DocParser.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.IO; using System.Linq; using Markdig; diff --git a/site/AntDesign.Docs.Build.CLI/Utils/MenuComparer.cs b/site/AntDesign.Docs.Build.CLI/Utils/MenuComparer.cs index ba93cdeb..d86aec62 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/MenuComparer.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/MenuComparer.cs @@ -1,7 +1,10 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Text; namespace AntDesign.Docs.Build.CLI.Utils { diff --git a/site/AntDesign.Docs.Build.CLI/Utils/PlatformInformationArbiter.cs b/site/AntDesign.Docs.Build.CLI/Utils/PlatformInformationArbiter.cs index 7beb1902..0dc7293c 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/PlatformInformationArbiter.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/PlatformInformationArbiter.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Runtime.InteropServices; @@ -28,4 +32,4 @@ namespace AntDesign.Docs.Build.CLI.Utils invoker(); } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Utils/ShellProcess.cs b/site/AntDesign.Docs.Build.CLI/Utils/ShellProcess.cs index 4aee6094..958e81b4 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/ShellProcess.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/ShellProcess.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Diagnostics; @@ -96,4 +100,4 @@ namespace AntDesign.Docs.Build.CLI.Utils Console.WriteLine(e.Data); } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Utils/ShellProcessFactory.cs b/site/AntDesign.Docs.Build.CLI/Utils/ShellProcessFactory.cs index 875fb4b0..39b355d6 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/ShellProcessFactory.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/ShellProcessFactory.cs @@ -1,3 +1,7 @@ +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + namespace AntDesign.Docs.Build.CLI.Utils { public class ShellProcessFactory @@ -13,4 +17,4 @@ namespace AntDesign.Docs.Build.CLI.Utils return process.ExitCode; } } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs b/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs index 0696b7b3..5bc1ee7b 100644 --- a/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs +++ b/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; diff --git a/site/AntDesign.Docs.Server/Pages/Error.cshtml.cs b/site/AntDesign.Docs.Server/Pages/Error.cshtml.cs index 0f8e56b6..eef88d55 100644 --- a/site/AntDesign.Docs.Server/Pages/Error.cshtml.cs +++ b/site/AntDesign.Docs.Server/Pages/Error.cshtml.cs @@ -1,4 +1,8 @@ -锘縰sing System.Diagnostics; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/site/AntDesign.Docs.Server/Program.cs b/site/AntDesign.Docs.Server/Program.cs index 4459e626..df9622eb 100644 --- a/site/AntDesign.Docs.Server/Program.cs +++ b/site/AntDesign.Docs.Server/Program.cs @@ -1,5 +1,8 @@ -锘縰sing Blazor.Polyfill.Server; -using Microsoft.AspNetCore.Builder; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Blazor.Polyfill.Server; var builder = WebApplication.CreateBuilder(args); diff --git a/site/AntDesign.Docs.Wasm/Program.cs b/site/AntDesign.Docs.Wasm/Program.cs index 9176066d..7e152953 100644 --- a/site/AntDesign.Docs.Wasm/Program.cs +++ b/site/AntDesign.Docs.Wasm/Program.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Net.Http; using System.Threading.Tasks; diff --git a/site/AntDesign.Docs/Demos/Charts/ChartsDemoData.cs b/site/AntDesign.Docs/Demos/Charts/ChartsDemoData.cs index 7f529f89..a9979a89 100644 --- a/site/AntDesign.Docs/Demos/Charts/ChartsDemoData.cs +++ b/site/AntDesign.Docs/Demos/Charts/ChartsDemoData.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Net.Http; using System.Net.Http.Json; using System.Text.Json.Serialization; diff --git a/site/AntDesign.Docs/Demos/Components/Form/objects/CustomValidator.cs b/site/AntDesign.Docs/Demos/Components/Form/objects/CustomValidator.cs index 1ac46374..f12b5ea0 100644 --- a/site/AntDesign.Docs/Demos/Components/Form/objects/CustomValidator.cs +++ b/site/AntDesign.Docs/Demos/Components/Form/objects/CustomValidator.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using AntDesign.Docs.Demos.Components.Form.demo; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; diff --git a/site/AntDesign.Docs/Demos/Components/Form/objects/Price.cs b/site/AntDesign.Docs/Demos/Components/Form/objects/Price.cs index af5af78f..b843bec6 100644 --- a/site/AntDesign.Docs/Demos/Components/Form/objects/Price.cs +++ b/site/AntDesign.Docs/Demos/Components/Form/objects/Price.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Docs +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Docs { public class Price { diff --git a/site/AntDesign.Docs/Highlight/IPrismHighlighter.cs b/site/AntDesign.Docs/Highlight/IPrismHighlighter.cs index 790c49af..b7f19615 100644 --- a/site/AntDesign.Docs/Highlight/IPrismHighlighter.cs +++ b/site/AntDesign.Docs/Highlight/IPrismHighlighter.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; namespace AntDesign.Docs.Highlight @@ -9,4 +13,4 @@ namespace AntDesign.Docs.Highlight Task HighlightAllAsync(); } -} \ No newline at end of file +} diff --git a/site/AntDesign.Docs/Highlight/PrismHighlighter.cs b/site/AntDesign.Docs/Highlight/PrismHighlighter.cs index c7ee9b4d..2b33a73b 100644 --- a/site/AntDesign.Docs/Highlight/PrismHighlighter.cs +++ b/site/AntDesign.Docs/Highlight/PrismHighlighter.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; diff --git a/site/AntDesign.Docs/IsExternalInit.cs b/site/AntDesign.Docs/IsExternalInit.cs index cf110020..5e05fc5b 100644 --- a/site/AntDesign.Docs/IsExternalInit.cs +++ b/site/AntDesign.Docs/IsExternalInit.cs @@ -1,4 +1,8 @@ -锘縩amespace System.Runtime.CompilerServices +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Runtime.CompilerServices { /// /// 瑙e喅浣跨敤record绫诲瀷鏃跺彂鐢熺殑涓嬮潰閿欒 diff --git a/site/AntDesign.Docs/Pages/Components.razor.cs b/site/AntDesign.Docs/Pages/Components.razor.cs index c1550a19..dc6ce0c8 100644 --- a/site/AntDesign.Docs/Pages/Components.razor.cs +++ b/site/AntDesign.Docs/Pages/Components.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/site/AntDesign.Docs/Pages/Docs.razor.cs b/site/AntDesign.Docs/Pages/Docs.razor.cs index 6801dfc0..8813b0dc 100644 --- a/site/AntDesign.Docs/Pages/Docs.razor.cs +++ b/site/AntDesign.Docs/Pages/Docs.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/site/AntDesign.Docs/Pages/Index.razor.cs b/site/AntDesign.Docs/Pages/Index.razor.cs index 94c00d6c..3ae26040 100644 --- a/site/AntDesign.Docs/Pages/Index.razor.cs +++ b/site/AntDesign.Docs/Pages/Index.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Threading.Tasks; using AntDesign.Docs.Services; diff --git a/site/AntDesign.Docs/ServiceCollectionExtensions.cs b/site/AntDesign.Docs/ServiceCollectionExtensions.cs index dff813df..c2be401e 100644 --- a/site/AntDesign.Docs/ServiceCollectionExtensions.cs +++ b/site/AntDesign.Docs/ServiceCollectionExtensions.cs @@ -1,9 +1,11 @@ -锘縰sing System.Reflection; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Reflection; using AntDesign.Docs.Highlight; using AntDesign.Docs.Services; using AntDesign.Extensions.Localization; -using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Localization; namespace Microsoft.Extensions.DependencyInjection { diff --git a/site/AntDesign.Docs/Services/ConcurrentCache.cs b/site/AntDesign.Docs/Services/ConcurrentCache.cs index d866bf2f..938edcac 100644 --- a/site/AntDesign.Docs/Services/ConcurrentCache.cs +++ b/site/AntDesign.Docs/Services/ConcurrentCache.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; diff --git a/site/AntDesign.Docs/Services/DemoService.cs b/site/AntDesign.Docs/Services/DemoService.cs index 9eb936ad..21b4bda5 100644 --- a/site/AntDesign.Docs/Services/DemoService.cs +++ b/site/AntDesign.Docs/Services/DemoService.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; @@ -8,7 +12,6 @@ using System.Threading.Tasks; using AntDesign.Docs.Utils; using AntDesign.Extensions.Localization; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Rendering; namespace AntDesign.Docs.Services { diff --git a/site/AntDesign.Docs/Services/IconListService.cs b/site/AntDesign.Docs/Services/IconListService.cs index f2abb501..021bf254 100644 --- a/site/AntDesign.Docs/Services/IconListService.cs +++ b/site/AntDesign.Docs/Services/IconListService.cs @@ -1,6 +1,9 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; namespace AntDesign.Docs.Services { diff --git a/site/AntDesign.Docs/Services/MoreProps.cs b/site/AntDesign.Docs/Services/MoreProps.cs index 7b7f38b6..279e81a6 100644 --- a/site/AntDesign.Docs/Services/MoreProps.cs +++ b/site/AntDesign.Docs/Services/MoreProps.cs @@ -1,6 +1,6 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Text; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Docs.Services { diff --git a/site/AntDesign.Docs/Services/Product.cs b/site/AntDesign.Docs/Services/Product.cs index c8264a4e..eed62d32 100644 --- a/site/AntDesign.Docs/Services/Product.cs +++ b/site/AntDesign.Docs/Services/Product.cs @@ -1,6 +1,6 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Text; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Docs.Services { diff --git a/site/AntDesign.Docs/Services/Recommend.cs b/site/AntDesign.Docs/Services/Recommend.cs index 776f952e..f9e1fe4e 100644 --- a/site/AntDesign.Docs/Services/Recommend.cs +++ b/site/AntDesign.Docs/Services/Recommend.cs @@ -1,6 +1,6 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Text; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace AntDesign.Docs.Services { diff --git a/site/AntDesign.Docs/Services/Sponsor.cs b/site/AntDesign.Docs/Services/Sponsor.cs index 0556a572..3451b22f 100644 --- a/site/AntDesign.Docs/Services/Sponsor.cs +++ b/site/AntDesign.Docs/Services/Sponsor.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace AntDesign.Docs.Services { public class Sponsor diff --git a/site/AntDesign.Docs/Shared/ContributorsList.razor.cs b/site/AntDesign.Docs/Shared/ContributorsList.razor.cs index 61e9e1f3..be9c39ad 100644 --- a/site/AntDesign.Docs/Shared/ContributorsList.razor.cs +++ b/site/AntDesign.Docs/Shared/ContributorsList.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs b/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs index 3222ef5d..5cd9fdb3 100644 --- a/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs +++ b/site/AntDesign.Docs/Shared/FixedWidgets.razor.cs @@ -1,8 +1,12 @@ -锘縰sing System.Threading.Tasks; -using Microsoft.AspNetCore.Components; -using Microsoft.JSInterop; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Localization; +using Microsoft.JSInterop; namespace AntDesign.Docs.Shared { diff --git a/site/AntDesign.Docs/Shared/GithubButton.razor.cs b/site/AntDesign.Docs/Shared/GithubButton.razor.cs index f17d8177..b0901eb6 100644 --- a/site/AntDesign.Docs/Shared/GithubButton.razor.cs +++ b/site/AntDesign.Docs/Shared/GithubButton.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Net.Http; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Net.Http; using System.Net.Http.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; @@ -32,7 +36,7 @@ namespace AntDesign.Docs.Shared } } - private class GithubResponse + private sealed class GithubResponse { [JsonPropertyName("stargazers_count")] public int StargazersCount { get; set; } diff --git a/site/AntDesign.Docs/Shared/HeaderMenu.razor.cs b/site/AntDesign.Docs/Shared/HeaderMenu.razor.cs index f982a6c8..9cae1eb2 100644 --- a/site/AntDesign.Docs/Shared/HeaderMenu.razor.cs +++ b/site/AntDesign.Docs/Shared/HeaderMenu.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; using System.Threading.Tasks; using AntDesign.Docs.Services; using AntDesign.Extensions.Localization; diff --git a/site/AntDesign.Docs/Shared/MainFooter.razor.cs b/site/AntDesign.Docs/Shared/MainFooter.razor.cs index aaee083f..eb3360c9 100644 --- a/site/AntDesign.Docs/Shared/MainFooter.razor.cs +++ b/site/AntDesign.Docs/Shared/MainFooter.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using AntDesign.Extensions.Localization; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Localization; diff --git a/site/AntDesign.Docs/Shared/MainLayout.razor.cs b/site/AntDesign.Docs/Shared/MainLayout.razor.cs index 68dce94a..9ea3b968 100644 --- a/site/AntDesign.Docs/Shared/MainLayout.razor.cs +++ b/site/AntDesign.Docs/Shared/MainLayout.razor.cs @@ -1,9 +1,11 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Threading.Tasks; using AntDesign.Docs.Services; using AntDesign.Extensions.Localization; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Routing; namespace AntDesign.Docs.Shared { diff --git a/site/AntDesign.Docs/Shared/MockBrowser.razor.cs b/site/AntDesign.Docs/Shared/MockBrowser.razor.cs index afa38539..c1ee3eaf 100644 --- a/site/AntDesign.Docs/Shared/MockBrowser.razor.cs +++ b/site/AntDesign.Docs/Shared/MockBrowser.razor.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Components; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Components; namespace AntDesign.Docs.Shared { diff --git a/site/AntDesign.Docs/Shared/NavMenu.razor.cs b/site/AntDesign.Docs/Shared/NavMenu.razor.cs index ae05a6b2..90a06c60 100644 --- a/site/AntDesign.Docs/Shared/NavMenu.razor.cs +++ b/site/AntDesign.Docs/Shared/NavMenu.razor.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; diff --git a/site/AntDesign.Docs/Utils/AsyncLazy.cs b/site/AntDesign.Docs/Utils/AsyncLazy.cs index 39fa1246..70ff63a1 100644 --- a/site/AntDesign.Docs/Utils/AsyncLazy.cs +++ b/site/AntDesign.Docs/Utils/AsyncLazy.cs @@ -3,10 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.CompilerServices; -using System.Text; using System.Threading.Tasks; namespace AntDesign.Docs.Utils diff --git a/site/AntDesign.Docs/Utils/CssParser.cs b/site/AntDesign.Docs/Utils/CssParser.cs index c65fee3d..43dbdcd8 100644 --- a/site/AntDesign.Docs/Utils/CssParser.cs +++ b/site/AntDesign.Docs/Utils/CssParser.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/site/AntDesign.Docs/Utils/StringExtensions.cs b/site/AntDesign.Docs/Utils/StringExtensions.cs index 98efe894..f15365ca 100644 --- a/site/AntDesign.Docs/Utils/StringExtensions.cs +++ b/site/AntDesign.Docs/Utils/StringExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign.Docs.Utils { @@ -29,4 +33,4 @@ namespace AntDesign.Docs.Utils return str.Replace(" ", " "); } } -} \ No newline at end of file +} diff --git a/site/Shared/DemoComponent.cs b/site/Shared/DemoComponent.cs index 820932f0..f7207bcd 100644 --- a/site/Shared/DemoComponent.cs +++ b/site/Shared/DemoComponent.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; namespace AntDesign.Docs { diff --git a/site/Shared/DemoMenuItem.cs b/site/Shared/DemoMenuItem.cs index 59ddd846..719d11a2 100644 --- a/site/Shared/DemoMenuItem.cs +++ b/site/Shared/DemoMenuItem.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Docs +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Docs { public class DemoMenuItem { diff --git a/site/Shared/DocsFile.cs b/site/Shared/DocsFile.cs index 6b97407f..27cab44c 100644 --- a/site/Shared/DocsFile.cs +++ b/site/Shared/DocsFile.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Docs +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Docs { public class DocsFile { diff --git a/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonLocalizerFactory.cs b/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonLocalizerFactory.cs index f51f6532..19b6e471 100644 --- a/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonLocalizerFactory.cs +++ b/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonLocalizerFactory.cs @@ -2,21 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; using Microsoft.Extensions.Localization; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace AntDesign.Extensions.Localization.EmbeddedJson { - internal class SimpleEmbeddedJsonLocalizerFactory : IStringLocalizerFactory + internal sealed class SimpleEmbeddedJsonLocalizerFactory : IStringLocalizerFactory { private readonly ILoggerFactory _loggerFactory; private readonly ConcurrentDictionary _cache = new ConcurrentDictionary(); @@ -53,18 +48,18 @@ namespace AntDesign.Extensions.Localization.EmbeddedJson return GetCachedLocalizer(_resourcesRelativePath, assembly, cultureInfo); } - protected virtual RootNamespaceAttribute? GetRootNamespaceAttribute(Assembly assembly) + private RootNamespaceAttribute? GetRootNamespaceAttribute(Assembly assembly) { return assembly.GetCustomAttribute(); } - protected virtual string GetResourcePrefix(TypeInfo typeInfo) + private string GetResourcePrefix(TypeInfo typeInfo) { return GetResourcePrefix(typeInfo, GetRootNamespace(typeInfo.Assembly), GetResourcePath(typeInfo.Assembly)); } - protected virtual string GetResourcePrefix(TypeInfo typeInfo, string? baseNamespace, string? resourcesRelativePath) + private string GetResourcePrefix(TypeInfo typeInfo, string? baseNamespace, string? resourcesRelativePath) { if (string.IsNullOrEmpty(resourcesRelativePath)) { diff --git a/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonStringLocalizer.cs b/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonStringLocalizer.cs index fc82ab89..69e23fb6 100644 --- a/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonStringLocalizer.cs +++ b/src/AntDesign.Extensions.Localization/EmbeddedJson/SimpleEmbeddedJsonStringLocalizer.cs @@ -2,24 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Globalization; -using System.IO; -using System.Linq; using System.Reflection; -using System.Text; -using System.Text.Json; -using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace AntDesign.Extensions.Localization.EmbeddedJson { - internal class SimpleEmbeddedJsonStringLocalizer : IStringLocalizer + internal sealed class SimpleEmbeddedJsonStringLocalizer : IStringLocalizer { private readonly Lazy> _resources; private readonly Lazy> _fallbackResources; diff --git a/src/AntDesign.Extensions.Localization/ILocalizationService.cs b/src/AntDesign.Extensions.Localization/ILocalizationService.cs index e698b031..7dbfa4ed 100644 --- a/src/AntDesign.Extensions.Localization/ILocalizationService.cs +++ b/src/AntDesign.Extensions.Localization/ILocalizationService.cs @@ -1,4 +1,7 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Globalization; namespace AntDesign.Extensions.Localization diff --git a/src/AntDesign.Extensions.Localization/InteractiveStringLocalizer.cs b/src/AntDesign.Extensions.Localization/InteractiveStringLocalizer.cs index 2fd52f0a..caf9e143 100644 --- a/src/AntDesign.Extensions.Localization/InteractiveStringLocalizer.cs +++ b/src/AntDesign.Extensions.Localization/InteractiveStringLocalizer.cs @@ -2,18 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.Extensions.Localization; using Microsoft.Extensions.Options; namespace AntDesign.Extensions.Localization { - internal class InteractiveStringLocalizer(IStringLocalizerFactory factory, ILocalizationService localizationService) : InteractiveStringLocalizer(factory, localizationService), + internal sealed class InteractiveStringLocalizer(IStringLocalizerFactory factory, ILocalizationService localizationService) : InteractiveStringLocalizer(factory, localizationService), IStringLocalizer, IStringLocalizer { diff --git a/src/AntDesign.Extensions.Localization/LocalizationService.cs b/src/AntDesign.Extensions.Localization/LocalizationService.cs index 7f67918d..10a21b8b 100644 --- a/src/AntDesign.Extensions.Localization/LocalizationService.cs +++ b/src/AntDesign.Extensions.Localization/LocalizationService.cs @@ -1,14 +1,12 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Globalization; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text.RegularExpressions; -using Microsoft.Extensions.Localization; namespace AntDesign.Extensions.Localization { - internal class LocalizationService : ILocalizationService + internal sealed class LocalizationService : ILocalizationService { private CultureInfo? _currentCulture; diff --git a/src/AntDesign.Extensions.Localization/ServiceCollectionExtionsions.cs b/src/AntDesign.Extensions.Localization/ServiceCollectionExtionsions.cs index 1ae65374..a8f5f419 100644 --- a/src/AntDesign.Extensions.Localization/ServiceCollectionExtionsions.cs +++ b/src/AntDesign.Extensions.Localization/ServiceCollectionExtionsions.cs @@ -2,12 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; using AntDesign.Extensions.Localization; using AntDesign.Extensions.Localization.EmbeddedJson; using Microsoft.Extensions.DependencyInjection.Extensions; diff --git a/src/AntDesign.Extensions.Localization/SimpleStringLocalizerOptions.cs b/src/AntDesign.Extensions.Localization/SimpleStringLocalizerOptions.cs index 7d3a008a..e2837e4f 100644 --- a/src/AntDesign.Extensions.Localization/SimpleStringLocalizerOptions.cs +++ b/src/AntDesign.Extensions.Localization/SimpleStringLocalizerOptions.cs @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.Reflection; -using System.Text; using System.Text.Json; using System.Text.RegularExpressions; using Microsoft.Extensions.Localization; diff --git a/tests/AntDesign.TestApp/Client/Data/WeatherForecast.cs b/tests/AntDesign.TestApp/Client/Data/WeatherForecast.cs index de900011..04453f91 100644 --- a/tests/AntDesign.TestApp/Client/Data/WeatherForecast.cs +++ b/tests/AntDesign.TestApp/Client/Data/WeatherForecast.cs @@ -1,6 +1,8 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Text; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; namespace AntDesign.TestApp.Client.Data { diff --git a/tests/AntDesign.TestApp/Client/Program.cs b/tests/AntDesign.TestApp/Client/Program.cs index a1d1add8..2c3d8e07 100644 --- a/tests/AntDesign.TestApp/Client/Program.cs +++ b/tests/AntDesign.TestApp/Client/Program.cs @@ -1,13 +1,13 @@ -锘縰sing Microsoft.AspNetCore.Components.WebAssembly.Authentication; -using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; -using System.Collections.Generic; using System.Net.Http; -using System.Text; using System.Threading.Tasks; +using Microsoft.AspNetCore.Components.WebAssembly.Authentication; +using Microsoft.AspNetCore.Components.WebAssembly.Hosting; +using Microsoft.Extensions.DependencyInjection; namespace AntDesign.TestApp.Client { diff --git a/tests/AntDesign.TestApp/Server/Controllers/OidcConfigurationController.cs b/tests/AntDesign.TestApp/Server/Controllers/OidcConfigurationController.cs index 9a13682a..cb9e1cd2 100644 --- a/tests/AntDesign.TestApp/Server/Controllers/OidcConfigurationController.cs +++ b/tests/AntDesign.TestApp/Server/Controllers/OidcConfigurationController.cs @@ -1,4 +1,8 @@ -锘縰sing Microsoft.AspNetCore.ApiAuthorization.IdentityServer; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; diff --git a/tests/AntDesign.TestApp/Server/Controllers/WeatherForecastController.cs b/tests/AntDesign.TestApp/Server/Controllers/WeatherForecastController.cs index 49d88553..b798d98f 100644 --- a/tests/AntDesign.TestApp/Server/Controllers/WeatherForecastController.cs +++ b/tests/AntDesign.TestApp/Server/Controllers/WeatherForecastController.cs @@ -1,11 +1,14 @@ -锘縰sing AntDesign.TestApp.Client.Data; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; +using AntDesign.TestApp.Client.Data; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; namespace AntDesign.TestApp.Server.Controllers { diff --git a/tests/AntDesign.TestApp/Server/Data/ApplicationDbContext.cs b/tests/AntDesign.TestApp/Server/Data/ApplicationDbContext.cs index a199eff6..2fa60eb5 100644 --- a/tests/AntDesign.TestApp/Server/Data/ApplicationDbContext.cs +++ b/tests/AntDesign.TestApp/Server/Data/ApplicationDbContext.cs @@ -1,12 +1,12 @@ -锘縰sing AntDesign.TestApp.Server.Models; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using AntDesign.TestApp.Server.Models; using Duende.IdentityServer.EntityFramework.Options; using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace AntDesign.TestApp.Server.Data { diff --git a/tests/AntDesign.TestApp/Server/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/tests/AntDesign.TestApp/Server/Data/Migrations/00000000000000_CreateIdentitySchema.cs index 9a48a10a..7d05de28 100644 --- a/tests/AntDesign.TestApp/Server/Data/Migrations/00000000000000_CreateIdentitySchema.cs +++ b/tests/AntDesign.TestApp/Server/Data/Migrations/00000000000000_CreateIdentitySchema.cs @@ -1,5 +1,9 @@ -锘縰sing Microsoft.EntityFrameworkCore.Migrations; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System; +using Microsoft.EntityFrameworkCore.Migrations; namespace AntDesign.TestApp.Server.Data.Migrations { diff --git a/tests/AntDesign.TestApp/Server/Models/ApplicationUser.cs b/tests/AntDesign.TestApp/Server/Models/ApplicationUser.cs index a15c47f1..d7b2f590 100644 --- a/tests/AntDesign.TestApp/Server/Models/ApplicationUser.cs +++ b/tests/AntDesign.TestApp/Server/Models/ApplicationUser.cs @@ -1,8 +1,8 @@ -锘縰sing Microsoft.AspNetCore.Identity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Identity; namespace AntDesign.TestApp.Server.Models { diff --git a/tests/AntDesign.TestApp/Server/Pages/Error.cshtml.cs b/tests/AntDesign.TestApp/Server/Pages/Error.cshtml.cs index a9960905..a2d31ad2 100644 --- a/tests/AntDesign.TestApp/Server/Pages/Error.cshtml.cs +++ b/tests/AntDesign.TestApp/Server/Pages/Error.cshtml.cs @@ -1,11 +1,11 @@ -锘縰sing Microsoft.AspNetCore.Mvc; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; namespace AntDesign.TestApp.Server.Pages { diff --git a/tests/AntDesign.TestApp/Server/Program.cs b/tests/AntDesign.TestApp/Server/Program.cs index 7811c8ad..55977d03 100644 --- a/tests/AntDesign.TestApp/Server/Program.cs +++ b/tests/AntDesign.TestApp/Server/Program.cs @@ -1,11 +1,9 @@ -锘縰sing Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace AntDesign.TestApp.Server { diff --git a/tests/AntDesign.TestApp/Server/Startup.cs b/tests/AntDesign.TestApp/Server/Startup.cs index d636ba4b..d40af40c 100644 --- a/tests/AntDesign.TestApp/Server/Startup.cs +++ b/tests/AntDesign.TestApp/Server/Startup.cs @@ -1,15 +1,16 @@ -锘縰sing AntDesign.TestApp.Server.Data; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using AntDesign.TestApp.Server.Data; using AntDesign.TestApp.Server.Models; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.ResponseCompression; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using System.Linq; namespace AntDesign.TestApp.Server { diff --git a/tests/AntDesign.TestKit/AntDesignTestBase.cs b/tests/AntDesign.TestKit/AntDesignTestBase.cs index 88e6fb38..5edc4e8c 100644 --- a/tests/AntDesign.TestKit/AntDesignTestBase.cs +++ b/tests/AntDesign.TestKit/AntDesignTestBase.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Globalization; using System.Threading.Tasks; using AntDesign.JsInterop; diff --git a/tests/AntDesign.TestKit/Properties/AssemblyInfo.cs b/tests/AntDesign.TestKit/Properties/AssemblyInfo.cs index 87ebd04c..a92f6470 100644 --- a/tests/AntDesign.TestKit/Properties/AssemblyInfo.cs +++ b/tests/AntDesign.TestKit/Properties/AssemblyInfo.cs @@ -1,3 +1,7 @@ -锘縰sing System.Diagnostics.CodeAnalysis; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics.CodeAnalysis; [assembly: ExcludeFromCodeCoverage] diff --git a/tests/AntDesign.TestKit/RecordedTestExtensions.cs b/tests/AntDesign.TestKit/RecordedTestExtensions.cs index ec1da84b..c4ffef1e 100644 --- a/tests/AntDesign.TestKit/RecordedTestExtensions.cs +++ b/tests/AntDesign.TestKit/RecordedTestExtensions.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics; using System.IO; using System.Linq; diff --git a/tests/AntDesign.TestKit/TestDomEventListerner.cs b/tests/AntDesign.TestKit/TestDomEventListerner.cs index 73538897..0e3bb625 100644 --- a/tests/AntDesign.TestKit/TestDomEventListerner.cs +++ b/tests/AntDesign.TestKit/TestDomEventListerner.cs @@ -1,6 +1,9 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; -using System.Text; using System.Text.Json; using System.Threading.Tasks; using AntDesign.Core.JsInterop.ObservableApi; @@ -9,7 +12,7 @@ using Microsoft.AspNetCore.Components; namespace AntDesign.Tests { - class TestDomEventListerner : IDomEventListener + internal sealed class TestDomEventListerner : IDomEventListener { public void AddEventListenerToFirstChild(object dom, string eventName, Action callback, bool preventDefault = false) { diff --git a/tests/AntDesign.TestKit/TestDomEventService.cs b/tests/AntDesign.TestKit/TestDomEventService.cs index d194f9a9..3da81ab2 100644 --- a/tests/AntDesign.TestKit/TestDomEventService.cs +++ b/tests/AntDesign.TestKit/TestDomEventService.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using AntDesign.JsInterop; using Microsoft.JSInterop; using Moq; diff --git a/tests/AntDesign.TestKit/TestNavigationManager.cs b/tests/AntDesign.TestKit/TestNavigationManager.cs index b3312c8b..b698ee9e 100644 --- a/tests/AntDesign.TestKit/TestNavigationManager.cs +++ b/tests/AntDesign.TestKit/TestNavigationManager.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Microsoft.AspNetCore.Components; namespace AntDesign.Tests @@ -7,7 +11,7 @@ namespace AntDesign.Tests public class TestNavigationManager : NavigationManager { public delegate void NavigatedCallback(string uri, bool forceLoad); - + public TestNavigationManager() { Initialize("http://localhost/", "http://localhost/"); diff --git a/tests/AntDesign.Tests.Js/Program.cs b/tests/AntDesign.Tests.Js/Program.cs index 3913c274..78772788 100644 --- a/tests/AntDesign.Tests.Js/Program.cs +++ b/tests/AntDesign.Tests.Js/Program.cs @@ -1,4 +1,8 @@ -锘縩amespace AntDesign.Tests.Js +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace AntDesign.Tests.Js { /// /// Dummy class, js tests are forced to be console app. Without it, Msbuild complains the lack of @@ -6,7 +10,7 @@ /// public static class Program { - static void Main() + public static void Main() { } } diff --git a/tests/AntDesign.Tests/Alert/AlertTests.cs b/tests/AntDesign.Tests/Alert/AlertTests.cs index 3dfb3820..503b071c 100644 --- a/tests/AntDesign.Tests/Alert/AlertTests.cs +++ b/tests/AntDesign.Tests/Alert/AlertTests.cs @@ -1,4 +1,8 @@ -锘縰sing System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Threading.Tasks; using AntDesign.JsInterop; using Bunit; using FluentAssertions; diff --git a/tests/AntDesign.Tests/AutoComplete/AutoCompleteTests.cs b/tests/AntDesign.Tests/AutoComplete/AutoCompleteTests.cs index 94ed3c5e..f9274f18 100644 --- a/tests/AntDesign.Tests/AutoComplete/AutoCompleteTests.cs +++ b/tests/AntDesign.Tests/AutoComplete/AutoCompleteTests.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using AntDesign.JsInterop; using Bunit; using FluentAssertions; diff --git a/tests/AntDesign.Tests/Avatar/AvatarGroupTests.cs b/tests/AntDesign.Tests/Avatar/AvatarGroupTests.cs index 6d87315f..e635dabe 100644 --- a/tests/AntDesign.Tests/Avatar/AvatarGroupTests.cs +++ b/tests/AntDesign.Tests/Avatar/AvatarGroupTests.cs @@ -1,12 +1,11 @@ -锘縰sing System; -using System.Linq; -using System.Threading.Tasks; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using AntDesign.JsInterop; using Bunit; using FluentAssertions; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; -using Microsoft.Extensions.Options; using Xunit; namespace AntDesign.Tests.Avatar diff --git a/tests/AntDesign.Tests/Avatar/AvatarTests.cs b/tests/AntDesign.Tests/Avatar/AvatarTests.cs index 8df0f098..594a7f91 100644 --- a/tests/AntDesign.Tests/Avatar/AvatarTests.cs +++ b/tests/AntDesign.Tests/Avatar/AvatarTests.cs @@ -1,4 +1,8 @@ -锘縰sing System.Globalization; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Globalization; using AntDesign.JsInterop; using Bunit; using FluentAssertions; @@ -111,7 +115,7 @@ namespace AntDesign.Tests.Avatar { OffsetWidth = textWidth }); - + JSInterop .Setup("AntDesign.interop.domInfoHelper.getBoundingClientRect", _ => true) .SetResult(new DomRect diff --git a/tests/AntDesign.Tests/Breadcrumb/BreadcrumbItemTests.cs b/tests/AntDesign.Tests/Breadcrumb/BreadcrumbItemTests.cs index 51824fc9..87873591 100644 --- a/tests/AntDesign.Tests/Breadcrumb/BreadcrumbItemTests.cs +++ b/tests/AntDesign.Tests/Breadcrumb/BreadcrumbItemTests.cs @@ -1,6 +1,9 @@ -锘縰sing Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Bunit; using FluentAssertions; -using Microsoft.AspNetCore.Components.Web; using Xunit; namespace AntDesign.Tests.Breadcrumb diff --git a/tests/AntDesign.Tests/Breadcrumb/BreadcrumbTests.cs b/tests/AntDesign.Tests/Breadcrumb/BreadcrumbTests.cs index 5d4e257a..3c44c24e 100644 --- a/tests/AntDesign.Tests/Breadcrumb/BreadcrumbTests.cs +++ b/tests/AntDesign.Tests/Breadcrumb/BreadcrumbTests.cs @@ -1,8 +1,8 @@ -锘縰sing System.Threading.Tasks; -using AntDesign.JsInterop; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Bunit; -using FluentAssertions; -using Microsoft.AspNetCore.Components; using Xunit; namespace AntDesign.Tests.Breadcrumb diff --git a/tests/AntDesign.Tests/Comment/CommentTests.cs b/tests/AntDesign.Tests/Comment/CommentTests.cs index d45c7ace..20a2daeb 100644 --- a/tests/AntDesign.Tests/Comment/CommentTests.cs +++ b/tests/AntDesign.Tests/Comment/CommentTests.cs @@ -1,4 +1,8 @@ -锘縰sing Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Bunit; using Microsoft.AspNetCore.Components; using Xunit; diff --git a/tests/AntDesign.Tests/Core/CssSizeLengthTests.cs b/tests/AntDesign.Tests/Core/CssSizeLengthTests.cs index 57ef3778..03564753 100644 --- a/tests/AntDesign.Tests/Core/CssSizeLengthTests.cs +++ b/tests/AntDesign.Tests/Core/CssSizeLengthTests.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using Xunit; diff --git a/tests/AntDesign.Tests/Core/Extensions/ArrayExtensionsTests.cs b/tests/AntDesign.Tests/Core/Extensions/ArrayExtensionsTests.cs index b21e4aef..ed09312d 100644 --- a/tests/AntDesign.Tests/Core/Extensions/ArrayExtensionsTests.cs +++ b/tests/AntDesign.Tests/Core/Extensions/ArrayExtensionsTests.cs @@ -2,11 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using AntDesign.Core.Extensions; using Xunit; diff --git a/tests/AntDesign.Tests/Core/FormatterTests.cs b/tests/AntDesign.Tests/Core/FormatterTests.cs index 044b6f3e..0287654d 100644 --- a/tests/AntDesign.Tests/Core/FormatterTests.cs +++ b/tests/AntDesign.Tests/Core/FormatterTests.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using AntDesign.Core.Helpers; using Xunit; diff --git a/tests/AntDesign.Tests/Core/Helpers/DateHelperTests.cs b/tests/AntDesign.Tests/Core/Helpers/DateHelperTests.cs index be6bf95a..d0b5b0ff 100644 --- a/tests/AntDesign.Tests/Core/Helpers/DateHelperTests.cs +++ b/tests/AntDesign.Tests/Core/Helpers/DateHelperTests.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using Xunit; diff --git a/tests/AntDesign.Tests/DatePicker/DatePickerKeyboardTestData.cs b/tests/AntDesign.Tests/DatePicker/DatePickerKeyboardTestData.cs index 8298e818..1dd4faca 100644 --- a/tests/AntDesign.Tests/DatePicker/DatePickerKeyboardTestData.cs +++ b/tests/AntDesign.Tests/DatePicker/DatePickerKeyboardTestData.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; namespace AntDesign.Tests.DatePicker; diff --git a/tests/AntDesign.Tests/DatePicker/DatePickerTestData.cs b/tests/AntDesign.Tests/DatePicker/DatePickerTestData.cs index c9a16734..8610afd8 100644 --- a/tests/AntDesign.Tests/DatePicker/DatePickerTestData.cs +++ b/tests/AntDesign.Tests/DatePicker/DatePickerTestData.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; namespace AntDesign.Tests.DatePicker; diff --git a/tests/AntDesign.Tests/DatePicker/RangePickerDefaultsTests.cs b/tests/AntDesign.Tests/DatePicker/RangePickerDefaultsTests.cs index 61d9b31d..66672dc5 100644 --- a/tests/AntDesign.Tests/DatePicker/RangePickerDefaultsTests.cs +++ b/tests/AntDesign.Tests/DatePicker/RangePickerDefaultsTests.cs @@ -1,7 +1,10 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using Xunit; -using Xunit.Sdk; namespace AntDesign.Tests.DatePicker { diff --git a/tests/AntDesign.Tests/DatePicker/RangePickerTestData.cs b/tests/AntDesign.Tests/DatePicker/RangePickerTestData.cs index 68097f95..ada75bc0 100644 --- a/tests/AntDesign.Tests/DatePicker/RangePickerTestData.cs +++ b/tests/AntDesign.Tests/DatePicker/RangePickerTestData.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; namespace AntDesign.Tests.DatePicker; diff --git a/tests/AntDesign.Tests/DatePicker/locale/FormatAnalyzerTests.cs b/tests/AntDesign.Tests/DatePicker/locale/FormatAnalyzerTests.cs index 373f33ac..35c270c7 100644 --- a/tests/AntDesign.Tests/DatePicker/locale/FormatAnalyzerTests.cs +++ b/tests/AntDesign.Tests/DatePicker/locale/FormatAnalyzerTests.cs @@ -1,4 +1,8 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Globalization; using AntDesign.Datepicker.Locale; diff --git a/tests/AntDesign.Tests/Form/FormItemTests.cs b/tests/AntDesign.Tests/Form/FormItemTests.cs index e8e61386..89bbbcf1 100644 --- a/tests/AntDesign.Tests/Form/FormItemTests.cs +++ b/tests/AntDesign.Tests/Form/FormItemTests.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using AntDesign.JsInterop; using Bunit; using Microsoft.AspNetCore.Components; diff --git a/tests/AntDesign.Tests/Form/Validation/FormValidateHelperTest.cs b/tests/AntDesign.Tests/Form/Validation/FormValidateHelperTest.cs index fbd39645..6375c2d6 100644 --- a/tests/AntDesign.Tests/Form/Validation/FormValidateHelperTest.cs +++ b/tests/AntDesign.Tests/Form/Validation/FormValidateHelperTest.cs @@ -1,10 +1,12 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Text.Json; -using AntDesign; -using AntDesign.Internal; using AntDesign.Internal.Form.Validate; using Xunit; @@ -482,7 +484,7 @@ namespace AntDesign.Tests.Form.Validation } } -class CustomValidationAttribute : ValidationAttribute +internal sealed class CustomValidationAttribute : ValidationAttribute { public int Max { get; set; } public CustomValidationAttribute(int max) : base("The field {0} should not max than {1}.") @@ -511,7 +513,7 @@ class CustomValidationAttribute : ValidationAttribute } } -class FieldsTestObj +internal sealed class FieldsTestObj { public string _fieldName = "one"; public int _fieldAge = 10; @@ -519,7 +521,7 @@ class FieldsTestObj public int PropertyAge { get; set; } = 10; } -enum FormValidateHelperEnum +internal enum FormValidateHelperEnum { None, } diff --git a/tests/AntDesign.Tests/Icon/IconServiceTests.cs b/tests/AntDesign.Tests/Icon/IconServiceTests.cs index 3d4c7c15..de677784 100644 --- a/tests/AntDesign.Tests/Icon/IconServiceTests.cs +++ b/tests/AntDesign.Tests/Icon/IconServiceTests.cs @@ -1,4 +1,8 @@ -锘縰sing System.Collections.Generic; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Collections.Generic; using System.Linq; using Bunit; using FluentAssertions; diff --git a/tests/AntDesign.Tests/Properties/AssemblyInfo.cs b/tests/AntDesign.Tests/Properties/AssemblyInfo.cs index 87ebd04c..a92f6470 100644 --- a/tests/AntDesign.Tests/Properties/AssemblyInfo.cs +++ b/tests/AntDesign.Tests/Properties/AssemblyInfo.cs @@ -1,3 +1,7 @@ -锘縰sing System.Diagnostics.CodeAnalysis; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics.CodeAnalysis; [assembly: ExcludeFromCodeCoverage] diff --git a/tests/AntDesign.Tests/Slider/SliderTests.cs b/tests/AntDesign.Tests/Slider/SliderTests.cs index 9ec3bbd3..5c975b1b 100644 --- a/tests/AntDesign.Tests/Slider/SliderTests.cs +++ b/tests/AntDesign.Tests/Slider/SliderTests.cs @@ -1,10 +1,13 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Bunit; using FluentAssertions; -using Moq; using Xunit; namespace AntDesign.Tests.Slider diff --git a/tests/AntDesign.Tests/badge/RibbonTests.cs b/tests/AntDesign.Tests/badge/RibbonTests.cs index d6a722c8..489a97e6 100644 --- a/tests/AntDesign.Tests/badge/RibbonTests.cs +++ b/tests/AntDesign.Tests/badge/RibbonTests.cs @@ -1,4 +1,8 @@ -锘縰sing Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Bunit; using Microsoft.AspNetCore.Components; using Xunit; diff --git a/tests/AntDesign.Tests/button/ButtonTests.cs b/tests/AntDesign.Tests/button/ButtonTests.cs index eef468d8..ea8f6481 100644 --- a/tests/AntDesign.Tests/button/ButtonTests.cs +++ b/tests/AntDesign.Tests/button/ButtonTests.cs @@ -1,4 +1,8 @@ -锘縰sing Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Bunit; using Xunit; namespace AntDesign.Tests.Button @@ -31,7 +35,7 @@ namespace AntDesign.Tests.Button var cut = Context.RenderComponent(p => { p.AddChildContent("Save"); - p.Add(x=>x.AriaLabel, "Save"); + p.Add(x => x.AriaLabel, "Save"); }); cut.MarkupMatches(@" diff --git a/tests/AntDesign.Tests/grid/ColTests.cs b/tests/AntDesign.Tests/grid/ColTests.cs index e1783bf5..da78b712 100644 --- a/tests/AntDesign.Tests/grid/ColTests.cs +++ b/tests/AntDesign.Tests/grid/ColTests.cs @@ -1,4 +1,8 @@ -锘縰sing Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Bunit; using Xunit; namespace AntDesign.Tests.Grid diff --git a/tests/AntDesign.Tests/overlay/OverlayTriggerTests.cs b/tests/AntDesign.Tests/overlay/OverlayTriggerTests.cs index bc7c9af1..e60455e0 100644 --- a/tests/AntDesign.Tests/overlay/OverlayTriggerTests.cs +++ b/tests/AntDesign.Tests/overlay/OverlayTriggerTests.cs @@ -1,4 +1,7 @@ -using Bunit; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using Xunit; namespace AntDesign.Tests.Overlay diff --git a/tests/AntDesign.Tests/table/TableTests.cs b/tests/AntDesign.Tests/table/TableTests.cs index 9c321f62..4b2f3052 100644 --- a/tests/AntDesign.Tests/table/TableTests.cs +++ b/tests/AntDesign.Tests/table/TableTests.cs @@ -1,14 +1,16 @@ -锘縰sing System; +锘// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Collections.Generic; using Bunit; -using Microsoft.AspNetCore.Components; -using Xunit; namespace AntDesign.Tests.Table { public class TableTests : AntDesignTestBase { - private class Person + private sealed class Person { public int Id { get; set; } public string Name { get; set; } = default!; diff --git a/tests/AntDesign.Tests/tabs/TabsTests.cs b/tests/AntDesign.Tests/tabs/TabsTests.cs index 20546743..666ac7cb 100644 --- a/tests/AntDesign.Tests/tabs/TabsTests.cs +++ b/tests/AntDesign.Tests/tabs/TabsTests.cs @@ -23,7 +23,8 @@ namespace AntDesign.Tests.Tabs jsRuntime.Setup(u => u.InvokeAsync(JSInteropConstants.GetDomInfo, It.IsAny())) .ReturnsAsync(new HtmlElement()); jsRuntime.Setup(u => u.InvokeAsync>(JSInteropConstants.GetElementsDomInfo, It.IsAny())) - .ReturnsAsync(new Dictionary() { + .ReturnsAsync(new Dictionary() + { ["1-nav-list"] = new HtmlElement() { }, ["1-nav-warpper"] = new HtmlElement() { }, ["rc-tabs-2-tab-2"] = new HtmlElement() { },