ganahrhr 3 роки тому
батько
коміт
916eaafae6
6 змінених файлів з 4 додано та 41 видалено
  1. 1 2
      HyperCube.csproj
  2. 1 24
      Pages/Index.razor
  3. 1 2
      Pages/_Host.cshtml
  4. 0 4
      Shared/MainLayout.razor
  5. 0 6
      Startup.cs
  6. 1 3
      _Imports.razor

+ 1 - 2
HyperCube.csproj

@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk.Web">
+<Project Sdk="Microsoft.NET.Sdk.Web">
 
   <PropertyGroup>
     <TargetFramework>net5.0</TargetFramework>
@@ -15,7 +15,6 @@
     <PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.0" />
     <PackageReference Include="MySql.Data" Version="8.0.23" />
     <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
-    <PackageReference Include="Radzen.Blazor" Version="3.1.10" />
   </ItemGroup>
 
 </Project>

+ 1 - 24
Pages/Index.razor

@@ -1,26 +1,3 @@
 @page "/"
-@inject DialogService DialogService
 
-<h1>Добро пожаловать!</h1>
-
-<RadzenButton Text="Show confirm dialog" Click=@(args => DialogService.Confirm("Are you sure?", "MyTitle", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" })) />
-
-@code {
-    protected override void OnInitialized()
-    {
-        DialogService.OnOpen += Open;
-        DialogService.OnClose += Close;
-    }
-
-    void Open(string title, Type type, Dictionary<string, object> parameters, DialogOptions options)
-    {
-        //console.Log("Dialog opened");
-        Console.WriteLine("Dialog opened");
-    }
-
-    void Close(dynamic result)
-    {
-        //console.Log($"Dialog closed with result: {result}");
-        Console.WriteLine($"Dialog closed with result: {result}");
-    }
-}
+<h1>Добро пожаловать!</h1>

+ 1 - 2
Pages/_Host.cshtml

@@ -15,8 +15,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>HyperCube</title>
     <base href="~/" />
-    <link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">
-    @*<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />*@
+    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
     <link href="css/site.css" rel="stylesheet" />
     <link href="HyperCube.styles.css" rel="stylesheet" />
 </head>

+ 0 - 4
Shared/MainLayout.razor

@@ -13,10 +13,6 @@
 
         <div class="content px-4">
             @Body
-            <RadzenDialog />
-            <RadzenNotification />
-            <RadzenContextMenu />
-            <RadzenTooltip />
         </div>
     </div>
 </div>

+ 0 - 6
Startup.cs

@@ -15,7 +15,6 @@ using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading.Tasks;
-using Radzen;
 
 namespace HyperCube
 {
@@ -42,11 +41,6 @@ namespace HyperCube
             services.AddScoped<AuthenticationStateProvider, RevalidatingIdentityAuthenticationStateProvider<IdentityUser>>();
             services.AddDatabaseDeveloperPageExceptionFilter();
             services.AddSingleton<WeatherForecastService>();
-
-            services.AddScoped<DialogService>();
-            services.AddScoped<NotificationService>();
-            services.AddScoped<TooltipService>();
-            services.AddScoped<ContextMenuService>();
         }
 
         // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

+ 1 - 3
_Imports.razor

@@ -8,6 +8,4 @@
 @using Microsoft.AspNetCore.Components.Web.Virtualization
 @using Microsoft.JSInterop
 @using HyperCube
-@using HyperCube.Shared
-@using Radzen
-@using Radzen.Blazor
+@using HyperCube.Shared