-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathoptions.html
214 lines (214 loc) · 9.85 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<head>
<title data-locale-text="optionsPageTitle">Awesome RSS Options</title>
<meta charset="UTF-8" />
<script src="js/options.js" async=""></script>
<link rel="stylesheet" href="css/options.css" media="all" />
</head>
<body>
<!-- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/user_interface/Options_pages -->
<form name="options">
<fieldset>
<legend data-locale-text="themeLegend">Theme Options</legend>
<label for="icon" class="browser-style-label" title="Select icon" data-locale-title="selectIcon">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#star" />
</svg>
</label>
<select name="icon" id="icon" class="browser-style" required="">
<option value="light" data-locale-text="option_lightIcon">Light theme icon</option>
<option value="dark" data-locale-text="option_darkIcon">Dark theme icon</option>
<option value="orange" data-locale-text="option_orangeIcon">Orange icon</option>
<option value="green" data-locale-text="option_greenIcon">Green icon</option>
</select>
</fieldset>
<fieldset>
<legend data-locale-text="subscriptionLegend">Subscribe Using</legend>
<input type="radio" name="service" id="subscribe-rss" value="rss" checked="" />
<label for="subscribe-rss" class="browser-style-label" title="Subscribe using RSS (default)" data-locale-title="rssSubscribe">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#rss" />
</svg>
<span>RSS</span>
</label>
<input type="radio" name="service" value="feedly" id="subscribe-feedly" />
<label for="subscribe-feedly" class="browser-style-label" title="Subscribe using Feedly" data-locale-title="feedlySubscribe">
<svg class="icon" width="60" height="32">
<use xlink:href="icons.svg#feedly" />
</svg>
<span>Feedly</span>
</label>
<input type="radio" name="service" id="subscribe-inoreader" value="inoreader" />
<label for="subscribe-inoreader" class="browser-style-label" title="Subscribe using Inoreader" data-locale-title="inoreaderSubscribe">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#inoreader" />
</svg>
<span>Inoreader</span>
</label>
<input type="radio" name="service" id="subscribe-nextcloud" value="nextcloud" data-enables="nextcloudUrl">
<label for="subscribe-nextcloud" class="browser-style-label">
<svg class="icon" height="32" width="60">
<use xlink:href="icons.svg#nextcloud" />
</svg>
<span>NextCloud</span>
</label>
<input type="radio" name="service" id="subscribe-tiny-tiny-rss" value="tinyTinyRss" data-enables="tinyTinyRssUrl">
<label for="subscribe-tiny-tiny-rss" class="browser-style-label">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#tiny-tiny-rss" />
</svg>
<span>TinyTinyRSS</span>
</label>
<input type="radio" name="service" id="subscribe-fresh-rss" value="freshRss" data-enables="freshRssUrl">
<label for="subscribe-fresh-rss" class="browser-style-label">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#fresh-rss" />
</svg>
<span>FreshRSS</span>
</label>
<br />
<label for="nextcloud-url" hidden="">
<svg class="icon" width="32">
<use xlink:href="icons.svg#link" />
</svg>
</label>
<input name="nextcloudUrl" id="nextcloud-url" type="url" placeholder="https://nextcloud-server.com" disabled="" hidden="" />
<label for="tiny-tiny-rss-url" hidden="">
<svg class="icon" width="32">
<use xlink:href="icons.svg#link" />
</svg>
</label>
<input name="tinyTinyRssUrl" id="tiny-tiny-rss-url" type="url" placeholder="https://ttrss-server.com" disabled="" hidden="" />
<label for="fresh-rss-url" hidden="">
<svg class="icon" width="32">
<use xlink:href="icons.svg#link" />
</svg>
</label>
<input name="freshRssUrl" id="fresh-rss-url" type="url" placeholder="https://demo.freshrss.org" disabled="" hidden="" />
</fieldset>
<fieldset>
<legend data-locale-text="popupOptionsLegend">Popup Options</legend>
<label for="openFeed" class="browser-style-label" title="Open feeds using..." data-locale-title="openUsingLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#new-tab" />
</svg>
</label>
<select name="openFeed" id="openFeed" class="browser-style" required="">
<option value="current" selected="" data-locale-text="option_feedOpenCurrentTab">Current tab</option>
<option value="next" data-locale-text="option_feedOpenAdjacentTab">Adjacent tab</option>
<option value="tab" data-locale-text="option_feedOpenNewTab">New tab</option>
<option value="window" data-locale-text="option_feedOpenNewWindow">New window</option>
</select>
<br />
<label for="template" class="browser-style-label" title="Template theme" data-locale-title="popupTemplateLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#template" />
</svg>
</label>
<select name="template" id="template" class="browser-style" required="">
<option value="regular-template" selected="" data-locale-text="option_regularTemplate">Regular</option>
<option value="bold-template" data-locale-text="option_boldTemplate">Bold</option>
<option value="italic-template" data-locale-text="option_italicTemplate">Italic</option>
<option value="underline-template" data-locale-text="option_underlineTemplate">Underline</option>
</select>
</fieldset>
<fieldset>
<legend data-locale-text="textOptionsLegend">Text options</legend>
<label for="color" class="browser-style-label" title="Select text color" data-locale-title="textColorLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#color-select" />
</svg>
</label>
<input type="color" id="color" name="color" class="browser-style" required="" />
<br />
<label for="font-family" class="browser-style-label" title="Select font-family" data-locale-title="fontFamilyLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#font-select" />
</svg>
</label>
<select name="fontFamily" id="font-family" class="browser-style" required="">
<optgroup label="Serif">
<option value="Times, serif">Times New Roman</option>
<option value="Georgia, serif">Georgia</option>
<option value="serif">Serif</option>
</optgroup>
<optgroup label="Sans Serif">
<option value="Arial, Helvetica, sans-serif" selected="">Arial</option>
<option value="cursive, sans-serif">Cursive</option>
<option value="Impact, Charcoal, sans-serif">Impact</option>
<option value="Tahoma, Geneva, sans-serif">Tahoma</option>
<option value="sans-serif">Sans-serif</option>
</optgroup>
<optgroup label="Monospace">
<option value="Courier, monospace">Courier</option>
<option value="Monaco, monospace">Monaco</option>
<option value="monospace">Monospace</option>
</optgroup>
</select>
<br />
<label for="font-size" class="browser-style-label" title="Select font-size" data-locale-title="fontSizeLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#text-size" />
</svg>
</label>
<input type="range" min="8" max="20" id="font-size" name="fontSize" value="14" class="browser-style" />
<output for="font-size"></output>
<br />
<label for="margins" class="browser-style-label" title="Margins" data-locale-title="marginLabel">
<svg width="32" height="32" class="icon">
<use xlink:href="icons.svg#margins" />
</svg>
</label>
<input type="range" id="margins" min="0" max="10" name="feedMargin" value="1" class="browser-style" />
<output for="margins"></output>
<br />
<label for="padding" class="browser-style-label" title="Padding" data-locale-title="paddingLabel">
<svg width="32" height="32" class="icon">
<use xlink:href="icons.svg#padding" />
</svg>
</label>
<input type="range" id="padding" min="5" max="25" name="feedPadding" value="7" class="browser-style" />
<output for="padding"></output>
</fieldset>
<fieldset>
<legend data-locale-text="popupBackgroundLegend">Popup Background</legend>
<label for="bg-color" class="browser-style-label" title="Select background-color" data-locale-title="popupBackgroundColorLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#color-select" />
</svg>
</label>
<input type="color" id="bg-color" name="bgColor" />
<br />
<label for="bg-image" class="browser-style-label" title="Enter background-image URL" data-locale-title="popupBackgroundImageLabel">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#image" />
</svg>
</label>
<input type="url" id="bg-image" name="bgImage" data-locale-placeholder="backgroundImageURL" placeholder="https://example.com/bg-image.jpg" />
</fieldset>
<button type="reset" class="browser-style" title="Reset all preferences" data-locale-title="resetOptionsButton">
<svg class="icon" width="32" height="32">
<use xlink:href="icons.svg#edit-clear-all" />
</svg>
</button>
</form>
<footer>
<a href="https://github.com/shgysk8zer0" target="_blank" title="My GitHub profile">
<svg width="48" height="48" class="icon">
<use xlink:href="icons.svg#mark-github" />
</svg>
</a>
<a href="https://github.com/shgysk8zer0/awesome-rss" target="_blank" title="View code on GitHub">
<svg width="48" height="48" class="icon">
<use xlink:href="icons.svg#repo" />
</svg>
</a>
<a href="https://github.com/shgysk8zer0/awesome-rss/issues" target="_blank" title="Report a bug on GitHub">
<svg width="48" height="48" class="icon">
<use xlink:href="icons.svg#issues" />
</svg>
</a>
</footer>
</body>
</html>