This repository has been archived by the owner on Aug 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Provisioning and configuration docs * More docs * Update sample. Remove project references * Add custom launch uri for invitation * Code comments * Updated documentation in quickstart
- Loading branch information
1 parent
2253c36
commit f502667
Showing
32 changed files
with
581 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
namespace WebAgent.Models | ||
{ | ||
public class LaunchAppViewModel | ||
{ | ||
public string UriSchema { get; set; } | ||
|
||
public string InvitationDetails { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 24 additions & 20 deletions
44
samples/aspnetcore/Views/Connections/CreateInvitation.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<h1> | ||
Create Invitation | ||
</h1> | ||
<p> | ||
Copy the connection invitation details | ||
</p> | ||
<hr /> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<form class="form-inline"> | ||
<div class="form-group"> | ||
<label class="sr-only" for="exampleInputAmount">Invitation Details</label> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" readonly="readonly" id="exampleInputAmount" placeholder="Amount" value="@ViewData["Invitation"]" /> | ||
</div> | ||
</div> | ||
<button class="btn btn-primary" onclick="copyToCliboard(document.getElementById('exampleInputAmount')); return false;">Copy to Clipboard</button> | ||
</form> | ||
</div> | ||
</div> | ||
@{ | ||
var invitation = (string)ViewData["Invitation"]; | ||
var qrUri = $"https://chart.googleapis.com/chart?cht=qr&chs=300x300&chld=L|0&chl={Uri.EscapeDataString(invitation)}"; | ||
} | ||
|
||
<div class="card text-center mt-2" style="width: 18rem"> | ||
<div class="card-header"> | ||
Invitation Details | ||
</div> | ||
<img class="card-img" src="@qrUri" /> | ||
<div class="card-body"> | ||
<p> | ||
<a href="#" data-toggle="modal" data-target="#exampleModalCenter">Open in app</a> | ||
</p> | ||
<form class="input-group mb-3"> | ||
<input readonly="readonly" type="text" id="invitationDetails" autocomplete="off" class="form-control" value="@invitation" aria-label="Recipient's username" aria-describedby="basic-addon2"> | ||
<div class="input-group-append"> | ||
<button class="btn btn-info" onclick="copyToCliboard(document.getElementById('invitationDetails'));return false;">Copy</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
@await Html.PartialAsync("_LaunchApp", invitation) |
Oops, something went wrong.