forked from freaktechnik/advanced-github-notifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
95 lines (93 loc) · 6.41 KB
/
options.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/options.css">
<script src="scripts/l10n.js"></script>
<script src="scripts/storage.js"></script>
<script src="scripts/storage-manager.js"></script>
<script src="scripts/options.js"></script>
</head>
<body>
<section id="accounts">
<h2>Manage accounts</h2>
<form id="login">
<label for="account-type" data-l10n-id="account_type">Account type</label>
<select class="browser-style" id="account-type">
<optgroup label="GitHub.com" data-l10n-id="group_github" data-l10n-nocontent="yes" data-l10n-attrs="label">
<option value="github" data-l10n-id="account_github" disabled>GitHub</option>
<option value="github-light" data-l10n-id="account_github-light" disabled>GitHub (no private repos)</option>
<option value="github-user" data-l10n-id="account_github-user" selected>GitHub (Personal access token)</option><!-- default because OAuth flow is broken -->
</optgroup>
<optgroup label="GitHub Enterprise" data-l10n-id="group_enterprise" data-l10n-nocontent="yes" data-l10n-attrs="label">
<option value="enterprise" data-l10n-id="account_enterprise">GitHub Enterprise (OAuth)</option>
<option value="enterprise-pat" data-l10n-id="account_enterprise-pat">GitHub Enterprise (Personal access token)</option>
</optgroup>
</select>
<fieldset name="enterprise" hidden>
<p class="browser-style">
<label for="enterprise-clientid" data-l10n-id="clientID">Client ID</label>
<input type="text" id="enterprise-clientid" class="browser-style" name="clientId" disabled>
</p>
<p class="browser-style">
<label for="enterprise-clientsecret" data-l10n-id="clientSecret">Client secret</label>
<input type="password" id="enterprise-clientsecret" class="browser-style" name="clientSecret" disabled>
</p>
<p class="browser-style">
<label for="enterprise-url" data-l10n-id="instanceURL">Instance URL</label>
<input type="url" id="enterprise-url" class="browser-style" name="instanceURL" pattern="https://.+" placeholder="https://example.com" disabled>
</p>
<small data-l10n-id="enterprise_redirect">The redirect URL is "https://localhost/github-auth"</small>
</fieldset>
<fieldset name="github-user" hidden>
<p class="browser-style">
<label for="github-user-token" data-l10n-id="userToken">Personal access token</label>
<input type="password" id="github-user-token" class="browser-style" name="token" disabled>
<a href="https://github.com/settings/tokens/new" data-l10n-id="generate_token" rel="noopener" target="_blank">Create personal access token</a>
<small data-l10n-id="token_scopes">The token must at least have the "notifications" scope. For private repos it needs "repo" to function correctly.</small>
</p>
</fieldset>
<fieldset name="enterprise-pat" hidden>
<p class="browser-style">
<label for="enterprise-user-token" data-l10n-id="userToken">Personal access token</label>
<input type="password" id="enterprise-user-token" class="browser-style" name="token" disabled>
<small data-l10n-id="token_scopes">The token must at least have the "notifications" scope. For private repos it needs "repo" to function correctly.</small>
</p>
<p class="browser-style">
<label for="enterprise-pat-url" data-l10n-id="instanceURL">Instance URL</label>
<input type="url" id="enterprise-pat-url" class="browser-style" name="instanceURL" pattern="https://.+" placeholder="https://example.com" disabled>
</p>
</fieldset>
<button class="browser-style" type="submit" data-l10n-id="addAccount">Add account</button>
<p hidden id="error"><img src="images/alert.svg"> <output></output></p>
</form>
<ul id="active">
</ul>
</section>
<section>
<h2>Global settings</h2>
<section>
<label for="notifications" class="browser-style-label" data-l10n-id="showNotifications">Show desktop notifications</label>
<span class="browser-style">
<input type="checkbox" checked id="notifications">
</span>
</section>
<section>
<label for="footer" class="browser-style-label" data-l10n-id="footerLabel">Footer links to</label>
<select id="footer" class="browser-style">
<optgroup label="GitHub" data-l10n-id="footerGithub" data-l10n-attrs="label" data-l10n-nocontent="yes">
<option selected value="all" data-l10n-id="footerSelectAll">All notifications</option>
<option value="unread" data-l10n-id="footerSelectUnread">Unread notifications</option>
<option value="participating" data-l10n-id="footerSelectParticipating">Participating notifications</option>
<option value="watched" data-l10n-id="footerSelectWatched">Watched repositories</option>
<option value="index" data-l10n-id="footerSelectIndex">GitHub frontpage</option>
</optgroup>
<optgroup label="Local" data-l10n-id="footerLocal" data-l10n-attrs="label" data-l10n-nocontent="yes">
<option value="options" data-l10n-id="footerSelectOptions">Add-on options</option>
<option value="hidden" data-l10n-id="footerSelectHidden">Hide footer button</option>
</optgroup>
</select>
</section>
</section>
</body>
</html>