aa-fleetfinder 2.3.4__py3-none-any.whl → 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aa-fleetfinder might be problematic. Click here for more details.
- {aa_fleetfinder-2.3.4.dist-info → aa_fleetfinder-2.5.0.dist-info}/METADATA +2 -1
- {aa_fleetfinder-2.3.4.dist-info → aa_fleetfinder-2.5.0.dist-info}/RECORD +27 -29
- fleetfinder/__init__.py +8 -1
- fleetfinder/locale/cs_CZ/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/de/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/django.pot +2 -2
- fleetfinder/locale/es/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- fleetfinder/locale/fr_FR/LC_MESSAGES/django.po +7 -7
- fleetfinder/locale/it_IT/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/ja/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/ko_KR/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/nl_NL/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/pl_PL/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/ru/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/sk/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/uk/LC_MESSAGES/django.po +1 -1
- fleetfinder/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- fleetfinder/providers.py +4 -2
- fleetfinder/templates/fleetfinder/bundles/css/fleetfinder-css.html +2 -2
- fleetfinder/templates/fleetfinder/bundles/css/slim-select-css.html +2 -2
- fleetfinder/templates/fleetfinder/bundles/js/slim-select-js.html +2 -2
- fleetfinder/templatetags/fleetfinder.py +1 -70
- fleetfinder/tests/test_templatetags.py +1 -88
- fleetfinder/tests/test_user_agent.py +40 -0
- fleetfinder/constants.py +0 -22
- fleetfinder/helper/__init__.py +0 -0
- fleetfinder/helper/static_files.py +0 -42
- {aa_fleetfinder-2.3.4.dist-info → aa_fleetfinder-2.5.0.dist-info}/WHEEL +0 -0
- {aa_fleetfinder-2.3.4.dist-info → aa_fleetfinder-2.5.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aa-fleetfinder
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Fleet finder plugin for Alliance Auth
|
|
5
5
|
Project-URL: Changelog, https://github.com/ppfeufer/aa-fleetfinder/blob/master/CHANGELOG.md
|
|
6
6
|
Project-URL: Documentation, https://github.com/ppfeufer/aa-fleetfinder/blob/master/README.md
|
|
@@ -702,6 +702,7 @@ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
|
702
702
|
Requires-Python: >=3.10
|
|
703
703
|
Requires-Dist: allianceauth-app-utils>=1.14.2
|
|
704
704
|
Requires-Dist: allianceauth<5,>=4.6
|
|
705
|
+
Requires-Dist: django-esi>=7.0.1
|
|
705
706
|
Provides-Extra: tests-allianceauth-latest
|
|
706
707
|
Requires-Dist: coverage; extra == 'tests-allianceauth-latest'
|
|
707
708
|
Requires-Dist: django-webtest; extra == 'tests-allianceauth-latest'
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
fleetfinder/__init__.py,sha256=
|
|
1
|
+
fleetfinder/__init__.py,sha256=l-QO_UtEsVDQ2c0k6Tq3LXApixl1aVNv0lqXYMMYkI8,415
|
|
2
2
|
fleetfinder/app_settings.py,sha256=XE5oZFg2Vhn5OYQFehoOwjgVgKAvXcyj5NGmrbr3bk8,261
|
|
3
3
|
fleetfinder/apps.py,sha256=5t6R6HS_2cK3oCtTomvOM0dagt4sQkbnIWBhxT8dHrw,448
|
|
4
4
|
fleetfinder/auth_hooks.py,sha256=_oHqIEfTFDB1lsVAOrEGCc6aLiLpRtjcPw7CdLNSdKw,1234
|
|
5
|
-
fleetfinder/constants.py,sha256=apKYhl8Wu9pvifDXr4fU9wAb-1SpB7NhpBc_DJNPe5U,601
|
|
6
5
|
fleetfinder/models.py,sha256=MEqsa-gRzFlCoU5awPwlLUzJ_2A2sNo9cPtfT-hVCNU,2805
|
|
7
|
-
fleetfinder/providers.py,sha256=
|
|
6
|
+
fleetfinder/providers.py,sha256=Je9FZvALV1ARn_34yllhztl5nG3tT7y1ri7utFHwO_o,298
|
|
8
7
|
fleetfinder/tasks.py,sha256=pqDMPHFMXej4dPrf8fxucuYKtj9JPlActiNPIc4eAAQ,10969
|
|
9
8
|
fleetfinder/urls.py,sha256=oL6zOnvQaGXFp-mOhsL9C_jU16YSPMAXUBM8s2_m4_U,1128
|
|
10
9
|
fleetfinder/views.py,sha256=cWjkmZACn2lS1aSxnxC7qm_a2G-9U4x-6dzIfJID_K0,9723
|
|
11
|
-
fleetfinder/
|
|
12
|
-
fleetfinder/helper/static_files.py,sha256=SeXQOKBchaWcKRcNtTqVF_oEvL4-nXNkDHpuYxbNzRk,1085
|
|
13
|
-
fleetfinder/locale/django.pot,sha256=k0usGO1Rviwr98Y4smiHt3BeT7S8a9n1uVBS0f2x_-I,5713
|
|
10
|
+
fleetfinder/locale/django.pot,sha256=EcKORjU7YDbucH1oxrJqx_g1WQ2D8iTPUkY3PKlZ3IM,5713
|
|
14
11
|
fleetfinder/locale/cs_CZ/LC_MESSAGES/django.mo,sha256=5R9bbNXwdd02SL7SFFIErS-ytrzIyCYPf0VZOtg9KT8,954
|
|
15
|
-
fleetfinder/locale/cs_CZ/LC_MESSAGES/django.po,sha256=
|
|
12
|
+
fleetfinder/locale/cs_CZ/LC_MESSAGES/django.po,sha256=r2FPTXfyOj99tGeFbeVxUcaiAwASiqNnq3ecGvl4qmc,6093
|
|
16
13
|
fleetfinder/locale/de/LC_MESSAGES/django.mo,sha256=oGRFdrfSMBASIBw7RIaYmIUCGDfXrkExbUWKp5iGw8s,3808
|
|
17
|
-
fleetfinder/locale/de/LC_MESSAGES/django.po,sha256=
|
|
14
|
+
fleetfinder/locale/de/LC_MESSAGES/django.po,sha256=2QPIlef1CfCgRluw3L7DVSeOd3Bv2_55Q0L6sIeHvEA,7193
|
|
18
15
|
fleetfinder/locale/es/LC_MESSAGES/django.mo,sha256=PMpQLF76l-RHZwyLSFGatNOiBc1W88afvlZf9XpJANA,2978
|
|
19
|
-
fleetfinder/locale/es/LC_MESSAGES/django.po,sha256=
|
|
20
|
-
fleetfinder/locale/fr_FR/LC_MESSAGES/django.mo,sha256=
|
|
21
|
-
fleetfinder/locale/fr_FR/LC_MESSAGES/django.po,sha256=
|
|
16
|
+
fleetfinder/locale/es/LC_MESSAGES/django.po,sha256=MyI5aFt1RN7aonBqc3YYVMPZh_CacnS2sZFLrr3YomI,7681
|
|
17
|
+
fleetfinder/locale/fr_FR/LC_MESSAGES/django.mo,sha256=YRnYDqb5xhNh94JmtVjqu2Ge6w0RifUrfYFfj0flgbE,2543
|
|
18
|
+
fleetfinder/locale/fr_FR/LC_MESSAGES/django.po,sha256=kiNBf5dOxsoq1NdLXO_WqPEYvVlHU-LlA38sS7mJViY,6891
|
|
22
19
|
fleetfinder/locale/it_IT/LC_MESSAGES/django.mo,sha256=T8RDYnDQ22o4_xxwcmq3znMN5QKlZbty-mWB7dxdEbI,588
|
|
23
|
-
fleetfinder/locale/it_IT/LC_MESSAGES/django.po,sha256=
|
|
20
|
+
fleetfinder/locale/it_IT/LC_MESSAGES/django.po,sha256=4cmsltDYEHvi6U1aDezyP_XjOjRrciwyG9yW4fvgGnY,5917
|
|
24
21
|
fleetfinder/locale/ja/LC_MESSAGES/django.mo,sha256=5mlXpXBHCUM4QNz2hzagZSgJeR-QJIzEEBPxXzGN64I,1579
|
|
25
|
-
fleetfinder/locale/ja/LC_MESSAGES/django.po,sha256=
|
|
22
|
+
fleetfinder/locale/ja/LC_MESSAGES/django.po,sha256=Uv5iE2lrYNlwl_bGy7ArsIX3e8G0GBXt37_7FhSbd60,6381
|
|
26
23
|
fleetfinder/locale/ko_KR/LC_MESSAGES/django.mo,sha256=9cfJWD33X_4WYSaFyGZIMzBtUgbmpU0-rkU5vdVRiTI,3272
|
|
27
|
-
fleetfinder/locale/ko_KR/LC_MESSAGES/django.po,sha256=
|
|
24
|
+
fleetfinder/locale/ko_KR/LC_MESSAGES/django.po,sha256=TJ-ramixEyXaH2dbjOCdNbkmkh9EYWY12Wo2JAROD2k,7566
|
|
28
25
|
fleetfinder/locale/nl_NL/LC_MESSAGES/django.mo,sha256=hY0OE4OeTR2OJEImNcsL8tWjBqe0rJYToAlRXZ44ngA,480
|
|
29
|
-
fleetfinder/locale/nl_NL/LC_MESSAGES/django.po,sha256=
|
|
26
|
+
fleetfinder/locale/nl_NL/LC_MESSAGES/django.po,sha256=DHyvwF2UrqaEx9-e-U2G2zzoX9EMTjskqJN8ldqwaUQ,5835
|
|
30
27
|
fleetfinder/locale/pl_PL/LC_MESSAGES/django.mo,sha256=Tn664mvAzrylWiO5ferY3XeQuZTRuND77MPmgAZSvZs,1008
|
|
31
|
-
fleetfinder/locale/pl_PL/LC_MESSAGES/django.po,sha256=
|
|
28
|
+
fleetfinder/locale/pl_PL/LC_MESSAGES/django.po,sha256=HtkrmXv5dqgJKxu6I4p3I1kgN3B-ojPLh9RkjGobg4Q,6125
|
|
32
29
|
fleetfinder/locale/ru/LC_MESSAGES/django.mo,sha256=nphsjOteZ0-rwwH52Jovk4Jy1ouz-9Wo-7WC6_Bmc_k,4716
|
|
33
|
-
fleetfinder/locale/ru/LC_MESSAGES/django.po,sha256=
|
|
30
|
+
fleetfinder/locale/ru/LC_MESSAGES/django.po,sha256=MTB5o4cA725TiWyDZQuQY_P0Kfk9nQlLjFZtQziG_vw,8165
|
|
34
31
|
fleetfinder/locale/sk/LC_MESSAGES/django.mo,sha256=ydYhRqhAuhtbbNwWz_TkLnphHfGgKDcKugeyLxmpZWk,559
|
|
35
|
-
fleetfinder/locale/sk/LC_MESSAGES/django.po,sha256=
|
|
32
|
+
fleetfinder/locale/sk/LC_MESSAGES/django.po,sha256=Gt6L9HogjbY_uWr4UpBuo9hkpjMK_YgIcsMiGuONbiE,5910
|
|
36
33
|
fleetfinder/locale/uk/LC_MESSAGES/django.mo,sha256=NfWLKGzF2U1WHI_R5OjskcPta-uVhTE6sDwCyi3pSyc,4697
|
|
37
|
-
fleetfinder/locale/uk/LC_MESSAGES/django.po,sha256=
|
|
34
|
+
fleetfinder/locale/uk/LC_MESSAGES/django.po,sha256=v5-43YuRjKYczkzQFYr4hz44-mUCnFWuDOu7MuZPniY,8255
|
|
38
35
|
fleetfinder/locale/zh_Hans/LC_MESSAGES/django.mo,sha256=3tiyQVoDtsbjyYPetn2m9kG5lBB0c_7HyZhzhENsbWs,3624
|
|
39
|
-
fleetfinder/locale/zh_Hans/LC_MESSAGES/django.po,sha256=
|
|
36
|
+
fleetfinder/locale/zh_Hans/LC_MESSAGES/django.po,sha256=FRzDKO4iwLrRJu-fdlZIJ2k3cRiRo_TWtiJk6Cu_wKE,7037
|
|
40
37
|
fleetfinder/migrations/0001_initial.py,sha256=4Jsjh77PXS87OHBHam8KOFSTaRvlS-qpPmD5vNnVagI,2445
|
|
41
38
|
fleetfinder/migrations/0002_esi_error_handling_and_verbose_names.py,sha256=CqOqsJDz-GFj3E6DwShKf0fUIgEKhd4NMJIfu21eEJ0,3229
|
|
42
39
|
fleetfinder/migrations/0003_alter_fleet_fleet_commander_alter_fleet_groups_and_more.py,sha256=RbjYRrPVTq-adUQPbXpXVRAT2VmOW0wEdacWhxlggX4,1606
|
|
@@ -54,22 +51,23 @@ fleetfinder/templates/fleetfinder/dashboard.html,sha256=UAFDMAcp1EYMUWy7UapVIdLg
|
|
|
54
51
|
fleetfinder/templates/fleetfinder/edit-fleet.html,sha256=XahECF3ZJKTiAr8oNp7bqbIHjACpfxi1_mIhXP1XIvY,1206
|
|
55
52
|
fleetfinder/templates/fleetfinder/fleet-details.html,sha256=8XDYQrO7sTIc8O7_p_In0A85gK4DuAwlAoFPvLDRidk,4595
|
|
56
53
|
fleetfinder/templates/fleetfinder/join-fleet.html,sha256=mn_B8o5MUlG4UYvFajoGaGmtTbQDJiYIZa-LsSmer50,2000
|
|
57
|
-
fleetfinder/templates/fleetfinder/bundles/css/fleetfinder-css.html,sha256=
|
|
58
|
-
fleetfinder/templates/fleetfinder/bundles/css/slim-select-css.html,sha256=
|
|
59
|
-
fleetfinder/templates/fleetfinder/bundles/js/slim-select-js.html,sha256=
|
|
54
|
+
fleetfinder/templates/fleetfinder/bundles/css/fleetfinder-css.html,sha256=qwygOlxlL_346BHPBNU8KZhNFdJKmOXx81zSsDIKbjk,71
|
|
55
|
+
fleetfinder/templates/fleetfinder/bundles/css/slim-select-css.html,sha256=i_aZCBfN7XVHEcXycjQDvmt1kVYwDw_5QobTW1jYcwA,93
|
|
56
|
+
fleetfinder/templates/fleetfinder/bundles/js/slim-select-js.html,sha256=1IAeWgMkHrbVbhwSBOekt7NfFc8y4LvKh2OqXQmu940,91
|
|
60
57
|
fleetfinder/templates/fleetfinder/partials/body/form-fleet-details.html,sha256=8xfjGRNmzIUHrlV-xz2P11vupAdpC8oUGFPxlnjJKFQ,2149
|
|
61
58
|
fleetfinder/templates/fleetfinder/partials/footer/app-translation-footer.html,sha256=nDZPOnsQLBN9meAhxnhd0ynUQIVi3YPzhi47n89zcIg,422
|
|
62
59
|
fleetfinder/templates/fleetfinder/partials/header/header-nav-left.html,sha256=l9GUryGNYZjfej_SKa_wg2aQZE5ybPBFz21dgGixcwk,287
|
|
63
60
|
fleetfinder/templates/fleetfinder/partials/header/header-nav-right.html,sha256=o8njJMpjCG0W9O_fP-NNOM1Mi1gUl7fARV1XTXrJXCI,575
|
|
64
61
|
fleetfinder/templatetags/__init__.py,sha256=sP2D1ovt2gGAPLcGQkByRgXYhvUJ6C52mZMlLIALQ8s,37
|
|
65
|
-
fleetfinder/templatetags/fleetfinder.py,sha256=
|
|
62
|
+
fleetfinder/templatetags/fleetfinder.py,sha256=I_pLRgCPS6MYdzvsLZL0quNTor_BNz_2125DnpvqbFE,717
|
|
66
63
|
fleetfinder/tests/__init__.py,sha256=NLuMBNDHYOXDmPgpyG-g_kDaATVQWv1iC-dJ8BA1kZc,29
|
|
67
64
|
fleetfinder/tests/test_access.py,sha256=rQAfeEre2CmCszFTLV_53HK7m5Odq7ZqACJ3kcedgjk,1691
|
|
68
65
|
fleetfinder/tests/test_auth_hooks.py,sha256=XEB0LJmxxJCDlYhxKzcRiEHYrn1k_NkShrDGV_bcweg,2174
|
|
69
66
|
fleetfinder/tests/test_settings.py,sha256=CuarOzsrkoMx7dmqolsnhnuhis7N10GaOULo6KYIl7k,710
|
|
70
|
-
fleetfinder/tests/test_templatetags.py,sha256=
|
|
67
|
+
fleetfinder/tests/test_templatetags.py,sha256=lIe1X0TCuFwWcgsqZw4VGQLgqMsqEjNbPwqhtD8c4Qk,1414
|
|
68
|
+
fleetfinder/tests/test_user_agent.py,sha256=sqKr_2IXoqULgqmFqoNV8fUR2Xv9QkA7On0Ae0FRuM8,1003
|
|
71
69
|
fleetfinder/tests/utils.py,sha256=ynwH67jb14UFi6hpLAXe_FcYdQcjET_sxuUylWPNpnk,1451
|
|
72
|
-
aa_fleetfinder-2.
|
|
73
|
-
aa_fleetfinder-2.
|
|
74
|
-
aa_fleetfinder-2.
|
|
75
|
-
aa_fleetfinder-2.
|
|
70
|
+
aa_fleetfinder-2.5.0.dist-info/METADATA,sha256=dtRh2Ymgqhg1dgsurzH3smJFXsfEN1HgdD13cy9-U54,48096
|
|
71
|
+
aa_fleetfinder-2.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
72
|
+
aa_fleetfinder-2.5.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
73
|
+
aa_fleetfinder-2.5.0.dist-info/RECORD,,
|
fleetfinder/__init__.py
CHANGED
|
@@ -5,6 +5,13 @@ Initialize the app
|
|
|
5
5
|
# Django
|
|
6
6
|
from django.utils.translation import gettext_lazy as _
|
|
7
7
|
|
|
8
|
-
__version__ = "2.
|
|
8
|
+
__version__ = "2.5.0"
|
|
9
9
|
__title__ = _("Fleet Finder")
|
|
10
10
|
__verbose_name__ = "Fleet Finder for Alliance Auth"
|
|
11
|
+
|
|
12
|
+
__package_name__ = "aa-fleetfinder"
|
|
13
|
+
__app_name__ = "fleetfinder"
|
|
14
|
+
__app_name_verbose__ = "AA Fleet Finder"
|
|
15
|
+
__app_name_useragent__ = "AA-Fleet-Finder"
|
|
16
|
+
|
|
17
|
+
__github_url__ = f"https://github.com/ppfeufer/{__package_name__}"
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
9
|
-
"POT-Creation-Date: 2025-
|
|
9
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
10
10
|
"PO-Revision-Date: 2024-07-10 14:26+0000\n"
|
|
11
11
|
"Last-Translator: Dadas Aideron <dadas.aideron@gmail.com>\n"
|
|
12
12
|
"Language-Team: Czech <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/cs/>\n"
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
9
|
-
"POT-Creation-Date: 2025-
|
|
9
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
10
10
|
"PO-Revision-Date: 2025-04-25 11:24+0000\n"
|
|
11
11
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
12
12
|
"Language-Team: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/de/>\n"
|
fleetfinder/locale/django.pot
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: AA Fleet Finder 2.
|
|
9
|
+
"Project-Id-Version: AA Fleet Finder 2.4.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
11
|
-
"POT-Creation-Date: 2025-
|
|
11
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
10
|
-
"POT-Creation-Date: 2025-
|
|
10
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
11
11
|
"PO-Revision-Date: 2024-12-02 17:40+0000\n"
|
|
12
12
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
13
13
|
"Language-Team: Spanish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/es/>\n"
|
|
Binary file
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
# Matthias P <randomusernetcom@gmail.com>, 2024.
|
|
7
7
|
# Hexo <ghostcig@free.fr>, 2024.
|
|
8
8
|
# Houbi_Houba <paul.lacape@live.fr>, 2024.
|
|
9
|
-
# balbozorre <loic.petiot2002@gmail.com>, 2024.
|
|
9
|
+
# balbozorre <loic.petiot2002@gmail.com>, 2024, 2025.
|
|
10
10
|
msgid ""
|
|
11
11
|
msgstr ""
|
|
12
12
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
13
13
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
14
|
-
"POT-Creation-Date: 2025-
|
|
15
|
-
"PO-Revision-Date:
|
|
14
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
15
|
+
"PO-Revision-Date: 2025-05-20 16:24+0000\n"
|
|
16
16
|
"Last-Translator: balbozorre <loic.petiot2002@gmail.com>\n"
|
|
17
17
|
"Language-Team: French <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/fr/>\n"
|
|
18
18
|
"Language: fr_FR\n"
|
|
@@ -20,7 +20,7 @@ msgstr ""
|
|
|
20
20
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
21
21
|
"Content-Transfer-Encoding: 8bit\n"
|
|
22
22
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
|
23
|
-
"X-Generator: Weblate 5.
|
|
23
|
+
"X-Generator: Weblate 5.11.4\n"
|
|
24
24
|
|
|
25
25
|
#: fleetfinder/__init__.py:9 fleetfinder/models.py:24
|
|
26
26
|
#: fleetfinder/templates/fleetfinder/base.html:6
|
|
@@ -74,16 +74,16 @@ msgstr "Date et heure de création"
|
|
|
74
74
|
#: fleetfinder/models.py:62
|
|
75
75
|
#: fleetfinder/templates/fleetfinder/partials/body/form-fleet-details.html:37
|
|
76
76
|
msgid "Fleet MOTD"
|
|
77
|
-
msgstr ""
|
|
77
|
+
msgstr "MOTD de la flotte"
|
|
78
78
|
|
|
79
79
|
#: fleetfinder/models.py:63
|
|
80
80
|
msgid "Free move"
|
|
81
|
-
msgstr ""
|
|
81
|
+
msgstr "Mouvement libre"
|
|
82
82
|
|
|
83
83
|
#: fleetfinder/models.py:69
|
|
84
84
|
#: fleetfinder/templates/fleetfinder/partials/body/form-fleet-details.html:32
|
|
85
85
|
msgid "Only selected groups will have access to the fleet. If no groups are selected the fleet will be available to all who have access to this module."
|
|
86
|
-
msgstr ""
|
|
86
|
+
msgstr "Seuls les groupes sélectionnés auront accès à la flotte. Si aucun groupe n'est sélectionné, la flotte sera accessible à tous ceux qui ont accès à ce module."
|
|
87
87
|
|
|
88
88
|
#: fleetfinder/models.py:73
|
|
89
89
|
msgid "Group restrictions"
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
10
|
-
"POT-Creation-Date: 2025-
|
|
10
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
11
11
|
"PO-Revision-Date: 2024-12-22 21:15+0000\n"
|
|
12
12
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
13
13
|
"Language-Team: Italian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/it/>\n"
|
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
11
|
-
"POT-Creation-Date: 2025-
|
|
11
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
12
12
|
"PO-Revision-Date: 2024-08-06 11:28+0000\n"
|
|
13
13
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
14
14
|
"Language-Team: Japanese <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/ja/>\n"
|
|
@@ -9,7 +9,7 @@ msgid ""
|
|
|
9
9
|
msgstr ""
|
|
10
10
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
11
11
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
12
|
-
"POT-Creation-Date: 2025-
|
|
12
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
13
13
|
"PO-Revision-Date: 2025-04-28 07:24+0000\n"
|
|
14
14
|
"Last-Translator: SiO4 <hohoit0078@gmail.com>\n"
|
|
15
15
|
"Language-Team: Korean <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/ko/>\n"
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
10
|
-
"POT-Creation-Date: 2025-
|
|
10
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:03+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Dutch <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/nl/>\n"
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
9
|
-
"POT-Creation-Date: 2025-
|
|
9
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
10
10
|
"PO-Revision-Date: 2024-05-10 14:03+0000\n"
|
|
11
11
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
12
12
|
"Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/pl/>\n"
|
|
@@ -9,7 +9,7 @@ msgid ""
|
|
|
9
9
|
msgstr ""
|
|
10
10
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
11
11
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
12
|
-
"POT-Creation-Date: 2025-
|
|
12
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
13
13
|
"PO-Revision-Date: 2024-06-06 14:27+0000\n"
|
|
14
14
|
"Last-Translator: Roycce_ <malyasov.roma@mail.ru>\n"
|
|
15
15
|
"Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/ru/>\n"
|
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
9
9
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
10
|
-
"POT-Creation-Date: 2025-
|
|
10
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
11
11
|
"PO-Revision-Date: 2024-05-10 14:03+0000\n"
|
|
12
12
|
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
|
13
13
|
"Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/sk/>\n"
|
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
12
12
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
13
|
-
"POT-Creation-Date: 2025-
|
|
13
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
14
14
|
"PO-Revision-Date: 2025-04-10 07:05+0000\n"
|
|
15
15
|
"Last-Translator: s0k0l -_- <salarysalo@gmail.com>\n"
|
|
16
16
|
"Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/uk/>\n"
|
|
@@ -9,7 +9,7 @@ msgid ""
|
|
|
9
9
|
msgstr ""
|
|
10
10
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
11
11
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
12
|
-
"POT-Creation-Date: 2025-
|
|
12
|
+
"POT-Creation-Date: 2025-06-03 10:57+0200\n"
|
|
13
13
|
"PO-Revision-Date: 2024-06-06 14:27+0000\n"
|
|
14
14
|
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
|
|
15
15
|
"Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/zh_Hans/>\n"
|
fleetfinder/providers.py
CHANGED
|
@@ -6,7 +6,9 @@ Providers
|
|
|
6
6
|
from esi.clients import EsiClientProvider
|
|
7
7
|
|
|
8
8
|
# AA Fleet Finder
|
|
9
|
-
from fleetfinder
|
|
9
|
+
from fleetfinder import __app_name_useragent__, __github_url__, __version__
|
|
10
10
|
|
|
11
11
|
# ESI client
|
|
12
|
-
esi = EsiClientProvider(
|
|
12
|
+
esi = EsiClientProvider(
|
|
13
|
+
ua_appname=__app_name_useragent__, ua_version=__version__, ua_url=__github_url__
|
|
14
|
+
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load sri %}
|
|
2
2
|
|
|
3
|
-
{%
|
|
3
|
+
{% sri_static "fleetfinder/css/fleetfinder.min.css" %}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load sri %}
|
|
2
2
|
|
|
3
|
-
{%
|
|
3
|
+
{% sri_static "fleetfinder/libs/slim-select/2.6.0/css/slimselect.min.css" %}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load sri %}
|
|
2
2
|
|
|
3
|
-
{%
|
|
3
|
+
{% sri_static "fleetfinder/libs/slim-select/2.6.0/js/slimselect.min.js" %}
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
Versioned static URLs to break browser caches when changing the app version
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
-
# Standard Library
|
|
6
|
-
import os
|
|
7
|
-
|
|
8
5
|
# Django
|
|
9
6
|
from django.template.defaulttags import register
|
|
10
|
-
from django.templatetags.static import static
|
|
11
|
-
from django.utils.safestring import mark_safe
|
|
12
7
|
|
|
13
8
|
# Alliance Auth
|
|
14
9
|
from allianceauth.services.hooks import get_extension_logger
|
|
@@ -17,75 +12,11 @@ from allianceauth.services.hooks import get_extension_logger
|
|
|
17
12
|
from app_utils.logging import LoggerAddTag
|
|
18
13
|
|
|
19
14
|
# AA Fleet Finder
|
|
20
|
-
from fleetfinder import __title__
|
|
21
|
-
from fleetfinder.app_settings import debug_enabled
|
|
22
|
-
from fleetfinder.constants import PACKAGE_NAME
|
|
23
|
-
from fleetfinder.helper.static_files import calculate_integrity_hash
|
|
15
|
+
from fleetfinder import __title__
|
|
24
16
|
|
|
25
17
|
logger = LoggerAddTag(my_logger=get_extension_logger(__name__), prefix=__title__)
|
|
26
18
|
|
|
27
19
|
|
|
28
|
-
@register.simple_tag
|
|
29
|
-
def fleetfinder_static(relative_file_path: str, script_type: str = None) -> str | None:
|
|
30
|
-
"""
|
|
31
|
-
Versioned static URL
|
|
32
|
-
|
|
33
|
-
:param relative_file_path: The file path relative to the `{APP_NAME}/{PACKAGE_NAME}/static/{PACKAGE_NAME}` folder
|
|
34
|
-
:type relative_file_path: str
|
|
35
|
-
:param script_type: The script type
|
|
36
|
-
:type script_type: str
|
|
37
|
-
:return: Versioned static URL
|
|
38
|
-
:rtype: str
|
|
39
|
-
"""
|
|
40
|
-
|
|
41
|
-
logger.debug(f"Getting versioned static URL for: {relative_file_path}")
|
|
42
|
-
|
|
43
|
-
file_type = os.path.splitext(relative_file_path)[1][1:]
|
|
44
|
-
|
|
45
|
-
logger.debug(f"File extension: {file_type}")
|
|
46
|
-
|
|
47
|
-
# Only support CSS and JS files
|
|
48
|
-
if file_type not in ["css", "js"]:
|
|
49
|
-
raise ValueError(f"Unsupported file type: {file_type}")
|
|
50
|
-
|
|
51
|
-
static_file_path = os.path.join(PACKAGE_NAME, relative_file_path)
|
|
52
|
-
static_url = static(static_file_path)
|
|
53
|
-
|
|
54
|
-
# Integrity hash calculation only for non-debug mode
|
|
55
|
-
sri_string = (
|
|
56
|
-
f' integrity="{calculate_integrity_hash(relative_file_path)}" crossorigin="anonymous"'
|
|
57
|
-
if not debug_enabled()
|
|
58
|
-
else ""
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
# Versioned URL for CSS and JS files
|
|
62
|
-
# Add version query parameter to break browser caches when changing the app version
|
|
63
|
-
# Do not add version query parameter for libs as they are already versioned through their file path
|
|
64
|
-
versioned_url = (
|
|
65
|
-
static_url
|
|
66
|
-
if relative_file_path.startswith("libs/")
|
|
67
|
-
else static_url + "?v=" + __version__
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
return_value = None
|
|
71
|
-
|
|
72
|
-
# Return the versioned URL with integrity hash for CSS
|
|
73
|
-
if file_type == "css":
|
|
74
|
-
return_value = mark_safe(
|
|
75
|
-
f'<link rel="stylesheet" href="{versioned_url}"{sri_string}>'
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
# Return the versioned URL with integrity hash for JS files
|
|
79
|
-
if file_type == "js":
|
|
80
|
-
js_type = f' type="{script_type}"' if script_type else ""
|
|
81
|
-
|
|
82
|
-
return_value = mark_safe(
|
|
83
|
-
f'<script{js_type} src="{versioned_url}"{sri_string}></script>'
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
return return_value
|
|
87
|
-
|
|
88
|
-
|
|
89
20
|
@register.filter
|
|
90
21
|
def get_item(dictionary: dict | None, key: str) -> str | None:
|
|
91
22
|
"""
|
|
@@ -3,99 +3,12 @@ Test the apps' template tags
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
# Django
|
|
6
|
-
from django.
|
|
7
|
-
from django.test import TestCase, override_settings
|
|
6
|
+
from django.test import TestCase
|
|
8
7
|
|
|
9
8
|
# AA Fleet Finder
|
|
10
|
-
from fleetfinder import __version__
|
|
11
|
-
from fleetfinder.constants import PACKAGE_NAME
|
|
12
|
-
from fleetfinder.helper.static_files import calculate_integrity_hash
|
|
13
9
|
from fleetfinder.templatetags.fleetfinder import get_item
|
|
14
10
|
|
|
15
11
|
|
|
16
|
-
class TestVersionedStatic(TestCase):
|
|
17
|
-
"""
|
|
18
|
-
Test the `fleetfinder_static` template tag
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
@override_settings(DEBUG=False)
|
|
22
|
-
def test_versioned_static(self):
|
|
23
|
-
"""
|
|
24
|
-
Test should return the versioned static
|
|
25
|
-
|
|
26
|
-
:return:
|
|
27
|
-
:rtype:
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
context = Context(dict_={"version": __version__})
|
|
31
|
-
template_to_render = Template(
|
|
32
|
-
template_string=(
|
|
33
|
-
"{% load fleetfinder %}"
|
|
34
|
-
"{% fleetfinder_static 'css/fleetfinder.min.css' %}"
|
|
35
|
-
)
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
rendered_template = template_to_render.render(context=context)
|
|
39
|
-
|
|
40
|
-
expected_static_css_src = (
|
|
41
|
-
f'/static/{PACKAGE_NAME}/css/fleetfinder.min.css?v={context["version"]}'
|
|
42
|
-
)
|
|
43
|
-
expected_static_css_src_integrity = calculate_integrity_hash(
|
|
44
|
-
"css/fleetfinder.min.css"
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
self.assertIn(member=expected_static_css_src, container=rendered_template)
|
|
48
|
-
self.assertIn(
|
|
49
|
-
member=expected_static_css_src_integrity, container=rendered_template
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
@override_settings(DEBUG=True)
|
|
53
|
-
def test_versioned_static_with_debug_enabled(self) -> None:
|
|
54
|
-
"""
|
|
55
|
-
Test versioned static template tag with DEBUG enabled
|
|
56
|
-
|
|
57
|
-
:return:
|
|
58
|
-
:rtype:
|
|
59
|
-
"""
|
|
60
|
-
|
|
61
|
-
context = Context({"version": __version__})
|
|
62
|
-
template_to_render = Template(
|
|
63
|
-
template_string=(
|
|
64
|
-
"{% load fleetfinder %}"
|
|
65
|
-
"{% fleetfinder_static 'css/fleetfinder.min.css' %}"
|
|
66
|
-
)
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
rendered_template = template_to_render.render(context=context)
|
|
70
|
-
|
|
71
|
-
expected_static_css_src = (
|
|
72
|
-
f'/static/{PACKAGE_NAME}/css/fleetfinder.min.css?v={context["version"]}'
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
self.assertIn(member=expected_static_css_src, container=rendered_template)
|
|
76
|
-
self.assertNotIn(member="integrity=", container=rendered_template)
|
|
77
|
-
|
|
78
|
-
@override_settings(DEBUG=False)
|
|
79
|
-
def test_invalid_file_type(self) -> None:
|
|
80
|
-
"""
|
|
81
|
-
Test should raise a ValueError for an invalid file type
|
|
82
|
-
|
|
83
|
-
:return:
|
|
84
|
-
:rtype:
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
context = Context({"version": __version__})
|
|
88
|
-
template_to_render = Template(
|
|
89
|
-
template_string=(
|
|
90
|
-
"{% load fleetfinder %}"
|
|
91
|
-
"{% fleetfinder_static 'invalid/invalid.txt' %}"
|
|
92
|
-
)
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
with self.assertRaises(ValueError):
|
|
96
|
-
template_to_render.render(context=context)
|
|
97
|
-
|
|
98
|
-
|
|
99
12
|
class TestGetItem(TestCase):
|
|
100
13
|
"""
|
|
101
14
|
Test the `get_item` template tag
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Test user agent header for ESI requests
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Django
|
|
6
|
+
from django.conf import settings
|
|
7
|
+
from django.test import TestCase
|
|
8
|
+
|
|
9
|
+
# Alliance Auth
|
|
10
|
+
from esi import __url__ as esi_url
|
|
11
|
+
from esi import __version__ as esi_version
|
|
12
|
+
|
|
13
|
+
# AA Fleet Finder
|
|
14
|
+
from fleetfinder import __app_name_useragent__, __github_url__, __version__
|
|
15
|
+
from fleetfinder.providers import esi
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class TestUserAgent(TestCase):
|
|
19
|
+
"""
|
|
20
|
+
Test the user agent header for ESI requests
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
def test_user_agent_header(self):
|
|
24
|
+
"""
|
|
25
|
+
Test that the user agent header is set correctly for ESI requests.
|
|
26
|
+
|
|
27
|
+
:return:
|
|
28
|
+
:rtype:
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
operation = esi.client.Universe.get_universe_factions()
|
|
32
|
+
|
|
33
|
+
self.assertEqual(
|
|
34
|
+
operation.future.request.headers["User-Agent"],
|
|
35
|
+
(
|
|
36
|
+
f"{__app_name_useragent__}/{__version__} "
|
|
37
|
+
f"({settings.ESI_USER_CONTACT_EMAIL}; +{__github_url__}) "
|
|
38
|
+
f"Django-ESI/{esi_version} (+{esi_url})"
|
|
39
|
+
),
|
|
40
|
+
)
|
fleetfinder/constants.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Constants used in this app
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
# Standard Library
|
|
6
|
-
import os
|
|
7
|
-
|
|
8
|
-
# Alliance Auth
|
|
9
|
-
from esi import __version__ as esi_version
|
|
10
|
-
|
|
11
|
-
# AA Fleet Finder
|
|
12
|
-
from fleetfinder import __version__
|
|
13
|
-
|
|
14
|
-
APP_NAME = "aa-fleetfinder"
|
|
15
|
-
APP_NAME_VERBOSE = "AA Fleet Finder"
|
|
16
|
-
APP_NAME_VERBOSE_USERAGENT = "AA-Fleet-Finder"
|
|
17
|
-
PACKAGE_NAME = "fleetfinder"
|
|
18
|
-
GITHUB_URL = f"https://github.com/ppfeufer/{APP_NAME}"
|
|
19
|
-
USER_AGENT = f"{APP_NAME_VERBOSE_USERAGENT}/{__version__} (+{GITHUB_URL}) Django-ESI/{esi_version}"
|
|
20
|
-
|
|
21
|
-
APP_BASE_DIR = os.path.join(os.path.dirname(__file__))
|
|
22
|
-
APP_STATIC_DIR = os.path.join(APP_BASE_DIR, "static", PACKAGE_NAME)
|
fleetfinder/helper/__init__.py
DELETED
|
File without changes
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Helper functions for static integrity calculations
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
# Standard Library
|
|
6
|
-
import os
|
|
7
|
-
from pathlib import Path
|
|
8
|
-
|
|
9
|
-
# Third Party
|
|
10
|
-
from sri import Algorithm, calculate_integrity
|
|
11
|
-
|
|
12
|
-
# Alliance Auth
|
|
13
|
-
from allianceauth.services.hooks import get_extension_logger
|
|
14
|
-
|
|
15
|
-
# Alliance Auth (External Libs)
|
|
16
|
-
from app_utils.logging import LoggerAddTag
|
|
17
|
-
|
|
18
|
-
# AA Fleet Finder
|
|
19
|
-
from fleetfinder import __title__
|
|
20
|
-
from fleetfinder.constants import APP_STATIC_DIR
|
|
21
|
-
|
|
22
|
-
logger = LoggerAddTag(my_logger=get_extension_logger(__name__), prefix=__title__)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def calculate_integrity_hash(relative_file_path: str) -> str:
|
|
26
|
-
"""
|
|
27
|
-
Calculates the integrity hash for a given static file
|
|
28
|
-
|
|
29
|
-
:param self:
|
|
30
|
-
:type self:
|
|
31
|
-
:param relative_file_path: The file path relative to the `{APP_NAME}/{PACKAGE_NAME}/static/{PACKAGE_NAME}` folder
|
|
32
|
-
:type relative_file_path: str
|
|
33
|
-
:return: The integrity hash
|
|
34
|
-
:rtype: str
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
file_path = os.path.join(APP_STATIC_DIR, relative_file_path)
|
|
38
|
-
integrity_hash = calculate_integrity(
|
|
39
|
-
path=Path(file_path), algorithm=Algorithm.SHA512
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
return integrity_hash
|
|
File without changes
|
|
File without changes
|