From 14d84c43df07d6f789f570801c875844d388a9dd Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Wed, 30 Apr 2025 00:44:15 -0300 Subject: [PATCH] Eliminacion de razor de fabrica --- phronCare.UIBlazor/Pages/Counter.razor | 36 -------------------- phronCare.UIBlazor/Pages/ModalDemo.razor | 12 ------- phronCare.UIBlazor/Shared/SurveyPrompt.razor | 16 --------- 3 files changed, 64 deletions(-) delete mode 100644 phronCare.UIBlazor/Pages/Counter.razor delete mode 100644 phronCare.UIBlazor/Pages/ModalDemo.razor delete mode 100644 phronCare.UIBlazor/Shared/SurveyPrompt.razor diff --git a/phronCare.UIBlazor/Pages/Counter.razor b/phronCare.UIBlazor/Pages/Counter.razor deleted file mode 100644 index edd6f21..0000000 --- a/phronCare.UIBlazor/Pages/Counter.razor +++ /dev/null @@ -1,36 +0,0 @@ -@page "/counter" -@using System.Net.Http -@using System.Collections.Generic -@using System.Text.Json -@using System.Net.Http.Headers -@using Microsoft.AspNetCore.Components.Authorization -@using phronCare.UIBlazor.Services.Authorization - -@inject HttpClient _httpClient -@inject AuthenticationStateProvider authenticationStateProvider - -Counter - -

Counter

- -

Current count: @currentCount

- - - -@code { - - private int currentCount = 0; - - private async void IncrementCount() - { - currentCount++; - var customAuthStateProvider = (CustomAuthorizationProvider)authenticationStateProvider; - var token = await customAuthStateProvider.GetTokenData(); - if (!string.IsNullOrWhiteSpace(token.token)) - { - _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", token.token); - var response = _httpClient.GetAsync("/api/Test/administradores"); - } - - } -} diff --git a/phronCare.UIBlazor/Pages/ModalDemo.razor b/phronCare.UIBlazor/Pages/ModalDemo.razor deleted file mode 100644 index 7cf0462..0000000 --- a/phronCare.UIBlazor/Pages/ModalDemo.razor +++ /dev/null @@ -1,12 +0,0 @@ -@page "/modalDemo" - -

Blazored Modal Demo

- -@inject IModalService modalService - - - -@code { - - string Titulo = "Modal Example"; -} diff --git a/phronCare.UIBlazor/Shared/SurveyPrompt.razor b/phronCare.UIBlazor/Shared/SurveyPrompt.razor deleted file mode 100644 index 67b6b62..0000000 --- a/phronCare.UIBlazor/Shared/SurveyPrompt.razor +++ /dev/null @@ -1,16 +0,0 @@ -
- - @Title - - - Please take our - brief survey - - and tell us what you think. -
- -@code { - // Demonstrates how a parent component can supply parameters - [Parameter] - public string? Title { get; set; } -}