mirror of
https://github.com/caddyserver/website.git
synced 2025-04-26 23:16:16 -04:00
Account portal, download page, non-standard module docs
This ends v1 on the website. Docs archive still available through a sidebar nav link in the docs.
This commit is contained in:
parent
49ed10d267
commit
4f6d355a97
37 changed files with 1678 additions and 56 deletions
28
src/account/create.html
Normal file
28
src/account/create.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Create Account - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/create.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/create-account" class="card">
|
||||
<section class="head">
|
||||
<a href="/"><img src="/resources/images/caddy-lock.png" alt="Caddy Portal" class="logo"></a>
|
||||
</section>
|
||||
<section>
|
||||
<h1>Create Account</h1>
|
||||
or <a href="/account/login">log in</a>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="name" id="name" placeholder="Name">
|
||||
<input type="email" name="email" id="email" placeholder="Email address" required>
|
||||
<input type="password" name="password" placeholder="Password" required>
|
||||
<button type="submit" id="submit" class="blue">Create Account</button>
|
||||
<p>
|
||||
We will send you an email to verify your account.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
32
src/account/index.html
Normal file
32
src/account/index.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Dashboard - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/account/dashboard.css">
|
||||
<script src="/resources/js/account/dashboard.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{{include "/includes/account-nav.html"}}
|
||||
<main class="dashboard">
|
||||
<section>
|
||||
<h1 class="pad">Your packages<a href="/account/register-package" class="gray button float-right">Register package</a></h1>
|
||||
<table id="user-packages">
|
||||
<tr>
|
||||
<th>Import path</th>
|
||||
<th class="text-center"><span class="help" title="Whether package and module documentation is visible on the website.">Listed</span></th>
|
||||
<th class="text-center"><span class="help" title="Whether visitors can download Caddy with this package plugged in.">Available</span></th>
|
||||
<th>Downloads</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<!-- Filled by JS -->
|
||||
</table>
|
||||
<!-- <div class="text-right pad">
|
||||
<a href="/account/register-package" class="gray button">Register package</a>
|
||||
</div> -->
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
25
src/account/login.html
Normal file
25
src/account/login.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Log In - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/login.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/login" class="card">
|
||||
<section class="head">
|
||||
<a href="/"><img src="/resources/images/caddy-lock.png" alt="Caddy Portal" class="logo"></a>
|
||||
</section>
|
||||
<section>
|
||||
<h1>Log In</h1>
|
||||
or <a href="/account/create">create account</a>
|
||||
<div class="form-fields">
|
||||
<input type="email" name="email" id="email" placeholder="Email address" required>
|
||||
<input type="password" name="password" placeholder="Password" required>
|
||||
<button type="submit" id="submit" class="blue">Log In</button>
|
||||
<a href="/account/reset-password">Reset password</a>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
11
src/account/logout.html
Normal file
11
src/account/logout.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Logout - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/logout.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
Logging out...
|
||||
</body>
|
||||
</html>
|
42
src/account/register-package.html
Normal file
42
src/account/register-package.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Register Package - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/register-package.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{{include "/includes/account-nav.html"}}
|
||||
<main>
|
||||
<section>
|
||||
<form action="/api/claim-package">
|
||||
<div class="form-fields">
|
||||
<div class="field">
|
||||
<label>
|
||||
<b>Package import path</b>
|
||||
<input type="text" name="package" required>
|
||||
</label>
|
||||
<div class="description">
|
||||
You must use <a href="https://github.com/golang/go/wiki/Modules#semantic-import-versioning" target="_blank">semantic import versioning</a>. Basically, this means if your module is at v2 or higher the import path must be suffixed with <b>/vN</b> (where <b>N</b> is the major version number).
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>
|
||||
<b>Version</b>
|
||||
<input type="text" name="version" placeholder="latest">
|
||||
</label>
|
||||
<div class="description">
|
||||
Optional. Any version string recognized by <a href="https://github.com/golang/go/wiki/Modules#version-selection">Go module</a> tooling is acceptable.
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<button type="submit" id="submit" class="blue">Claim Package</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
38
src/account/reset-password.html
Normal file
38
src/account/reset-password.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reset Password - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/reset-password.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/reset-password" class="card" id="reset-password-step1">
|
||||
<section class="head">
|
||||
<a href="/"><img src="/resources/images/caddy-lock.png" alt="Caddy Portal" class="logo"></a>
|
||||
</section>
|
||||
<section>
|
||||
<h1>Reset Password</h1>
|
||||
<a href="javascript:" id="goto-step2">I already have a reset token</a>
|
||||
<div class="form-fields">
|
||||
<input type="email" name="email" id="email-step1" placeholder="Email address" required>
|
||||
<button type="submit" id="submit" class="blue">Continue</button>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<form action="/api/reset-password" class="card" id="reset-password-step2">
|
||||
<section class="head">
|
||||
<a href="/"><img src="/resources/images/caddy-lock.png" alt="Caddy Portal" class="logo"></a>
|
||||
</section>
|
||||
<section>
|
||||
<h1>Reset Password</h1>
|
||||
<a href="javascript:" id="goto-step1">I still need a reset token</a>
|
||||
<div class="form-fields">
|
||||
<input type="email" name="email" id="email-step2" placeholder="Email address" required>
|
||||
<input type="text" name="token" id="token" placeholder="Token" required>
|
||||
<input type="password" name="password" placeholder="New Password" required>
|
||||
<button type="submit" id="submit" class="blue">Finish Reset</button>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
24
src/account/verify.html
Normal file
24
src/account/verify.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Confirm Account - Caddy</title>
|
||||
{{include "/includes/account-head.html"}}
|
||||
<script src="/resources/js/account/verify.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/api/verify-account" class="card">
|
||||
<section class="head">
|
||||
<a href="/"><img src="/resources/images/caddy-lock.png" alt="Caddy Portal" class="logo"></a>
|
||||
</section>
|
||||
<section>
|
||||
<h1>Confirm Account</h1>
|
||||
or <a href="/account/login">log in</a>
|
||||
<div class="form-fields">
|
||||
<input type="email" name="email" id="email" placeholder="Email address" required>
|
||||
<input type="text" name="account_id" placeholder="Account ID" required>
|
||||
<button type="submit" id="submit" class="blue">Confirm</button>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue