reduce pairing copy

This commit is contained in:
AJ ONeal 2018-09-11 02:35:31 +00:00
parent c2165578e1
commit 883f8a55b1
1 changed files with 19 additions and 20 deletions

View File

@ -1,14 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<!--meta http-equiv="refresh" content="5;url=https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',')" /--> <title>Telebit - Pair Device</title>
</head> </head>
<body> <body>
<script>document.body.hidden = true;</script> <script>document.body.hidden = true;</script>
<div class="js-error" hidden> <div class="js-error" hidden>
<h1>Invalid Magic Link</h1> <h1>Invalid Pairing Link</h1>
<div class="js-magic-link">'{{magic_link}}' isn't a valid magic link code. <div class="js-magic-link">'{{magic_link}}' isn't a valid pairing link code.
<br>Links are only valid for a limited time, so you gotta act fast. <br>Links are only valid for a limited time, so you gotta act fast.
</div> </div>
</div> </div>
@ -18,7 +18,7 @@
<h2>Pair <span class="js-hostname">Device</span></h1> <h2>Pair <span class="js-hostname">Device</span></h1>
<p>Enter your device pairing code: <p>Enter your device pairing code:
<input type="text" name="pair-code" placeholder="ex: 000 000"> <input type="text" name="pair-code" placeholder="ex: 0000">
</p> </p>
<ul> <ul>
@ -35,26 +35,25 @@
<div class="js-authz" hidden> <div class="js-authz" hidden>
<h1>Telebit Authorized</h1> <h1>Telebit</h1>
<h2>Waiting for your device to connect...</h2> <ul>
<p>Check your device to complete the pairing.</p> <li><label><input type="checkbox" checked disabled> Authorized</label></li>
<li><label><input type="checkbox" checked disabled>
Generated <span class="js-domainname">xxx-xxx-xxx.example.com</span> just for you</label></li>
<li><label><input type="checkbox" disabled> Waiting for your device to pair</label></li>
<li><label><input type="checkbox" disabled>
Securing your new domain</label></li>
</ul>
<h2>🔒 <span class="js-domainname">xxx-xxx-xxx.example.com</span></h2> <p><strong>Check the command line on your device to finish pairing.</strong></p>
<p>When your device is paired you will be redirected to
<a class="js-new-href">{{js-new-href}}</a>.
</p>
<h2 class="js-serviceport">xxxxx</h2> <h2>Debug Info</h2>
<p>When your device is paired you will be able to use <span class="js-serviceport">xxxxx</span> <p><a class="js-new-href">{{js-new-href}}</a></p>
for SSH, and other TCP protocols.</p> <p class="js-serviceport">xxxxx</p>
<pre><code>telebit ssh auto
ssh <span class="js-domainname">{{servername}}</span> -p <span class="js-serviceport">{{serviceport}}</span></code></pre> <p><small>Authorization Token:
</code></pre> <pre><code class="js-token">{{js-token}}</code></pre></small></p>
<h2>Authorization Token</h2>
<small><pre><code class="js-token">{{js-token}}</code></pre></small>
</div> </div>