OrakTech.CleanView 1.0.0.11

dotnet add package OrakTech.CleanView --version 1.0.0.11
                    
NuGet\Install-Package OrakTech.CleanView -Version 1.0.0.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OrakTech.CleanView" Version="1.0.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OrakTech.CleanView" Version="1.0.0.11" />
                    
Directory.Packages.props
<PackageReference Include="OrakTech.CleanView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OrakTech.CleanView --version 1.0.0.11
                    
#r "nuget: OrakTech.CleanView, 1.0.0.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OrakTech.CleanView@1.0.0.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OrakTech.CleanView&version=1.0.0.11
                    
Install as a Cake Addin
#tool nuget:?package=OrakTech.CleanView&version=1.0.0.11
                    
Install as a Cake Tool

CleanView

Clean view is a wrapper for MainLayout for blazor project. As it has customizable components, a wrapper allows easier definition than a replacing MainLayout.

alt text

You need to:

  1. Import the styles from "_content/OrakTech.CleanView/styles.min.css"
  2. Add a using statement to _Imports.razor
  3. Update your MainLayour razor to use the wapper.

Index.html or _Host.cshtml

<head>
    ...
    <link href="_content/OrakTech.CleanView/styles.min.css" rel="stylesheet" />
</head>

_Imports.razor

@using OrakTech.CleanView
@using OrakTech.CleanView.Models
@using OrakTech.CleanView.Views.Components

MainLayout.razor

@inherits LayoutComponentBase
<CleanLayout CopyrightOwner="<Your Name>" CopyrightStart="1936" FootNote="<b>Hello</b>" ButterflyCount="5">
    <HeaderCenter>
        <AppHeader />
    </HeaderCenter>
    <LeftMenuPanel>
        <NavMenuLeft />
    </LeftMenuPanel>
    <LeftIcon>
        <span class="oi oi-grid-three-up text-shadow" aria-hidden="true"></span>
    </LeftIcon>
    <RightIcon>
        <span class="oi oi-cog text-shadow" aria-hidden="true"></span>
    </RightIcon>
    <RightMenuPanel>
        <NavMenuRight />
    </RightMenuPanel>
    <Content>
        @Body
    </Content>
</CleanLayout>

  • NavPanelMenuItems can contain NavPanelMenuItems allowing for nested menu structure.
  • NavPanelMenuItems can be treated like anchor elements. Attributes are splattered to the anchor. If css classes are used be aware they will override the default class applied.
<NavPanel>

    <NavPanelMenuItem Name="Home" Icon="oi-home" href="" />
    <NavPanelMenuItem Name="Sub Menu" Icon="">
        <NavPanelMenuItem Name="Counter" Icon="oi-plus" href="counter" />
        <AuthorizeView>
            <NavPanelMenuItem Name="Fetch data" Icon="oi-list-rich" href="fetchdata" />
            <NavPanelMenuItem Name="Log out" Icon="oi-account-logout" @onclick="BeginSignOut" />
        </AuthorizeView>
    </NavPanelMenuItem> 
    
</NavPanel>

BackgroundSetter

  • Placing this item on a page will set the background image on initialization.
<BackgroundSetter Url="background.jpg" FootNote="Image by Luc Tribolet - unsplash.com" />
Library version display
@using OrakTech.CleanView.Models
@using OrakTech.CleanView.Views.Components
<CleanViewAssemblyView Mode="@ViewResourceModes.Tile" />
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.11 594 11/21/2020
1.0.0.5 473 11/14/2020
1.0.0.2 484 11/13/2020
0.9.4-alpha 328 11/12/2020
0.9.3-alpha 356 11/10/2020
0.9.2-alpha 278 10/29/2020
0.9.1-alpha 278 10/28/2020

initial css isolation implementation