-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
32 lines (27 loc) · 1.35 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;
using CV;
using CV.Pages;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<Inicio>("#preRenderComponent");
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
});
builder.Services.AddLocalization();
//Blazorise
builder
.Services.AddBlazorise(options =>
{
options.Immediate = true;
options.ProductToken = "CjxRBHB/NQ8+UQN3fTc1BlEAc3s0CTxWAHh+MAk4bjoNJ2ZdYhBVCCo/Cj5aAkxERldhE1EvN0xcNm46FD1gSkUHCkxESVFvBl4yK1FBfAYKAiFoVXkNWTU3CDJTPHQAGkR/Xip0HhFIeVQ8bxMBUmtTPApwfjUIPG46HhFEbVgscw4DVXRJN3UeEUh5VDxvEwFSa1M8CnB+NQg8bjoeEUZwTTFkEhFadU07bx4cSm9fPG97fzUIAWlvHgJMa1g1eQQZWmdBImgeEVd3WzBvHnQ0CDxTAExEWmdYMXUEGEx9WzxvDA9dZ1MxfxYdWmc2UgBxfggySg9xOX5cejg0GwQqTF05V3IpKVFSSRl6Oy90VXoTQRsfaE98AAETeDd1OQhzJzZpa1wJdC4acE9lTAkID0d6TwFDDwgqXUQrWwcscl1pG1oEH3drRShWMC9XXEhacwwNNXI9EVZ0IHZ0XiIJDQZcbHsSRDYsZhdpO2gqZUAIPFd0Jx9GCGsbfA8rRkxgO2ItNn1gRixGAj5jCmlUAXYtaEpqB3wsA0t/ZQZ1fA==";
})
.AddBootstrapProviders()
.AddFontAwesomeIcons();
var app = builder.Build();
await app.RunAsync();