aa-intel-tool 1.1.3__py3-none-any.whl → 2.0.0b1__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 +1 -6
- aa_intel_tool/app_settings.py +32 -1
- aa_intel_tool/auth_hooks.py +1 -1
- aa_intel_tool/constants.py +0 -13
- aa_intel_tool/locale/de/LC_MESSAGES/django.po +141 -139
- aa_intel_tool/locale/django.pot +140 -138
- aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/es/LC_MESSAGES/django.po +148 -144
- aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +149 -145
- aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +141 -139
- aa_intel_tool/locale/ja/LC_MESSAGES/django.po +141 -139
- aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +142 -140
- aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/ru/LC_MESSAGES/django.po +144 -151
- aa_intel_tool/locale/uk/LC_MESSAGES/django.po +141 -139
- aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +149 -147
- aa_intel_tool/management/commands/aa_intel_tool_load_eve_types.py +1 -1
- aa_intel_tool/parser/module/chatlist.py +17 -7
- aa_intel_tool/parser/module/dscan.py +36 -33
- aa_intel_tool/parser/module/fleetcomp.py +11 -5
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +7 -147
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +11 -11
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +24 -24
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +12 -12
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +49 -49
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +12 -12
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +18 -18
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +85 -170
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +1 -1
- aa_intel_tool/templates/aa_intel_tool/base.html +9 -4
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-chatscan-js.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-css.html +1 -2
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-dscan-js.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-fleetcomp-js.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/body/scan-retention-note.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/index/form.html +21 -22
- aa_intel_tool/templates/aa_intel_tool/partials/scan/buttons.html +6 -5
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/pilots.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid/items.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html +7 -7
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/system-information.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html +6 -6
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/participation.html +1 -1
- aa_intel_tool/templates/aa_intel_tool/views/index.html +4 -9
- aa_intel_tool/templates/aa_intel_tool/views/scan/chatlist.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/views/scan/dscan.html +2 -2
- aa_intel_tool/templates/aa_intel_tool/views/scan/fleetcomp.html +2 -2
- aa_intel_tool/tests/test_access.py +24 -13
- aa_intel_tool/tests/test_auth_hooks.py +18 -12
- aa_intel_tool/tests/test_parser.py +1 -1
- aa_intel_tool/tests/test_templatetags.py +2 -3
- aa_intel_tool/tests/utils.py +14 -0
- aa_intel_tool/views/general.py +3 -1
- {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/METADATA +31 -33
- {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/RECORD +81 -84
- {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/WHEEL +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.css +0 -13
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css +0 -2
- aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css.map +0 -1
- /aa_intel_tool/templatetags/{inteltool_versioned_static.py → aa_intel_tool.py} +0 -0
- {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Fetch data from an ajax URL
|
|
7
7
|
*
|
|
8
|
-
* @param url
|
|
8
|
+
* @param {string} url
|
|
9
9
|
* @returns {Promise<any>}
|
|
10
10
|
*/
|
|
11
11
|
const fetchAjaxData = async (url) => { // eslint-disable-line no-unused-vars
|
|
@@ -27,52 +27,63 @@ const fetchAjaxData = async (url) => { // eslint-disable-line no-unused-vars
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Get the image HTML string for an Eve portrait or logo
|
|
32
|
+
*
|
|
33
|
+
* @param {int} eveId
|
|
34
|
+
* @param {string} eveName
|
|
35
|
+
* @param {string} imageSource
|
|
36
|
+
* @param {int} imageSize
|
|
37
|
+
* @returns {`<img class="eve-image rounded" data-eveid="${int}" src="${string}" alt="${string}" title="${string}" loading="lazy" width="${int}" height="${int}">`}
|
|
38
|
+
*/
|
|
39
|
+
const eveImageHtml = (eveId, eveName, imageSource, imageSize = 32) => {
|
|
40
|
+
return `<img class="eve-image rounded" data-eveid="${eveId}" src="${imageSource}" alt="${eveName}" title="${eveName}" loading="lazy" width="${imageSize}" height="${imageSize}">`;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get the link HTML to EveWho for a pilot
|
|
46
|
+
*
|
|
47
|
+
* @param {string} href
|
|
48
|
+
* @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
|
|
49
|
+
*/
|
|
50
|
+
const eveWhoLinkHtml = (href) => {
|
|
51
|
+
return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Get the link HTML to zKillboard
|
|
57
|
+
*
|
|
58
|
+
* @param {string} href
|
|
59
|
+
* @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">zkillboard <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
|
|
60
|
+
*/
|
|
61
|
+
const zkillboardLinkHtml = (href) => {
|
|
62
|
+
return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">zkillboard <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Get the link HTML to dotlan
|
|
68
|
+
*
|
|
69
|
+
* @param {string} href
|
|
70
|
+
* @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">dotlan <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
|
|
71
|
+
*/
|
|
72
|
+
const dotlanLinkHtml = (href) => {
|
|
73
|
+
return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">dotlan <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
|
|
30
77
|
/**
|
|
31
78
|
* Pilot info element in datatable
|
|
32
79
|
*
|
|
33
|
-
* @param pilotData
|
|
34
|
-
* @returns {string}
|
|
80
|
+
* @param {Object} pilotData
|
|
81
|
+
* @returns {string} HTML construct for the pilot info
|
|
35
82
|
*/
|
|
36
83
|
const pilotInfoPanel = (pilotData) => { // eslint-disable-line no-unused-vars
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
' class="eve-image" ' +
|
|
41
|
-
' data-eveid="' + pilotData['id'] + '" ' +
|
|
42
|
-
' src="' + pilotData['portrait'] + '" ' +
|
|
43
|
-
' alt="' + pilotData['name'] + '" ' +
|
|
44
|
-
' title="' + pilotData['name'] + '" ' +
|
|
45
|
-
' width="32" ' +
|
|
46
|
-
' height="32">\n' +
|
|
47
|
-
'</span>';
|
|
48
|
-
|
|
49
|
-
let html_info = '' +
|
|
50
|
-
'<span class="aa-intel-pilot-information-wrapper">\n' +
|
|
51
|
-
' <span class="aa-intel-pilot-name-wrapper">\n' +
|
|
52
|
-
' ' + pilotData['name'] + '\n' +
|
|
53
|
-
' </span>\n';
|
|
54
|
-
|
|
55
|
-
html_info += '' +
|
|
56
|
-
' <span class="aa-intel-pilot-links-wrapper">\n' +
|
|
57
|
-
' <small>\n' +
|
|
58
|
-
' <a ' +
|
|
59
|
-
' class="aa-intel-information-link" ' +
|
|
60
|
-
' href="' + pilotData['evewho'] + '" ' +
|
|
61
|
-
' target="_blank" ' +
|
|
62
|
-
' rel="noopener noreferer"' +
|
|
63
|
-
' >' +
|
|
64
|
-
' evewho <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
65
|
-
' </a> |\n' +
|
|
66
|
-
|
|
67
|
-
' <a ' +
|
|
68
|
-
' class="aa-intel-information-link" ' +
|
|
69
|
-
' href="' + pilotData['zkillboard'] + '" ' +
|
|
70
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
71
|
-
' >' +
|
|
72
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
73
|
-
' </a>\n' +
|
|
74
|
-
' </small>\n' +
|
|
75
|
-
' </span>\n';
|
|
84
|
+
const html_logo = `<span class="aa-intel-pilot-avatar-wrapper">${eveImageHtml(pilotData.id, pilotData.name, pilotData.portrait)}</span>`;
|
|
85
|
+
let html_info = `<span class="aa-intel-pilot-information-wrapper"><span class="aa-intel-pilot-name-wrapper">${pilotData.name}</span>`;
|
|
86
|
+
html_info += `<span class="aa-intel-pilot-links-wrapper"><small>${eveWhoLinkHtml(pilotData.evewho)} | ${zkillboardLinkHtml(pilotData.zkillboard)}</small></span>`;
|
|
76
87
|
|
|
77
88
|
return html_logo + html_info;
|
|
78
89
|
};
|
|
@@ -81,60 +92,22 @@ const pilotInfoPanel = (pilotData) => { // eslint-disable-line no-unused-vars
|
|
|
81
92
|
/**
|
|
82
93
|
* Corporation info element in datatable
|
|
83
94
|
*
|
|
84
|
-
* @param corporationData
|
|
85
|
-
* @param
|
|
86
|
-
* @returns {string}
|
|
95
|
+
* @param {Object} corporationData
|
|
96
|
+
* @param {boolean} logoOnly Returns only the corporation logo
|
|
97
|
+
* @returns {string} HTML construct for the corporation info
|
|
87
98
|
*/
|
|
88
99
|
const corporationInfoPanel = (corporationData, logoOnly = false) => { // eslint-disable-line no-unused-vars
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
' alt="' + corporationData['name'] + '" ' +
|
|
96
|
-
' title="' + corporationData['name'] + '" ' +
|
|
97
|
-
' width="32" ' +
|
|
98
|
-
' height="32">\n' +
|
|
99
|
-
'</span>';
|
|
100
|
-
|
|
101
|
-
let html_info = '' +
|
|
102
|
-
'<span class="aa-intel-corporation-information-wrapper">\n' +
|
|
103
|
-
' <span class="aa-intel-corporation-name-wrapper">\n' +
|
|
104
|
-
' ' + corporationData['name'] + '\n' +
|
|
105
|
-
' </span>\n';
|
|
106
|
-
|
|
107
|
-
html_info += '' +
|
|
108
|
-
' <span class="aa-intel-corporation-links-wrapper">\n' +
|
|
109
|
-
' <small>\n';
|
|
110
|
-
|
|
111
|
-
if ((1000000 <= corporationData['id']) && corporationData['id'] <= 2000000) {
|
|
112
|
-
html_info += '' +
|
|
113
|
-
' (' + aaIntelToolJsL10n.scanData.npcCorp + ')';
|
|
100
|
+
const html_logo = `<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(corporationData.id, corporationData.name, corporationData.logo)}</span>`;
|
|
101
|
+
let html_info = `<span class="aa-intel-corporation-information-wrapper"><span class="aa-intel-corporation-name-wrapper">${corporationData.name}</span>`;
|
|
102
|
+
html_info += `<span class="aa-intel-corporation-links-wrapper"><small>`;
|
|
103
|
+
|
|
104
|
+
if ((1000000 <= corporationData.id) && corporationData.id <= 2000000) {
|
|
105
|
+
html_info += `(${aaIntelToolJsL10n.scanData.npcCorp})`;
|
|
114
106
|
} else {
|
|
115
|
-
html_info +=
|
|
116
|
-
' <a ' +
|
|
117
|
-
' class="aa-intel-information-link" ' +
|
|
118
|
-
' href="' + corporationData['dotlan'] + '" ' +
|
|
119
|
-
' target="_blank" ' +
|
|
120
|
-
' rel="noopener noreferer"' +
|
|
121
|
-
' >' +
|
|
122
|
-
' dotlan <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
123
|
-
' </a> |\n' +
|
|
124
|
-
|
|
125
|
-
' <a ' +
|
|
126
|
-
' class="aa-intel-information-link" ' +
|
|
127
|
-
' href="' + corporationData['zkillboard'] + '" ' +
|
|
128
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
129
|
-
' >' +
|
|
130
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
131
|
-
' </a>\n' +
|
|
132
|
-
' </small>\n' +
|
|
133
|
-
' </span>\n';
|
|
107
|
+
html_info += `${dotlanLinkHtml(corporationData.dotlan)} | ${zkillboardLinkHtml(corporationData.zkillboard)}</small></span>`;
|
|
134
108
|
}
|
|
135
109
|
|
|
136
|
-
html_info +=
|
|
137
|
-
'</span>';
|
|
110
|
+
html_info += `</span>`;
|
|
138
111
|
|
|
139
112
|
if (logoOnly) {
|
|
140
113
|
return html_logo;
|
|
@@ -147,59 +120,23 @@ const corporationInfoPanel = (corporationData, logoOnly = false) => { // eslint-
|
|
|
147
120
|
/**
|
|
148
121
|
* Alliance info element in datatable
|
|
149
122
|
*
|
|
150
|
-
* @param allianceData
|
|
151
|
-
* @param
|
|
152
|
-
* @returns {string}
|
|
123
|
+
* @param {Object} allianceData {object}
|
|
124
|
+
* @param {boolean} logoOnly Returns only the alliance logo
|
|
125
|
+
* @returns {string} HTML construct for the alliance info
|
|
153
126
|
*/
|
|
154
127
|
const allianceInfoPanel = (allianceData, logoOnly = false) => { // eslint-disable-line no-unused-vars
|
|
155
|
-
if (allianceData
|
|
156
|
-
allianceData
|
|
128
|
+
if (allianceData.name === '') {
|
|
129
|
+
allianceData.name = aaIntelToolJsL10n.scanData.empty;
|
|
157
130
|
}
|
|
158
131
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
' src="' + allianceData['logo'] + '" ' +
|
|
165
|
-
' alt="' + allianceData['name'] + '" ' +
|
|
166
|
-
' title="' + allianceData['name'] + '" ' +
|
|
167
|
-
' width="32" ' +
|
|
168
|
-
' height="32">\n' +
|
|
169
|
-
'</span>';
|
|
170
|
-
|
|
171
|
-
let html_info = '' +
|
|
172
|
-
'<span class="aa-intel-alliance-information-wrapper">\n' +
|
|
173
|
-
' <span class="aa-intel-alliance-name-wrapper">\n' +
|
|
174
|
-
' ' + allianceData['name'] + '\n' +
|
|
175
|
-
' </span>\n';
|
|
176
|
-
|
|
177
|
-
if (allianceData['id'] > 1) {
|
|
178
|
-
html_info += '' +
|
|
179
|
-
' <span class="aa-intel-alliance-links-wrapper">\n' +
|
|
180
|
-
' <small>\n' +
|
|
181
|
-
' <a ' +
|
|
182
|
-
' class="aa-intel-information-link" ' +
|
|
183
|
-
' href="' + allianceData['dotlan'] + '" ' +
|
|
184
|
-
' target="_blank" ' +
|
|
185
|
-
' rel="noopener noreferer"' +
|
|
186
|
-
' >' +
|
|
187
|
-
' dotlan <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
188
|
-
' </a> |\n' +
|
|
189
|
-
|
|
190
|
-
' <a ' +
|
|
191
|
-
' class="aa-intel-information-link" ' +
|
|
192
|
-
' href="' + allianceData['zkillboard'] + '" ' +
|
|
193
|
-
' target="_blank" rel="noopener noreferer"' +
|
|
194
|
-
' >' +
|
|
195
|
-
' zkillboard <i class="fas fa-external-link-alt" aria-hidden="true"></i>' +
|
|
196
|
-
' </a>\n' +
|
|
197
|
-
' </small>\n' +
|
|
198
|
-
' </span>\n';
|
|
132
|
+
const html_logo = `<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(allianceData.id, allianceData.name, allianceData.logo)}</span>`;
|
|
133
|
+
let html_info = `<span class="aa-intel-alliance-information-wrapper"><span class="aa-intel-alliance-name-wrapper">${allianceData.name}</span>`;
|
|
134
|
+
|
|
135
|
+
if (allianceData.id > 1) {
|
|
136
|
+
html_info += `<span class="aa-intel-alliance-links-wrapper"><small>${dotlanLinkHtml(allianceData.dotlan)} | ${zkillboardLinkHtml(allianceData.zkillboard)}</small></span>`;
|
|
199
137
|
}
|
|
200
138
|
|
|
201
|
-
html_info +=
|
|
202
|
-
'</span>';
|
|
139
|
+
html_info += `</span>`;
|
|
203
140
|
|
|
204
141
|
if (logoOnly) {
|
|
205
142
|
if (allianceData.id === 1) {
|
|
@@ -216,34 +153,18 @@ const allianceInfoPanel = (allianceData, logoOnly = false) => { // eslint-disabl
|
|
|
216
153
|
/**
|
|
217
154
|
* Ship/Item info element in datatable
|
|
218
155
|
*
|
|
219
|
-
* @param shipData
|
|
220
|
-
* @returns {string}
|
|
156
|
+
* @param {Object} shipData
|
|
157
|
+
* @returns {string} HTML construct for the ship info
|
|
221
158
|
*/
|
|
222
159
|
const shipInfoPanel = (shipData) => { // eslint-disable-line no-unused-vars
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
' <img ' +
|
|
226
|
-
' class="eve-image" ' +
|
|
227
|
-
' data-eveid="' + shipData['id'] + '" ' +
|
|
228
|
-
' src="' + shipData['image'] + '" ' +
|
|
229
|
-
' alt="' + shipData['name'] + '" ' +
|
|
230
|
-
' title="' + shipData['name'] + '" ' +
|
|
231
|
-
' width="32" ' +
|
|
232
|
-
' height="32">\n' +
|
|
233
|
-
'</span>';
|
|
234
|
-
|
|
235
|
-
let html_info = '' +
|
|
236
|
-
'<span class="aa-intel-ship-information-wrapper">\n' +
|
|
237
|
-
' <span class="aa-intel-ship-name-wrapper">\n' +
|
|
238
|
-
' ' + shipData['name'] + '\n' +
|
|
239
|
-
' </span>\n' +
|
|
240
|
-
'</span>\n';
|
|
160
|
+
const html_logo = `<span class="aa-intel-ship-image-wrapper">${eveImageHtml(shipData.id, shipData.name, shipData.image)}</span>`;
|
|
161
|
+
const html_info = `<span class="aa-intel-ship-information-wrapper"><span class="aa-intel-ship-name-wrapper">${shipData.name}</span></span>`;
|
|
241
162
|
|
|
242
163
|
return html_logo + html_info;
|
|
243
164
|
};
|
|
244
165
|
|
|
245
166
|
|
|
246
|
-
|
|
167
|
+
$(() => {
|
|
247
168
|
const elementCopyToClipboard = $('button#btn-copy-permalink-to-clipboard');
|
|
248
169
|
|
|
249
170
|
|
|
@@ -262,10 +183,8 @@ jQuery(document).ready(($) => {
|
|
|
262
183
|
* @param {int} closeAfter Close Message after given time in seconds (Default: 10)
|
|
263
184
|
*/
|
|
264
185
|
const closeMessageElement = (element, closeAfter = 10) => {
|
|
265
|
-
$(element).fadeTo(closeAfter * 1000, 500).slideUp(500, (
|
|
266
|
-
$(
|
|
267
|
-
$(el).remove();
|
|
268
|
-
});
|
|
186
|
+
$(element).fadeTo(closeAfter * 1000, 500).slideUp(500, () => {
|
|
187
|
+
$(element).remove();
|
|
269
188
|
});
|
|
270
189
|
};
|
|
271
190
|
|
|
@@ -278,9 +197,7 @@ jQuery(document).ready(($) => {
|
|
|
278
197
|
*/
|
|
279
198
|
const showSuccess = (message, element) => {
|
|
280
199
|
$(element).html(
|
|
281
|
-
|
|
282
|
-
'<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' + message +
|
|
283
|
-
'</div>'
|
|
200
|
+
`<div class="alert alert-success alert-dismissible alert-message-success d-flex align-items-center fade show">${message}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>`
|
|
284
201
|
);
|
|
285
202
|
|
|
286
203
|
closeMessageElement('.alert-message-success');
|
|
@@ -295,9 +212,7 @@ jQuery(document).ready(($) => {
|
|
|
295
212
|
*/
|
|
296
213
|
const showError = (message, element) => {
|
|
297
214
|
$(element).html(
|
|
298
|
-
|
|
299
|
-
'<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' + message +
|
|
300
|
-
'</div>'
|
|
215
|
+
`<div class="alert alert-danger alert-dismissible alert-message-error d-flex align-items-center fade show">${message}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>`
|
|
301
216
|
);
|
|
302
217
|
|
|
303
218
|
closeMessageElement('.alert-message-error', 9999);
|
|
@@ -307,7 +222,7 @@ jQuery(document).ready(($) => {
|
|
|
307
222
|
/**
|
|
308
223
|
* Copy the scan link to clipboard
|
|
309
224
|
*
|
|
310
|
-
* @param
|
|
225
|
+
* @param {string} elementId The HTML-element ID
|
|
311
226
|
*/
|
|
312
227
|
const copyScanLink = (elementId) => {
|
|
313
228
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const fetchAjaxData=async a=>fetch(a).then(a=>a.ok?Promise.resolve(a):Promise.reject(new Error("Failed to load"))).then(a=>a.json()).then(a=>a).catch(function(a){console.log("Error: "+a.message)}),
|
|
1
|
+
"use strict";const fetchAjaxData=async a=>fetch(a).then(a=>a.ok?Promise.resolve(a):Promise.reject(new Error("Failed to load"))).then(a=>a.json()).then(a=>a).catch(function(a){console.log("Error: "+a.message)}),eveImageHtml=(a,e,l,n=32)=>`<img class="eve-image rounded" data-eveid="${a}" src="${l}" alt="${e}" title="${e}" loading="lazy" width="${n}" height="${n}">`,eveWhoLinkHtml=a=>`<a class="aa-intel-information-link" href="${a}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`,zkillboardLinkHtml=a=>`<a class="aa-intel-information-link" href="${a}" target="_blank" rel="noopener noreferer">zkillboard <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`,dotlanLinkHtml=a=>`<a class="aa-intel-information-link" href="${a}" target="_blank" rel="noopener noreferer">dotlan <sup><small><i class="fas fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`,pilotInfoPanel=a=>{const e=`<span class="aa-intel-pilot-avatar-wrapper">${eveImageHtml(a.id,a.name,a.portrait)}</span>`;let l=`<span class="aa-intel-pilot-information-wrapper"><span class="aa-intel-pilot-name-wrapper">${a.name}</span>`;return l+=`<span class="aa-intel-pilot-links-wrapper"><small>${eveWhoLinkHtml(a.evewho)} | ${zkillboardLinkHtml(a.zkillboard)}</small></span>`,e+l},corporationInfoPanel=(a,e=!1)=>{const l=`<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(a.id,a.name,a.logo)}</span>`;let n=`<span class="aa-intel-corporation-information-wrapper"><span class="aa-intel-corporation-name-wrapper">${a.name}</span>`;return n+='<span class="aa-intel-corporation-links-wrapper"><small>',1e6<=a.id&&a.id<=2e6?n+=`(${aaIntelToolJsL10n.scanData.npcCorp})`:n+=`${dotlanLinkHtml(a.dotlan)} | ${zkillboardLinkHtml(a.zkillboard)}</small></span>`,n+="</span>",e?l:l+n},allianceInfoPanel=(a,e=!1)=>{""===a.name&&(a.name=aaIntelToolJsL10n.scanData.empty);const l=`<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(a.id,a.name,a.logo)}</span>`;let n=`<span class="aa-intel-alliance-information-wrapper"><span class="aa-intel-alliance-name-wrapper">${a.name}</span>`;return 1<a.id&&(n+=`<span class="aa-intel-alliance-links-wrapper"><small>${dotlanLinkHtml(a.dotlan)} | ${zkillboardLinkHtml(a.zkillboard)}</small></span>`),n+="</span>",e?1===a.id?"":l:l+n},shipInfoPanel=a=>{const e=`<span class="aa-intel-ship-image-wrapper">${eveImageHtml(a.id,a.name,a.image)}</span>`,l=`<span class="aa-intel-ship-information-wrapper"><span class="aa-intel-ship-name-wrapper">${a.name}</span></span>`;return e+l};$(()=>{const a=$("button#btn-copy-permalink-to-clipboard"),l=(ClipboardJS.isSupported()||a.remove(),(a,e=10)=>{$(a).fadeTo(1e3*e,500).slideUp(500,()=>{$(a).remove()})}),n=(a,e)=>{$(e).html(`<div class="alert alert-success alert-dismissible alert-message-success d-flex align-items-center fade show">${a}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>`),l(".alert-message-success")},s=(a,e)=>{$(e).html(`<div class="alert alert-danger alert-dismissible alert-message-error d-flex align-items-center fade show">${a}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>`),l(".alert-message-error",9999)},e=a=>{const e=new ClipboardJS(a);e.on("success",a=>{n(aaIntelToolJsL10n.copyToClipboard.permalink.text.success,".aa-intel-copy-result"),a.clearSelection(),e.destroy()}),e.on("error",()=>{s(aaIntelToolJsL10n.copyToClipboard.permalink.text.error,".aa-intel-copy-result"),e.destroy()})};a.click(()=>{e("#"+a.attr("id"))})});
|
|
2
2
|
//# sourceMappingURL=aa-intel-tool-scan-result-common.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["aa-intel-tool-scan-result-common.js"],"names":["fetchAjaxData","async","url","fetch","then","response","ok","Promise","resolve","reject","Error","json","tableData","catch","error","console","log","message","
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool-scan-result-common.js"],"names":["fetchAjaxData","async","url","fetch","then","response","ok","Promise","resolve","reject","Error","json","tableData","catch","error","console","log","message","eveImageHtml","eveId","eveName","imageSource","imageSize","eveWhoLinkHtml","href","zkillboardLinkHtml","dotlanLinkHtml","pilotInfoPanel","html_logo","pilotData","id","name","portrait","let","html_info","evewho","zkillboard","corporationInfoPanel","corporationData","logoOnly","logo","aaIntelToolJsL10n","scanData","npcCorp","dotlan","allianceInfoPanel","allianceData","empty","shipInfoPanel","shipData","image","$","elementCopyToClipboard","closeMessageElement","ClipboardJS","isSupported","remove","element","closeAfter","fadeTo","slideUp","showSuccess","html","showError","copyScanLink","clipboardScanLink","elementId","on","copyToClipboard","permalink","text","success","e","clearSelection","destroy","click","attr"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
$(()=>{"use strict";document.querySelectorAll("form").forEach(s=>{s.addEventListener("submit",t=>{s.classList.contains("is-submitting")&&t.preventDefault(),s.classList.add("is-submitting")})})});
|
|
2
2
|
//# sourceMappingURL=aa-intel-tool.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["aa-intel-tool.js"],"names":["
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool.js"],"names":["$","document","querySelectorAll","forEach","form","addEventListener","classList","contains","e","preventDefault","add"],"mappings":"AAAAA,EAAE,KACE,aAKAC,SAASC,iBAAiB,MAAM,EAAEC,QAAQ,IACtCC,EAAKC,iBAAiB,SAAU,IAExBD,EAAKE,UAAUC,SAAS,eAAe,GACvCC,EAAEC,eAAe,EAIrBL,EAAKE,UAAUI,IAAI,eAAe,CACtC,CAAC,CACL,CAAC,CACL,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
{% extends "allianceauth/base.html" %}
|
|
1
|
+
{% extends "allianceauth/base-bs5.html" %}
|
|
2
2
|
|
|
3
3
|
{% load i18n %}
|
|
4
|
-
{% load static %}
|
|
5
4
|
|
|
6
|
-
{% block page_title %}
|
|
5
|
+
{% block page_title %}
|
|
6
|
+
{% translate "Intel Parser" %}
|
|
7
|
+
{% endblock %}
|
|
8
|
+
|
|
9
|
+
{% block header_nav_brand %}
|
|
10
|
+
{% translate "Intel Parser" %}
|
|
11
|
+
{% endblock header_nav_brand %}
|
|
7
12
|
|
|
8
13
|
{% block content %}
|
|
9
14
|
<div class="aa-intel-tool">
|
|
@@ -15,7 +20,7 @@
|
|
|
15
20
|
{% block aa_intel_tool_body %}{% endblock %}
|
|
16
21
|
</div>
|
|
17
22
|
|
|
18
|
-
<div class="aa-intel-tool-footer">
|
|
23
|
+
<div class="aa-intel-tool-footer mt-3 pt-3 border-top border-light">
|
|
19
24
|
{% include "aa_intel_tool/partials/footer/app-translation-footer.html" %}
|
|
20
25
|
</div>
|
|
21
26
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load aa_intel_tool %}
|
|
2
2
|
|
|
3
3
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js' %}"></script>
|
|
4
4
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js' %}"></script>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load aa_intel_tool %}
|
|
2
2
|
|
|
3
|
-
<link rel="stylesheet" href="{% aa_intel_tool_static 'aa_intel_tool/css/aa-bootstrap-fix.min.css' %}">
|
|
4
3
|
<link rel="stylesheet" href="{% aa_intel_tool_static 'aa_intel_tool/css/aa-intel-tool.min.css' %}">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load aa_intel_tool %}
|
|
2
2
|
|
|
3
3
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js' %}"></script>
|
|
4
4
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js' %}"></script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load aa_intel_tool %}
|
|
2
2
|
|
|
3
3
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js' %}"></script>
|
|
4
4
|
<script src="{% aa_intel_tool_static 'aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js' %}"></script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% load i18n %}
|
|
2
2
|
|
|
3
3
|
{% if app_settings.INTELTOOL_SCAN_RETENTION_TIME > 0 %}
|
|
4
|
-
<p class="text-muted text-
|
|
4
|
+
<p class="text-muted text-end small">
|
|
5
5
|
{% blocktranslate count scan_retention_time=app_settings.INTELTOOL_SCAN_RETENTION_TIME %}Scans will be deleted after {{ scan_retention_time }} day.{% plural %}Scans will be deleted after {{ scan_retention_time }} days.{% endblocktranslate %}
|
|
6
6
|
</p>
|
|
7
7
|
{% endif %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% load i18n %}
|
|
2
2
|
|
|
3
3
|
<div class="app-translation-footer text-muted">
|
|
4
|
-
<p>
|
|
4
|
+
<p class="small">
|
|
5
5
|
{% translate "Do you want to help translate this app into your language or improve the existing translation?" %}
|
|
6
6
|
-
|
|
7
7
|
<a href="https://weblate.ppfeufer.de/engage/alliance-auth-apps/" target="_blank" rel="noopener noreferer">
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
{% load django_bootstrap5 %}
|
|
1
2
|
{% load i18n %}
|
|
2
|
-
{% load bootstrap %}
|
|
3
3
|
|
|
4
|
-
<div class="
|
|
5
|
-
<div class="
|
|
4
|
+
<div class="card card-default mb-3">
|
|
5
|
+
<div class="card-body">
|
|
6
6
|
<div class="row">
|
|
7
7
|
<div class="col-lg-4">
|
|
8
|
-
<div class="paste-explanation">
|
|
8
|
+
<div class="paste-explanation mb-4">
|
|
9
9
|
<header class="entry-header">
|
|
10
|
-
<
|
|
10
|
+
<p class="h3 entry-title">{% translate "What can I paste?" %}</p>
|
|
11
11
|
</header>
|
|
12
12
|
|
|
13
|
-
<ul>
|
|
13
|
+
<ul class="p-0">
|
|
14
14
|
{% if app_settings.INTELTOOL_ENABLE_MODULE_CHATSCAN %}
|
|
15
15
|
<li>
|
|
16
16
|
{% translate "Chat member list" as item_title %}
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
</li>
|
|
36
36
|
{% endif %}
|
|
37
37
|
</ul>
|
|
38
|
+
|
|
39
|
+
<p>
|
|
40
|
+
{% translate "Please keep in mind, parsing large amounts of data can take some time. Be patient, CCP's API is not the fastest to answer …" %}
|
|
41
|
+
</p>
|
|
38
42
|
</div>
|
|
39
43
|
</div>
|
|
40
44
|
|
|
@@ -42,24 +46,19 @@
|
|
|
42
46
|
<form id="new_intel" name="new_intel" method="post" action="/intel/">
|
|
43
47
|
{% csrf_token %}
|
|
44
48
|
|
|
45
|
-
{
|
|
49
|
+
{% bootstrap_form form %}
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<button type="submit" class="btn btn-primary" name="submit-form">
|
|
50
|
-
{% translate "Submit" %}
|
|
51
|
-
</button>
|
|
52
|
-
</div>
|
|
51
|
+
{% translate "Submit" as button_text %}
|
|
52
|
+
{% bootstrap_button button_type="submit" content=button_text %}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</div>
|
|
54
|
+
<div class="col-sm-12 aa-intel-form-submitted-info mt-3">
|
|
55
|
+
<div class="aa-callout aa-callout-info">
|
|
56
|
+
<p>{% translate "Working on it, please be patient …" %}</p>
|
|
57
|
+
<ul>
|
|
58
|
+
<li>{% translate "Detecting the intel type" %}</li>
|
|
59
|
+
<li>{% translate "Fetching potentially missing information from ESI (this might take a moment)" %}</li>
|
|
60
|
+
<li>{% translate "Parsing data" %}</li>
|
|
61
|
+
</ul>
|
|
63
62
|
</div>
|
|
64
63
|
</div>
|
|
65
64
|
</form>
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{% load i18n %}
|
|
2
2
|
|
|
3
|
-
<div class="aa-intel-scan-page-buttons">
|
|
3
|
+
<div class="aa-intel-scan-page-buttons my-4">
|
|
4
4
|
<ul class="nav nav-pills clearfix">
|
|
5
|
-
<li
|
|
5
|
+
<li class="me-2 mb-2">
|
|
6
6
|
<a href="{% url "aa_intel_tool:intel_tool_index" %}">
|
|
7
|
-
<button class="btn btn-
|
|
7
|
+
<button class="btn btn-primary btn-sm">
|
|
8
8
|
{% translate "New scan" %}
|
|
9
9
|
</button>
|
|
10
10
|
</a>
|
|
11
11
|
</li>
|
|
12
12
|
|
|
13
|
-
<li
|
|
14
|
-
<button id="btn-copy-permalink-to-clipboard" class="btn btn-
|
|
13
|
+
<li class="me-2 mb-2">
|
|
14
|
+
<button id="btn-copy-permalink-to-clipboard" class="btn btn-secondary btn-sm" data-clipboard-action="copy" data-clipboard-text="{{ SITE_URL }}{% url 'aa_intel_tool:intel_tool_scan' scan_hash %}">
|
|
15
15
|
{% translate "Copy permalink" %}
|
|
16
16
|
</button>
|
|
17
17
|
</li>
|
|
18
18
|
</ul>
|
|
19
19
|
</div>
|
|
20
|
+
|
|
20
21
|
<div class="aa-intel-copy-result"></div>
|