Remove Blazor
This commit is contained in:
18
EnvelopeGenerator.Web/Views/Home/Index.cshtml
Normal file
18
EnvelopeGenerator.Web/Views/Home/Index.cshtml
Normal file
@@ -0,0 +1,18 @@
|
||||
@using EnvelopeGenerator.Common;
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
@functions {
|
||||
string encodeEnvelopeKey(Envelope envelope)
|
||||
{
|
||||
var receiver = envelope.Receivers.Where(r => r.Id == 1).SingleOrDefault();
|
||||
return Helpers.EncodeEnvelopeReceiverId(envelope.Uuid, receiver.Signature);
|
||||
}
|
||||
}
|
||||
|
||||
@foreach (Envelope envelope in @Model)
|
||||
{
|
||||
<li><a href="/EnvelopeKey/@encodeEnvelopeKey(envelope)">@envelope.Title</a></li>
|
||||
}
|
||||
|
||||
12
EnvelopeGenerator.Web/Views/Home/Show.cshtml
Normal file
12
EnvelopeGenerator.Web/Views/Home/Show.cshtml
Normal file
@@ -0,0 +1,12 @@
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
}
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
const app = new App("#app", "@ViewData["EnvelopeKey"]");
|
||||
await app.init();
|
||||
})
|
||||
</script>
|
||||
|
||||
<div id='app' style='background: gray; width: 100vw; height: 100vh; margin: 0 auto;'></div>
|
||||
Reference in New Issue
Block a user