add prebuild dist

This commit is contained in:
Kai Michaelis 2019-02-12 14:11:03 +01:00
parent 57611d031b
commit dbd26b896d
13 changed files with 6627 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
/node_modules
/target
**/*.rs.bk
/dist
/dist/public/by-*
/dist/verification_tokens/*
/dist/deletion_tokens/*

6410
dist/public/assets/site.css vendored Normal file

File diff suppressed because it is too large Load Diff

70
dist/public/assets/site.js vendored Normal file

File diff suppressed because one or more lines are too long

10
dist/templates/confirm-email-html.hbs vendored Normal file
View File

@ -0,0 +1,10 @@
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Please confirm deletion of your key</title>
</head>
<body>
<a href='https://{{ domain }}/vks/confirm/{{ token }}'>Click here</a> to confirm deleting your key.
</body>
</html>

1
dist/templates/confirm-email-txt.hbs vendored Normal file
View File

@ -0,0 +1 @@
Click here: https://{{ domain }}/vks/confirm/{{ token }} to confirm deleting of your key.

10
dist/templates/confirm.html.hbs vendored Normal file
View File

@ -0,0 +1,10 @@
{{#> layout}}
{{#if deleted }}
<h1>Key deleted</h1>
<p>We deleted your key from the server. You can re-upload any time.</p>
{{else}}
<h1>Key deletion failed</h1>
<p>We don't recognize the token you provided. It's either wrong or expired.
You can request the deletion of your key again to get another deletion token.</p>
{{/if}}
{{/layout}}

4
dist/templates/delete.html.hbs vendored Normal file
View File

@ -0,0 +1,4 @@
{{#> layout}}
<h1>Deletion requested</h1>
<p>We sent you an email with instuctions how to delete you key to all of your verified email addresses.</p>
{{/layout}}

17
dist/templates/index.html.hbs vendored Normal file
View File

@ -0,0 +1,17 @@
{{#> layout }}
<h1 class="mt-5">Hagrid Public Key Server</h1>
<p class="lead">The verifying PGP key server.</p>
<h2>Search for keys</h2>
<form action="/pks/lookup" method=GET>
<input type="search" id="search" name="search" placeholder="Email">
<input type="hidden" id="op" name="op" value="get">
<input type="submit" value="Search">
</form>
<h2>Upload your key</h2>
<form action="/pks/add" method=POST enctype=multipart/form-data>
<input type="file" id="keytext" name="keytext" placeholder="Your public key">
<input type="submit" value="Upload">
</form>
{{/layout}}

62
dist/templates/layout.html.hbs vendored Normal file
View File

@ -0,0 +1,62 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Hagrid Public Key Server</title>
<link href="/assets/site.css" rel="stylesheet"></head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col"></div>
<div class="col-md-10">
{{> @partial-block }}
</div>
<div class="col"></div>
</div>
</div>
<div class="text-center py-3">
Hagrid v{{ version }} build from {{ commit }}
</div>
</footer>
<script type="text/javascript" src="/assets/site.js"></script></body>
</html>

16
dist/templates/upload.html.hbs vendored Normal file
View File

@ -0,0 +1,16 @@
{{#> layout }}
<h1>Key uploaded</h1>
<p>Your key can be fetched by its fingerprint and long key ID.</p>
{{#if tokens}}
<p>We also sent verification links to the following email addresses:</p>
<ul>
{{#each tokens}}
<li>{{userid}}</li>
{{/each}}
</ul>
<p>These links can be used to allow your key be fetch by email address.</p>
{{else}}
<p>There were no new unverified email addresses in this key.</p>
{{/if}}
<p>You can delete the key <a href="/vks/delete/{{ fpr }}">here</a>.
{{/layout}}

10
dist/templates/verify-email-html.hbs vendored Normal file
View File

@ -0,0 +1,10 @@
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Please verify your email address</title>
</head>
<body>
<a href='https://{{ domain }}/vks/verify/{{ token }}'>Click here</a> to verify {{ address }}
</body>
</html>

1
dist/templates/verify-email-txt.hbs vendored Normal file
View File

@ -0,0 +1 @@
Click here: https://{{ domain }}/vks/verify/{{ token }} to verify {{ address }}

13
dist/templates/verify.html.hbs vendored Normal file
View File

@ -0,0 +1,13 @@
{{#> layout}}
{{#if verified }}
<h1>Email verified</h1>
<p>You've verified <em>{{ userid }}</em> successfully. Everybody who knows
your email address is now able to find your key. You can <a href="/vks/delete/{{
fpr }}">delete</a> your key any time you want.</p>
{{else}}
<h1>Email verification failed</h1>
<p>We don't recognize the token you provided. It's either wrong or expired.
Upload your key again to get another verification token sent to you.</p>
{{/if}}
{{/layout}}