blob: d2f8cba2bb7a0834ecf90e450a01ea9b474b938f (
plain)
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
|
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/icons.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger-newsblog/skin/feed-subscriptions.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/colors.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/contextMenu.css" type="text/css"?>
<!DOCTYPE html [ <!ENTITY % feedDTD SYSTEM "chrome://messenger-newsblog/locale/feed-subscriptions.dtd">
%feedDTD;
<!ENTITY % newsblogDTD SYSTEM "chrome://messenger-newsblog/locale/am-newsblog.dtd">
%newsblogDTD; ]>
<html
id="feedSubscriptions"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
scrolling="false"
windowtype="Mail:News-BlogSubscriptions"
persist="width height screenX screenY sizemode"
lightweightthemes="true"
>
<head>
<title>&feedSubscriptions.label;</title>
<link rel="localization" href="security/certificates/certManager.ftl" />
<script
defer="defer"
src="chrome://messenger/content/globalOverlay.js"
></script>
<script
defer="defer"
src="chrome://global/content/editMenuOverlay.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/specialTabs.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/dialogShadowDom.js"
></script>
<script
defer="defer"
src="chrome://messenger-newsblog/content/feed-subscriptions.js"
></script>
<script>
window.addEventListener("load", event => {
FeedSubscriptions.onLoad();
});
window.addEventListener("keypress", event => {
FeedSubscriptions.onKeyPress(event);
});
window.addEventListener("mousedown", event => {
FeedSubscriptions.onMouseDown(event);
});
</script>
</head>
<html:body
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<dialog
id="subscriptionsDialog"
buttons="accept"
buttonlabelaccept="&button.close.label;"
>
<keyset id="extensionsKeys">
<key
id="key_close"
key="&cmd.close.commandKey;"
modifiers="accel"
oncommand="window.close();"
/>
<key id="key_close2" keycode="VK_ESCAPE" oncommand="window.close();" />
</keyset>
<stringbundle
id="bundle_newsblog"
src="chrome://messenger-newsblog/locale/newsblog.properties"
/>
<stringbundle
id="bundle_brand"
src="chrome://branding/locale/brand.properties"
/>
<vbox flex="1" id="contentPane">
<hbox pack="end">
<label
is="text-link"
id="learnMore"
crop="end"
value="&learnMore.label;"
href="https://support.mozilla.org/kb/how-subscribe-news-feeds-and-blogs"
/>
</hbox>
<tree
id="rssSubscriptionsList"
treelines="true"
flex="1"
hidecolumnpicker="true"
onselect="FeedSubscriptions.onSelect();"
seltype="single"
>
<treecols>
<treecol id="folderNameCol" primary="true" hideheader="true" />
</treecols>
<treechildren
id="subscriptionChildren"
ondragstart="FeedSubscriptions.onDragStart(event);"
ondragover="FeedSubscriptions.onDragOver(event);"
/>
</tree>
<hbox id="rssFeedInfoBox">
<vbox flex="1">
<hbox flex="1">
<vbox pack="end">
<hbox flex="1" align="center">
<label
id="nameLabel"
accesskey="&feedTitle.accesskey;"
control="nameValue"
value="&feedTitle.label;"
/>
</hbox>
<hbox flex="1" align="center">
<label
id="locationLabel"
accesskey="&feedLocation.accesskey;"
control="locationValue"
value="&feedLocation.label;"
/>
</hbox>
<hbox flex="1" align="center">
<label
id="feedFolderLabel"
value="&feedFolder.label;"
accesskey="&feedFolder.accesskey;"
control="selectFolder"
/>
</hbox>
</vbox>
<vbox flex="1">
<html:input
id="nameValue"
type="text"
class="input-inline"
aria-labelledby="nameLabel"
onchange="FeedSubscriptions.setPrefs(this);"
/>
<hbox class="input-container">
<html:input
id="locationValue"
type="url"
class="uri-element input-inline"
aria-labelledby="locationLabel"
placeholder="&feedLocation2.placeholder;"
onchange="FeedSubscriptions.setPrefs(this);"
onfocus="FeedSubscriptions.onFocusChange();"
onblur="FeedSubscriptions.onFocusChange();"
/>
<hbox align="center">
<label
is="text-link"
id="locationValidate"
collapsed="true"
crop="end"
value="&locationValidate.label;"
onclick="FeedSubscriptions.checkValidation(event);"
/>
</hbox>
</hbox>
<hbox class="input-container">
<menulist
id="selectFolder"
flex="1"
class="folderMenuItem"
hidden="true"
>
<menupopup
is="folder-menupopup"
id="selectFolderPopup"
class="menulist-menupopup"
mode="feeds"
showFileHereLabel="true"
showAccountsFileHere="true"
oncommand="FeedSubscriptions.setNewFolder(event);"
/>
</menulist>
<html:input
id="selectFolderValue"
class="input-inline"
readonly="readonly"
aria-labelledby="feedFolderLabel"
onkeypress="FeedSubscriptions.onClickSelectFolderValue(event);"
onclick="FeedSubscriptions.onClickSelectFolderValue(event);"
/>
</hbox>
</vbox>
</hbox>
<hbox align="center">
<checkbox
id="updateEnabled"
label="&biffStart.label;"
accesskey="&biffStart.accesskey;"
oncommand="FeedSubscriptions.setPrefs(this);"
/>
<html:input
id="updateValue"
type="number"
class="size3 input-inline"
min="1"
aria-labelledby="updateEnabled updateValue biffMinutes biffDays recommendedUnits recommendedUnitsVal"
oninput="FeedSubscriptions.setPrefs(this);"
onchange="FeedSubscriptions.setPrefs(this);"
/>
<radiogroup
id="biffUnits"
orient="horizontal"
oncommand="FeedSubscriptions.setPrefs(this);"
>
<radio
id="biffMinutes"
value="min"
label="&biffMinutes.label;"
accesskey="&biffMinutes.accesskey;"
/>
<radio
id="biffDays"
value="d"
label="&biffDays.label;"
accesskey="&biffDays.accesskey;"
/>
</radiogroup>
<hbox id="recommendedBox">
<label
id="recommendedUnits"
value="&recommendedUnits.label;"
hidden="true"
control="updateMinutes"
/>
<label
id="recommendedUnitsVal"
value=""
hidden="true"
control="updateMinutes"
/>
</hbox>
</hbox>
<checkbox
id="quickMode"
accesskey="&quickMode.accesskey;"
label="&quickMode.label;"
oncommand="FeedSubscriptions.setSummary(this.checked);"
/>
<checkbox
id="autotagEnable"
accesskey="&autotagEnable.accesskey;"
label="&autotagEnable.label;"
oncommand="FeedSubscriptions.setPrefs(this);"
/>
<hbox class="input-container">
<checkbox
id="autotagUsePrefix"
class="indent"
accesskey="&autotagUsePrefix.accesskey;"
label="&autotagUsePrefix.label;"
oncommand="FeedSubscriptions.setPrefs(this);"
/>
<html:input
id="autotagPrefix"
type="text"
class="input-inline"
placeholder="&autoTagPrefix.placeholder;"
onchange="FeedSubscriptions.setPrefs(this);"
/>
</hbox>
<separator class="thin" />
</vbox>
</hbox>
<hbox id="statusContainerBox" align="center">
<vbox flex="1">
<description id="statusText" />
</vbox>
<spacer flex="1" />
<label
id="validationText"
collapsed="true"
class="text-link"
crop="end"
value="&validateText.label;"
onclick="FeedSubscriptions.checkValidation(event);"
/>
<button
id="addCertException"
collapsed="true"
data-l10n-id="certmgr-add-exception"
oncommand="FeedSubscriptions.addCertExceptionDialog();"
/>
<html:progress
id="progressMeter"
hidden="hidden"
value="0"
max="100"
/>
</hbox>
<hbox align="end">
<hbox class="actionButtons" flex="1">
<button
id="addFeed"
hidden="true"
disabled="true"
label="&button.addFeed.label;"
accesskey="&button.addFeed.accesskey;"
oncommand="FeedSubscriptions.addFeed();"
/>
<button
id="updateFeed"
hidden="true"
disabled="true"
label="&button.verifyFeed.label;"
accesskey="&button.verifyFeed.accesskey;"
verifylabel="&button.verifyFeed.label;"
verifyaccesskey="&button.verifyFeed.accesskey;"
updatelabel="&button.updateFeed.label;"
updateaccesskey="&button.updateFeed.accesskey;"
oncommand="FeedSubscriptions.updateFeed();"
/>
<button
id="removeFeed"
hidden="true"
label="&button.removeFeed.label;"
accesskey="&button.removeFeed.accesskey;"
oncommand="FeedSubscriptions.removeFeed(true);"
/>
<spacer flex="1" />
<button
id="importOPML"
hidden="true"
label="&button.importOPML.label;"
accesskey="&button.importOPML.accesskey;"
oncommand="FeedSubscriptions.importOPML();"
/>
<button
id="exportOPML"
hidden="true"
label="&button.exportOPML.label;"
accesskey="&button.exportOPML.accesskey;"
tooltiptext="&button.exportOPML.tooltip;"
oncommand="FeedSubscriptions.exportOPML(event);"
/>
</hbox>
</hbox>
</vbox>
</dialog>
</html:body>
</html>
|