Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end_of_line = crlf
# Organize usings
dotnet_separate_import_directive_groups = false:error
dotnet_sort_system_directives_first = true:error
file_header_template = ------------------------------------------------------------------------\nMIT License - Copyright (c) Microsoft Corporation. All rights reserved.\n------------------------------------------------------------------------
file_header_template = ------------------------------------------------------------------------\nThis file is licensed to you under the MIT License.\n------------------------------------------------------------------------

# Don't use this. qualifier
dotnet_style_qualification_for_event = false:error
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using FluentUI.Demo.Shared;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/DocGenerator/CodeCommentsGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Server/Pages/Error.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using FluentUI.Demo.Shared;
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Shared/App.razor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared;
Expand Down
9 changes: 7 additions & 2 deletions examples/Demo/Shared/Components/ApiDocumentation.razor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Microsoft.AspNetCore.Components;
Expand Down Expand Up @@ -34,7 +38,7 @@ private class MemberDescription

/// <summary>
/// It Component is a generic type, a generic type argument needs to be provided
/// so an instance of the type can be created.
/// so an instance of the type can be created.
/// This is needed to get and display any default values
/// Default for this parameter is 'typeof(string)'
/// </summary>
Expand Down Expand Up @@ -95,7 +99,8 @@ private IEnumerable<MemberDescription> GetMembers(MemberTypes type)
}

return obj?.GetType().GetProperty(propertyName)?.GetValue(obj);
};
}
;

var allProperties = Component.GetProperties().Select(i => (MemberInfo)i);
var allMethods = Component.GetMethods().Where(i => !i.IsSpecialName).Select(i => (MemberInfo)i);
Expand Down
6 changes: 3 additions & 3 deletions examples/Demo/Shared/Components/CodeSnippet.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// --------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// --------------------------------------------------------------
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.AspNetCore.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.FluentUI.AspNetCore.Components.Utilities;
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Shared/Components/Cookies/CookieState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared.Components.Cookies;
Expand Down
10 changes: 7 additions & 3 deletions examples/Demo/Shared/Components/DemoSection.razor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using System.Reflection.Metadata;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Components;
Expand Down Expand Up @@ -30,7 +34,7 @@ public partial class DemoSection : ComponentBase
public RenderFragment? Description { get; set; }

/// <summary>
/// Gets or sets the component for which the example will be shown. Enter the type (typeof(...)) _name
/// Gets or sets the component for which the example will be shown. Enter the type (typeof(...)) _name
/// </summary>
[Parameter, EditorRequired]
public Type Component { get; set; } = default!;
Expand All @@ -42,14 +46,14 @@ public partial class DemoSection : ComponentBase
public Dictionary<string, object>? ComponentParameters { get; set; }

/// <summary>
/// Any collocated isolated .cs, .css or .js files (enter the extensions only) that need to be shown in a tab and as a download.
/// Any collocated isolated .cs, .css or .js files (enter the extensions only) that need to be shown in a tab and as a download.
/// Example: @(new[] { "css", "js", "abc.cs" })
/// </summary>
[Parameter]
public string[]? CollocatedFiles { get; set; }

/// <summary>
/// Any additional files that need to be shown in a tab and as a download.
/// Any additional files that need to be shown in a tab and as a download.
/// Example: @(new[] { "abc.cs", "def.js" })
/// </summary>
[Parameter]
Expand Down
8 changes: 6 additions & 2 deletions examples/Demo/Shared/Components/MarkdownSection.razor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Markdig;
using Microsoft.AspNetCore.Components;
using Microsoft.FluentUI.AspNetCore.Components;
Expand All @@ -19,7 +23,7 @@ public partial class MarkdownSection : FluentComponentBase
private IStaticAssetService StaticAssetService { get; set; } = default!;

/// <summary>
/// Gets or sets the Markdown content
/// Gets or sets the Markdown content
/// </summary>
[Parameter]
public string? Content
Expand Down Expand Up @@ -82,7 +86,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
HtmlContent = await MarkdownToMarkupStringAsync();
StateHasChanged();

// notify that content converted from markdown
// notify that content converted from markdown
if (OnContentConverted.HasDelegate)
{
await OnContentConverted.InvokeAsync();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Markdig.Renderers;
using Markdig;
using Markdig.Renderers.Html;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Markdig.Extensions.GenericAttributes;
Expand Down Expand Up @@ -27,7 +27,7 @@ public MarkdownSectionPreCodeRenderer(MarkdownSectionPreCodeRendererOptions? opt
public bool OutputAttributesOnPre { get; set; }

/// <summary>
/// Gets a map of fenced code block infos that should be rendered as div blocks instead of pre/code blocks.
/// Gets a map of fenced code block info that should be rendered as div blocks instead of pre/code blocks.
/// </summary>
public HashSet<string> BlocksAsDiv => _blocksAsDiv ??= new HashSet<string>(StringComparer.OrdinalIgnoreCase);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared.Components;

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Shared/Components/SiteSettings.razor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.FluentUI.AspNetCore.Components;

namespace FluentUI.Demo.Shared.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using FluentUI.Demo.Shared.Components.Cookies;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Shared/Components/TableOfContents.razor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Routing;
using Microsoft.FluentUI.AspNetCore.Components;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Shared/DemoLogger.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared;

public delegate void OnLogHandler(string text);
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Shared/Infrastructure/AppVersionService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using System.Reflection;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Shared/Infrastructure/CacheStorageAccessor.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using FluentUI.Demo.Shared.Infrastructure;
using Microsoft.FluentUI.AspNetCore.Components.Utilities;
using Microsoft.JSInterop;
Expand Down
6 changes: 5 additions & 1 deletion examples/Demo/Shared/Infrastructure/DemoIcons.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.FluentUI.AspNetCore.Components;

namespace FluentUI.Demo.Shared;
Expand All @@ -7,7 +11,7 @@ internal static class DemoIcons
internal static class Size20
{
// The official SVGs from GitHub have a viewbox of 96x96, so we need to scale them down to 20x20 and center them within the 24x24 box to make them match the
// other icons we're using. We also need to remove the fill attribute from the SVGs so that we can color them with CSS.
// other icons we're using. We also need to remove the fill attribute from the SVGs so that we can color them with CSS.
internal sealed class GitHub : Icon { public GitHub() : base("GitHub", IconVariant.Regular, IconSize.Size20, @"<path fill-rule=""evenodd"" clip-rule=""evenodd"" d=""M10.178 0C4.55 0 0 4.583 0 10.254c0 4.533 2.915 8.369 6.959 9.727 0.506 0.102 0.691 -0.221 0.691 -0.492 0 -0.238 -0.017 -1.053 -0.017 -1.901 -2.831 0.611 -3.421 -1.222 -3.421 -1.222 -0.455 -1.188 -1.129 -1.494 -1.129 -1.494 -0.927 -0.628 0.068 -0.628 0.068 -0.628 1.028 0.068 1.567 1.053 1.567 1.053 0.91 1.562 2.376 1.12 2.966 0.849 0.084 -0.662 0.354 -1.12 0.64 -1.375 -2.258 -0.238 -4.634 -1.12 -4.634 -5.059 0 -1.12 0.404 -2.037 1.045 -2.75 -0.101 -0.255 -0.455 -1.307 0.101 -2.716 0 0 0.859 -0.272 2.797 1.053a9.786 9.786 0 0 1 2.545 -0.34c0.859 0 1.735 0.119 2.544 0.34 1.938 -1.324 2.797 -1.053 2.797 -1.053 0.556 1.409 0.202 2.462 0.101 2.716 0.657 0.713 1.045 1.63 1.045 2.75 0 3.939 -2.376 4.804 -4.651 5.059 0.371 0.323 0.691 0.934 0.691 1.901 0 1.375 -0.017 2.479 -0.017 2.818 0 0.272 0.185 0.594 0.691 0.493 4.044 -1.358 6.959 -5.195 6.959 -9.727C20.356 4.583 15.789 0 10.178 0z""/>") { } }
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.AspNetCore.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared.Infrastructure;
Expand Down
4 changes: 4 additions & 0 deletions examples/Demo/Shared/Infrastructure/IStaticAssetService.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// ------------------------------------------------------------------------
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

namespace FluentUI.Demo.Shared;

public interface IStaticAssetService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using Microsoft.AspNetCore.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------
// MIT License - Copyright (c) Microsoft Corporation. All rights reserved.
// This file is licensed to you under the MIT License.
// ------------------------------------------------------------------------

using FluentUI.Demo.Shared.Components.Cookies;
Expand Down
Loading
Loading