Skip to content

Commit

Permalink
se agregan notificaciones toastr al proyecto
Browse files Browse the repository at this point in the history
  • Loading branch information
psychohub committed Dec 18, 2023
1 parent d9b20bf commit f9bc23d
Show file tree
Hide file tree
Showing 105 changed files with 378 additions and 54 deletions.
Binary file modified .vs/ProjectEvaluation/siaesapisolution.metadata.v7.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/siaesapisolution.projects.v7.bin
Binary file not shown.
Binary file modified .vs/SiaesAPISolution/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/SiaesAPISolution/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/SiaesAPISolution/v17/.suo
Binary file not shown.
Binary file added .vs/SiaesAPISolution/v17/HierarchyCache.v1.txt
Binary file not shown.
18 changes: 18 additions & 0 deletions SiaesCliente/Helpers/IJsHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Microsoft.JSInterop;

namespace SiaesCliente.Helpers
{
public static class IJsHelper
{
public static async ValueTask ToastrSuccess(this IJSRuntime JSRuntime, string message)
{
await JSRuntime.InvokeVoidAsync("ShowToastr", "success", message);
}

public static async ValueTask ToastrError(this IJSRuntime JSRuntime, string message)
{
await JSRuntime.InvokeVoidAsync("ShowToastr", "error", message);
}
}

}
24 changes: 21 additions & 3 deletions SiaesCliente/Pages/Home.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
@page "/"
@inject IJSRuntime JSRuntime

<PageTitle>Home</PageTitle>

<h1>Hello, world!</h1>
<PageTitle>Inicio</PageTitle>

Welcome to your new app.
<h1 class="Ultimos posts">Hello, world!</h1>

<div class="col-4">
<button class="btn btn-success" @onclick="DemoSucces">Demo Toastr Success</button>
<button class="btn btn-danger" @onclick="DemoError">Demo Toastr Error</button>
</div>


@code {
private async Task DemoSucces()
{
await JSRuntime.ToastrSuccess("Tarea Completa!");
}

private async Task DemoError()
{
await JSRuntime.ToastrError("Error, Tarea InCompleta!");
}
}
3 changes: 3 additions & 0 deletions SiaesCliente/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using SiaesCliente;
Expand All @@ -6,6 +7,8 @@
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");



builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

await builder.Build().RunAsync();
40 changes: 20 additions & 20 deletions SiaesCliente/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:42949",
"sslPort": 44373
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:5107",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"dotnetRunMessages": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:5107"
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:7156;http://localhost:5107",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"dotnetRunMessages": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:7156;http://localhost:5107"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:30744/",
"sslPort": 44353
}
}
}
}
1 change: 1 addition & 0 deletions SiaesCliente/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
@using Microsoft.JSInterop
@using SiaesCliente
@using SiaesCliente.Layout
@using SiaesCliente.Helpers
Binary file modified SiaesCliente/bin/Debug/net8.0/SiaesCliente.dll
Binary file not shown.
Binary file modified SiaesCliente/bin/Debug/net8.0/SiaesCliente.pdb
Binary file not shown.

Large diffs are not rendered by default.

Binary file modified SiaesCliente/bin/Debug/net8.0/SiaesLibraryShared.dll
Binary file not shown.
Binary file modified SiaesCliente/bin/Debug/net8.0/SiaesLibraryShared.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "SiaesCliente",
"resources": {
"hash": "sha256-ppow5c1HuL3I3nAY5JKNJkVoJQFFm6aa9JzbzfgGV7A=",
"hash": "sha256-4NX862Mnyyo6n9eTXz4SMob7erLXqLGVsrhuyBA76fM=",
"jsModuleNative": {
"dotnet.native.8.0.0.3eyq2haox0.js": "sha256-LjLDIz9+J7uuiwMlQ4HbNx2BnSpphOtO2MwkoI28vdI="
},
Expand Down Expand Up @@ -208,12 +208,12 @@
"mscorlib.wasm": "sha256-cDuLeL3OCtVtiid/dyex1MVgbuzDSRwZxKzuP2Dp4mg=",
"netstandard.wasm": "sha256-A0h86SDieTMoU/wU2JTszWCsUmMuguDcbap0b0BzsmI=",
"System.Private.CoreLib.wasm": "sha256-/0DNIm/T0C07X7Tuz5uR8JvVCoAfEE2MnfPUSjyS9xc=",
"SiaesLibraryShared.wasm": "sha256-rYM6fX0QPovfGE4Lzv2PNotlO2N9RxO8zhGEy+OMfls=",
"SiaesCliente.wasm": "sha256-oxI+iGIsL2IiANZcyrSvCA1VIb8Rslk0Sri6l+Dmy/k="
"SiaesLibraryShared.wasm": "sha256-NAhG5bpqdu1XxEpX2q1jDJAAfJzL9x7bebdMRr3uzPo=",
"SiaesCliente.wasm": "sha256-i7AVq1q4GjSQh5tC1GjqCHh2NJBx91xFSxffyrFif+Q="
},
"pdb": {
"SiaesLibraryShared.pdb": "sha256-6E9/9PEWQ7gdo+dyufyZmXZq8dgUPLenLw8rWLur5U0=",
"SiaesCliente.pdb": "sha256-WAaZLfQETDbfvsh5GO19sW5W5EHeas+ojzUTXYmoK8I="
"SiaesLibraryShared.pdb": "sha256-nG/18Eqm6okfLPA57Ng6jHRDK0cSAhjqyNHCgRafCX0=",
"SiaesCliente.pdb": "sha256-dBNQwEYZj5dGa0lAiE/tLlGvrMpRl652Dv6xFR7jbcY="
}
},
"cacheBootResources": true,
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion SiaesCliente/obj/Debug/net8.0/SiaesCliente.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("SiaesCliente")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d9b20bf3821b008555524981a4b5f06602d9ba9f")]
[assembly: System.Reflection.AssemblyProductAttribute("SiaesCliente")]
[assembly: System.Reflection.AssemblyTitleAttribute("SiaesCliente")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ac94fdc75daf51ccbf65e35c99ba20d486a6b5bc95fe586b476db56de47804f1
6a55439ddba650fba1f8d38c9afc3b7cb427608652a9df941dceef16ea312134
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c38bdf414cc897a0f677fed70f7b178e963a493dce85bec645c661d3ea64c30c
4e12c0b18b2d39bc2a5fca3c1bdd1114ab56f77adb8c95d80c516f21834dd9f2
Original file line number Diff line number Diff line change
Expand Up @@ -1038,3 +1038,4 @@ C:\Users\huber\Documents\Source\Proyectos\BlazorNet8\siaesweb\SiaesAPISolution\S
C:\Users\huber\Documents\Source\Proyectos\BlazorNet8\siaesweb\SiaesAPISolution\SiaesCliente\obj\Debug\net8.0\webcil\SiaesLibraryShared.wasm
C:\Users\huber\Documents\Source\Proyectos\BlazorNet8\siaesweb\SiaesAPISolution\SiaesCliente\obj\Debug\net8.0\compressed\e8d2t7qkal.gz
C:\Users\huber\Documents\Source\Proyectos\BlazorNet8\siaesweb\SiaesAPISolution\SiaesCliente\obj\Debug\net8.0\compressed\e3ekz3m1j0.gz
C:\Users\huber\Documents\Source\Proyectos\BlazorNet8\siaesweb\SiaesAPISolution\SiaesCliente\obj\Debug\net8.0\SiaesCliente.sourcelink.json
Binary file modified SiaesCliente/obj/Debug/net8.0/SiaesCliente.dll
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/SiaesCliente.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions SiaesCliente/obj/Debug/net8.0/SiaesCliente.sourcelink.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documents":{"C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\*":"https://raw.githubusercontent.com/psychohub/SiaesWeb/d9b20bf3821b008555524981a4b5f06602d9ba9f/*"}}
10 changes: 5 additions & 5 deletions SiaesCliente/obj/Debug/net8.0/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "SiaesCliente",
"resources": {
"hash": "sha256-ppow5c1HuL3I3nAY5JKNJkVoJQFFm6aa9JzbzfgGV7A=",
"hash": "sha256-4NX862Mnyyo6n9eTXz4SMob7erLXqLGVsrhuyBA76fM=",
"jsModuleNative": {
"dotnet.native.8.0.0.3eyq2haox0.js": "sha256-LjLDIz9+J7uuiwMlQ4HbNx2BnSpphOtO2MwkoI28vdI="
},
Expand Down Expand Up @@ -208,12 +208,12 @@
"mscorlib.wasm": "sha256-cDuLeL3OCtVtiid/dyex1MVgbuzDSRwZxKzuP2Dp4mg=",
"netstandard.wasm": "sha256-A0h86SDieTMoU/wU2JTszWCsUmMuguDcbap0b0BzsmI=",
"System.Private.CoreLib.wasm": "sha256-/0DNIm/T0C07X7Tuz5uR8JvVCoAfEE2MnfPUSjyS9xc=",
"SiaesLibraryShared.wasm": "sha256-rYM6fX0QPovfGE4Lzv2PNotlO2N9RxO8zhGEy+OMfls=",
"SiaesCliente.wasm": "sha256-oxI+iGIsL2IiANZcyrSvCA1VIb8Rslk0Sri6l+Dmy/k="
"SiaesLibraryShared.wasm": "sha256-NAhG5bpqdu1XxEpX2q1jDJAAfJzL9x7bebdMRr3uzPo=",
"SiaesCliente.wasm": "sha256-i7AVq1q4GjSQh5tC1GjqCHh2NJBx91xFSxffyrFif+Q="
},
"pdb": {
"SiaesLibraryShared.pdb": "sha256-6E9/9PEWQ7gdo+dyufyZmXZq8dgUPLenLw8rWLur5U0=",
"SiaesCliente.pdb": "sha256-WAaZLfQETDbfvsh5GO19sW5W5EHeas+ojzUTXYmoK8I="
"SiaesLibraryShared.pdb": "sha256-nG/18Eqm6okfLPA57Ng6jHRDK0cSAhjqyNHCgRafCX0=",
"SiaesCliente.pdb": "sha256-dBNQwEYZj5dGa0lAiE/tLlGvrMpRl652Dv6xFR7jbcY="
}
},
"cacheBootResources": true,
Expand Down
Binary file modified SiaesCliente/obj/Debug/net8.0/compressed/9dov2l9gzf.gz
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/compressed/e3ekz3m1j0.gz
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/compressed/e8d2t7qkal.gz
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/compressed/fveyapdap7.gz
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/compressed/moio1oh9d0.gz
Binary file not shown.
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/ref/SiaesCliente.dll
Binary file not shown.
Binary file modified SiaesCliente/obj/Debug/net8.0/refint/SiaesCliente.dll
Binary file not shown.
78 changes: 77 additions & 1 deletion SiaesCliente/obj/Debug/net8.0/staticwebassets.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Version": 1,
"Hash": "Y9sOySQxJ0tJdK7CD5xoKbBGnD5Atgx+/6nt+4b/qpM=",
"Hash": "ZhyYsq5WpPgmR5P6smu2+97T5yOMrpVYL4xV8NT5zbI=",
"Source": "SiaesCliente",
"BasePath": "/",
"Mode": "Root",
Expand Down Expand Up @@ -7882,6 +7882,25 @@
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\obj\\Debug\\net8.0\\scopedcss\\projectbundle\\SiaesCliente.bundle.scp.css"
},
{
"Identity": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\aes png.png",
"SourceId": "SiaesCliente",
"SourceType": "Discovered",
"ContentRoot": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\",
"BasePath": "/",
"RelativePath": "aes png.png",
"AssetKind": "All",
"AssetMode": "All",
"AssetRole": "Primary",
"AssetMergeBehavior": "PreferTarget",
"AssetMergeSource": "",
"RelatedAsset": "",
"AssetTraitName": "",
"AssetTraitValue": "",
"CopyToOutputDirectory": "Never",
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "wwwroot\\aes png.png"
},
{
"Identity": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\css\\app.css",
"SourceId": "SiaesCliente",
Expand Down Expand Up @@ -7995,6 +8014,63 @@
"CopyToOutputDirectory": "Never",
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "wwwroot\\index.html"
},
{
"Identity": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\bootstrap.min.js",
"SourceId": "SiaesCliente",
"SourceType": "Discovered",
"ContentRoot": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\",
"BasePath": "/",
"RelativePath": "js/bootstrap.min.js",
"AssetKind": "All",
"AssetMode": "All",
"AssetRole": "Primary",
"AssetMergeBehavior": "PreferTarget",
"AssetMergeSource": "",
"RelatedAsset": "",
"AssetTraitName": "",
"AssetTraitValue": "",
"CopyToOutputDirectory": "Never",
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "wwwroot\\js\\bootstrap.min.js"
},
{
"Identity": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\bootstrap.min.js.map",
"SourceId": "SiaesCliente",
"SourceType": "Discovered",
"ContentRoot": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\",
"BasePath": "/",
"RelativePath": "js/bootstrap.min.js.map",
"AssetKind": "All",
"AssetMode": "All",
"AssetRole": "Primary",
"AssetMergeBehavior": "PreferTarget",
"AssetMergeSource": "",
"RelatedAsset": "",
"AssetTraitName": "",
"AssetTraitValue": "",
"CopyToOutputDirectory": "Never",
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "wwwroot\\js\\bootstrap.min.js.map"
},
{
"Identity": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\common.js",
"SourceId": "SiaesCliente",
"SourceType": "Discovered",
"ContentRoot": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\",
"BasePath": "/",
"RelativePath": "js/common.js",
"AssetKind": "All",
"AssetMode": "All",
"AssetRole": "Primary",
"AssetMergeBehavior": "PreferTarget",
"AssetMergeSource": "",
"RelatedAsset": "",
"AssetTraitName": "",
"AssetTraitValue": "",
"CopyToOutputDirectory": "Never",
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "wwwroot\\js\\common.js"
}
]
}

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions SiaesCliente/obj/Debug/net8.0/staticwebassets.pack.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\obj\\Debug\\net8.0\\scopedcss\\bundle\\SiaesCliente.styles.css",
"PackagePath": "staticwebassets\\SiaesCliente.styles.css"
},
{
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\aes png.png",
"PackagePath": "staticwebassets\\aes png.png"
},
{
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\css\\app.css",
"PackagePath": "staticwebassets\\css\\app.css"
Expand All @@ -36,6 +40,18 @@
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\index.html",
"PackagePath": "staticwebassets\\index.html"
},
{
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\bootstrap.min.js",
"PackagePath": "staticwebassets\\js\\bootstrap.min.js"
},
{
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\bootstrap.min.js.map",
"PackagePath": "staticwebassets\\js\\bootstrap.min.js.map"
},
{
"Id": "C:\\Users\\huber\\Documents\\Source\\Proyectos\\BlazorNet8\\siaesweb\\SiaesAPISolution\\SiaesCliente\\wwwroot\\js\\common.js",
"PackagePath": "staticwebassets\\js\\common.js"
},
{
"Id": "obj\\Debug\\net8.0\\staticwebassets\\msbuild.SiaesCliente.Microsoft.AspNetCore.StaticWebAssets.props",
"PackagePath": "build\\Microsoft.AspNetCore.StaticWebAssets.props"
Expand Down
Loading

0 comments on commit f9bc23d

Please sign in to comment.