-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathauthorisation.html
More file actions
44 lines (44 loc) · 2.12 KB
/
authorisation.html
File metadata and controls
44 lines (44 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authorisation | rplace</title>
<link rel="stylesheet" href="/reddit-modal.css">
<link rel="stylesheet" href="/reddit-modal-page.css">
<link rel="stylesheet" href="/authorisation.css">
<!--Shared resources-->
<script type="module" src="/src/shared.js"></script>
<script type="module" src="/src/shared-elements.js" defer></script>
<!--Services-->
<script type="module" src="/src/services/account-manager.js"></script>
<!--Page scripts-->
<script type="module" src="/src/pages/authorisation/authorisation.js"></script>
</head>
<body class="reddit-modal">
<div class="modal-content">
<header class="header">
<h4 style="margin: 0;">Rplace Authorisation</h4>
</header>
<r-close-icon onclick="window.parent.postMessage({ call: 'closeOAuthFrame' })" tabindex="0" style="position: absolute; top: 10px; right: 10px; width: 32px; z-index: 1;"></r-close-icon>
<main id="main" class="body" data-page="loading">
<div id="loadingPage" class="body" page="loading">
<div style="flex-grow: 1;display: flex;flex-direction: column;justify-content: center;align-items: center;">
<h4 id="loadingLabel">Authenticating</h4>
<img alt="Loading" src="/svg/loading-spinner.svg" width="64" height="64">
</div>
</div>
<div id="authorisationPage" class="body" page="authorisation">
<h3 style="margin: 0;">Allow <span id="clientLabel" style="font-size: inherit;">?</span> to access your rplace.live account?</h3>
<h4 style="margin: 0;">This will give them access to the following:</h4>
<ul id="scopesList"><!--Scopes--></ul>
<div style="flex-grow: 1;"><!-- Spacer --></div>
<button type="button" class="reddit-modal-button">Yes</button>
<button type="button" class="reddit-modal-button">No</button>
<small style="margin: 0;" id="redirectLabel">Once you authorise you'll be redirected to: <span id="redirectUriLabel">?</span></small>
<small style="margin: 0;">This request will expire in: <span id="expiryDateLabel"></span></small>
</div>
</main>
</div>
</body>
</html>