Skip to content

[dev-v5] Add Aside panel in the Demo website - #2603

Merged
Denis Voituron (dvoituron) merged 21 commits into
dev-v5from
users/dvoituron/dev-v5/aside
Sep 2, 2024
Merged

Denis Voituron (dvoituron) merged 21 commits into
dev-v5from
users/dvoituron/dev-v5/aside

Conversation

@dvoituron

@dvoituron Denis Voituron (dvoituron) commented Aug 30, 2024 •

Copy link
Copy Markdown
Collaborator

[dev-v5] Add Aside panel in the Demo website

Extract the HTML Headers to have data to include in the Aside Panel (right panel)

Aside page content can be customized using the DemoAsidePanel.razor file. For example, to display different content on the home page and other component pages.

@switch (Page)
{
    // Home page
    case "":
        <MarkdownViewer Route="file:HomeAside" />
        break;

    // All documentation pages
    default:
        if (Headers != null && Headers.Any(i => i.Level > 1))
        {
            <div class="demo-aside">
                <h2>On this page</h2>
                @GetHtmlHeaders()
            </div>
        }
        break;
}

Component Doc

{DAFE77CA-A702-4B20-8E37-87B6B9BE9D1D}

Home Page

{3771C43A-8FC0-4B42-B64C-A0F0CBEAF081}

@github-actions

github-actions Bot commented Aug 30, 2024 •

Copy link
Copy Markdown

✅ All tests passed successfully

Details on your Workflow / Core Tests page.

@github-actions

github-actions Bot commented Aug 30, 2024 •

Copy link
Copy Markdown

Summary - Unit Tests Code Coverage

Summary
Generated on: 09/02/2024 - 10:18:24
Coverage date: 09/02/2024 - 10:18:05
Parser: Cobertura
Assemblies: 1
Classes: 20
Files: 23
Line coverage: 99.7% (484 of 485)
Covered lines: 484
Uncovered lines: 1
Coverable lines: 485
Total lines: 2228
Branch coverage: 93.2% (359 of 385)
Covered branches: 359
Total branches: 385
Method coverage: Feature is only available for sponsors
Tag: 1386_10665262693

Coverage

Microsoft.FluentUI.AspNetCore.Components - 99.7%
Name Line Branch
Microsoft.FluentUI.AspNetCore.Components 99.7% 93.2%
Microsoft.FluentUI.AspNetCore.Components.Extensions.EnumExtensions 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentButton 100% 89.5%
Microsoft.FluentUI.AspNetCore.Components.FluentComponentBase 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentComponentElementBase 0%
Microsoft.FluentUI.AspNetCore.Components.FluentGrid 100% 91.6%
Microsoft.FluentUI.AspNetCore.Components.FluentGridItem 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentIcon`1 100% 95.8%
Microsoft.FluentUI.AspNetCore.Components.FluentLayout 100% 71.4%
Microsoft.FluentUI.AspNetCore.Components.FluentLayoutHamburger 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentLayoutItem 100% 89.2%
Microsoft.FluentUI.AspNetCore.Components.Icon 100% 91.1%
Microsoft.FluentUI.AspNetCore.Components.IconFromImage 100%
Microsoft.FluentUI.AspNetCore.Components.IconInfo 100%
Microsoft.FluentUI.AspNetCore.Components.Migration.AppearanceExtensions 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.AddTag 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.CssBuilder 100% 92.8%
Microsoft.FluentUI.AspNetCore.Components.Utilities.Identifier 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.IdentifierContext 100% 75%
Microsoft.FluentUI.AspNetCore.Components.Utilities.InlineStyleBuilder 100% 92.8%
Microsoft.FluentUI.AspNetCore.Components.Utilities.StyleBuilder 100% 100%

Comment thread tests/Core/_StartCodeCoverage.cmd Resolved
@dvoituron Denis Voituron (dvoituron) changed the title DRAFT [dev-v5] Add Aside panel in the Demo website [dev-v5] Add Aside panel in the Demo website Sep 2, 2024
@dvoituron
Denis Voituron (dvoituron) merged commit 4847445 into dev-v5 Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants