From 5b14466d2485adfef1ffbbea773b7c939b6c785f Mon Sep 17 00:00:00 2001 From: astankovmi Date: Tue, 30 Jun 2026 17:43:10 +0300 Subject: [PATCH] UPD Visor --- .../Visor/Components/Layout/FooterMenu.razor | 2 +- Visor/Visor/Components/Layout/SideMenu.razor | 12 ++-- Visor/Visor/Layouts/MainLayout.razor | 66 ++++--------------- Visor/Visor/Pages/Dashboard.razor | 31 --------- .../Pages/Setting/Objects/AddObjects.razor | 48 ++++++++++++++ Visor/Visor/Pages/_Layout.cshtml | 13 +--- Visor/Visor/Properties/launchSettings.json | 2 +- Visor/Visor/Visor.csproj | 6 +- 8 files changed, 71 insertions(+), 109 deletions(-) create mode 100644 Visor/Visor/Pages/Setting/Objects/AddObjects.razor diff --git a/Visor/Visor/Components/Layout/FooterMenu.razor b/Visor/Visor/Components/Layout/FooterMenu.razor index 231121f..2a57985 100644 --- a/Visor/Visor/Components/Layout/FooterMenu.razor +++ b/Visor/Visor/Components/Layout/FooterMenu.razor @@ -1,4 +1,4 @@ @using System.Reflection - + @($"{Assembly.GetExecutingAssembly().GetName().Name} v{Assembly.GetExecutingAssembly().GetName().Version}") \ No newline at end of file diff --git a/Visor/Visor/Components/Layout/SideMenu.razor b/Visor/Visor/Components/Layout/SideMenu.razor index a0fde1c..cb7a259 100644 --- a/Visor/Visor/Components/Layout/SideMenu.razor +++ b/Visor/Visor/Components/Layout/SideMenu.razor @@ -14,17 +14,17 @@ - Dashboard + Дашборд - Pages + Настройка - Simple Form + Добавить объект Simple DataGrid @@ -32,7 +32,7 @@ - + @* @@ -46,11 +46,11 @@ - + *@ @code { - private bool pagesBarVisible = true; + private bool pagesBarVisible = false; RenderFragment customIcon =@; } \ No newline at end of file diff --git a/Visor/Visor/Layouts/MainLayout.razor b/Visor/Visor/Layouts/MainLayout.razor index b0e5a37..0b77f78 100644 --- a/Visor/Visor/Layouts/MainLayout.razor +++ b/Visor/Visor/Layouts/MainLayout.razor @@ -3,67 +3,23 @@ @inherits LayoutComponentBase -@if ( layoutType == "fixed-header" ) -{ - - - - - - - - + + + + + + + + + @* - - - @Body - - - -} -else if ( layoutType == "fixed-header-footer-only" ) -{ - - - - + *@ @Body - - - -} -else if ( layoutType == "sider-with-header-on-top" ) -{ - - - - - - - - - - - - - @Body - - - - -} \ No newline at end of file + diff --git a/Visor/Visor/Pages/Dashboard.razor b/Visor/Visor/Pages/Dashboard.razor index b735c21..d0cb29c 100644 --- a/Visor/Visor/Pages/Dashboard.razor +++ b/Visor/Visor/Pages/Dashboard.razor @@ -2,35 +2,4 @@ @inject IVersionProvider VersionProvider Blazorise - - Blazorise is a component library built on top of Blazor and CSS frameworks like Bootstrap, FluentUI2, Tailwind, Bulma, Ant Design, and Material. It can be used to build responsive, single-page web applications. - - - - This is a Blazorise Starting Template allowing you to quickly get started building your project! - - - - The following Blazorise packages have been installed for you: - - - - Blazorise @($"v{VersionProvider.MilestoneVersion}") - The Blazorise Bootstrap5 Provider - The Blazorise FontAwesome Icon Provider - The Blazorise DataGrid extension - - - - However Blazorise has many more extensions at your disposal. - You can find them here. - - - - Please visit the official Blazorise Demo for component examples. - - - Please visit the official Blazorise Documentation to learn more about the available components. - - diff --git a/Visor/Visor/Pages/Setting/Objects/AddObjects.razor b/Visor/Visor/Pages/Setting/Objects/AddObjects.razor new file mode 100644 index 0000000..fec46b7 --- /dev/null +++ b/Visor/Visor/Pages/Setting/Objects/AddObjects.razor @@ -0,0 +1,48 @@ +@page "/setting/add_objects" + + + + + + + + + + + + + + + + Добавить объект + + + + + + + + + +@code { + private Modal modalAdd; + private Modal modalDel; + + private Task ShowAddObjetc() + { + return modalAdd.Show(); + } + private Task ShowDelObjetc() + { + return modalDel.Show(); + } + + private Task HideModal() + { + return modalAdd.Hide(); + } +} \ No newline at end of file diff --git a/Visor/Visor/Pages/_Layout.cshtml b/Visor/Visor/Pages/_Layout.cshtml index 3aeec43..036715d 100644 --- a/Visor/Visor/Pages/_Layout.cshtml +++ b/Visor/Visor/Pages/_Layout.cshtml @@ -24,18 +24,7 @@ @RenderBody() - -
- - An error has occurred. This application may no longer respond until reloaded. - - - An unhandled exception has occurred. See browser dev tools for details. - - Reload - 🗙 -
- + diff --git a/Visor/Visor/Properties/launchSettings.json b/Visor/Visor/Properties/launchSettings.json index a59427d..8fdb1c7 100644 --- a/Visor/Visor/Properties/launchSettings.json +++ b/Visor/Visor/Properties/launchSettings.json @@ -10,7 +10,7 @@ "profiles": { "Visor": { "commandName": "Project", - "dotnetRunMessages": true, + "dotnetRunMessages": false, "launchBrowser": true, "applicationUrl": "https://localhost:7297;http://localhost:5255", "environmentVariables": { diff --git a/Visor/Visor/Visor.csproj b/Visor/Visor/Visor.csproj index 8cab721..e84cca3 100644 --- a/Visor/Visor/Visor.csproj +++ b/Visor/Visor/Visor.csproj @@ -20,10 +20,10 @@ - - + + - +