aa-intel-tool 2.6.0__py3-none-any.whl → 2.6.2__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.
Files changed (66) hide show
  1. aa_intel_tool/__init__.py +1 -1
  2. aa_intel_tool/app_settings.py +15 -0
  3. aa_intel_tool/constants.py +6 -5
  4. aa_intel_tool/helper/eve_character.py +24 -36
  5. aa_intel_tool/helper/static_files.py +5 -4
  6. aa_intel_tool/locale/cs_CZ/LC_MESSAGES/django.po +15 -83
  7. aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
  8. aa_intel_tool/locale/de/LC_MESSAGES/django.po +71 -87
  9. aa_intel_tool/locale/django.pot +16 -84
  10. aa_intel_tool/locale/es/LC_MESSAGES/django.po +19 -83
  11. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  12. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +72 -88
  13. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +15 -83
  14. aa_intel_tool/locale/ja/LC_MESSAGES/django.po +15 -83
  15. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +67 -83
  16. aa_intel_tool/locale/nl_NL/LC_MESSAGES/django.po +15 -83
  17. aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.po +15 -83
  18. aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
  19. aa_intel_tool/locale/ru/LC_MESSAGES/django.po +71 -87
  20. aa_intel_tool/locale/sk/LC_MESSAGES/django.po +15 -83
  21. aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
  22. aa_intel_tool/locale/uk/LC_MESSAGES/django.po +71 -94
  23. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  24. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +20 -87
  25. aa_intel_tool/parser/general.py +11 -16
  26. aa_intel_tool/parser/helper/db.py +8 -11
  27. aa_intel_tool/parser/module/chatlist.py +97 -126
  28. aa_intel_tool/parser/module/dscan.py +115 -147
  29. aa_intel_tool/parser/module/fleetcomp.py +85 -102
  30. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +6 -24
  31. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
  32. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
  33. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +104 -64
  34. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +1 -1
  35. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +5 -5
  36. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
  37. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -1
  38. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +43 -43
  39. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +1 -1
  40. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +41 -17
  41. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
  42. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
  43. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +51 -51
  44. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +1 -1
  45. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +13 -7
  46. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
  47. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
  48. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +53 -31
  49. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
  50. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
  51. aa_intel_tool/templates/aa_intel_tool/base.html +7 -42
  52. aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
  53. aa_intel_tool/templatetags/aa_intel_tool.py +12 -7
  54. aa_intel_tool/tests/test-data/dscan.txt +250 -0
  55. aa_intel_tool/tests/test_admin.py +50 -38
  56. aa_intel_tool/tests/test_app_settings.py +23 -1
  57. aa_intel_tool/tests/test_helper_eve_character.py +405 -0
  58. aa_intel_tool/tests/test_models.py +188 -4
  59. aa_intel_tool/tests/test_parser_general.py +771 -0
  60. aa_intel_tool/tests/test_parser_module_chatlist.py +154 -0
  61. aa_intel_tool/tests/test_templatetags.py +24 -3
  62. {aa_intel_tool-2.6.0.dist-info → aa_intel_tool-2.6.2.dist-info}/METADATA +4 -4
  63. {aa_intel_tool-2.6.0.dist-info → aa_intel_tool-2.6.2.dist-info}/RECORD +65 -63
  64. aa_intel_tool/tests/test_parser.py +0 -135
  65. {aa_intel_tool-2.6.0.dist-info → aa_intel_tool-2.6.2.dist-info}/WHEEL +0 -0
  66. {aa_intel_tool-2.6.0.dist-info → aa_intel_tool-2.6.2.dist-info}/licenses/LICENSE +0 -0
@@ -12,17 +12,17 @@ const elementFleetcompTable = $('table.aa-intel-fleetcomp-pilot-ships-list');
12
12
  /**
13
13
  * Determine if we can remove all sticky states for this corporation
14
14
  *
15
- * @param {string} by_data The table data attribute for which this function is triggered
16
- * @param {element} table_row The table row that is to be changed
15
+ * @param {string} byData The table data attribute for which this function is triggered
16
+ * @param {element} tableRow The table row that is to be changed
17
17
  * @returns {boolean}
18
18
  */
19
- const removeFleetcompositionShiptypeStickyComplete = (by_data, table_row) => {
19
+ const removeFleetcompositionShiptypeStickyComplete = (byData, tableRow) => {
20
20
  let removeSticky = true;
21
21
 
22
- elementShipClassTable.find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`).each((i, el) => {
23
- if (by_data === 'shiptype' && !$(el).hasClass('aa-intel-highlight-sticky')) {
22
+ elementShipClassTable.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`).each((i, el) => {
23
+ if (byData === 'shiptype' && !$(el).hasClass('aa-intel-highlight-sticky')) {
24
24
  removeSticky = false;
25
- } else if (by_data === 'shipclass' && $(el).hasClass('aa-intel-highlight-sticky')) {
25
+ } else if (byData === 'shipclass' && $(el).hasClass('aa-intel-highlight-sticky')) {
26
26
  removeSticky = false;
27
27
  }
28
28
  });
@@ -34,20 +34,20 @@ const removeFleetcompositionShiptypeStickyComplete = (by_data, table_row) => {
34
34
  /**
35
35
  * Add highlight to other tables
36
36
  *
37
- * @param {string} by_data The table data attribute for which this function is triggered
38
- * @param {element} table_row The table row that is to be changed
37
+ * @param {string} byData The table data attribute for which this function is triggered
38
+ * @param {element} tableRow The table row that is to be changed
39
39
  */
40
- const addFleetcompositionHightlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
40
+ const addFleetcompositionHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
41
41
  elementShipClassTable
42
- .find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`)
42
+ .find(`tr[data-${byData}-id="${tableRow.data(`${byData}-id`)}"]`)
43
43
  .addClass('aa-intel-highlight');
44
44
 
45
45
  elementShipTypeTable
46
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
46
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
47
47
  .addClass('aa-intel-highlight');
48
48
 
49
49
  elementFleetcompTable
50
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
50
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
51
51
  .addClass('aa-intel-highlight');
52
52
  };
53
53
 
@@ -55,20 +55,20 @@ const addFleetcompositionHightlight = (by_data, table_row) => { // eslint-disabl
55
55
  /**
56
56
  * Add highlight to other tables
57
57
  *
58
- * @param {string} by_data The table data attribute for which this function is triggered
59
- * @param {element} table_row The table row that is to be changed
58
+ * @param {string} byData The table data attribute for which this function is triggered
59
+ * @param {element} tableRow The table row that is to be changed
60
60
  */
61
- const removeFleetcompositionHightlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
61
+ const removeFleetcompositionHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
62
62
  elementShipClassTable
63
- .find(`tr[data-${by_data}-id="${table_row.data(`${by_data}-id`)}"]`)
63
+ .find(`tr[data-${byData}-id="${tableRow.data(`${byData}-id`)}"]`)
64
64
  .removeClass('aa-intel-highlight');
65
65
 
66
66
  elementShipTypeTable
67
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
67
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
68
68
  .removeClass('aa-intel-highlight');
69
69
 
70
70
  elementFleetcompTable
71
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
71
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
72
72
  .removeClass('aa-intel-highlight');
73
73
  };
74
74
 
@@ -76,37 +76,37 @@ const removeFleetcompositionHightlight = (by_data, table_row) => { // eslint-dis
76
76
  /**
77
77
  * Add sticky highlight to other tables
78
78
  *
79
- * @param {string} by_data The table data attribute for which this function is triggered
80
- * @param {element} table_row The table row that is to be changed
79
+ * @param {string} byData The table data attribute for which this function is triggered
80
+ * @param {element} tableRow The table row that is to be changed
81
81
  */
82
- const addFleetcompositionSticky = (by_data, table_row) => {
83
- table_row.addClass('aa-intel-highlight-sticky');
82
+ const addFleetcompositionSticky = (byData, tableRow) => {
83
+ tableRow.addClass('aa-intel-highlight-sticky');
84
84
 
85
- if (by_data === 'shiptype') {
85
+ if (byData === 'shiptype') {
86
86
  elementShipClassTable
87
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
87
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
88
88
  .addClass('aa-intel-highlight-sticky');
89
89
 
90
90
  elementShipTypeTable
91
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
91
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
92
92
  .addClass('aa-intel-highlight-sticky');
93
93
 
94
94
  elementFleetcompTable
95
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
95
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
96
96
  .addClass('aa-intel-highlight-sticky');
97
97
  }
98
98
 
99
- if (by_data === 'shipclass') {
99
+ if (byData === 'shipclass') {
100
100
  elementShipClassTable
101
- .find(`tr[data-shipclass-id="${table_row.data('shipclass-id')}"]`)
101
+ .find(`tr[data-shipclass-id="${tableRow.data('shipclass-id')}"]`)
102
102
  .addClass('aa-intel-highlight-sticky');
103
103
 
104
104
  elementShipTypeTable
105
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
105
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
106
106
  .addClass('aa-intel-highlight-sticky');
107
107
 
108
108
  elementFleetcompTable
109
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
109
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
110
110
  .addClass('aa-intel-highlight-sticky');
111
111
  }
112
112
  };
@@ -115,38 +115,38 @@ const addFleetcompositionSticky = (by_data, table_row) => {
115
115
  /**
116
116
  * Remove sticky highlight to other tables
117
117
  *
118
- * @param {string} by_data The table data attribute for which this function is triggered
119
- * @param {element} table_row The table row that is to be changed
118
+ * @param {string} byData The table data attribute for which this function is triggered
119
+ * @param {element} tableRow The table row that is to be changed
120
120
  */
121
- const removeFleetcompositionSticky = (by_data, table_row) => {
122
- table_row.removeClass('aa-intel-highlight-sticky');
121
+ const removeFleetcompositionSticky = (byData, tableRow) => {
122
+ tableRow.removeClass('aa-intel-highlight-sticky');
123
123
 
124
- if (by_data === 'shiptype') {
124
+ if (byData === 'shiptype') {
125
125
  elementShipClassTable
126
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
126
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
127
127
  .removeClass('aa-intel-highlight-sticky');
128
128
 
129
129
  elementShipTypeTable
130
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
130
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
131
131
  .removeClass('aa-intel-highlight-sticky');
132
132
 
133
133
  elementFleetcompTable
134
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
134
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
135
135
  .removeClass('aa-intel-highlight-sticky');
136
136
  }
137
137
 
138
- if (by_data === 'shipclass') {
138
+ if (byData === 'shipclass') {
139
139
  elementShipClassTable
140
- .find(`tr[data-shipclass-id="${table_row.data('shipclass-id')}"]`)
140
+ .find(`tr[data-shipclass-id="${tableRow.data('shipclass-id')}"]`)
141
141
  .removeClass('aa-intel-highlight-sticky');
142
142
 
143
143
  elementFleetcompTable
144
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
144
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
145
145
  .removeClass('aa-intel-highlight-sticky');
146
146
 
147
- if (removeFleetcompositionShiptypeStickyComplete(by_data, table_row) === true) {
147
+ if (removeFleetcompositionShiptypeStickyComplete(byData, tableRow) === true) {
148
148
  elementShipTypeTable
149
- .find(`tr[data-shiptype-id="${table_row.data('shiptype-id')}"]`)
149
+ .find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
150
150
  .removeClass('aa-intel-highlight-sticky');
151
151
  }
152
152
  }
@@ -156,19 +156,19 @@ const removeFleetcompositionSticky = (by_data, table_row) => {
156
156
  /**
157
157
  * Change the status of the sticky highlight
158
158
  *
159
- * @param {string} by_data The table data attribute for which this function is triggered
160
- * @param {element} table_row The table row that is to be changed
159
+ * @param {string} byData The table data attribute for which this function is triggered
160
+ * @param {element} tableRow The table row that is to be changed
161
161
  */
162
- const changeFleetcompositionStickyHighlight = (by_data, table_row) => { // eslint-disable-line no-unused-vars
162
+ const changeFleetcompositionStickyHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
163
163
  if (
164
164
  (
165
- by_data === 'shiptype' && table_row.hasClass('aa-intel-highlight-sticky') === true
166
- && removeFleetcompositionShiptypeStickyComplete(by_data, table_row) === true // jshint ignore:line
165
+ byData === 'shiptype' && tableRow.hasClass('aa-intel-highlight-sticky') === true
166
+ && removeFleetcompositionShiptypeStickyComplete(byData, tableRow) === true // jshint ignore:line
167
167
  )
168
- || (by_data === 'shipclass' && table_row.hasClass('aa-intel-highlight-sticky') === true) // jshint ignore:line
168
+ || (byData === 'shipclass' && tableRow.hasClass('aa-intel-highlight-sticky') === true) // jshint ignore:line
169
169
  ) {
170
- removeFleetcompositionSticky(by_data, table_row);
170
+ removeFleetcompositionSticky(byData, tableRow);
171
171
  } else {
172
- addFleetcompositionSticky(by_data, table_row);
172
+ addFleetcompositionSticky(byData, tableRow);
173
173
  }
174
174
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["aa-intel-tool-fleetcomposition-highlight.js"],"names":["elementShipClassTable","$","elementShipTypeTable","elementFleetcompTable","removeFleetcompositionShiptypeStickyComplete","by_data","table_row","let","removeSticky","find","data","each","i","el","hasClass","addFleetcompositionHightlight","addClass","removeFleetcompositionHightlight","removeClass","addFleetcompositionSticky","removeFleetcompositionSticky","changeFleetcompositionStickyHighlight"],"mappings":"AAMA,MAAMA,sBAAwBC,EAAE,mCAAmC,EAC7DC,qBAAuBD,EAAE,iCAAiC,EAC1DE,sBAAwBF,EAAE,2CAA2C,EAUrEG,6CAA+C,CAACC,EAASC,KAC3DC,IAAIC,EAAe,CAAA,EAUnB,OAR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BH,EAAUI,KAAK,aAAa,KAAK,EAC9DM,SAAS,2BAA2B,EAEjD,EASMI,6BAA+B,CAACf,EAASC,KAC3CA,EAAUY,YAAY,2BAA2B,EAEjC,aAAZb,IACAL,sBACKS,6BAA6BH,EAAUI,KAAK,aAAa,KAAK,EAC9DQ,YAAY,2BAA2B,EAE5ChB,qBACKO,6BAA6BH,EAAUI,KAAK,aAAa,KAAK,EAC9DQ,YAAY,2BAA2B,EAE5Cf,sBACKM,6BAA6BH,EAAUI,KAAK,aAAa,KAAK,EAC9DQ,YAAY,2BAA2B,GAGhC,cAAZb,IACAL,sBACKS,8BAA8BH,EAAUI,KAAK,cAAc,KAAK,EAChEQ,YAAY,2BAA2B,EAE5Cf,sBACKM,6BAA6BH,EAAUI,KAAK,aAAa,KAAK,EAC9DQ,YAAY,2BAA2B,EAE6B,CAAA,IAArEd,6CAA6CC,EAASC,CAAS,IAC/DJ,qBACKO,6BAA6BH,EAAUI,KAAK,aAAa,KAAK,EAC9DQ,YAAY,2BAA2B,CAGxD,EASMG,sCAAwC,CAAChB,EAASC,MAGhC,aAAZD,GAA8E,CAAA,IAApDC,EAAUQ,SAAS,2BAA2B,GACA,CAAA,IAArEV,6CAA6CC,EAASC,CAAS,GAEtD,cAAZD,GAA+E,CAAA,IAApDC,EAAUQ,SAAS,2BAA2B,EAE7EM,6BAEAD,2BAF6Bd,EAASC,CAAS,CAIvD"}
1
+ {"version":3,"sources":["aa-intel-tool-fleetcomposition-highlight.js"],"names":["elementShipClassTable","$","elementShipTypeTable","elementFleetcompTable","removeFleetcompositionShiptypeStickyComplete","byData","tableRow","let","removeSticky","find","data","each","i","el","hasClass","addFleetcompositionHightlight","addClass","removeFleetcompositionHightlight","removeClass","addFleetcompositionSticky","removeFleetcompositionSticky","changeFleetcompositionStickyHighlight"],"mappings":"AAMA,MAAMA,sBAAwBC,EAAE,mCAAmC,EAC7DC,qBAAuBD,EAAE,iCAAiC,EAC1DE,sBAAwBF,EAAE,2CAA2C,EAU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AAa,KAAK,EAC7DM,SAAS,2BAA2B,EAEzCb,sBACKM,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DM,SAAS,2BAA2B,EAEjD,EASMI,6BAA+B,CAACf,EAAQC,KAC1CA,EAASY,YAAY,2BAA2B,EAEjC,aAAXb,IACAL,sBACKS,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DQ,YAAY,2BAA2B,EAE5ChB,qBACKO,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DQ,YAAY,2BAA2B,EAE5Cf,sBACKM,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DQ,YAAY,2BAA2B,GAGjC,cAAXb,IACAL,sBACKS,8BAA8BH,EAASI,KAAK,cAAc,KAAK,EAC/DQ,YAAY,2BAA2B,EAE5Cf,sBACKM,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DQ,YAAY,2BAA2B,EAE2B,CAAA,IAAnEd,6CAA6CC,EAAQC,CAAQ,IAC7DJ,qBACKO,6BAA6BH,EAASI,KAAK,aAAa,KAAK,EAC7DQ,YAAY,2BAA2B,CAGxD,EASMG,sCAAwC,CAAChB,EAAQC,MAGhC,aAAXD,GAA4E,CAAA,IAAnDC,EAASQ,SAAS,2BAA2B,GACA,CAAA,IAAnEV,6CAA6CC,EAAQC,CAAQ,GAErD,cAAXD,GAA6E,CAAA,IAAnDC,EAASQ,SAAS,2BAA2B,EAE3EM,6BAEAD,2BAF6Bd,EAAQC,CAAQ,CAIrD"}
@@ -25,7 +25,7 @@ $(() => {
25
25
  elementShipClassesTable.DataTable({
26
26
  data: tableData,
27
27
  paging: false,
28
- language: aaIntelToolJsSettings.translation.dataTables,
28
+ language: aaIntelToolJsSettings.language.dataTables,
29
29
  lengthChange: false,
30
30
  dom:
31
31
  '<\'row\'<\'col-sm-12\'f>>' +
@@ -51,12 +51,12 @@ $(() => {
51
51
  {
52
52
  targets: 0,
53
53
  createdCell: (td) => {
54
- $(td).addClass('text-ellipsis');
54
+ $(td).addClass('text-ellipsis fix-eve-image-position');
55
55
  }
56
56
  },
57
57
  {
58
58
  targets: 1,
59
- width: 45,
59
+ width: 35,
60
60
  createdCell: (td) => {
61
61
  $(td).addClass('text-end');
62
62
  }
@@ -73,7 +73,7 @@ $(() => {
73
73
  elementShipClassesMass.data('mass', newMass);
74
74
  elementShipClassesMass.html(
75
75
  new Intl.NumberFormat(
76
- aaIntelToolJsSettings.language
76
+ aaIntelToolJsSettings.language.django
77
77
  ).format(newMass)
78
78
  );
79
79
 
@@ -123,7 +123,7 @@ $(() => {
123
123
  elementShipTypesTable.DataTable({
124
124
  data: tableData,
125
125
  paging: false,
126
- language: aaIntelToolJsSettings.translation.dataTables,
126
+ language: aaIntelToolJsSettings.language.dataTables,
127
127
  lengthChange: false,
128
128
  dom:
129
129
  '<\'row\'<\'col-sm-12\'f>>' +
@@ -141,9 +141,15 @@ $(() => {
141
141
  [1, 'desc']
142
142
  ],
143
143
  columnDefs: [
144
+ {
145
+ targets: 0,
146
+ createdCell: (td) => {
147
+ $(td).addClass('text-ellipsis fix-eve-image-position');
148
+ }
149
+ },
144
150
  {
145
151
  targets: 1,
146
- width: 45,
152
+ width: 35,
147
153
  createdCell: (td) => {
148
154
  $(td).addClass('text-end');
149
155
  }
@@ -194,7 +200,7 @@ $(() => {
194
200
  elementFleetcompositionTable.DataTable({
195
201
  data: tableData,
196
202
  paging: false,
197
- language: aaIntelToolJsSettings.translation.dataTables,
203
+ language: aaIntelToolJsSettings.language.dataTables,
198
204
  lengthChange: false,
199
205
  dom:
200
206
  '<\'row\'<\'col-sm-12\'f>>' +
@@ -1,2 +1,2 @@
1
- $(()=>{const a=$("table.aa-intel-dscan-ship-classes-ship-classes-list"),i=$("span#aa-intel-dscan-ship-classes-mass"),e=$("table.aa-intel-dscan-ship-types-list"),s=$("table.aa-intel-fleetcomp-pilot-ships-list"),l=$("span#aa-intel-fleet-participation-count");fetchAjaxData(aaIntelToolJsSettings.url.getShipClasses).then(t=>{t&&($("div.aa-intel-loading-table-info-ship-classes").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-ship-classes").removeClass("d-none"):($("div.table-dscan-ship-classes-ship-classes").removeClass("d-none"),a.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.translation.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:t=>shipInfoPanel(t)},{data:"count"},{data:"type_name"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:t=>{$(t).addClass("text-ellipsis")}},{targets:1,width:45,createdCell:t=>{$(t).addClass("text-end")}},{targets:2,visible:!1}],createdRow:(e,t)=>{const a=i.data("mass")||0,s=parseInt(a)+t.mass;i.data("mass",s),i.html(new Intl.NumberFormat(aaIntelToolJsSettings.language).format(s)),$(e).attr("data-shipclass-id",t.id).attr("data-shiptype-id",t.type_id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shipclass",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shipclass",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shipclass",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-dscan-ship-classes-ship-classes-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getShipTypes).then(t=>{t&&($("div.aa-intel-loading-table-info-ship-types").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-ship-types").removeClass("d-none"):($("div.table-dscan-ship-types").removeClass("d-none"),e.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.translation.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:"name"},{data:"count"}],order:[[1,"desc"]],columnDefs:[{targets:1,width:45,createdCell:t=>{$(t).addClass("text-end")}}],createdRow:(e,t)=>{$(e).attr("data-shiptype-id",t.id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shiptype",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shiptype",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shiptype",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-dscan-ship-types-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getFleetComposition).then(t=>{t&&($("div.aa-intel-loading-table-info-fleetcomp-pilot-ships").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-fleetcomp-pilot-ships").removeClass("d-none"):($("div.table-fleetcomp-pilot-ships").removeClass("d-none"),s.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.translation.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:t=>pilotInfoPanel(t)},{data:"ship"},{data:"solarsystem"}],order:[[0,"asc"]],columnDefs:[{targets:0,createdCell:t=>{$(t).addClass("fix-eve-image-position")}}],createdRow:(e,t)=>{const a=l.html(),s=parseInt(a)+1;l.html(s),$(e).attr("data-shipclass-id",t.ship_id).attr("data-shiptype-id",t.ship_type_id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shiptype",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shiptype",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shiptype",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-fleetcomp-pilot-ships-list")})});
1
+ $(()=>{const a=$("table.aa-intel-dscan-ship-classes-ship-classes-list"),i=$("span#aa-intel-dscan-ship-classes-mass"),e=$("table.aa-intel-dscan-ship-types-list"),s=$("table.aa-intel-fleetcomp-pilot-ships-list"),l=$("span#aa-intel-fleet-participation-count");fetchAjaxData(aaIntelToolJsSettings.url.getShipClasses).then(t=>{t&&($("div.aa-intel-loading-table-info-ship-classes").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-ship-classes").removeClass("d-none"):($("div.table-dscan-ship-classes-ship-classes").removeClass("d-none"),a.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:t=>shipInfoPanel(t)},{data:"count"},{data:"type_name"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:t=>{$(t).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:35,createdCell:t=>{$(t).addClass("text-end")}},{targets:2,visible:!1}],createdRow:(e,t)=>{const a=i.data("mass")||0,s=parseInt(a)+t.mass;i.data("mass",s),i.html(new Intl.NumberFormat(aaIntelToolJsSettings.language.django).format(s)),$(e).attr("data-shipclass-id",t.id).attr("data-shiptype-id",t.type_id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shipclass",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shipclass",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shipclass",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-dscan-ship-classes-ship-classes-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getShipTypes).then(t=>{t&&($("div.aa-intel-loading-table-info-ship-types").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-ship-types").removeClass("d-none"):($("div.table-dscan-ship-types").removeClass("d-none"),e.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:"name"},{data:"count"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:t=>{$(t).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:35,createdCell:t=>{$(t).addClass("text-end")}}],createdRow:(e,t)=>{$(e).attr("data-shiptype-id",t.id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shiptype",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shiptype",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shiptype",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-dscan-ship-types-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getFleetComposition).then(t=>{t&&($("div.aa-intel-loading-table-info-fleetcomp-pilot-ships").addClass("d-none"),0===Object.keys(t).length?$("div.aa-intel-empty-table-info-fleetcomp-pilot-ships").removeClass("d-none"):($("div.table-fleetcomp-pilot-ships").removeClass("d-none"),s.DataTable({data:t,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:t=>pilotInfoPanel(t)},{data:"ship"},{data:"solarsystem"}],order:[[0,"asc"]],columnDefs:[{targets:0,createdCell:t=>{$(t).addClass("fix-eve-image-position")}}],createdRow:(e,t)=>{const a=l.html(),s=parseInt(a)+1;l.html(s),$(e).attr("data-shipclass-id",t.ship_id).attr("data-shiptype-id",t.ship_type_id),$(e).mouseenter(()=>{addFleetcompositionHightlight("shiptype",$(e))}).mouseleave(()=>{removeFleetcompositionHightlight("shiptype",$(e))}),$(e).click(t=>{const a=$(t.target);a.hasClass("aa-intel-information-link")?t.stopPropagation():changeFleetcompositionStickyHighlight("shiptype",$(e))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-fleetcomp-pilot-ships-list")})});
2
2
  //# sourceMappingURL=aa-intel-tool-fleetcomposition.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["aa-intel-tool-fleetcomposition.js"],"names":["$","elementShipClassesTable","elementShipClassesMass","elementShipTypesTable","elementFleetcompositionTable","elementPilotsCount","fetchAjaxData","aaIntelToolJsSettings","url","getShipClasses","then","tableData","addClass","Object","keys","length","removeClass","DataTable","data","paging","language","translation","dataTables","lengthChange","dom","columns","shipInfoPanel","order","columnDefs","targets","createdCell","td","width","visible","createdRow","row","currentMass","newMass","parseInt","mass","html","Intl","NumberFormat","format","attr","id","type_id","mouseenter","addFleetcompositionHightlight","mouseleave","removeFleetcompositionHightlight","click","target","event","hasClass","stopPropagation","changeFleetcompositionStickyHighlight","bootstrapTooltip","getShipTypes","getFleetComposition","pilotInfoPanel","currentTotal","newTotal","ship_id","ship_type_id"],"mappings":"AAEAA,EAAE,KAGE,MAAMC,EAA0BD,EAAE,qDAAqD,EACjFE,EAAyBF,EAAE,uCAAuC,EAClEG,EAAwBH,EAAE,sCAAsC,EAChEI,EAA+BJ,EAAE,2CAA2C,EAC5EK,EAAqBL,EAAE,yCAAyC,EAMtEM,cAAcC,sBAAsBC,IAAIC,cAAc,EAAEC,KAAKC,IACrDA,IACAX,EAAE,8CAA8C,EAAEY,SAAS,QAAQ,EAE7B,IAAlCC,OAAOC,KAAKH,CAAS,EAAEI,OACvBf,EAAE,4CAA4C,EAAEgB,YAAY,QAAQ,GAEpEhB,EAAE,2CAA2C,EAAEgB,YAAY,QAAQ,EAEnEf,EAAwBgB,UAAU,CAC9BC,KAAMP,EACNQ,OAAQ,CAAA,EACRC,SAAUb,sBAAsBc,YAAYC,WAC5CC,aAAc,CAAA,EACdC,IACI,mEAGJC,QAAS,CACL,CACIP,KAAM,GACKQ,cAAcR,CAAI,CAEjC,EACA,CACIA,KAAM,OACV,EACA,CACIA,KAAM,WACV,GAEJS,MAAO,CACH,CAAC,EAAG,SAERC,WAAY,CACR,CACIC,QAAS,EACTC,YAAa,IACT9B,EAAE+B,CAAE,EAAEnB,SAAS,eAAe,CAClC,CACJ,EACA,CACIiB,QAAS,EACTG,MAAO,GACPF,YAAa,IACT9B,EAAE+B,CAAE,EAAEnB,SAAS,UAAU,CAC7B,CACJ,EACA,CACIiB,QAAS,EACTI,QAAS,CAAA,CACb,GAEJC,WAAY,CAACC,EAAKjB,KACd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mBmC,KAAK,EACvCsB,EAAWxB,SAASuB,CAAY,EAAI,EAE1CxD,EAAmBmC,KAAKsB,CAAQ,EAEhC9D,EAAEmC,CAAG,EACAS,KAAK,oBAAqB1B,EAAK6C,OAAO,EACtCnB,KAAK,mBAAoB1B,EAAK8C,YAAY,EAG/ChE,EAAEmC,CAAG,EAAEY,WAAW,KACdC,8BAA8B,WAAYhD,EAAEmC,CAAG,CAAC,CACpD,CAAC,EAAEc,WAAW,KACVC,iCAAiC,WAAYlD,EAAEmC,CAAG,CAAC,CACvD,CAAC,EAGDnC,EAAEmC,CAAG,EAAEgB,MAAM,IACT,MAAMC,EAASpD,EAAEqD,EAAMD,MAAM,EAEzBA,EAAOE,SAAS,2BAA2B,EAC3CD,EAAME,gBAAgB,EAEtBC,sCAAsC,WAAYxD,EAAEmC,CAAG,CAAC,CAEhE,CAAC,CACL,CACJ,CAAC,GAGb,CAAC,EAAEzB,KAAK,KAEJ+C,iBAAiB,sCAAsC,CAC3D,CAAC,CACL,CAAC"}
1
+ {"version":3,"sources":["aa-intel-tool-fleetcomposition.js"],"names":["$","elementShipClassesTable","elementShipClassesMass","elementShipTypesTable","elementFleetcompositionTable","elementPilotsCount","fetchAjaxData","aaIntelToolJsSettings","url","getShipClasses","then","tableData","addClass","Object","keys","length","removeClass","DataTable","data","paging","language","dataTables","lengthChange","dom","columns","shipInfoPanel","order","columnDefs","targets","createdCell","td","width","visible","createdRow","row","currentMass","newMass","parseInt","mass","html","Intl","NumberFormat","django","format","attr","id","type_id","mouseenter","addFleetcompositionHightlight","mouseleave","removeFleetcompositionHightlight","click","target","event","hasClass","stopPropagation","changeFleetcompositionStickyHighlight","bootstrapTooltip","getShipTypes","getFleetComposition","pilotInfoPanel","currentTotal","newTotal","ship_id","ship_type_id"],"mappings":"AAEAA,EAAE,KAGE,MAAMC,EAA0BD,EAAE,qDAAqD,EACjFE,EAAyBF,EAAE,uCAAuC,EAClEG,EAAwBH,EAAE,sCAAsC,EAChEI,EAA+BJ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GDlC,EAAEkC,CAAG,EAAEiB,MAAM,IACT,MAAMC,EAASpD,EAAEqD,EAAMD,MAAM,EAEzBA,EAAOE,SAAS,2BAA2B,EAC3CD,EAAME,gBAAgB,EAEtBC,sCAAsC,WAAYxD,EAAEkC,CAAG,CAAC,CAEhE,CAAC,CACL,CACJ,CAAC,GAGb,CAAC,EAAExB,KAAK,KAEJ+C,iBAAiB,sCAAsC,CAC3D,CAAC,CACL,CAAC"}
@@ -49,7 +49,7 @@ const bootstrapTooltip = (selector = 'body') => { // eslint-disable-line no-unus
49
49
  * @param {string} eveName
50
50
  * @param {string} imageSource
51
51
  * @param {int} imageSize
52
- * @returns {`<img class="eve-image rounded" data-eveid="${int}" src="${string}" alt="${string}" title="${string}" data-bs-tooltip="aa-intel-tool" loading="lazy" width="${int}" height="${int}">`}
52
+ * @returns {`<img class='eve-image rounded' data-eveid='${int}' src='${string}' alt='${string}' title='${string}' data-bs-tooltip='aa-intel-tool' loading='lazy' width='${int}' height='${int}'>`}
53
53
  */
54
54
  const eveImageHtml = (eveId, eveName, imageSource, imageSize = 32) => {
55
55
  return `<img class="eve-image rounded" data-eveid="${eveId}" src="${imageSource}" alt="${eveName}" title="${eveName}" data-bs-tooltip="aa-intel-tool" loading="lazy" width="${imageSize}" height="${imageSize}">`;
@@ -60,7 +60,7 @@ const eveImageHtml = (eveId, eveName, imageSource, imageSize = 32) => {
60
60
  * Get the link HTML to EveWho for a pilot
61
61
  *
62
62
  * @param {string} href
63
- * @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
63
+ * @returns {`<a class='aa-intel-information-link' href='${string}' target='_blank' rel='noopener noreferer'>evewho <sup><small><i class='fa-solid fa-external-link-alt' aria-hidden='true'></i></small></sup></a>`}
64
64
  */
65
65
  const eveWhoLinkHtml = (href) => {
66
66
  return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
@@ -71,7 +71,7 @@ const eveWhoLinkHtml = (href) => {
71
71
  * Get the link HTML to zKillboard
72
72
  *
73
73
  * @param {string} href
74
- * @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">zkillboard <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
74
+ * @returns {`<a class='aa-intel-information-link' href='${string}' target='_blank' rel='noopener noreferer'>zkillboard <sup><small><i class='fa-solid fa-external-link-alt' aria-hidden='true'></i></small></sup></a>`}
75
75
  */
76
76
  const zkillboardLinkHtml = (href) => {
77
77
  return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">zkillboard <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
@@ -82,12 +82,43 @@ const zkillboardLinkHtml = (href) => {
82
82
  * Get the link HTML to dotlan
83
83
  *
84
84
  * @param {string} href
85
- * @returns {`<a class="aa-intel-information-link" href="${string}" target="_blank" rel="noopener noreferer">dotlan <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`}
85
+ * @returns {`<a class='aa-intel-information-link' href='${string}' target='_blank' rel='noopener noreferer'>dotlan <sup><small><i class='fa-solid fa-external-link-alt' aria-hidden='true'></i></small></sup></a>`}
86
86
  */
87
87
  const dotlanLinkHtml = (href) => {
88
88
  return `<a class="aa-intel-information-link" href="${href}" target="_blank" rel="noopener noreferer">dotlan <sup><small><i class="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`;
89
89
  };
90
90
 
91
+ /**
92
+ * Info panel for the datatable
93
+ *
94
+ * @param {string} imageData
95
+ * @param {string} eveData
96
+ * @param {string} additionalInfo
97
+ * @param {boolean} logoOnly Returns only the logo
98
+ * @returns {string} HTML construct for the info panel
99
+ */
100
+ const infoPanel = (
101
+ imageData,
102
+ eveData,
103
+ additionalInfo = '',
104
+ logoOnly = false
105
+ ) => {
106
+ const imageDataHtml = `<span class="aa-intel-eve-image-wrapper">${imageData}</span>`;
107
+
108
+ if (logoOnly) {
109
+ return imageDataHtml;
110
+ }
111
+
112
+ let eveDataHtml = `<span class="aa-intel-eve-information-wrapper"><span class="aa-intel-eve-name-wrapper">${eveData}</span>`;
113
+
114
+ if (additionalInfo) {
115
+ eveDataHtml += `<span class="aa-intel-additional-information-wrapper"><small>${additionalInfo}</small></span>`;
116
+ } else {
117
+ eveDataHtml += `</span>`;
118
+ }
119
+
120
+ return imageDataHtml + eveDataHtml;
121
+ };
91
122
 
92
123
  /**
93
124
  * Pilot info element in datatable
@@ -96,11 +127,11 @@ const dotlanLinkHtml = (href) => {
96
127
  * @returns {string} HTML construct for the pilot info
97
128
  */
98
129
  const pilotInfoPanel = (pilotData) => { // eslint-disable-line no-unused-vars
99
- const html_logo = `<span class="aa-intel-pilot-avatar-wrapper">${eveImageHtml(pilotData.id, pilotData.name, pilotData.portrait)}</span>`;
100
- let html_info = `<span class="aa-intel-pilot-information-wrapper"><span class="aa-intel-pilot-name-wrapper">${pilotData.name}</span>`;
101
- html_info += `<span class="aa-intel-pilot-links-wrapper"><small>${eveWhoLinkHtml(pilotData.evewho)} | ${zkillboardLinkHtml(pilotData.zkillboard)}</small></span>`;
130
+ const imageData = eveImageHtml(pilotData.id, pilotData.name, pilotData.portrait);
131
+ const eveData = pilotData.name;
132
+ const additionalInfo = `${eveWhoLinkHtml(pilotData.evewho)} | ${zkillboardLinkHtml(pilotData.zkillboard)}`;
102
133
 
103
- return html_logo + html_info;
134
+ return infoPanel(imageData, eveData, additionalInfo);
104
135
  };
105
136
 
106
137
 
@@ -112,23 +143,17 @@ const pilotInfoPanel = (pilotData) => { // eslint-disable-line no-unused-vars
112
143
  * @returns {string} HTML construct for the corporation info
113
144
  */
114
145
  const corporationInfoPanel = (corporationData, logoOnly = false) => { // eslint-disable-line no-unused-vars
115
- const html_logo = `<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(corporationData.id, corporationData.name, corporationData.logo)}</span>`;
116
- let html_info = `<span class="aa-intel-corporation-information-wrapper"><span class="aa-intel-corporation-name-wrapper">${corporationData.name}</span>`;
117
- html_info += `<span class="aa-intel-corporation-links-wrapper"><small>`;
146
+ const imageData = eveImageHtml(corporationData.id, corporationData.name, corporationData.logo);
147
+ const eveData = corporationData.name;
148
+ let additionalInfo = '';
118
149
 
119
150
  if ((1000000 <= corporationData.id) && corporationData.id <= 2000000) {
120
- html_info += `(${aaIntelToolJsSettings.translation.scanData.npcCorp})`;
151
+ additionalInfo = `(${aaIntelToolJsSettings.translation.scanData.npcCorp})`;
121
152
  } else {
122
- html_info += `${dotlanLinkHtml(corporationData.dotlan)} | ${zkillboardLinkHtml(corporationData.zkillboard)}</small></span>`;
153
+ additionalInfo = `${dotlanLinkHtml(corporationData.dotlan)} | ${zkillboardLinkHtml(corporationData.zkillboard)}`;
123
154
  }
124
155
 
125
- html_info += `</span>`;
126
-
127
- if (logoOnly) {
128
- return html_logo;
129
- }
130
-
131
- return html_logo + html_info;
156
+ return infoPanel(imageData, eveData, additionalInfo, logoOnly);
132
157
  };
133
158
 
134
159
 
@@ -144,24 +169,21 @@ const allianceInfoPanel = (allianceData, logoOnly = false) => { // eslint-disabl
144
169
  allianceData.name = aaIntelToolJsSettings.translation.scanData.empty;
145
170
  }
146
171
 
147
- const html_logo = `<span class="aa-intel-corporation-logo-wrapper">${eveImageHtml(allianceData.id, allianceData.name, allianceData.logo)}</span>`;
148
- let html_info = `<span class="aa-intel-alliance-information-wrapper"><span class="aa-intel-alliance-name-wrapper">${allianceData.name}</span>`;
172
+ const imageData = eveImageHtml(allianceData.id, allianceData.name, allianceData.logo);
173
+ const eveData = allianceData.name;
174
+ let additionalInfo = '';
149
175
 
150
176
  if (allianceData.id > 1) {
151
- html_info += `<span class="aa-intel-alliance-links-wrapper"><small>${dotlanLinkHtml(allianceData.dotlan)} | ${zkillboardLinkHtml(allianceData.zkillboard)}</small></span>`;
177
+ additionalInfo = `${dotlanLinkHtml(allianceData.dotlan)} | ${zkillboardLinkHtml(allianceData.zkillboard)}`;
152
178
  }
153
179
 
154
- html_info += `</span>`;
155
-
156
180
  if (logoOnly) {
157
181
  if (allianceData.id === 1) {
158
182
  return '';
159
183
  }
160
-
161
- return html_logo;
162
184
  }
163
185
 
164
- return html_logo + html_info;
186
+ return infoPanel(imageData, eveData, additionalInfo, logoOnly);
165
187
  };
166
188
 
167
189
 
@@ -172,10 +194,10 @@ const allianceInfoPanel = (allianceData, logoOnly = false) => { // eslint-disabl
172
194
  * @returns {string} HTML construct for the ship info
173
195
  */
174
196
  const shipInfoPanel = (shipData) => { // eslint-disable-line no-unused-vars
175
- const html_logo = `<span class="aa-intel-ship-image-wrapper">${eveImageHtml(shipData.id, shipData.name, shipData.image)}</span>`;
176
- const html_info = `<span class="aa-intel-ship-information-wrapper"><span class="aa-intel-ship-name-wrapper">${shipData.name}</span></span>`;
197
+ const imageData = eveImageHtml(shipData.id, shipData.name, shipData.image);
198
+ const eveData = shipData.name;
177
199
 
178
- return html_logo + html_info;
200
+ return infoPanel(imageData, eveData);
179
201
  };
180
202
 
181
203
 
@@ -1,2 +1,2 @@
1
- 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}`)}),bootstrapTooltip=(a="body")=>{[].slice.call(document.querySelectorAll(`${a} [data-bs-tooltip="aa-intel-tool"]`)).map(a=>new bootstrap.Tooltip(a))},eveImageHtml=(a,e,l,n=32)=>`<img class="eve-image rounded" data-eveid="${a}" src="${l}" alt="${e}" title="${e}" data-bs-tooltip="aa-intel-tool" 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="fa-solid 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="fa-solid 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="fa-solid 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+=`(${aaIntelToolJsSettings.translation.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=aaIntelToolJsSettings.translation.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")},t=(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(aaIntelToolJsSettings.translation.copyToClipboard.permalink.text.success,".aa-intel-copy-result"),a.clearSelection(),e.destroy()}),e.on("error",()=>{t(aaIntelToolJsSettings.translation.copyToClipboard.permalink.text.error,".aa-intel-copy-result"),e.destroy()})};a.click(()=>{e("#"+a.attr("id"))})});
1
+ 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}`)}),bootstrapTooltip=(a="body")=>{[].slice.call(document.querySelectorAll(`${a} [data-bs-tooltip="aa-intel-tool"]`)).map(a=>new bootstrap.Tooltip(a))},eveImageHtml=(a,e,l,t=32)=>`<img class="eve-image rounded" data-eveid="${a}" src="${l}" alt="${e}" title="${e}" data-bs-tooltip="aa-intel-tool" loading="lazy" width="${t}" height="${t}">`,eveWhoLinkHtml=a=>`<a class="aa-intel-information-link" href="${a}" target="_blank" rel="noopener noreferer">evewho <sup><small><i class="fa-solid 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="fa-solid 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="fa-solid fa-external-link-alt" aria-hidden="true"></i></small></sup></a>`,infoPanel=(a,e,l="",t=!1)=>{const n=`<span class="aa-intel-eve-image-wrapper">${a}</span>`;if(t)return n;let o=`<span class="aa-intel-eve-information-wrapper"><span class="aa-intel-eve-name-wrapper">${e}</span>`;return o+=l?`<span class="aa-intel-additional-information-wrapper"><small>${l}</small></span>`:`</span>`,n+o},pilotInfoPanel=a=>{const e=eveImageHtml(a.id,a.name,a.portrait),l=a.name,t=`${eveWhoLinkHtml(a.evewho)} | ${zkillboardLinkHtml(a.zkillboard)}`;return infoPanel(e,l,t)},corporationInfoPanel=(a,e=!1)=>{const l=eveImageHtml(a.id,a.name,a.logo),t=a.name;let n="";return n=1e6<=a.id&&a.id<=2e6?`(${aaIntelToolJsSettings.translation.scanData.npcCorp})`:`${dotlanLinkHtml(a.dotlan)} | ${zkillboardLinkHtml(a.zkillboard)}`,infoPanel(l,t,n,e)},allianceInfoPanel=(a,e=!1)=>{""===a.name&&(a.name=aaIntelToolJsSettings.translation.scanData.empty);const l=eveImageHtml(a.id,a.name,a.logo),t=a.name;let n="";return 1<a.id&&(n=`${dotlanLinkHtml(a.dotlan)} | ${zkillboardLinkHtml(a.zkillboard)}`),e&&1===a.id?"":infoPanel(l,t,n,e)},shipInfoPanel=a=>{const e=eveImageHtml(a.id,a.name,a.image),l=a.name;return infoPanel(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()})}),t=(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")},n=(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=>{t(aaIntelToolJsSettings.translation.copyToClipboard.permalink.text.success,".aa-intel-copy-result"),a.clearSelection(),e.destroy()}),e.on("error",()=>{n(aaIntelToolJsSettings.translation.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","bootstrapTooltip","selector","slice","call","document","querySelectorAll","map","bootstrap","Tooltip","tooltipTriggerEl","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","aaIntelToolJsSettings","translation","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":"AAWA,MAAMA,cAAgBC,MAAOC,GACZC,MAAMD,CAAG,EACjBE,KAAKC,GACEA,EAASC,GACFC,QAAQC,QAAQH,CAAQ,EAExBE,QAAQE,OAAO,IAAIC,MAAM,gBAAgB,CAAC,CAExD,EACAN,KAAKC,GAAYA,EAASM,KAAK,CAAC,EAChCP,KAAKQ,GACKA,CACV,EACAC,MAAM,SAAUC,GAC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pB,mBAAmBsB,EAAaX,UAAU,oBAG5JF,aAEIK,EACwB,IAApBQ,EAAajB,GACN,GAGJF,EAGJA,EAAYM,CACvB,EASMe,cAAgB,IAClB,MAAMrB,+CAAyDV,aAAagC,EAASpB,GAAIoB,EAASnB,KAAMmB,EAASC,KAAK,WAChHjB,8FAAwGgB,EAASnB,qBAEvH,OAAOH,EAAYM,CACvB,EAGAkB,EAAE,KACE,MAAMC,EAAyBD,EAAE,wCAAwC,EAiBnEE,GAXDC,YAAYC,YAAY,GACzBH,EAAuBI,OAAO,EAUN,CAACC,EAASC,EAAa,MAC/CP,EAAEM,CAAO,EAAEE,OAAoB,IAAbD,EAAmB,GAAG,EAAEE,QAAQ,IAAK,KACnDT,EAAEM,CAAO,EAAED,OAAO,CACtB,CAAC,CACL,GASMK,EAAc,CAACvD,EAASmD,KAC1BN,EAAEM,CAAO,EAAEK,qHACyGxD,qGACpH,EAEA+C,EAAoB,wBAAwB,CAChD,EASMU,EAAY,CAACzD,EAASmD,KACxBN,EAAEM,CAAO,EAAEK,kHACsGxD,qGACjH,EAEA+C,EAAoB,uBAAwB,IAAI,CACpD,EAQMW,EAAe,IAMjB,MAAMC,EAAoB,IAAIX,YAAYY,CAAS,EAOnDD,EAAkBE,GAAG,UAAW,IAC5BN,EACIrB,sBAAsBC,YAAY2B,gBAAgBC,UAAUC,KAAKC,QACjE,uBACJ,EAEAC,EAAEC,eAAe,EACjBR,EAAkBS,QAAQ,CAC9B,CAAC,EAKDT,EAAkBE,GAAG,QAAS,KAC1BJ,EACIvB,sBAAsBC,YAAY2B,gBAAgBC,UAAUC,KAAKnE,MACjE,uBACJ,EAEA8D,EAAkBS,QAAQ,CAC9B,CAAC,CACL,EAMAtB,EAAuBuB,MAAM,KACzBX,EAAa,IAAMZ,EAAuBwB,KAAK,IAAI,CAAC,CACxD,CAAC,CACL,CAAC"}
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","bootstrapTooltip","selector","slice","call","document","querySelectorAll","map","bootstrap","Tooltip","tooltipTriggerEl","eveImageHtml","eveId","eveName","imageSource","imageSize","eveWhoLinkHtml","href","zkillboardLinkHtml","dotlanLinkHtml","infoPanel","imageData","eveData","additionalInfo","logoOnly","imageDataHtml","let","eveDataHtml","pilotInfoPanel","pilotData","id","name","portrait","evewho","zkillboard","corporationInfoPanel","corporationData","logo","aaIntelToolJsSettings","translation","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":"AAWA,MAAMA,cAAgBC,MAAOC,GACZC,MAAMD,CAAG,EACjBE,KAAKC,GACEA,EAASC,GACFC,QAAQC,QAAQH,CAAQ,EAExBE,QAAQE,OAAO,IAAIC,MAAM,gBAAgB,CAAC,CAExD,EACAN,KAAKC,GAAYA,EAASM,KAAK,CAAC,EAChCP,KAAKQ,GACKA,CACV,EACAC,MAAM,SAAUC,GACbC,QAAQC,cAAcF,EAAMG,SAAS,CACzC,CAAC,EASHC,iBAAmB,CAACC,EAAW,UAEjC,GAAGC,MAAMC,KAAKC,SAASC,oBAAoBJ,qCAA4C,CAAC,EACnFK,IAAI,GACM,IAAIC,UAAUC,QAAQC,CAAgB,CAChD,CACT,EAYMC,aAAe,CAACC,EAAOC,EAASC,EAAaC,EAAY,mDACNH,WAAeE,WAAqBD,aAAmBA,4DAAkEE,cAAsBA,MAUlMC,eAAiB,iDACkCC,oJAUnDC,mBAAqB,iDAC8BD,wJAUnDE,eAAiB,iDACkCF,oJAYnDG,UAAY,CACdC,EACAC,EACAC,EAAiB,GACjBC,EAAW,CAAA,KAEX,MAAMC,8CAA4DJ,WAElE,GAAIG,EACA,OAA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