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.
Files changed (84) hide show
  1. aa_intel_tool/__init__.py +1 -6
  2. aa_intel_tool/app_settings.py +32 -1
  3. aa_intel_tool/auth_hooks.py +1 -1
  4. aa_intel_tool/constants.py +0 -13
  5. aa_intel_tool/locale/de/LC_MESSAGES/django.po +141 -139
  6. aa_intel_tool/locale/django.pot +140 -138
  7. aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
  8. aa_intel_tool/locale/es/LC_MESSAGES/django.po +148 -144
  9. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  10. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +149 -145
  11. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +141 -139
  12. aa_intel_tool/locale/ja/LC_MESSAGES/django.po +141 -139
  13. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +142 -140
  14. aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
  15. aa_intel_tool/locale/ru/LC_MESSAGES/django.po +144 -151
  16. aa_intel_tool/locale/uk/LC_MESSAGES/django.po +141 -139
  17. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  18. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +149 -147
  19. aa_intel_tool/management/commands/aa_intel_tool_load_eve_types.py +1 -1
  20. aa_intel_tool/parser/module/chatlist.py +17 -7
  21. aa_intel_tool/parser/module/dscan.py +36 -33
  22. aa_intel_tool/parser/module/fleetcomp.py +11 -5
  23. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +7 -147
  24. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
  25. aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
  26. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +11 -11
  27. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +24 -24
  28. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
  29. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js.map +1 -1
  30. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +12 -12
  31. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +49 -49
  32. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
  33. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
  34. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +12 -12
  35. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +18 -18
  36. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
  37. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
  38. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +85 -170
  39. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
  40. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
  41. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.js +1 -1
  42. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js +1 -1
  43. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool.min.js.map +1 -1
  44. aa_intel_tool/templates/aa_intel_tool/base.html +9 -4
  45. aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-chatscan-js.html +1 -1
  46. aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-css.html +1 -2
  47. aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-dscan-js.html +1 -1
  48. aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-fleetcomp-js.html +1 -1
  49. aa_intel_tool/templates/aa_intel_tool/bundles/aa-intel-tool-js.html +1 -1
  50. aa_intel_tool/templates/aa_intel_tool/partials/body/scan-retention-note.html +1 -1
  51. aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html +1 -1
  52. aa_intel_tool/templates/aa_intel_tool/partials/index/form.html +21 -22
  53. aa_intel_tool/templates/aa_intel_tool/partials/scan/buttons.html +6 -5
  54. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html +7 -7
  55. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html +7 -7
  56. aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/pilots.html +7 -7
  57. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid/items.html +7 -7
  58. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/interesting-on-grid.html +2 -2
  59. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html +7 -7
  60. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html +7 -7
  61. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown.html +1 -1
  62. aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/system-information.html +2 -2
  63. aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
  64. aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html +6 -6
  65. aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html +1 -1
  66. aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/participation.html +1 -1
  67. aa_intel_tool/templates/aa_intel_tool/views/index.html +4 -9
  68. aa_intel_tool/templates/aa_intel_tool/views/scan/chatlist.html +2 -2
  69. aa_intel_tool/templates/aa_intel_tool/views/scan/dscan.html +2 -2
  70. aa_intel_tool/templates/aa_intel_tool/views/scan/fleetcomp.html +2 -2
  71. aa_intel_tool/tests/test_access.py +24 -13
  72. aa_intel_tool/tests/test_auth_hooks.py +18 -12
  73. aa_intel_tool/tests/test_parser.py +1 -1
  74. aa_intel_tool/tests/test_templatetags.py +2 -3
  75. aa_intel_tool/tests/utils.py +14 -0
  76. aa_intel_tool/views/general.py +3 -1
  77. {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/METADATA +31 -33
  78. {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/RECORD +81 -84
  79. {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/WHEEL +1 -1
  80. aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.css +0 -13
  81. aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css +0 -2
  82. aa_intel_tool/static/aa_intel_tool/css/aa-bootstrap-fix.min.css.map +0 -1
  83. /aa_intel_tool/templatetags/{inteltool_versioned_static.py → aa_intel_tool.py} +0 -0
  84. {aa_intel_tool-1.1.3.dist-info → aa_intel_tool-2.0.0b1.dist-info}/licenses/LICENSE +0 -0
aa_intel_tool/__init__.py CHANGED
@@ -2,13 +2,8 @@
2
2
  App init
3
3
  """
4
4
 
5
- # Standard Library
6
- from importlib import metadata
7
-
8
5
  # Django
9
6
  from django.utils.translation import gettext_lazy as _
10
7
 
11
- __version__ = metadata.version(distribution_name="aa-intel-tool")
8
+ __version__ = "2.0.0-beta.1"
12
9
  __title__ = _("Intel Parser")
13
-
14
- del metadata
@@ -2,11 +2,23 @@
2
2
  App settings
3
3
  """
4
4
 
5
+ # Standard Library
6
+ from enum import IntEnum
7
+
8
+ # Alliance Auth
9
+ from allianceauth.services.hooks import get_extension_logger
10
+
5
11
  # Alliance Auth (External Libs)
6
12
  from app_utils.app_settings import clean_setting
13
+ from app_utils.logging import LoggerAddTag
14
+
15
+ # AA Intel Tool
16
+ from aa_intel_tool import __title__
17
+
18
+ logger = LoggerAddTag(my_logger=get_extension_logger(name=__name__), prefix=__title__)
7
19
 
8
20
 
9
- class AppSettings: # pylint: disable=too-few-public-methods
21
+ class AppSettings:
10
22
  """
11
23
  App settings from local.py
12
24
  """
@@ -50,3 +62,22 @@ class AppSettings: # pylint: disable=too-few-public-methods
50
62
  INTELTOOL_DSCAN_GRID_SIZE = clean_setting(
51
63
  name="INTELTOOL_DSCAN_GRID_SIZE", default_value=10000, required_type=int
52
64
  )
65
+
66
+
67
+ class AdditionalEveCategoryId(IntEnum):
68
+ """
69
+ Eve category IDs which are not covered by Eve Universe
70
+ Unfortunately Python doesn't allow to extend eveuniverse.constants.EveCategoryId
71
+ """
72
+
73
+ DEPLOYABLE = 22
74
+ STARBASE = 23
75
+ SCANNER_PROBE = 479
76
+
77
+
78
+ class UpwellStructureId(IntEnum):
79
+ """
80
+ Upwell Structure IDs
81
+ """
82
+
83
+ ANSIBLEX_JUMP_GATE = 35841
@@ -20,7 +20,7 @@ class AaIntelToolMenuItem(MenuItemHook): # pylint: disable=too-few-public-metho
20
20
  MenuItemHook.__init__(
21
21
  self,
22
22
  text=__title__,
23
- classes="fas fa-clipboard-list fa-fw",
23
+ classes="fa-solid fa-clipboard-list",
24
24
  url_name="aa_intel_tool:intel_tool_index",
25
25
  navactive=["aa_intel_tool:"],
26
26
  )
@@ -4,7 +4,6 @@ App constants
4
4
 
5
5
  # Standard Library
6
6
  import re
7
- from enum import IntEnum
8
7
 
9
8
  # Django
10
9
  from django.utils.text import slugify
@@ -35,17 +34,6 @@ distance_units_off_grid: str = """
35
34
  distance_units = f"{distance_units_on_grid}|{distance_units_off_grid}"
36
35
 
37
36
 
38
- class AdditionalEveCategoryId(IntEnum):
39
- """
40
- Eve category IDs which are not covered by Eve Universe
41
- Unfortunately Python doesn't allow to extend eveuniverse.constants.EveCategoryId
42
- """
43
-
44
- DEPLOYABLE = 22
45
- STARBASE = 23
46
- SCANNER_PROBE = 479
47
-
48
-
49
37
  # Pre-compiled regex patterns used throughout the app
50
38
  REGEX_PATTERN = {
51
39
  "chatlist": re.compile(pattern=r"(?im)^[a-zA-Z0-9\u0080-\uFFFF -_]{3,37}$"),
@@ -64,7 +52,6 @@ REGEX_PATTERN = {
64
52
  ),
65
53
  }
66
54
 
67
-
68
55
  # Supported intel types and their parameters
69
56
  SUPPORTED_INTEL_TYPES = {
70
57
  "chatlist": {