aa-intel-tool 0.0.1a13__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aa_intel_tool/__init__.py +4 -1
- aa_intel_tool/app_settings.py +1 -1
- aa_intel_tool/apps.py +1 -1
- aa_intel_tool/constants.py +5 -2
- aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/de/LC_MESSAGES/django.po +139 -148
- aa_intel_tool/locale/django.pot +111 -105
- aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/es/LC_MESSAGES/django.po +135 -124
- aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +111 -105
- aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +111 -105
- aa_intel_tool/locale/ja/LC_MESSAGES/django.po +111 -105
- aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +127 -121
- aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/ru/LC_MESSAGES/django.po +222 -200
- aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/uk/LC_MESSAGES/django.po +121 -117
- aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +111 -105
- aa_intel_tool/migrations/0001_initial.py +70 -15
- aa_intel_tool/models.py +3 -2
- aa_intel_tool/parser/module/chatlist.py +53 -40
- aa_intel_tool/parser/module/fleetcomp.py +130 -34
- aa_intel_tool/scripts/drop_tables.sql +5 -0
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.css +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css +2 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css.map +1 -0
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +2 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +24 -24
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +13 -199
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +26 -26
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +19 -49
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +148 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js +2 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +231 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +2 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +216 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -0
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +2 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +1 -0
- aa_intel_tool/templates/aa_intel_tool/base.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-fleetcomp-js.html +10 -0
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js-l10n.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/partials/index/form.html +6 -2
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html +1 -4
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html +1 -4
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/pilots.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid/items.html +2 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid.html +9 -6
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html +5 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown.html +7 -4
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/system-information.html +4 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html +41 -0
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html +24 -0
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/participation.html +18 -0
- aa_intel_tool/templates/aa_intel_tool/views/index.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/views/scan/chatlist.html +2 -4
- aa_intel_tool/templates/aa_intel_tool/views/scan/dscan.html +2 -4
- aa_intel_tool/templates/aa_intel_tool/views/scan/fleetcomp.html +47 -0
- aa_intel_tool/tests/test-data/fleetcomp.txt +1 -0
- aa_intel_tool/tests/test_access.py +3 -3
- aa_intel_tool/tests/test_admin.py +86 -0
- aa_intel_tool/tests/test_auth_hooks.py +3 -3
- aa_intel_tool/tests/test_helper_data_structures.py +1 -1
- aa_intel_tool/tests/test_parser.py +17 -16
- aa_intel_tool/tests/test_parser_helper_db.py +60 -0
- aa_intel_tool/tests/utils.py +0 -87
- aa_intel_tool/views/general.py +16 -7
- {aa_intel_tool-0.0.1a13.dist-info → aa_intel_tool-1.0.0.dist-info}/METADATA +28 -20
- aa_intel_tool-1.0.0.dist-info/RECORD +123 -0
- aa_intel_tool/migrations/0002_remove_scan_processed_data_scandata.py +0 -69
- aa_intel_tool/migrations/0003_alter_scandata_scan.py +0 -27
- aa_intel_tool/migrations/0004_alter_scandata_section.py +0 -34
- aa_intel_tool/migrations/0005_alter_scan_options_alter_scandata_options_and_more.py +0 -94
- aa_intel_tool/migrations/0006_alter_scandata_unique_together.py +0 -17
- aa_intel_tool/migrations/0007_alter_scandata_section.py +0 -37
- aa_intel_tool-0.0.1a13.dist-info/RECORD +0 -105
- {aa_intel_tool-0.0.1a13.dist-info → aa_intel_tool-1.0.0.dist-info}/WHEEL +0 -0
- {aa_intel_tool-0.0.1a13.dist-info → aa_intel_tool-1.0.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* global aaIntelToolJsOptions, aaIntelToolJsL10n,
|
|
1
|
+
/* global aaIntelToolJsOptions, aaIntelToolJsL10n, addChatscanHightlight, removeChatscanHightlight, changeChatscanStickyHighlight, fetchAjaxData, pilotInfoPanel, corporationInfoPanel, allianceInfoPanel */
|
|
2
2
|
|
|
3
3
|
jQuery(document).ready(($) => {
|
|
4
4
|
'use strict';
|
|
@@ -14,192 +14,6 @@ jQuery(document).ready(($) => {
|
|
|
14
14
|
const elementAlliancesTotalCount = $('span#aa-intel-alliances-count');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Pilot info element in datatable
|
|
19
|
-
*
|
|
20
|
-
* @param pilotData
|
|
21
|
-
* @returns {string}
|
|
22
|
-
*/
|
|
23
|
-
const pilotInfoPanel = (pilotData) => {
|
|
24
|
-
let html_logo = '' +
|
|
25
|
-
'<span class="aa-intel-pilot-avatar-wrapper">\n' +
|
|
26
|
-
' <img ' +
|
|
27
|
-
' class="eve-image" ' +
|
|
28
|
-
' data-eveid="' + pilotData['id'] + '" ' +
|
|
29
|
-
' src="' + pilotData['portrait'] + '" ' +
|
|
30
|
-
' alt="' + pilotData['name'] + '" ' +
|
|
31
|
-
' title="' + pilotData['name'] + '" ' +
|
|
32
|
-
' width="32" ' +
|
|
33
|
-
' height="32">\n' +
|
|
34
|
-
'</span>';
|
|
35
|
-
|
|
36
|
-
let html_info = '' +
|
|
37
|
-
'<span class="aa-intel-pilot-information-wrapper">\n' +
|
|
38
|
-
' <span class="aa-intel-pilot-name-wrapper">\n' +
|
|
39
|
-
' ' + pilotData['name'] + '\n' +
|
|
40
|
-
' </span>\n';
|
|
41
|
-
|
|
42
|
-
html_info += '' +
|
|
43
|
-
' <span class="aa-intel-pilot-links-wrapper">\n' +
|
|
44
|
-
' <small>\n' +
|
|
45
|
-
' <a ' +
|
|
46
|
-
' class="aa-intel-information-link" ' +
|
|
47
|
-
' href="' + pilotData['evewho'] + '" ' +
|
|
48
|
-
' target="_blank" ' +
|
|
49
|
-
' rel="noopener noreferer"' +
|
|
50
|
-
' >' +
|
|
51
|
-
' evewho <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
52
|
-
' </a> |\n' +
|
|
53
|
-
|
|
54
|
-
' <a ' +
|
|
55
|
-
' class="aa-intel-information-link" ' +
|
|
56
|
-
' href="' + pilotData['zkillboard'] + '" ' +
|
|
57
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
58
|
-
' >' +
|
|
59
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
60
|
-
' </a>\n' +
|
|
61
|
-
' </small>\n' +
|
|
62
|
-
' </span>\n';
|
|
63
|
-
|
|
64
|
-
return html_logo + html_info;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Corporation info element in datatable
|
|
70
|
-
*
|
|
71
|
-
* @param corporationData
|
|
72
|
-
* @param logoOnly {boolean} Returns only the corporation logo
|
|
73
|
-
* @returns {string}
|
|
74
|
-
*/
|
|
75
|
-
const corporationInfoPanel = (corporationData, logoOnly = false) => {
|
|
76
|
-
let html_logo = '' +
|
|
77
|
-
'<span class="aa-intel-corporation-logo-wrapper">\n' +
|
|
78
|
-
' <img ' +
|
|
79
|
-
' class="eve-image" ' +
|
|
80
|
-
' data-eveid="' + corporationData['id'] + '" ' +
|
|
81
|
-
' src="' + corporationData['logo'] + '" ' +
|
|
82
|
-
' alt="' + corporationData['name'] + '" ' +
|
|
83
|
-
' title="' + corporationData['name'] + '" ' +
|
|
84
|
-
' width="32" ' +
|
|
85
|
-
' height="32">\n' +
|
|
86
|
-
'</span>';
|
|
87
|
-
|
|
88
|
-
let html_info = '' +
|
|
89
|
-
'<span class="aa-intel-corporation-information-wrapper">\n' +
|
|
90
|
-
' <span class="aa-intel-corporation-name-wrapper">\n' +
|
|
91
|
-
' ' + corporationData['name'] + '\n' +
|
|
92
|
-
' </span>\n';
|
|
93
|
-
|
|
94
|
-
html_info += '' +
|
|
95
|
-
' <span class="aa-intel-corporation-links-wrapper">\n' +
|
|
96
|
-
' <small>\n';
|
|
97
|
-
|
|
98
|
-
if ((1000000 <= corporationData['id']) && corporationData['id'] <= 2000000) {
|
|
99
|
-
html_info += '' +
|
|
100
|
-
' (' + aaIntelToolJsL10n.scanData.npcCorp + ')';
|
|
101
|
-
} else {
|
|
102
|
-
html_info += '' +
|
|
103
|
-
' <a ' +
|
|
104
|
-
' class="aa-intel-information-link" ' +
|
|
105
|
-
' href="' + corporationData['dotlan'] + '" ' +
|
|
106
|
-
' target="_blank" ' +
|
|
107
|
-
' rel="noopener noreferer"' +
|
|
108
|
-
' >' +
|
|
109
|
-
' dotlan <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
110
|
-
' </a> |\n' +
|
|
111
|
-
|
|
112
|
-
' <a ' +
|
|
113
|
-
' class="aa-intel-information-link" ' +
|
|
114
|
-
' href="' + corporationData['zkillboard'] + '" ' +
|
|
115
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
116
|
-
' >' +
|
|
117
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
118
|
-
' </a>\n' +
|
|
119
|
-
' </small>\n' +
|
|
120
|
-
' </span>\n';
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
html_info += '' +
|
|
124
|
-
'</span>';
|
|
125
|
-
|
|
126
|
-
if (logoOnly) {
|
|
127
|
-
return html_logo;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return html_logo + html_info;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Alliance info element in datatable
|
|
136
|
-
*
|
|
137
|
-
* @param allianceData
|
|
138
|
-
* @param logoOnly {boolean} Returns only the alliance logo
|
|
139
|
-
* @returns {string}
|
|
140
|
-
*/
|
|
141
|
-
const allianceInfoPanel = (allianceData, logoOnly = false) => {
|
|
142
|
-
if (allianceData['name'] === '') {
|
|
143
|
-
allianceData['name'] = aaIntelToolJsL10n.scanData.empty;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
let html_logo = '' +
|
|
147
|
-
'<span class="aa-intel-alliance-logo-wrapper alliance-id-' + allianceData['id'] + '">\n' +
|
|
148
|
-
' <img ' +
|
|
149
|
-
' class="eve-image" ' +
|
|
150
|
-
' data-eveid="' + allianceData['id'] + '" ' +
|
|
151
|
-
' src="' + allianceData['logo'] + '" ' +
|
|
152
|
-
' alt="' + allianceData['name'] + '" ' +
|
|
153
|
-
' title="' + allianceData['name'] + '" ' +
|
|
154
|
-
' width="32" ' +
|
|
155
|
-
' height="32">\n' +
|
|
156
|
-
'</span>';
|
|
157
|
-
|
|
158
|
-
let html_info = '' +
|
|
159
|
-
'<span class="aa-intel-alliance-information-wrapper">\n' +
|
|
160
|
-
' <span class="aa-intel-alliance-name-wrapper">\n' +
|
|
161
|
-
' ' + allianceData['name'] + '\n' +
|
|
162
|
-
' </span>\n';
|
|
163
|
-
|
|
164
|
-
if (allianceData['id'] > 1) {
|
|
165
|
-
html_info += '' +
|
|
166
|
-
' <span class="aa-intel-alliance-links-wrapper">\n' +
|
|
167
|
-
' <small>\n' +
|
|
168
|
-
' <a ' +
|
|
169
|
-
' class="aa-intel-information-link" ' +
|
|
170
|
-
' href="' + allianceData['dotlan'] + '" ' +
|
|
171
|
-
' target="_blank" ' +
|
|
172
|
-
' rel="noopener noreferer"' +
|
|
173
|
-
' >' +
|
|
174
|
-
' dotlan <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
175
|
-
' </a> |\n' +
|
|
176
|
-
|
|
177
|
-
' <a ' +
|
|
178
|
-
' class="aa-intel-information-link" ' +
|
|
179
|
-
' href="' + allianceData['zkillboard'] + '" ' +
|
|
180
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
181
|
-
' >' +
|
|
182
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
183
|
-
' </a>\n' +
|
|
184
|
-
' </small>\n' +
|
|
185
|
-
' </span>\n';
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
html_info += '' +
|
|
189
|
-
'</span>';
|
|
190
|
-
|
|
191
|
-
if (logoOnly) {
|
|
192
|
-
if (allianceData.id === 1) {
|
|
193
|
-
return '';
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
return html_logo;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return html_logo + html_info;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
|
|
203
17
|
/**
|
|
204
18
|
* Datatable Alliances Breakdown
|
|
205
19
|
*/
|
|
@@ -273,19 +87,19 @@ jQuery(document).ready(($) => {
|
|
|
273
87
|
|
|
274
88
|
// Highlight
|
|
275
89
|
$(row).mouseenter(() => {
|
|
276
|
-
|
|
90
|
+
addChatscanHightlight('alliance', $(row));
|
|
277
91
|
}).mouseleave(() => {
|
|
278
|
-
|
|
92
|
+
removeChatscanHightlight('alliance', $(row));
|
|
279
93
|
});
|
|
280
94
|
|
|
281
95
|
// Sticky
|
|
282
96
|
$(row).click(() => {
|
|
283
|
-
|
|
97
|
+
changeChatscanStickyHighlight('alliance', $(row));
|
|
284
98
|
}).click('.aa-intel-information-link', (e) => {
|
|
285
99
|
e.stopPropagation();
|
|
286
100
|
});
|
|
287
101
|
}
|
|
288
|
-
})
|
|
102
|
+
});
|
|
289
103
|
}
|
|
290
104
|
}
|
|
291
105
|
});
|
|
@@ -367,19 +181,19 @@ jQuery(document).ready(($) => {
|
|
|
367
181
|
|
|
368
182
|
// Highlight
|
|
369
183
|
$(row).mouseenter(() => {
|
|
370
|
-
|
|
184
|
+
addChatscanHightlight('corporation', $(row));
|
|
371
185
|
}).mouseleave(() => {
|
|
372
|
-
|
|
186
|
+
removeChatscanHightlight('corporation', $(row));
|
|
373
187
|
});
|
|
374
188
|
|
|
375
189
|
// Sticky
|
|
376
190
|
$(row).click(() => {
|
|
377
|
-
|
|
191
|
+
changeChatscanStickyHighlight('corporation', $(row));
|
|
378
192
|
}).click('.aa-intel-information-link', (e) => {
|
|
379
193
|
e.stopPropagation();
|
|
380
194
|
});
|
|
381
195
|
}
|
|
382
|
-
})
|
|
196
|
+
});
|
|
383
197
|
}
|
|
384
198
|
}
|
|
385
199
|
});
|
|
@@ -467,19 +281,19 @@ jQuery(document).ready(($) => {
|
|
|
467
281
|
|
|
468
282
|
// Highlight
|
|
469
283
|
$(row).mouseenter(() => {
|
|
470
|
-
|
|
284
|
+
addChatscanHightlight('pilot', $(row));
|
|
471
285
|
}).mouseleave(() => {
|
|
472
|
-
|
|
286
|
+
removeChatscanHightlight('pilot', $(row));
|
|
473
287
|
});
|
|
474
288
|
|
|
475
289
|
// Sticky
|
|
476
290
|
$(row).click(() => {
|
|
477
|
-
|
|
291
|
+
changeChatscanStickyHighlight('pilot', $(row));
|
|
478
292
|
}).click('.aa-intel-information-link', (e) => {
|
|
479
293
|
e.stopPropagation();
|
|
480
294
|
});
|
|
481
295
|
}
|
|
482
|
-
})
|
|
296
|
+
});
|
|
483
297
|
}
|
|
484
298
|
}
|
|
485
299
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
jQuery(document).ready($=>{"use strict";const elementPilotsTable=$("table.aa-intel-pilot-participation-list");const elementCorporationsTable=$("table.aa-intel-corporation-participation-list");const elementAlliancesTable=$("table.aa-intel-alliance-participation-list");const elementPilotsTotalCount=$("span#aa-intel-pilots-count");const elementCorporationsTotalCount=$("span#aa-intel-corporations-count");const elementAlliancesTotalCount=$("span#aa-intel-alliances-count");
|
|
1
|
+
jQuery(document).ready($=>{"use strict";const elementPilotsTable=$("table.aa-intel-pilot-participation-list");const elementCorporationsTable=$("table.aa-intel-corporation-participation-list");const elementAlliancesTable=$("table.aa-intel-alliance-participation-list");const elementPilotsTotalCount=$("span#aa-intel-pilots-count");const elementCorporationsTotalCount=$("span#aa-intel-corporations-count");const elementAlliancesTotalCount=$("span#aa-intel-alliances-count");fetchAjaxData(aaIntelToolJsOptions.ajax.getAllianceList).then(tableData=>{if(tableData){$("div.aa-intel-loading-table-info-alliance-participation-list").hide();if(Object.keys(tableData).length===0){$("div.aa-intel-empty-table-info-alliance-participation-list").show()}else{$("div.table-local-scan-alliances").show();elementAlliancesTable.DataTable({data:tableData,paging:false,language:aaIntelToolJsL10n.dataTables.translation,lengthChange:false,dom:"<'row'<'col-sm-12'f>>"+"<'row'<'col-sm-12'tr>>"+"<'row'<'col-sm-12'i>>",columns:[{data:data=>{return allianceInfoPanel(data)}},{data:"count"},{data:"ticker"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:td=>{$(td).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:45,createdCell:td=>{$(td).addClass("text-right")}},{targets:2,visible:false}],createdRow:(row,data)=>{const currentTotal=elementAlliancesTotalCount.html();let newTotal;if(data["id"]!==1){newTotal=parseInt(currentTotal)+1}elementAlliancesTotalCount.html(newTotal);$(row).addClass(`aa-intel-alliance-participation-item aa-intel-alliance-id-${data["id"]}`).attr("data-alliance-id",data["id"]);$(row).mouseenter(()=>{addChatscanHightlight("alliance",$(row))}).mouseleave(()=>{removeChatscanHightlight("alliance",$(row))});$(row).click(()=>{changeChatscanStickyHighlight("alliance",$(row))}).click(".aa-intel-information-link",e=>{e.stopPropagation()})}})}}});fetchAjaxData(aaIntelToolJsOptions.ajax.getCorporationList).then(tableData=>{if(tableData){$("div.aa-intel-loading-table-info-corporation-participation-list").hide();if(Object.keys(tableData).length===0){$("div.aa-intel-empty-table-info-corporation-participation-list").show()}else{$("div.table-local-scan-corporations").show();elementCorporationsTable.DataTable({data:tableData,paging:false,language:aaIntelToolJsL10n.dataTables.translation,lengthChange:false,dom:"<'row'<'col-sm-12'f>>"+"<'row'<'col-sm-12'tr>>"+"<'row'<'col-sm-12'i>>",columns:[{data:data=>{return corporationInfoPanel(data)}},{data:"count"},{data:"ticker"},{data:"alliance.name"},{data:"alliance.ticker"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:td=>{$(td).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:45,createdCell:td=>{$(td).addClass("text-right")}},{targets:[2,3,4],visible:false}],createdRow:(row,data)=>{const currentTotal=elementCorporationsTotalCount.html();const newTotal=parseInt(currentTotal)+1;elementCorporationsTotalCount.html(newTotal);$(row).addClass(`aa-intel-corporation-participation-item aa-intel-corporation-id-${data["id"]}`).attr("data-corporation-id",data["id"]).attr("data-alliance-id",data["alliance"]["id"]);$(row).mouseenter(()=>{addChatscanHightlight("corporation",$(row))}).mouseleave(()=>{removeChatscanHightlight("corporation",$(row))});$(row).click(()=>{changeChatscanStickyHighlight("corporation",$(row))}).click(".aa-intel-information-link",e=>{e.stopPropagation()})}})}}});fetchAjaxData(aaIntelToolJsOptions.ajax.getPilotList).then(tableData=>{if(tableData){$("div.aa-intel-loading-table-info-pilot-participation-list").hide();if(Object.keys(tableData).length===0){$("div.aa-intel-empty-table-info-pilot-participation-list").show()}else{$("div.table-local-scan-pilots").show();elementPilotsTable.DataTable({data:tableData,paging:false,language:aaIntelToolJsL10n.dataTables.translation,lengthChange:false,dom:"<'row'<'col-sm-12'f>>"+"<'row'<'col-sm-12'tr>>"+"<'row'<'col-sm-12'i>>",columns:[{data:data=>{return pilotInfoPanel(data)}},{data:data=>{return allianceInfoPanel(data["alliance"],true)+data["alliance"]["ticker"]}},{data:data=>{return corporationInfoPanel(data["corporation"],true)+data["corporation"]["ticker"]}},{data:"alliance.name"},{data:"corporation.name"}],order:[[0,"asc"]],columnDefs:[{targets:0,createdCell:td=>{$(td).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:125},{targets:2,width:125},{targets:[3,4],visible:false}],createdRow:(row,data)=>{const currentTotal=elementPilotsTotalCount.html();const newTotal=parseInt(currentTotal)+1;elementPilotsTotalCount.html(newTotal);$(row).addClass(`aa-intel-corporation-participation-item aa-intel-corporation-id-${data["id"]}`).attr("data-character-id",data["id"]).attr("data-corporation-id",data["corporation"]["id"]).attr("data-alliance-id",data["alliance"]["id"]);$(row).mouseenter(()=>{addChatscanHightlight("pilot",$(row))}).mouseleave(()=>{removeChatscanHightlight("pilot",$(row))});$(row).click(()=>{changeChatscanStickyHighlight("pilot",$(row))}).click(".aa-intel-information-link",e=>{e.stopPropagation()})}})}}})});
|
|
2
|
+
//# sourceMappingURL=aa-intel-tool-chatscan.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool-chatscan.js"],"names":["jQuery","document","ready","elementPilotsTable","$","elementCorporationsTable","elementAlliancesTable","elementPilotsTotalCount","elementCorporationsTotalCount","elementAlliancesTotalCount","fetchAjaxData","aaIntelToolJsOptions","ajax","getAllianceList","then","tableData","hide","Object","keys","length","show","DataTable","data","paging","language","aaIntelToolJsL10n","dataTables","translation","lengthChange","dom","columns","allianceInfoPanel","order","columnDefs","targets","createdCell","td","addClass","width","visible","createdRow","row","currentTotal","html","let","newTotal","parseInt","attr","mouseenter","addChatscanHightlight","mouseleave","removeChatscanHightlight","click","changeChatscanStickyHighlight","e","stopPropagation","getCorporationList","corporationInfoPanel","getPilotList","pilotInfoPanel"],"mappings":"AAEAA,OAAOC,QAAQ,EAAEC,MAAM,IACnB,aAIA,MAAMC,mBAAqBC,EAAE,yCAAyC,EACtE,MAAMC,yBAA2BD,EAAE,+CAA+C,EAClF,MAAME,sBAAwBF,EAAE,4CAA4C,EAE5E,MAAMG,wBAA0BH,EAAE,4BAA4B,EAC9D,MAAMI,8BAAgCJ,EAAE,kCAAkC,EAC1E,MAAMK,2BAA6BL,EAAE,+BAA+B,EAMpEM,cAAcC,qBAAqBC,KAAKC,eAAe,EAAEC,KAAKC,YAC1D,GAAIA,UAAW,CACXX,EAAE,6DAA6D,EAAEY,KAAK,EAEtE,GAAIC,OAAOC,KAAKH,SAAS,EAAEI,SAAW,EAAG,CACrCf,EAAE,2DAA2D,EAAEgB,KAAK,CACxE,KAAO,CACHhB,EAAE,gCAAgC,EAAEgB,KAAK,EAEzCd,sBAAsBe,UAAU,CAC5BC,KAAMP,UACNQ,OAAQ,MACRC,SAAUC,kBAAkBC,WAAWC,YACvCC,aAAc,MACdC,IACI,wBACA,yBACA,wBACJC,QAAS,CACL,CACIR,KAAM,OACF,OAAOS,kBAAkBT,IAAI,CACjC,CACJ,EACA,CACIA,KAAM,OACV,EACA,CACIA,KAAM,QACV,GAEJU,MAAO,CACH,CAAC,EAAG,SAERC,WAAY,CACR,CACIC,QAAS,EACTC,YAAa,KACT/B,EAAEgC,EAAE,EAAEC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M,6BAA8B,IACnCE,EAAEC,gBAAgB,CACtB,CAAC,CACL,CACJ,CAAC,CACL,CACJ,CACJ,CAAC,CACL,CAAC"}
|
|
@@ -10,17 +10,17 @@ const elementShipTypeTable = $('table.aa-intel-dscan-ship-types');
|
|
|
10
10
|
/**
|
|
11
11
|
* Determine if we can remove all sticky states for this corporation
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
13
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
14
14
|
* @param table_row {element} The table row that is to be changed
|
|
15
15
|
* @returns {boolean}
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
17
|
+
const removeDscanShiptypeStickyComplete = (by_data, table_row) => {
|
|
18
18
|
let removeSticky = true;
|
|
19
19
|
|
|
20
20
|
elementShipClassTable.find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`).each((i, el) => {
|
|
21
|
-
if (
|
|
21
|
+
if (by_data === 'shiptype' && !$(el).hasClass('aa-intel-highlight-sticky')) {
|
|
22
22
|
removeSticky = false;
|
|
23
|
-
} else if (
|
|
23
|
+
} else if (by_data === 'shipclass' && $(el).hasClass('aa-intel-highlight-sticky')) {
|
|
24
24
|
removeSticky = false;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -32,12 +32,12 @@ const removeShiptypeStickyComplete = (by_table, table_row) => {
|
|
|
32
32
|
/**
|
|
33
33
|
* Add highlight to other tables
|
|
34
34
|
*
|
|
35
|
-
* @param
|
|
35
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
36
36
|
* @param table_row {element} The table row that is to be changed
|
|
37
37
|
*/
|
|
38
|
-
const
|
|
38
|
+
const addDscanHightlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
|
|
39
39
|
elementShipClassTable
|
|
40
|
-
.find(`tr[data-${
|
|
40
|
+
.find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`)
|
|
41
41
|
.addClass('aa-intel-highlight');
|
|
42
42
|
|
|
43
43
|
elementShipTypeTable
|
|
@@ -49,12 +49,12 @@ const addHightlight = (by_table, table_row) => { // eslint-disable-line no-unuse
|
|
|
49
49
|
/**
|
|
50
50
|
* Add highlight to other tables
|
|
51
51
|
*
|
|
52
|
-
* @param
|
|
52
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
53
53
|
* @param table_row {element} The table row that is to be changed
|
|
54
54
|
*/
|
|
55
|
-
const
|
|
55
|
+
const removeDscanHightlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
|
|
56
56
|
elementShipClassTable
|
|
57
|
-
.find(`tr[data-${
|
|
57
|
+
.find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`)
|
|
58
58
|
.removeClass('aa-intel-highlight');
|
|
59
59
|
|
|
60
60
|
elementShipTypeTable
|
|
@@ -66,19 +66,19 @@ const removeHightlight = (by_table, table_row) => { // eslint-disable-line no-un
|
|
|
66
66
|
/**
|
|
67
67
|
* Add sticky highlight to other tables
|
|
68
68
|
*
|
|
69
|
-
* @param
|
|
69
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
70
70
|
* @param table_row {element} The table row that is to be changed
|
|
71
71
|
*/
|
|
72
|
-
const
|
|
72
|
+
const addDscanSticky = (by_data, table_row) => {
|
|
73
73
|
table_row.addClass('aa-intel-highlight-sticky');
|
|
74
74
|
|
|
75
|
-
if (
|
|
75
|
+
if (by_data === 'shiptype') {
|
|
76
76
|
elementShipClassTable
|
|
77
77
|
.find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
|
|
78
78
|
.addClass('aa-intel-highlight-sticky');
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
if (
|
|
81
|
+
if (by_data === 'shipclass') {
|
|
82
82
|
elementShipClassTable
|
|
83
83
|
.find(`tr[data-shipclass-id="${table_row.data('shipclass-id')}"]`)
|
|
84
84
|
.addClass('aa-intel-highlight-sticky');
|
|
@@ -93,24 +93,24 @@ const addSticky = (by_table, table_row) => {
|
|
|
93
93
|
/**
|
|
94
94
|
* Remove sticky highlight to other tables
|
|
95
95
|
*
|
|
96
|
-
* @param
|
|
96
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
97
97
|
* @param table_row {element} The table row that is to be changed
|
|
98
98
|
*/
|
|
99
|
-
const
|
|
99
|
+
const removeDscanSticky = (by_data, table_row) => {
|
|
100
100
|
table_row.removeClass('aa-intel-highlight-sticky');
|
|
101
101
|
|
|
102
|
-
if (
|
|
102
|
+
if (by_data === 'shiptype') {
|
|
103
103
|
elementShipClassTable
|
|
104
104
|
.find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
|
|
105
105
|
.removeClass('aa-intel-highlight-sticky');
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
if (
|
|
108
|
+
if (by_data === 'shipclass') {
|
|
109
109
|
elementShipClassTable
|
|
110
110
|
.find(`tr[data-shipclass-id="${table_row.data('shipclass-id')}"]`)
|
|
111
111
|
.removeClass('aa-intel-highlight-sticky');
|
|
112
112
|
|
|
113
|
-
if (
|
|
113
|
+
if (removeDscanShiptypeStickyComplete(by_data, table_row) === true) {
|
|
114
114
|
elementShipTypeTable
|
|
115
115
|
.find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
|
|
116
116
|
.removeClass('aa-intel-highlight-sticky');
|
|
@@ -122,18 +122,18 @@ const removeSticky = (by_table, table_row) => {
|
|
|
122
122
|
/**
|
|
123
123
|
* Change the status of the sticky highlight
|
|
124
124
|
*
|
|
125
|
-
* @param
|
|
125
|
+
* @param by_data {string} The table data attribute for which this function is triggered
|
|
126
126
|
* @param table_row {element} The table row that is to be changed
|
|
127
127
|
*/
|
|
128
|
-
const
|
|
128
|
+
const changeDscanStickyHighlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
|
|
129
129
|
if (
|
|
130
130
|
(
|
|
131
|
-
|
|
132
|
-
&&
|
|
133
|
-
) || (
|
|
131
|
+
by_data === 'shiptype' && table_row.hasClass('aa-intel-highlight-sticky') === true
|
|
132
|
+
&& removeDscanShiptypeStickyComplete(by_data, table_row) === true
|
|
133
|
+
) || (by_data === 'shipclass' && table_row.hasClass('aa-intel-highlight-sticky') === true)
|
|
134
134
|
) {
|
|
135
|
-
|
|
135
|
+
removeDscanSticky(by_data, table_row);
|
|
136
136
|
} else {
|
|
137
|
-
|
|
137
|
+
addDscanSticky(by_data, table_row);
|
|
138
138
|
}
|
|
139
139
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";const elementShipClassTable=$("table.aa-intel-dscan-ship-classes");const elementShipTypeTable=$("table.aa-intel-dscan-ship-types");const
|
|
1
|
+
"use strict";const elementShipClassTable=$("table.aa-intel-dscan-ship-classes");const elementShipTypeTable=$("table.aa-intel-dscan-ship-types");const removeDscanShiptypeStickyComplete=(by_data,table_row)=>{let removeSticky=true;elementShipClassTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).each((i,el)=>{if(by_data==="shiptype"&&!$(el).hasClass("aa-intel-highlight-sticky")){removeSticky=false}else if(by_data==="shipclass"&&$(el).hasClass("aa-intel-highlight-sticky")){removeSticky=false}});return removeSticky};const addDscanHightlight=(by_data,table_row)=>{elementShipClassTable.find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`).addClass("aa-intel-highlight");elementShipTypeTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).addClass("aa-intel-highlight")};const removeDscanHightlight=(by_data,table_row)=>{elementShipClassTable.find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`).removeClass("aa-intel-highlight");elementShipTypeTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).removeClass("aa-intel-highlight")};const addDscanSticky=(by_data,table_row)=>{table_row.addClass("aa-intel-highlight-sticky");if(by_data==="shiptype"){elementShipClassTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).addClass("aa-intel-highlight-sticky")}if(by_data==="shipclass"){elementShipClassTable.find(`tr[data-shipclass-id="${table_row.data("shipclass-id")}"]`).addClass("aa-intel-highlight-sticky");elementShipTypeTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).addClass("aa-intel-highlight-sticky")}};const removeDscanSticky=(by_data,table_row)=>{table_row.removeClass("aa-intel-highlight-sticky");if(by_data==="shiptype"){elementShipClassTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).removeClass("aa-intel-highlight-sticky")}if(by_data==="shipclass"){elementShipClassTable.find(`tr[data-shipclass-id="${table_row.data("shipclass-id")}"]`).removeClass("aa-intel-highlight-sticky");if(removeDscanShiptypeStickyComplete(by_data,table_row)===true){elementShipTypeTable.find(`tr[data-shiptype-id="${table_row.data("shiptype-id")}"]`).removeClass("aa-intel-highlight-sticky")}}};const changeDscanStickyHighlight=(by_data,table_row)=>{if(by_data==="shiptype"&&table_row.hasClass("aa-intel-highlight-sticky")===true&&removeDscanShiptypeStickyComplete(by_data,table_row)===true||by_data==="shipclass"&&table_row.hasClass("aa-intel-highlight-sticky")===true){removeDscanSticky(by_data,table_row)}else{addDscanSticky(by_data,table_row)}};
|
|
2
|
+
//# sourceMappingURL=aa-intel-tool-dscan-highlight.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool-dscan-highlight.js"],"names":["elementShipClassTable","$","elementShipTypeTable","removeDscanShiptypeStickyComplete","by_data","table_row","let","removeSticky","find","data","each","i","el","hasClass","addDscanHightlight","addClass","removeDscanHightlight","removeClass","addDscanSticky","removeDscanSticky","changeDscanStickyHighlight"],"mappings":"AAAA,aAKA,MAAMA,sBAAwBC,EAAE,mCAAmC,EACnE,MAAMC,qBAAuBD,EAAE,iCAAiC,EAUhE,MAAME,kCAAoC,CAACC,QAASC,aAChDC,IAAIC,aAAe,KAEnBP,sBAAsBQ,6BAA6BH,UAAUI,KAAK,aAAa,KAAK,EAAEC,KAAK,CAACC,EAAGC,MAC3F,GAAIR,UAAY,YAAc,CAACH,EAAEW,EAAE,EA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