-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathwindow.html
More file actions
331 lines (327 loc) · 12 KB
/
Copy pathwindow.html
File metadata and controls
331 lines (327 loc) · 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title data-i18n="handleDuplicates.windowtitle">Find and Manage Duplicates</title>
<link rel="stylesheet" href="skin/classic/duplicateContactsManager.css">
<style>
body {
margin: 0;
padding: 8px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
display: flex;
flex-direction: column;
height: 100vh;
min-height: 0;
box-sizing: border-box;
}
.flex-row {
display: flex;
flex-direction: row;
align-items: center;
}
.flex-col {
display: flex;
flex-direction: column;
}
.flex-1 {
flex: 1;
}
.flex-2 {
flex: 2;
}
.flex-3 {
flex: 3;
}
.hidden {
display: none;
}
button {
margin: 2px;
padding: 4px 8px;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#statusBar {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
gap: 4px 8px;
padding: 4px;
}
#statusText_container {
flex: 2;
min-width: 0;
}
#statusText {
word-wrap: break-word;
overflow-wrap: break-word;
}
#statusAddressBook1, #statusAddressBook2 {
flex: 3;
min-width: 0;
}
#progress {
flex: 2;
min-width: 0;
}
#progressMeter {
width: 100%;
}
#explanation, #tablepane, #endinfo {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
min-width: 0;
}
/* When visible, tablepane is shown via JS (display: flex); do not force display here so initial display:none is effective.
Overflow on inner .tablepane-scroll only, so scrollbar sits in reserved padding. */
#tablepane {
flex-direction: column;
overflow: hidden;
}
/* Scroll container: reserve space for scrollbar so it sits to the right of the table, not inside the right column */
.tablepane-scroll {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding-right: 17px;
box-sizing: border-box;
}
#AttributesTable {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
box-sizing: border-box;
}
/* Force left and right data columns to equal width so the right border is visible */
#AttributesTable col.data-col-equal {
width: 37%;
}
#AttributesTable th, #AttributesTable td {
padding: 4px 8px;
text-align: left;
border: 1px solid #ddd;
box-sizing: border-box;
overflow-wrap: break-word;
word-break: break-word;
}
#AttributesTable td input,
#AttributesTable td textarea,
#AttributesTable td span.textbox {
width: 100%;
box-sizing: border-box;
}
#AttributesTableRows tr {
display: table-row;
}
#handleDuplicates-window #explanation,
#explanation {
text-align: left;
}
#explanation p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.descTitle {
font-weight: bold;
margin-top: 5px;
margin-bottom: 2px;
}
.text-line {
padding-top: 2px;
padding-bottom: 2px;
margin-top: 0px;
margin-bottom: 0px;
line-height: 1em;
}
.value {
margin-left: 0px;
padding-left: 0px;
}
.fields {
margin-top: 2px;
margin-bottom: 2px;
margin-left: 1em;
font-family: monospace;
font-size: smaller;
user-select: text;
overflow-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
.text-link {
color: blue;
text-decoration: underline;
cursor: pointer;
}
#addressbooklists {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 10px 0;
}
.keep {
background-color: #e8f5e9;
}
.remove {
background-color: #ffebee;
}
#AttributesTable td.equivalence {
text-align: center;
vertical-align: middle;
}
.equivalence {
text-align: center;
}
.field {
font-weight: bold;
}
input[type="text"], textarea {
padding: 2px 4px;
border: 1px solid #ccc;
}
input.slim {
width: 60px;
}
#ignoredFields {
width: 100%;
max-width: 100%;
height: 60px;
box-sizing: border-box;
font-family: monospace;
font-size: smaller;
}
.tbox {
margin: 10px 0;
}
</style>
<!-- Script load order is required: see ARCHITECTURE_AND_HISTORY.md. -->
<script src="chrome/content/vCardUtils.js"></script>
<script src="chrome/content/duplicateEntriesWindowState.js"></script>
<script src="chrome/content/duplicateEntriesWindowContacts.js"></script>
<script src="chrome/content/duplicateEntriesWindowFields.js"></script>
<script src="chrome/content/duplicateEntriesWindowPrefs.js"></script>
<script src="chrome/content/duplicateEntriesWindowMatching.js"></script>
<script src="chrome/content/duplicateEntriesWindowCardValues.js"></script>
<script src="chrome/content/duplicateEntriesWindowComparison.js"></script>
<script src="chrome/content/duplicateEntriesWindowUI.js"></script>
<script src="chrome/content/duplicateEntriesWindowDisplay.js"></script>
<script src="chrome/content/duplicateEntriesWindowSearch.js"></script>
<script src="chrome/content/duplicateEntriesWindow.js"></script>
<script src="chrome/content/window-init.js"></script>
</head>
<body id="handleDuplicates-window">
<div class="flex-row" id="duplicatesButtonsBox" style="justify-content: center; padding: 8px;">
<button id="startbutton" class="dialog" data-i18n="handleDuplicates.startbutton.label">Start</button>
<button id="skipnextbutton" class="dialog" disabled="true" data-i18n="handleDuplicates.skipnextbutton.label">Skip</button>
<button id="keepnextbutton" class="dialog" disabled="true" data-i18n="handleDuplicates.keepnextbutton.label">Keep Both</button>
<button id="applynextbutton" class="dialog" disabled="true" data-i18n="handleDuplicates.applynextbutton.label">Apply</button>
<div style="flex: 1;"></div>
<button id="stopbutton" class="dialog" style="display: none" data-i18n="handleDuplicates.stopbutton.label">Stop</button>
<button id="quitbutton" class="dialog" style="display: none" data-i18n="handleDuplicates.quitbutton.label">Quit</button>
</div>
<div class="flex-row" id="statusBar">
<div id="statusText_container" class="flex-2">
<span id="statusText" data-i18n="handleDuplicates.status_default">Ready</span>
</div>
<div style="flex: 1;"></div>
<div id="statusAddressBook1" class="flex-3" style="display: none">
<label id="statusAddressBook1_label" class="addressbookname">AddressBook1</label>
<label id="statusAddressBook1_size"></label>
</div>
<div style="flex: 1;"></div>
<div id="progress" class="flex-2">
<progress id="progressMeter" value="0" max="100" style="display: none; width: 100%;"></progress>
<label id="progressText"></label>
</div>
<div style="flex: 1;"></div>
<div id="statusAddressBook2" class="flex-3" style="display: none">
<label id="statusAddressBook2_label" class="addressbookname">AddressBook2</label>
<label id="statusAddressBook2_size"></label>
</div>
<div style="flex: 1;"></div>
</div>
<div class="flex-col" id="explanation" style="display: none; flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0;">
<div class="flex-col" style="text-align: left; flex: 1; min-width: 0;">
<p class="descTitle" data-i18n="handleDuplicates.introheader">Introduction</p>
<p data-i18n="handleDuplicates.introtext">This tool helps you find and manage duplicate contacts.</p>
<p data-i18n="handleDuplicates.chooseSecondary">Choose address books to compare:</p>
<div id="addressbooklists"></div>
<p data-i18n="handleDuplicates.introtext2">Configure options below.</p>
<p data-i18n="handleDuplicates.differentiator">Differentiator text</p>
<p class="descTitle" data-i18n="handleDuplicates.options">Options</p>
<label><input type="checkbox" id="autoremove" data-i18n="handleDuplicates.removeWithoutAsking"> Remove duplicates without asking</label>
<label><input type="checkbox" id="preservefirst" data-i18n="handleDuplicates.preserveFirst"> Preserve first</label>
<label><input type="checkbox" id="deferInteractive" data-i18n="handleDuplicates.deferInteractive"> Defer interactive</label>
<div class="flex-row">
<input type="text" class="slim" id="natTrunkPrefix" style="width: 60px;" />
<span data-i18n="handleDuplicates.natTrunkPrefix">National trunk prefix</span>
</div>
<div class="flex-row">
<input type="text" class="slim" id="intCallPrefix" style="width: 80px;" />
<span data-i18n="handleDuplicates.intCallPrefix">International call prefix</span>
</div>
<div class="flex-row">
<input type="text" class="slim" id="countryCallingCode" style="width: 100px;" />
<span data-i18n="handleDuplicates.countryCallingCode">Country calling code</span>
</div>
<p><span data-i18n="handleDuplicates.consideredFields">Considered fields</span>: </p>
<p class="text-line value fields" id="consideredFields"></p>
<p><span data-i18n="handleDuplicates.ignoredFields">Ignored fields</span>: </p>
<textarea id="ignoredFields" class="fields" cols="40" rows="3" style="width: 100%;"></textarea>
</div>
</div>
<div class="flex-col" id="tablepane" style="display: none; flex: 1;">
<div class="tablepane-scroll">
<table id="AttributesTable">
<colgroup>
<col style="width: 18%;">
<col class="data-col-equal">
<col class="equivalence" style="width: 8%;">
<col class="data-col-equal">
</colgroup>
<tbody id="AttributesTableRows">
<tr id="tableheader">
<td id="fieldLabels" class="field"> </td>
<td id="headerLeft" class="keep">
<label><input type="radio" id="keepLeft" name="keepSide" value="left" checked> <span id="headerLeftLabel" data-i18n="to_be_kept">To be kept</span></label>
</td>
<td id="cardsEqu" class="equivalence"></td>
<td id="headerRight" class="remove">
<label><input type="radio" id="keepRight" name="keepSide" value="right"> <span id="headerRightLabel" data-i18n="to_be_removed">To be removed</span></label>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="flex-col" id="endinfo" style="display: none; flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0;">
<div class="flex-col" style="flex: 1; min-width: 0;">
<p class="descTitle" data-i18n="handleDuplicates.endheader">Finished</p>
<div class="tbox">
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numBefore">Cards before</span>: <span class="text-line value" id="resultNumBefore">0</span></div>
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numAfter">Cards after</span>: <span class="text-line value" id="resultNumAfter">0</span></div>
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numRemovedMan">Removed manually</span>: <span class="text-line value" id="resultNumRemovedMan">0</span></div>
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numRemovedAuto">Removed automatically</span>: <span class="text-line value" id="resultNumRemovedAuto">0</span></div>
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numChanged">Changed</span>: <span class="text-line value" id="resultNumChanged">0</span></div>
<div class="flex-row"><span class="text-line" data-i18n="handleDuplicates.endtext.numSkipped">Skipped</span>: <span class="text-line value" id="resultNumSkipped">0</span></div>
<div class="flex-row"><span data-i18n="handleDuplicates.endtext.diffProps">Different properties</span>: </div>
<p class="text-line value fields" id="resultDiffProps"></p>
<div class="flex-row"><span data-i18n="handleDuplicates.consideredFields">Considered fields</span>: </div>
<p class="text-line value fields" id="resultConsideredFields"></p>
<div class="flex-row"><span data-i18n="handleDuplicates.endtext.ignoredFields">Ignored fields</span>: </div>
<p class="text-line value fields" id="resultIgnoredFields"></p>
</div>
<div class="tbox">
<p data-i18n="handleDuplicates.endtext.helpDevelopment">You can help improve this Thunderbird Add-On by filing issues or commenting them, contributing translations, or even writing code. The development site is:</p>
<p><a class="text-link" href="https://github.com/DDvO/Duplicate-Contacts-Manager" data-i18n="handleDuplicates.devSiteUrl">https://github.com/DDvO/Duplicate-Contacts-Manager</a></p>
</div>
</div>
</div>
</body>
</html>