From a472ce70a985c3ada1c8fcd3f5917e9bf76678b8 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 22 Feb 2024 19:51:29 +0100 Subject: [PATCH] update e riorganizzazione DemoPages --- EgwCoreLib.BlazorTest/Data/TestData.cs | 24 +++ .../EgwCoreLib.BlazorTest.csproj | 4 - EgwCoreLib.BlazorTest/Pages/Index.razor | 60 ++----- .../Pages/TestBarcodeReader.razor | 161 +++++++++++++++++ .../{ProvaCalendar.razor => TestCal_01.razor} | 2 +- ...aCalendar.razor.cs => TestCal_01.razor.cs} | 2 +- ...alendar.razor.css => TestCal_01.razor.css} | 0 ...endar.razor.less => TestCal_01.razor.less} | 0 ...razor.min.css => TestCal_01.razor.min.css} | 0 .../Pages/{TestCal.razor => TestCal_02.razor} | 2 +- .../{TestCal.razor.cs => TestCal_02.razor.cs} | 2 +- .../Pages/TestGraphCompo.razor | 102 +++++++++++ .../Pages/TestQrDisplay.razor | 167 ++++-------------- EgwCoreLib.BlazorTest/Pages/ZZZ_TestOld.razor | 161 +++++++++++++++++ EgwCoreLib.BlazorTest/Shared/NavMenu.razor | 54 ++---- 15 files changed, 509 insertions(+), 232 deletions(-) create mode 100644 EgwCoreLib.BlazorTest/Data/TestData.cs create mode 100644 EgwCoreLib.BlazorTest/Pages/TestBarcodeReader.razor rename EgwCoreLib.BlazorTest/Pages/{ProvaCalendar.razor => TestCal_01.razor} (95%) rename EgwCoreLib.BlazorTest/Pages/{ProvaCalendar.razor.cs => TestCal_01.razor.cs} (97%) rename EgwCoreLib.BlazorTest/Pages/{ProvaCalendar.razor.css => TestCal_01.razor.css} (100%) rename EgwCoreLib.BlazorTest/Pages/{ProvaCalendar.razor.less => TestCal_01.razor.less} (100%) rename EgwCoreLib.BlazorTest/Pages/{ProvaCalendar.razor.min.css => TestCal_01.razor.min.css} (100%) rename EgwCoreLib.BlazorTest/Pages/{TestCal.razor => TestCal_02.razor} (97%) rename EgwCoreLib.BlazorTest/Pages/{TestCal.razor.cs => TestCal_02.razor.cs} (97%) create mode 100644 EgwCoreLib.BlazorTest/Pages/TestGraphCompo.razor create mode 100644 EgwCoreLib.BlazorTest/Pages/ZZZ_TestOld.razor diff --git a/EgwCoreLib.BlazorTest/Data/TestData.cs b/EgwCoreLib.BlazorTest/Data/TestData.cs new file mode 100644 index 0000000..1908332 --- /dev/null +++ b/EgwCoreLib.BlazorTest/Data/TestData.cs @@ -0,0 +1,24 @@ +using EgwCoreLib.BlazorTest.Pages; + +namespace EgwCoreLib.BlazorTest.Data +{ + public class TestData + { + public static Dictionary MenuList { get; set; } = new() + { + {"TestPdfViewer", "Test PdfViewer"}, + {"TestQrDisplay", "Test QrDisplay"}, + {"TestGraphCompo", "Test Graph Compo"}, + {"TestLoading", "Test Loading"}, + {"TestCompo", "Test Componenti"}, + {"TestBarcodeReader", "Test BarcodeReader"}, + {"TestCal_01", "Test Cal.01"}, + {"TestCal_02", "Test Cal.02"}, + {"Test", "Test Generico"}, + {"TestGauges", "Test Gauges"}, + {"TestCerchi", "Test Cerchi"}, + {"TestMultiline", "Test Multiline"}, + + }; + } +} diff --git a/EgwCoreLib.BlazorTest/EgwCoreLib.BlazorTest.csproj b/EgwCoreLib.BlazorTest/EgwCoreLib.BlazorTest.csproj index 7d3d910..0996797 100644 --- a/EgwCoreLib.BlazorTest/EgwCoreLib.BlazorTest.csproj +++ b/EgwCoreLib.BlazorTest/EgwCoreLib.BlazorTest.csproj @@ -23,8 +23,4 @@ - - - - diff --git a/EgwCoreLib.BlazorTest/Pages/Index.razor b/EgwCoreLib.BlazorTest/Pages/Index.razor index c27abdd..d53a03a 100644 --- a/EgwCoreLib.BlazorTest/Pages/Index.razor +++ b/EgwCoreLib.BlazorTest/Pages/Index.razor @@ -1,4 +1,5 @@ @page "/" +@using EgwCoreLib.BlazorTest.Data EgwCoreLib Test Site @@ -24,60 +25,21 @@
-
- - -
Test PdfViewer
-
-
-
- - -
Test Gauges
-
-
-
- - -
Test Calendario
-
-
-
- - -
Test Generico
-
-
-
- - -
Test Compo
-
-
-
- - -
Test Loading
-
-
-
- - -
Test Multiline
-
-
-
- - -
Test QrDisplay
-
-
+ @foreach (var item in MenuList) + { +
+ + +
@item.Value
+
+
+ }
- @code { + private Dictionary MenuList { get; set; } = TestData.MenuList; } \ No newline at end of file diff --git a/EgwCoreLib.BlazorTest/Pages/TestBarcodeReader.razor b/EgwCoreLib.BlazorTest/Pages/TestBarcodeReader.razor new file mode 100644 index 0000000..1fb5e37 --- /dev/null +++ b/EgwCoreLib.BlazorTest/Pages/TestBarcodeReader.razor @@ -0,0 +1,161 @@ +@page "/TestBarcodeReader" + +Test + +

Test

+ + +
+
+ + + +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + + +
+ @*
*@ +
+ + + +
+ + +
+
+ +
+
+
+ +@code { + private int currentCount = 0; + + protected BarcodeReader barcodeReaderCustom { get; set; } = null!; + protected Random rnd = new Random(); + protected async Task ScanDoneHandler(string value) + { + await Task.Delay(1); + } + private void IncrementCount() + { + currentCount++; + } + + protected override void OnInitialized() + { + base.OnInitialized(); + listBord01 = new(); + listBord01.Add(""); + listBord01.Add("White"); + listBord01.Add(""); + listBord01.Add(""); + listBord02 = new(); + listBord02.Add(""); + listBord02.Add("White"); + listBord02.Add(""); + listBord02.Add("White"); + listBord03 = new(); + listBord03.Add(""); + listBord03.Add("White"); + listBord03.Add(""); + listBord03.Add("Blue"); + + } + + + protected List listBord01 { get; set; } = new(); + protected List listBord02 { get; set; } = new(); + protected List listBord03 { get; set; } = new(); + + protected string qrCodeVal { get; set; } = "https://office.egalware.com/WDC/UI"; +} diff --git a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor similarity index 95% rename from EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor rename to EgwCoreLib.BlazorTest/Pages/TestCal_01.razor index 6991040..475be80 100644 --- a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor +++ b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor @@ -1,4 +1,4 @@ -@page "/provacalendar" +@page "/TestCal_01" Index
diff --git a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.cs b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.cs similarity index 97% rename from EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.cs rename to EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.cs index 5508e44..d113298 100644 --- a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.cs +++ b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.cs @@ -1,6 +1,6 @@ namespace EgwCoreLib.BlazorTest.Pages { - public partial class ProvaCalendar + public partial class TestCal_01 { #region Protected Methods diff --git a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.css b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.css similarity index 100% rename from EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.css rename to EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.css diff --git a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.less b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.less similarity index 100% rename from EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.less rename to EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.less diff --git a/EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.min.css b/EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.min.css similarity index 100% rename from EgwCoreLib.BlazorTest/Pages/ProvaCalendar.razor.min.css rename to EgwCoreLib.BlazorTest/Pages/TestCal_01.razor.min.css diff --git a/EgwCoreLib.BlazorTest/Pages/TestCal.razor b/EgwCoreLib.BlazorTest/Pages/TestCal_02.razor similarity index 97% rename from EgwCoreLib.BlazorTest/Pages/TestCal.razor rename to EgwCoreLib.BlazorTest/Pages/TestCal_02.razor index 00ddb95..e11e943 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestCal.razor +++ b/EgwCoreLib.BlazorTest/Pages/TestCal_02.razor @@ -1,4 +1,4 @@ -@page "/TestCal" +@page "/TestCal_02"

TestCal

diff --git a/EgwCoreLib.BlazorTest/Pages/TestCal.razor.cs b/EgwCoreLib.BlazorTest/Pages/TestCal_02.razor.cs similarity index 97% rename from EgwCoreLib.BlazorTest/Pages/TestCal.razor.cs rename to EgwCoreLib.BlazorTest/Pages/TestCal_02.razor.cs index 93513a4..e55c2b9 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestCal.razor.cs +++ b/EgwCoreLib.BlazorTest/Pages/TestCal_02.razor.cs @@ -1,6 +1,6 @@ namespace EgwCoreLib.BlazorTest.Pages { - public partial class TestCal + public partial class TestCal_02 { #region Protected Methods diff --git a/EgwCoreLib.BlazorTest/Pages/TestGraphCompo.razor b/EgwCoreLib.BlazorTest/Pages/TestGraphCompo.razor new file mode 100644 index 0000000..6e07a16 --- /dev/null +++ b/EgwCoreLib.BlazorTest/Pages/TestGraphCompo.razor @@ -0,0 +1,102 @@ +@page "/TestGraphCompo" + +Test + +
+

Test Componenti Arrow SVG

+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+

Test progBar singola linea

+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+

Test progBar multi linea

+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +@code { + private int currentCount = 0; + + protected Random rnd = new Random(); + + protected override void OnInitialized() + { + base.OnInitialized(); + listBord01 = new(); + listBord01.Add(""); + listBord01.Add("White"); + listBord01.Add(""); + listBord01.Add(""); + listBord02 = new(); + listBord02.Add(""); + listBord02.Add("White"); + listBord02.Add(""); + listBord02.Add("White"); + listBord03 = new(); + listBord03.Add(""); + listBord03.Add("White"); + listBord03.Add(""); + listBord03.Add("Blue"); + + } + + + protected List listBord01 { get; set; } = new(); + protected List listBord02 { get; set; } = new(); + protected List listBord03 { get; set; } = new(); + +} diff --git a/EgwCoreLib.BlazorTest/Pages/TestQrDisplay.razor b/EgwCoreLib.BlazorTest/Pages/TestQrDisplay.razor index 948923b..abb1c7e 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestQrDisplay.razor +++ b/EgwCoreLib.BlazorTest/Pages/TestQrDisplay.razor @@ -1,161 +1,60 @@ @page "/TestQrDisplay" -Test - -

Test

+Test Display QRCode -
-
- - - +
+
+

Test Display QRCode

-
- -
+
+
- +
+ @*
Header
*@ +
+ +
- +
+
+ +
- - +
+
+ +
- -
-
- -
-
- - +
+
+
+
+
+ + @* *@ +
+
+
+ +
+ @*

PDF_417

+ *@
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - -
- @*
*@ -
- - - -
- - -
-
- -
-
-
@code { - private int currentCount = 0; - - protected BarcodeReader barcodeReaderCustom { get; set; } = null!; - protected Random rnd = new Random(); - protected async Task ScanDoneHandler(string value) - { - await Task.Delay(1); - } - private void IncrementCount() - { - currentCount++; - } - - protected override void OnInitialized() - { - base.OnInitialized(); - listBord01 = new(); - listBord01.Add(""); - listBord01.Add("White"); - listBord01.Add(""); - listBord01.Add(""); - listBord02 = new(); - listBord02.Add(""); - listBord02.Add("White"); - listBord02.Add(""); - listBord02.Add("White"); - listBord03 = new(); - listBord03.Add(""); - listBord03.Add("White"); - listBord03.Add(""); - listBord03.Add("Blue"); - - } - - - protected List listBord01 { get; set; } = new(); - protected List listBord02 { get; set; } = new(); - protected List listBord03 { get; set; } = new(); protected string qrCodeVal { get; set; } = "https://office.egalware.com/WDC/UI"; } diff --git a/EgwCoreLib.BlazorTest/Pages/ZZZ_TestOld.razor b/EgwCoreLib.BlazorTest/Pages/ZZZ_TestOld.razor new file mode 100644 index 0000000..8ee1500 --- /dev/null +++ b/EgwCoreLib.BlazorTest/Pages/ZZZ_TestOld.razor @@ -0,0 +1,161 @@ +@page "/TestOld" + +Test + +

Test

+ + +
+
+ + + +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + + +
+ @*
*@ +
+ + + +
+ + +
+
+ +
+
+
+ +@code { + private int currentCount = 0; + + protected BarcodeReader barcodeReaderCustom { get; set; } = null!; + protected Random rnd = new Random(); + protected async Task ScanDoneHandler(string value) + { + await Task.Delay(1); + } + private void IncrementCount() + { + currentCount++; + } + + protected override void OnInitialized() + { + base.OnInitialized(); + listBord01 = new(); + listBord01.Add(""); + listBord01.Add("White"); + listBord01.Add(""); + listBord01.Add(""); + listBord02 = new(); + listBord02.Add(""); + listBord02.Add("White"); + listBord02.Add(""); + listBord02.Add("White"); + listBord03 = new(); + listBord03.Add(""); + listBord03.Add("White"); + listBord03.Add(""); + listBord03.Add("Blue"); + + } + + + protected List listBord01 { get; set; } = new(); + protected List listBord02 { get; set; } = new(); + protected List listBord03 { get; set; } = new(); + + protected string qrCodeVal { get; set; } = "https://office.egalware.com/WDC/UI"; +} diff --git a/EgwCoreLib.BlazorTest/Shared/NavMenu.razor b/EgwCoreLib.BlazorTest/Shared/NavMenu.razor index 40b1c9f..23f9203 100644 --- a/EgwCoreLib.BlazorTest/Shared/NavMenu.razor +++ b/EgwCoreLib.BlazorTest/Shared/NavMenu.razor @@ -1,4 +1,5 @@ -