Eliminacion de razor de fabrica
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m57s

This commit is contained in:
Leandro Hernan Rojas 2025-04-30 00:44:15 -03:00
parent 508ab9de18
commit 14d84c43df
3 changed files with 0 additions and 64 deletions

View File

@ -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
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@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");
}
}
}

View File

@ -1,12 +0,0 @@
@page "/modalDemo"
<h3>Blazored Modal Demo</h3>
@inject IModalService modalService
<button @onclick="(()=> modalService.Show<Counter>(Titulo))" class="btn btn-primary">Ver</button>
@code {
string Titulo = "Modal Example";
}

View File

@ -1,16 +0,0 @@
<div class="alert alert-secondary mt-4">
<span class="oi oi-pencil me-2" aria-hidden="true"></span>
<strong>@Title</strong>
<span class="text-nowrap">
Please take our
<a target="_blank" class="font-weight-bold link-dark" href="https://go.microsoft.com/fwlink/?linkid=2186157">brief survey</a>
</span>
and tell us what you think.
</div>
@code {
// Demonstrates how a parent component can supply parameters
[Parameter]
public string? Title { get; set; }
}