[성현모] Radzen 적용
This commit is contained in:
@ -1,23 +1,34 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
|
|
||||||
<div class="page">
|
<RadzenLayout>
|
||||||
<div class="sidebar">
|
<RadzenHeader>
|
||||||
<NavMenu />
|
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0">
|
||||||
</div>
|
<RadzenSidebarToggle Click="@(() => sidebar1Expanded = !sidebar1Expanded)" />
|
||||||
|
@* <HeaderBar /> *@
|
||||||
<main>
|
</RadzenStack>
|
||||||
<div class="top-row px-4">
|
</RadzenHeader>
|
||||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
<RadzenSidebar @bind-Expanded="@sidebar1Expanded">
|
||||||
</div>
|
<RadzenPanelMenu>
|
||||||
|
<RadzenPanelMenuItem Text="Home" Icon="home" Path="/counter" />
|
||||||
<article class="content px-4">
|
@* <RadzenPanelMenuItem Text="VPKI.API" Icon="compare_arrows" Path="/vpki/api" />
|
||||||
|
<RadzenPanelMenuItem Text="VPKI.Manager" Icon="description" Path="/vpki/manager" /> *@
|
||||||
|
@* <RadzenPanelMenuItem Text="Users" Icon="account_box" Path="/user" /> *@
|
||||||
|
</RadzenPanelMenu>
|
||||||
|
</RadzenSidebar>
|
||||||
|
<RadzenBody>
|
||||||
|
<div class="rz-p-4">
|
||||||
@Body
|
@Body
|
||||||
</article>
|
|
||||||
</main>
|
|
||||||
</div>
|
</div>
|
||||||
|
</RadzenBody>
|
||||||
|
<RadzenFooter>
|
||||||
|
<div>
|
||||||
|
<RadzenLabel Text="@("Copyright © 2024, SystemX Inc. All rights reserved.")"></RadzenLabel>
|
||||||
|
</div>
|
||||||
|
</RadzenFooter>
|
||||||
|
</RadzenLayout>
|
||||||
|
|
||||||
<div id="blazor-error-ui" data-nosnippet>
|
<RadzenComponents />
|
||||||
An unhandled error has occurred.
|
|
||||||
<a href="." class="reload">Reload</a>
|
@code {
|
||||||
<span class="dismiss">🗙</span>
|
bool sidebar1Expanded = true;
|
||||||
</div>
|
}
|
||||||
@ -6,3 +6,6 @@
|
|||||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||||
@using Microsoft.JSInterop
|
@using Microsoft.JSInterop
|
||||||
|
|
||||||
|
@using Radzen
|
||||||
|
@using Radzen.Blazor
|
||||||
@ -6,12 +6,26 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<NoWarn>1701;1702</NoWarn>
|
||||||
|
<WarningLevel>6</WarningLevel>
|
||||||
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<NoWarn>1701;1702</NoWarn>
|
||||||
|
<WarningLevel>6</WarningLevel>
|
||||||
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<SupportedPlatform Include="browser" />
|
<SupportedPlatform Include="browser" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.7" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
|
<PackageReference Include="Radzen.Blazor" Version="7.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -9,12 +9,17 @@
|
|||||||
<link rel="stylesheet" href="_content/eCIA_v2.Shared/app.css" />
|
<link rel="stylesheet" href="_content/eCIA_v2.Shared/app.css" />
|
||||||
<link rel="stylesheet" href="eCIA_v2.Web.styles.css" />
|
<link rel="stylesheet" href="eCIA_v2.Web.styles.css" />
|
||||||
<link rel="icon" type="image/png" href="_content/eCIA_v2.Shared/favicon.png" />
|
<link rel="icon" type="image/png" href="_content/eCIA_v2.Shared/favicon.png" />
|
||||||
<HeadOutlet @rendermode="InteractiveServer" />
|
<link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" />
|
||||||
|
<HeadOutlet />
|
||||||
|
<RadzenTheme Theme="material" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<Routes @rendermode="InteractiveServer" />
|
<Routes />
|
||||||
<script src="_framework/blazor.web.js"></script>
|
<script src="_framework/blazor.web.js"></script>
|
||||||
|
|
||||||
|
<script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=@(typeof(Radzen.Colors).Assembly.GetName().Version)"></script>
|
||||||
|
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -9,3 +9,6 @@
|
|||||||
@using eCIA_v2.Shared
|
@using eCIA_v2.Shared
|
||||||
@using eCIA_v2.Web
|
@using eCIA_v2.Web
|
||||||
@using eCIA_v2.Web.Components
|
@using eCIA_v2.Web.Components
|
||||||
|
|
||||||
|
@using Radzen
|
||||||
|
@using Radzen.Blazor
|
||||||
@ -1,6 +1,7 @@
|
|||||||
using eCIA_v2.Shared.Services;
|
using eCIA_v2.Shared.Services;
|
||||||
using eCIA_v2.Web.Components;
|
using eCIA_v2.Web.Components;
|
||||||
using eCIA_v2.Web.Services;
|
using eCIA_v2.Web.Services;
|
||||||
|
using Radzen;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
@ -11,6 +12,8 @@ builder.Services.AddRazorComponents()
|
|||||||
// Add device-specific services used by the eCIA_v2.Shared project
|
// Add device-specific services used by the eCIA_v2.Shared project
|
||||||
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
||||||
|
|
||||||
|
builder.Services.AddRadzenComponents();
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
|
|||||||
@ -6,6 +6,21 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
<WarningLevel>6</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
<WarningLevel>6</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.7" />
|
||||||
|
<PackageReference Include="Radzen.Blazor" Version="7.1.5" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\eCIA_v2.Shared\eCIA_v2.Shared.csproj" />
|
<ProjectReference Include="..\eCIA_v2.Shared\eCIA_v2.Shared.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@ -8,3 +8,6 @@
|
|||||||
@using eCIA_v2
|
@using eCIA_v2
|
||||||
@using eCIA_v2.Components
|
@using eCIA_v2.Components
|
||||||
@using eCIA_v2.Shared
|
@using eCIA_v2.Shared
|
||||||
|
|
||||||
|
@using Radzen
|
||||||
|
@using Radzen.Blazor
|
||||||
@ -1,6 +1,7 @@
|
|||||||
using eCIA_v2.Services;
|
using eCIA_v2.Services;
|
||||||
using eCIA_v2.Shared.Services;
|
using eCIA_v2.Shared.Services;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Radzen;
|
||||||
|
|
||||||
namespace eCIA_v2
|
namespace eCIA_v2
|
||||||
{
|
{
|
||||||
@ -20,6 +21,7 @@ namespace eCIA_v2
|
|||||||
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
builder.Services.AddSingleton<IFormFactor, FormFactor>();
|
||||||
|
|
||||||
builder.Services.AddMauiBlazorWebView();
|
builder.Services.AddMauiBlazorWebView();
|
||||||
|
builder.Services.AddRadzenComponents();
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||||
|
|||||||
@ -42,17 +42,21 @@
|
|||||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-windows10.0.19041.0|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-windows10.0.19041.0|AnyCPU'">
|
||||||
<WarningLevel>6</WarningLevel>
|
<WarningLevel>6</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
<NoWarn>1605</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-windows10.0.19041.0|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-windows10.0.19041.0|AnyCPU'">
|
||||||
<WarningLevel>6</WarningLevel>
|
<WarningLevel>6</WarningLevel>
|
||||||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
||||||
|
<NoWarn>1605</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.7" />
|
||||||
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
|
||||||
|
<PackageReference Include="Radzen.Blazor" Version="7.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
<link rel="stylesheet" href="_content/eCIA_v2.Shared/bootstrap/bootstrap.min.css" />
|
<link rel="stylesheet" href="_content/eCIA_v2.Shared/bootstrap/bootstrap.min.css" />
|
||||||
<link rel="stylesheet" href="_content/eCIA_v2.Shared/app.css" />
|
<link rel="stylesheet" href="_content/eCIA_v2.Shared/app.css" />
|
||||||
<link rel="stylesheet" href="app.css" />
|
<link rel="stylesheet" href="app.css" />
|
||||||
|
<link href="_content/Radzen.Blazor/css/default-base.css" rel="stylesheet" />
|
||||||
<link rel="stylesheet" href="eCIA_v2.styles.css" />
|
<link rel="stylesheet" href="eCIA_v2.styles.css" />
|
||||||
<link rel="icon" href="data:,">
|
<link rel="icon" href="data:,">
|
||||||
</head>
|
</head>
|
||||||
@ -18,8 +19,8 @@
|
|||||||
|
|
||||||
<div id="app">Loading...</div>
|
<div id="app">Loading...</div>
|
||||||
|
|
||||||
|
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
|
||||||
<script src="_framework/blazor.webview.js" autostart="false"></script>
|
<script src="_framework/blazor.webview.js" autostart="false"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user