소스 검색

Inserido Radzen

Júlio César de Carvalho 4 달 전
부모
커밋
894a064272

+ 2 - 0
ConcursoProjetos/Components/App.razor

@@ -21,6 +21,8 @@
 <body>
     <Routes />
     <script src="_framework/blazor.web.js"></script>
+
+    <script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=@(typeof(Radzen.Colors).Assembly.GetName().Version)"></script>
 </body>
 
 </html>

+ 2 - 0
ConcursoProjetos/Components/Layout/MainLayout.razor

@@ -5,6 +5,8 @@
         <NavMenu />
     </div>
 
+    <RadzenComponents @rendermode="InteractiveServer" />
+
     <main>
         <div class="top-row px-4">
             <a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>

+ 0 - 2
ConcursoProjetos/Components/Pages/Auth.razor

@@ -1,7 +1,5 @@
 @page "/auth"
 
-@using Microsoft.AspNetCore.Authorization
-
 @attribute [Authorize]
 
 <PageTitle>Auth</PageTitle>

+ 3 - 0
ConcursoProjetos/Components/Pages/GestaoProjetos.razor

@@ -1,8 +1,11 @@
 @page "/gestaoprojetos"
+
+@attribute [Authorize]
 @rendermode InteractiveServer
 
 
 @using ConcursoProjetos.Service
+@using Microsoft.AspNetCore.Authorization
 @using Microsoft.AspNetCore.Identity
 
 @inject UserManager<ApplicationUser> UserManager

+ 2 - 0
ConcursoProjetos/Components/Pages/PageProjeto.razor

@@ -1,4 +1,6 @@
 @page "/pageprojeto/{projetoId:long}"
+
+@attribute [Authorize]
 @rendermode InteractiveServer
 
 @using System.ComponentModel.DataAnnotations

+ 5 - 0
ConcursoProjetos/Components/_Imports.razor

@@ -7,6 +7,11 @@
 @using static Microsoft.AspNetCore.Components.Web.RenderMode
 @using Microsoft.AspNetCore.Components.Web.Virtualization
 @using Microsoft.JSInterop
+@using Radzen
+@using Radzen.Blazor
+@using Microsoft.AspNetCore.Authorization
+
+
 @using ConcursoProjetos
 @using ConcursoProjetos.Components
 @using ConcursoProjetos.Data

+ 1 - 0
ConcursoProjetos/ConcursoProjetos.csproj

@@ -12,6 +12,7 @@
     <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.8" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8" />
+    <PackageReference Include="Radzen.Blazor" Version="5.7.0" />
     <PackageReference Include="Serilog" Version="4.2.0" />
     <PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
   </ItemGroup>

BIN
ConcursoProjetos/Files/6/Projeto_6_Projeto Arquitetônico-gInk_v1.1.1-638699521614960986.zip


BIN
ConcursoProjetos/Files/6/Projeto_6_Projeto de Telecomunicação-gInk_v1.2.0-638699521649969749.zip


+ 4 - 1
ConcursoProjetos/Program.cs

@@ -5,6 +5,7 @@ using ConcursoProjetos.Service;
 using Microsoft.AspNetCore.Components.Authorization;
 using Microsoft.AspNetCore.Identity;
 using Microsoft.EntityFrameworkCore;
+using Radzen;
 using Serilog;
 
 var builder = WebApplication.CreateBuilder(args);
@@ -38,7 +39,7 @@ builder.Services.AddScoped<IProjetoService, ProjetoService>();
 builder.Services.AddScoped<ITipoDocumentoService, TipoDocumentoService>();
 builder.Services.AddScoped<IDocumentoService, DocumentoService>();
 
-
+builder.Services.AddRadzenComponents();
 
 
 
@@ -64,6 +65,8 @@ builder.Services.AddIdentityCore<ApplicationUser>(options => options.SignIn.Requ
 
 builder.Services.AddSingleton<IEmailSender<ApplicationUser>, IdentityNoOpEmailSender>();
 
+
+
 var app = builder.Build();
 
 // Configure the HTTP request pipeline.