Skip to content

Commit

Permalink
v7 Preparation: File Arrangements (#377)
Browse files Browse the repository at this point in the history
* v7 Preparation File Arrangements

* Fix Remaining Changed Namespace

* Fix Other Projects Remaining Namespaces
  • Loading branch information
mckaragoz authored Apr 14, 2024
1 parent 12f3c58 commit 7feb0b7
Show file tree
Hide file tree
Showing 176 changed files with 614 additions and 586 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Router AppAssembly="@typeof(ComponentViewer.Docs.Pages.Index).Assembly">
<Router AppAssembly="@typeof(MudExtensions.Docs.Pages.Index).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(ComponentViewer.Docs.Shared.MainLayout)" />
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MudExtensions.Docs.Shared.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(ComponentViewer.Docs.Shared.MainLayout)">
<LayoutView Layout="@typeof(MudExtensions.Docs.Shared.MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MudExtensions.Docs.Server</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions\CodeBeam.MudBlazor.Extensions.csproj" />
<ProjectReference Include="..\ComponentViewer.Docs\ComponentViewer.Docs.csproj" />
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions.Docs\CodeBeam.MudBlazor.Extensions.Docs.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/"
@namespace ComponentViewer.Pages
@namespace MudExtensions.Docs.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
Layout = "_Layout";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using Microsoft.AspNetCore.Components.Web
@namespace ComponentViewer.Pages
@namespace CodeBeam.MudBlazor.Extensions.Docs.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"profiles": {
"ComponentViewer": {
"CodeBeam.MudBlazor.Extensions.Docs.Server": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using ComponentViewer
@using MudExtensions.Docs.Server

@using MudBlazor
@using MudExtensions
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
@inject LazyAssemblyLoader AssemblyLoader
@inject ILogger<App> Logger

<Router AppAssembly="@typeof(ComponentViewer.Docs.Pages.Index).Assembly" AdditionalAssemblies="@_lazyLoadedAssemblies" OnNavigateAsync="@OnNavigateAsync">
<Router AppAssembly="@typeof(MudExtensions.Docs.Pages.Index).Assembly" AdditionalAssemblies="@_lazyLoadedAssemblies" OnNavigateAsync="@OnNavigateAsync">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(ComponentViewer.Docs.Shared.MainLayout)" />
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MudExtensions.Docs.Shared.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(ComponentViewer.Docs.Shared.MainLayout)">
<LayoutView Layout="@typeof(MudExtensions.Docs.Shared.MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MudExtensions.Docs.Wasm</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,7 +18,7 @@

<ItemGroup>
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions\CodeBeam.MudBlazor.Extensions.csproj" />
<ProjectReference Include="..\ComponentViewer.Docs\ComponentViewer.Docs.csproj" />
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions.Docs\CodeBeam.MudBlazor.Extensions.Docs.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ComponentViewer.Wasm;
using MudExtensions.Docs.Wasm;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"profiles": {
"ComponentViewer.Wasm": {
"CodeBeam.MudBlazor.Extensions.Docs.Wasm": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using ComponentViewer.Wasm
@using MudExtensions.Docs.Wasm

@using MudBlazor
@using MudExtensions
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MudExtensions.Docs</RootNamespace>
</PropertyGroup>


Expand All @@ -16,9 +17,9 @@
<PackageReference Include="MudBlazor" Version="6.12.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions\CodeBeam.MudBlazor.Extensions.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CodeBeam.MudBlazor.Extensions\CodeBeam.MudBlazor.Extensions.csproj" />
</ItemGroup>

<ItemGroup>
<Content Update="Pages\Index.razor">
Expand All @@ -27,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Pages/Examples/**" />
<EmbeddedResource Include="Pages/Components/**" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@inherits MudComponentBase
@namespace ComponentViewer.Docs.Components
@namespace MudExtensions.Docs.Components

<MudText Inline="true" Class="px-2" Typo="Typo.body2" Style="background-color: #ff4081; color: white; border-radius: 20px">@ChildContent</MudText>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@inherits MudComponentBase
@namespace ComponentViewer.Docs.Components
@namespace MudExtensions.Docs.Components

<MudCard Class="component-card pa-0" Elevation="4" @onclick="NavigateComponentPage">
<MudCardHeader Class="component-card-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Components;

namespace ComponentViewer.Docs.Components
namespace MudExtensions.Docs.Components
{
public partial class ComponentCard
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@namespace ComponentViewer.Docs.Components
@namespace MudExtensions.Docs.Components
@using System.Text.RegularExpressions

<MudText Class="my-2" Color="Color.Secondary" Typo="Typo.h6">Parameters</MudText>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@namespace ComponentViewer.Docs.Components
@namespace MudExtensions.Docs.Components

@if (HasExpansionPanel)
{
Expand Down Expand Up @@ -53,6 +53,9 @@ else
}

@code {
[Parameter]
public string? ComponentName { get; set; }

[Parameter]
public string? ExampleName { get; set; }

Expand Down Expand Up @@ -80,7 +83,7 @@ else
var ass = System.Reflection.Assembly.GetExecutingAssembly();
var names = ass.GetManifestResourceNames();

string path = $@"ComponentViewer.Docs.Pages.Examples.{ExampleName}.razor";
string path = $@"MudExtensions.Docs.Pages.Components.{ComponentName}.Examples.{ExampleName}.razor";
var resourceStream = ass.GetManifestResourceStream(path);
if (resourceStream != null)
{
Expand All @@ -89,7 +92,11 @@ else
while (true)
{
var line = reader.ReadLine();
if (line != null)
if (line?.StartsWith("@namespace") == true)
{
continue;
}
else if (line != null)
_lines.Add(line);
else
break;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@inject NavigationManager NavigationManager
@namespace ComponentViewer.Docs.Components
@namespace MudExtensions.Docs.Components

<CascadingValue Value="this" IsFixed="true">
<MudContainer Class="py-6 px-0">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@page "/mudanimate"
@namespace MudExtensions.Docs.Pages

<ExamplePage Title="MudAnimate">
<ExampleCard ComponentName="Animate" ExampleName="AnimateExample1" Title="Playground" Description="See the MudAnimate's capabilities.">
<AnimateExample1 />
</ExampleCard>

<ExampleCard ComponentName="Animate" ExampleName="AnimateExample2" Title="Multiple Animations" Description=" Multiple animations can be added with KeyframeAdvanced parameter.">
<AnimateExample2 />
</ExampleCard>
</ExamplePage>

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@using MudBlazor.Extensions
@namespace MudExtensions.Docs.Examples
@using MudBlazor.Extensions

<MudAnimate @ref="_animate" Selector=".id1" Duration="_duration" AnimationType="_animationType" Value="_value" ValueSecondary="_valueSecondary" Hover="_hover" Delay="_delay" Infinite="_infinite" IterationCount="_iterationCount"
AnimationTiming="_animationTiming" AnimationDirection="_animationDirection" AnimationFillMode="_animationFillMode" Paused="_paused" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@using MudBlazor.Interfaces
@namespace MudExtensions.Docs.Examples
@using MudBlazor.Interfaces
@using MudExtensions.Utilities

<MudRender @ref="_animateRender">
<MudAnimate @ref="_animate2" Selector=".id2" Duration="1" AnimationType="AnimationType.Rotate" Value="_value2" ValueSecondary="0" Infinite="true"
KeyframeAdvanced="@KeyframeBuilder.Build(2, new List<string>() {"0", $"{_value2}"}, string.Join(" ", _animationTypes))" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@page "/mudbarcode"
@namespace MudExtensions.Docs.Pages

<ExamplePage Title="MudBarcode">
<ExampleCard ComponentName="Barcode" ExampleName="BarcodeExampleIntro" Title="Intro & Tips" Description="" ShowCodeSection="false">
<BarcodeExampleIntro />
</ExampleCard>

<ExampleCard ComponentName="Barcode" ExampleName="BarcodeExample1" Title="Usage" Description="Barcode shows different bar codes like QR code with defined value.">
<BarcodeExample1 />
</ExampleCard>
</ExamplePage>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using ZXing;
@namespace MudExtensions.Docs.Examples
@using ZXing;

<MudGrid>
<MudItem xs="12" sm="8" Class="d-flex justify-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Microsoft.AspNetCore.Components
@using MudBlazor.Extensions
@namespace MudExtensions.Docs.Examples

<MudGrid>
<MudAlert Class="mud-width-full" Severity="Severity.Success"><b>If you feel barcode readers response slowly, increase the <CodeBlock>StrokeWidth</CodeBlock> value for a better read performance.</b></MudAlert>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@page "/mudchipfield"
@namespace MudExtensions.Docs.Pages

<ExamplePage Title="MudChipField">
<ExampleCard ComponentName="ChipField" ExampleName="ChipFieldExample1" Title="Playground" Description="Chip field create chips when user press delimiter key.">
<ChipFieldExample1 />
</ExampleCard>
</ExamplePage>

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Microsoft.AspNetCore.Components
@using MudBlazor.Extensions
@namespace MudExtensions.Docs.Examples

<MudGrid>
<MudItem xs="12" sm="8" Class="d-flex flex-column gap-8 align-center justify-center">
Expand Down Expand Up @@ -43,11 +42,11 @@
<MudSelectItem Value="item">@item.ToDescriptionString()</MudSelectItem>
}
</MudSelect>
<MudSwitchM3 @bind-Value="@_wrapChips" Label="WrapChips" Color="Color.Primary" />
<MudSwitchM3 @bind-Value="@_disabled" Label="Disabled" Color="Color.Primary" />
<MudSwitchM3 @bind-Value="@_readonly" Label="ReadOnly" Color="Color.Primary" />
<MudSwitchM3 @bind-Value="@_disableRadius" Label="Disable Border Radius" Color="Color.Primary" />
<MudSwitchM3 @bind-Value="@_closeable" Label="Closeable" Color="Color.Primary" />
<MudSwitchM3 @bind-Value="@_wrapChips" Label="WrapChips" Color="Color.Secondary" />
<MudSwitchM3 @bind-Value="@_disabled" Label="Disabled" Color="Color.Secondary" />
<MudSwitchM3 @bind-Value="@_readonly" Label="ReadOnly" Color="Color.Secondary" />
<MudSwitchM3 @bind-Value="@_disableRadius" Label="Disable Border Radius" Color="Color.Secondary" />
<MudSwitchM3 @bind-Value="@_closeable" Label="Closeable" Color="Color.Secondary" />
</MudStack>
</MudItem>
</MudGrid>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@page "/mudcodeinput"
@namespace MudExtensions.Docs.Pages

<ExamplePage Title="MudCodeInput">
<ExampleCard ComponentName="CodeInput" ExampleName="CodeInputExample1" Title="Usage" Description="">
<CodeInputExample1 />
</ExampleCard>
</ExamplePage>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Microsoft.AspNetCore.Components
@using MudBlazor.Extensions
@namespace MudExtensions.Docs.Examples

<MudGrid>
<MudItem xs="12" sm="8" Class="d-flex flex-column gap-8 align-center justify-center" Style="height: 500px">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@page "/mudcolorprovider"
@using ComponentViewer.Docs.Pages.Examples
@namespace MudExtensions.Docs.Pages

<ExamplePage Title="MudColorProvider">
<ExampleCard ExampleName="ColorProviderExample1" Title="Basics" Description="MudColorProvider extends your primary, secondary and tertiary color.">
<ExampleCard ComponentName="ColorProvider" ExampleName="ColorProviderExample1" Title="Basics" Description="MudColorProvider extends your primary, secondary and tertiary color.">
<ColorProviderExample1 />
</ExampleCard>

<ExampleCard ExampleName="ColorProviderExample2" Title="How To Use" Description="">
<ExampleCard ComponentName="ColorProvider" ExampleName="ColorProviderExample2" Title="How To Use" Description="">
<MudText>(1) Place <CodeBlock>@("<MudColorProvider />")</CodeBlock> after <CodeBlock>@("<MudThemeProvider />")</CodeBlock>.</MudText>
<MudText>(2) After you define primary, secondary and tertiary colors, MudColorProvider creates CSS classes and variables.</MudText>
<MudText>(3) Use this classes or variables in your components, like: <CodeBlock>Class="mud-m3-theme-primary"</CodeBlock> or <CodeBlock>Style="background-color: var(--mud-primary-40)"</CodeBlock> </MudText>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@using MudBlazor.Utilities
@using ComponentViewer.Docs.Shared
@using MudBlazor.Extensions

@namespace MudExtensions.Docs.Examples
@using MudBlazor.Utilities

<MudGrid>
<MudItem xs="12" sm="8">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@using MudBlazor.Utilities
@using ComponentViewer.Docs.Shared
@using MudBlazor.Extensions
@namespace MudExtensions.Docs.Examples

<MudInputStyler Selector=".input-styler" LabelBackgroundColor="var(--mud-m3-primary-container)" BorderColor="var(--mud-secondary-10)" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using MudBlazor.Utilities
@namespace MudExtensions.Docs.Examples

<MudStack Spacing="1" Class="d-flex flex-grow-1">
<MudStack Justify="Justify.SpaceBetween" Class="flex-grow-1" Spacing="0" Style="@BackgroundColor">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using MudBlazor.Utilities
@namespace MudExtensions.Docs.Examples
@using MudBlazor.Utilities

<MudStack Spacing="1" Class="d-flex flex-grow-1" Style="@BackgroundColor" AlignItems="AlignItems.Center" Justify="Justify.Center">
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

@namespace MudExtensions.Docs.Examples

<MudStack Row="true" Class="pa-4" Style="background:var(--mud-m3-surface)">
<style>
.circle {
Expand Down
Loading

0 comments on commit 7feb0b7

Please sign in to comment.