This repository has been archived on 2024-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
burgerauth/templates/dashboard.html

52 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2024-04-26 21:12:56 +01:00
<!DOCTYPE html>
<html lang="en">
2024-04-26 21:12:56 +01:00
<head>
<title>Dashboard - {{ .identifier }}</title>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" href="/static/svg/favicon.svg">
<link rel="stylesheet" type="text/css" href="/static/css/style.css"/>
2024-04-26 21:12:56 +01:00
</head>
<body>
<img src="/static/img/background.png" class="background" alt="">
2024-04-26 21:12:56 +01:00
<div class="newoauth">
<h2>Dashboard</h2>
<p>Welcome to the Burgerauth dashboard!</p>
<button id="devAcctSwitcher">Switch to developer view</button>
</div>
<div id="developers" class="hidden">
<div class="newoauth">
<h2>Submit a new OAuth2 App</h2>
<p id="status"></p>
<p>App Name:</p>
<input id="appidbox">
<p>Redirect URI:</p>
<input id="rdiruribox">
<p>Enable OpenID:</p>
<input type="checkbox" id="openidbox">
<p>AESKeyShare URI (optional, will add the aeskeyshare scope):</p>
<input id="aeskeysharebox">
<br>
<button style="margin-top: 10px;" onclick="attempt()">Submit</button>
</div>
<div class="oauthlist" id="oauthlist" style="margin-bottom: 30px;">
<h2>Your existing apps</h2>
</div>
2024-04-26 21:12:56 +01:00
</div>
<div id="account">
<div class="newoauth">
<h2>Account settings</h2>
<p id="namebox">Loading...</p>
<p id="datebox"></p>
<button onclick="window.location.href = '/logout';">Logout</button><br style="">
<button onclick="deleteacct()" style="margin-top: 5px;">Delete Account</button>
</div>
<div class="oauthlist" id="sessionsList" style="margin-bottom: 30px;">
<h2>Sessions</h2>
</div>
2024-04-26 21:12:56 +01:00
</div>
<script src="/static/js/dashboard.js"></script>
2024-04-26 21:12:56 +01:00
</body>
</html>