-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4fa4ce
commit 857c270
Showing
29 changed files
with
344 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
layout: page.liquid | ||
--- | ||
<section class="container is-fluid"> | ||
<div class="content columns"> | ||
<div class="column is-3 has-background-light"> | ||
{% include 'sidebar' %} | ||
</div> | ||
<div class="column is-9"> | ||
<div class="container is-fluid"> | ||
<div class="content">{{ content }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,84 @@ | ||
--- | ||
layout: page.liquid | ||
--- | ||
<section class="columns is-mobile"> | ||
<div class="column"></div> | ||
<article class="column box is-narrow"> | ||
<form action="/activate" method="post"> | ||
<div class="field"> | ||
<label class="label" for="codeInput">Activation Code</label> | ||
<div class="control"> | ||
<input id="codeInput" | ||
name="code" | ||
class="input" | ||
type="text" | ||
placeholder="activation code" | ||
pattern="[0-9]{6}" | ||
title="six digits" | ||
autofocus | ||
required> | ||
</div> | ||
<p class="help">Enter the activation code we sent to {{ '{{ email }}' }}.</p> | ||
</div> | ||
{% comment %} | ||
Server-provided value for loopback (see form action) | ||
{% endcomment %} | ||
<input name="jwe" type="hidden" value="{{ '{{ jwe }}' }}"> | ||
<div class="control"> | ||
<button class="button is-primary">Submit</button> | ||
</div> | ||
</form> | ||
</article> | ||
<div class="column"></div> | ||
</section> | ||
{{ '{% if key %}' }} | ||
<div id="result" class="modal is-active"> | ||
<div class="modal-background"></div> | ||
<div class="modal-content"> | ||
<article class="message is-success"> | ||
<div class="message-header"> | ||
<p>Account {{ '{{ account }}' }} was created!</p> | ||
</div> | ||
<div class="message-body field"> | ||
<label class="label" for="keyText"> | ||
Your new account key | ||
</label> | ||
<div class="control"> | ||
<textarea id="keyText" | ||
class="textarea is-family-monospace" | ||
onfocus="this.select()" | ||
readonly>{{ '{{ key }}' }}</textarea> | ||
</div> | ||
<p class="help">We don't keep your key, so copy it to somewhere safe.</p> | ||
</div> | ||
</article> | ||
</div> | ||
<a class="modal-close is-large" | ||
aria-label="close" | ||
href="named-subdomains"></a> | ||
</div> | ||
{{ '{% elsif error %}' }} | ||
<div id="result" class="modal is-active"> | ||
<div class="modal-background"></div> | ||
<div class="modal-content"> | ||
<article class="message is-danger"> | ||
<div class="message-header"> | ||
<p>{{ '{{ error.code }}' }}</p> | ||
</div> | ||
<div class="message-body"> | ||
<p>{{ '{{ error.message }}' }}</p> | ||
<p class="help">Sorry. Let's <a href="register">try that again</a>.</p> | ||
</div> | ||
</article> | ||
</div> | ||
<a class="modal-close is-large" | ||
aria-label="close" | ||
href="register"></a> | ||
</div> | ||
{{ '{% endif %}' }} | ||
<script> | ||
document.addEventListener('keydown', e => { | ||
if (e.key === 'Escape') | ||
document.querySelector('#result .modal-close').click(); | ||
}); | ||
</script> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
layout: page.liquid | ||
layout: doc.liquid | ||
title: getting started | ||
--- | ||
# Cloning a Subdomain | ||
|
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,5 +1,5 @@ | ||
--- | ||
layout: page.liquid | ||
layout: doc.liquid | ||
title: getting started | ||
--- | ||
# Getting Started | ||
|
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,45 @@ | ||
--- | ||
layout: page.liquid | ||
--- | ||
<section class="columns is-mobile"> | ||
<div class="column"></div> | ||
<div class="column box is-narrow"> | ||
<h1 class="title">Register an Account</h1> | ||
<p class="help">Enter the details below to register a new account.</p> | ||
<p class="help">You can also use this form to get a new key for an existing account.</p> | ||
<hr/> | ||
<form action="/activate" method="post"> | ||
<div class="field"> | ||
<label class="label" for="accInput">Account Name</label> | ||
<div class="control"> | ||
<input id="accInput" | ||
name="account" | ||
class="input" | ||
type="text" | ||
placeholder="new account name" | ||
pattern="[a-z0-9\-_]+" | ||
title="lowercase letters, digits and dashes" | ||
autofocus | ||
required> | ||
</div> | ||
<p class="help">May only contain lowercase letters, digits and dashes.</p> | ||
</div> | ||
<div class="field"> | ||
<label class="label" for="emailInput">Email</label> | ||
<div class="control"> | ||
<input id="emailInput" | ||
name="email" | ||
class="input" | ||
type="email" | ||
placeholder="your email" | ||
required> | ||
</div> | ||
<p class="help">We'll send an activation code to this address.</p> | ||
</div> | ||
<div class="control"> | ||
<button class="button is-primary">Submit</button> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="column"></div> | ||
</section> |
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
Oops, something went wrong.