aa-fleetfinder 2.3.1__tar.gz → 2.3.2__tar.gz
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.1 → aa_fleetfinder-2.3.2}/PKG-INFO +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/__init__.py +1 -1
- aa_fleetfinder-2.3.2/fleetfinder/app_settings.py +20 -0
- aa_fleetfinder-2.3.2/fleetfinder/constants.py +22 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/helper/static_files.py +7 -4
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/cs_CZ/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/de/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/django.pot +2 -2
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/es/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/fr_FR/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/it_IT/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ja/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ko_KR/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/nl_NL/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/pl_PL/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ru/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/sk/LC_MESSAGES/django.po +1 -1
- aa_fleetfinder-2.3.2/fleetfinder/locale/uk/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/uk/LC_MESSAGES/django.po +7 -6
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templatetags/fleetfinder.py +23 -11
- aa_fleetfinder-2.3.2/fleetfinder/tests/test_settings.py +37 -0
- aa_fleetfinder-2.3.2/fleetfinder/tests/test_templatetags.py +95 -0
- aa_fleetfinder-2.3.1/fleetfinder/constants.py +0 -21
- aa_fleetfinder-2.3.1/fleetfinder/locale/uk/LC_MESSAGES/django.mo +0 -0
- aa_fleetfinder-2.3.1/fleetfinder/tests/test_templatetags.py +0 -45
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/.gitignore +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/LICENSE +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/README.md +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/apps.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/auth_hooks.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/helper/__init__.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/de/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/es/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/it_IT/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ja/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/nl_NL/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ru/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/sk/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/migrations/0001_initial.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/migrations/0002_esi_error_handling_and_verbose_names.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/migrations/0003_alter_fleet_fleet_commander_alter_fleet_groups_and_more.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/migrations/__init__.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/models.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/providers.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/css/fleetfinder.css +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/css/fleetfinder.min.css +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/css/fleetfinder.min.css.map +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/libs/slim-select/2.6.0/css/slimselect.css +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/libs/slim-select/2.6.0/css/slimselect.min.css +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/libs/slim-select/2.6.0/css/slimselect.min.css.map +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/libs/slim-select/2.6.0/js/slimselect.min.js +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/tasks.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/base.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/bundles/css/fleetfinder-css.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/bundles/css/slim-select-css.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/bundles/js/slim-select-js.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/create-fleet.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/dashboard.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/edit-fleet.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/fleet-details.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/join-fleet.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/partials/body/form-fleet-details.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/partials/footer/app-translation-footer.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/partials/header/header-navigation.html +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templatetags/__init__.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/tests/__init__.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/tests/test_access.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/tests/test_auth_hooks.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/tests/utils.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/urls.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/views.py +0 -0
- {aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aa-fleetfinder
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
App settings for FleetFinder.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Standard Library
|
|
6
|
+
from re import RegexFlag
|
|
7
|
+
|
|
8
|
+
# Django
|
|
9
|
+
from django.conf import settings
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def debug_enabled() -> RegexFlag:
|
|
13
|
+
"""
|
|
14
|
+
Check if DEBUG is enabled
|
|
15
|
+
|
|
16
|
+
:return:
|
|
17
|
+
:rtype:
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
return settings.DEBUG
|
|
@@ -0,0 +1,22 @@
|
|
|
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)
|
|
@@ -17,7 +17,7 @@ from app_utils.logging import LoggerAddTag
|
|
|
17
17
|
|
|
18
18
|
# AA Fleet Finder
|
|
19
19
|
from fleetfinder import __title__
|
|
20
|
-
from fleetfinder.constants import
|
|
20
|
+
from fleetfinder.constants import APP_STATIC_DIR
|
|
21
21
|
|
|
22
22
|
logger = LoggerAddTag(my_logger=get_extension_logger(__name__), prefix=__title__)
|
|
23
23
|
|
|
@@ -25,15 +25,18 @@ logger = LoggerAddTag(my_logger=get_extension_logger(__name__), prefix=__title__
|
|
|
25
25
|
def calculate_integrity_hash(relative_file_path: str) -> str:
|
|
26
26
|
"""
|
|
27
27
|
Calculates the integrity hash for a given static file
|
|
28
|
+
|
|
28
29
|
:param self:
|
|
29
30
|
:type self:
|
|
30
|
-
:param relative_file_path: The file path relative to the `
|
|
31
|
+
:param relative_file_path: The file path relative to the `{APP_NAME}/{PACKAGE_NAME}/static/{PACKAGE_NAME}` folder
|
|
31
32
|
:type relative_file_path: str
|
|
32
33
|
:return: The integrity hash
|
|
33
34
|
:rtype: str
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
|
-
file_path = os.path.join(
|
|
37
|
-
integrity_hash = calculate_integrity(
|
|
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
|
+
)
|
|
38
41
|
|
|
39
42
|
return integrity_hash
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/cs_CZ/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\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-03-06 22:02+0100\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: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/de/>\n"
|
|
@@ -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.3.2\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-03-06 22:02+0100\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-03-06 22:02+0100\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"
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/fr_FR/LC_MESSAGES/django.po
RENAMED
|
@@ -11,7 +11,7 @@ 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-
|
|
14
|
+
"POT-Creation-Date: 2025-03-06 22:02+0100\n"
|
|
15
15
|
"PO-Revision-Date: 2024-12-10 17:15+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"
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/it_IT/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\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-03-06 22:02+0100\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"
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ko_KR/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\n"
|
|
12
12
|
"PO-Revision-Date: 2024-05-10 14:03+0000\n"
|
|
13
13
|
"Last-Translator: Mind of the Raven <okanieva@gmail.com>\n"
|
|
14
14
|
"Language-Team: Korean <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/ko/>\n"
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/nl_NL/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\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"
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/pl_PL/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\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-03-06 22:02+0100\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-03-06 22:02+0100\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"
|
|
Binary file
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
# "Andrii M." <elfleg0las88@gmail.com>, 2023, 2024.
|
|
5
5
|
# Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
|
|
6
6
|
# Kristof <kristof@teh.ninja>, 2023, 2024.
|
|
7
|
+
# M <skrypets@gmail.com>, 2025.
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: AA Fleet Finder 2.2.1\n"
|
|
10
11
|
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetfinder/issues\n"
|
|
11
|
-
"POT-Creation-Date: 2025-
|
|
12
|
-
"PO-Revision-Date:
|
|
13
|
-
"Last-Translator:
|
|
12
|
+
"POT-Creation-Date: 2025-03-06 22:02+0100\n"
|
|
13
|
+
"PO-Revision-Date: 2025-02-23 23:17+0000\n"
|
|
14
|
+
"Last-Translator: M <skrypets@gmail.com>\n"
|
|
14
15
|
"Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-fleetfinder/uk/>\n"
|
|
15
16
|
"Language: uk\n"
|
|
16
17
|
"MIME-Version: 1.0\n"
|
|
17
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
"Content-Transfer-Encoding: 8bit\n"
|
|
19
20
|
"Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
20
|
-
"X-Generator: Weblate 5.
|
|
21
|
+
"X-Generator: Weblate 5.10.1\n"
|
|
21
22
|
|
|
22
23
|
#: fleetfinder/__init__.py:9 fleetfinder/models.py:24
|
|
23
24
|
#: fleetfinder/templates/fleetfinder/base.html:6
|
|
@@ -90,7 +91,7 @@ msgstr ""
|
|
|
90
91
|
|
|
91
92
|
#: fleetfinder/models.py:73
|
|
92
93
|
msgid "Group restrictions"
|
|
93
|
-
msgstr "
|
|
94
|
+
msgstr "Обмеження групи"
|
|
94
95
|
|
|
95
96
|
#: fleetfinder/models.py:81
|
|
96
97
|
msgid "Last ESI error"
|
|
@@ -156,7 +157,7 @@ msgstr ""
|
|
|
156
157
|
|
|
157
158
|
#: fleetfinder/templates/fleetfinder/fleet-details.html:26
|
|
158
159
|
msgid "Count"
|
|
159
|
-
msgstr ""
|
|
160
|
+
msgstr "Кількість"
|
|
160
161
|
|
|
161
162
|
#: fleetfinder/templates/fleetfinder/fleet-details.html:41
|
|
162
163
|
#, fuzzy
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/zh_Hans/LC_MESSAGES/django.po
RENAMED
|
@@ -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-03-06 22:02+0100\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"
|
|
@@ -18,18 +18,22 @@ from app_utils.logging import LoggerAddTag
|
|
|
18
18
|
|
|
19
19
|
# AA Fleet Finder
|
|
20
20
|
from fleetfinder import __title__, __version__
|
|
21
|
+
from fleetfinder.app_settings import debug_enabled
|
|
22
|
+
from fleetfinder.constants import PACKAGE_NAME
|
|
21
23
|
from fleetfinder.helper.static_files import calculate_integrity_hash
|
|
22
24
|
|
|
23
25
|
logger = LoggerAddTag(my_logger=get_extension_logger(__name__), prefix=__title__)
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
@register.simple_tag
|
|
27
|
-
def fleetfinder_static(relative_file_path: str) -> str | None:
|
|
29
|
+
def fleetfinder_static(relative_file_path: str, script_type: str = None) -> str | None:
|
|
28
30
|
"""
|
|
29
31
|
Versioned static URL
|
|
30
32
|
|
|
31
|
-
:param relative_file_path: The file path relative to the `
|
|
33
|
+
:param relative_file_path: The file path relative to the `{APP_NAME}/{PACKAGE_NAME}/static/{PACKAGE_NAME}` folder
|
|
32
34
|
:type relative_file_path: str
|
|
35
|
+
:param script_type: The script type
|
|
36
|
+
:type script_type: str
|
|
33
37
|
:return: Versioned static URL
|
|
34
38
|
:rtype: str
|
|
35
39
|
"""
|
|
@@ -44,10 +48,16 @@ def fleetfinder_static(relative_file_path: str) -> str | None:
|
|
|
44
48
|
if file_type not in ["css", "js"]:
|
|
45
49
|
raise ValueError(f"Unsupported file type: {file_type}")
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
static_file_path = os.path.join("fleetfinder", relative_file_path)
|
|
51
|
+
static_file_path = os.path.join(PACKAGE_NAME, relative_file_path)
|
|
49
52
|
static_url = static(static_file_path)
|
|
50
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
|
+
|
|
51
61
|
# Versioned URL for CSS and JS files
|
|
52
62
|
# Add version query parameter to break browser caches when changing the app version
|
|
53
63
|
# Do not add version query parameter for libs as they are already versioned through their file path
|
|
@@ -57,18 +67,20 @@ def fleetfinder_static(relative_file_path: str) -> str | None:
|
|
|
57
67
|
else static_url + "?v=" + __version__
|
|
58
68
|
)
|
|
59
69
|
|
|
70
|
+
return_value = None
|
|
71
|
+
|
|
60
72
|
# Return the versioned URL with integrity hash for CSS
|
|
61
73
|
if file_type == "css":
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return mark_safe(
|
|
65
|
-
f'<link rel="stylesheet" href="{versioned_url}" integrity="{integrity_hash}" crossorigin="anonymous">'
|
|
74
|
+
return_value = mark_safe(
|
|
75
|
+
f'<link rel="stylesheet" href="{versioned_url}"{sri_string}>'
|
|
66
76
|
)
|
|
67
77
|
|
|
68
78
|
# Return the versioned URL with integrity hash for JS files
|
|
69
79
|
if file_type == "js":
|
|
70
|
-
|
|
71
|
-
|
|
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>'
|
|
72
84
|
)
|
|
73
85
|
|
|
74
|
-
return
|
|
86
|
+
return return_value
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Test the settings
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Django
|
|
6
|
+
from django.test import TestCase, override_settings
|
|
7
|
+
|
|
8
|
+
# AA Fleet Finder
|
|
9
|
+
from fleetfinder.app_settings import debug_enabled
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TestSettings(TestCase):
|
|
13
|
+
"""
|
|
14
|
+
Test the settings
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
@override_settings(DEBUG=True)
|
|
18
|
+
def test_debug_enabled_with_debug_true(self) -> None:
|
|
19
|
+
"""
|
|
20
|
+
Test debug_enabled with DEBUG = True
|
|
21
|
+
|
|
22
|
+
:return:
|
|
23
|
+
:rtype:
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
self.assertTrue(debug_enabled())
|
|
27
|
+
|
|
28
|
+
@override_settings(DEBUG=False)
|
|
29
|
+
def test_debug_enabled_with_debug_false(self) -> None:
|
|
30
|
+
"""
|
|
31
|
+
Test debug_enabled with DEBUG = False
|
|
32
|
+
|
|
33
|
+
:return:
|
|
34
|
+
:rtype:
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
self.assertFalse(debug_enabled())
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Test the apps' template tags
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Django
|
|
6
|
+
from django.template import Context, Template
|
|
7
|
+
from django.test import TestCase, override_settings
|
|
8
|
+
|
|
9
|
+
# 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
|
+
|
|
14
|
+
|
|
15
|
+
class TestVersionedStatic(TestCase):
|
|
16
|
+
"""
|
|
17
|
+
Test the `fleetfinder_static` template tag
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
@override_settings(DEBUG=False)
|
|
21
|
+
def test_versioned_static(self):
|
|
22
|
+
"""
|
|
23
|
+
Test should return the versioned static
|
|
24
|
+
|
|
25
|
+
:return:
|
|
26
|
+
:rtype:
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
context = Context(dict_={"version": __version__})
|
|
30
|
+
template_to_render = Template(
|
|
31
|
+
template_string=(
|
|
32
|
+
"{% load fleetfinder %}"
|
|
33
|
+
"{% fleetfinder_static 'css/fleetfinder.min.css' %}"
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
rendered_template = template_to_render.render(context=context)
|
|
38
|
+
|
|
39
|
+
expected_static_css_src = (
|
|
40
|
+
f'/static/{PACKAGE_NAME}/css/fleetfinder.min.css?v={context["version"]}'
|
|
41
|
+
)
|
|
42
|
+
expected_static_css_src_integrity = calculate_integrity_hash(
|
|
43
|
+
"css/fleetfinder.min.css"
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
self.assertIn(member=expected_static_css_src, container=rendered_template)
|
|
47
|
+
self.assertIn(
|
|
48
|
+
member=expected_static_css_src_integrity, container=rendered_template
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
@override_settings(DEBUG=True)
|
|
52
|
+
def test_versioned_static_with_debug_enabled(self) -> None:
|
|
53
|
+
"""
|
|
54
|
+
Test versioned static template tag with DEBUG enabled
|
|
55
|
+
|
|
56
|
+
:return:
|
|
57
|
+
:rtype:
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
context = Context({"version": __version__})
|
|
61
|
+
template_to_render = Template(
|
|
62
|
+
template_string=(
|
|
63
|
+
"{% load fleetfinder %}"
|
|
64
|
+
"{% fleetfinder_static 'css/fleetfinder.min.css' %}"
|
|
65
|
+
)
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
rendered_template = template_to_render.render(context=context)
|
|
69
|
+
|
|
70
|
+
expected_static_css_src = (
|
|
71
|
+
f'/static/{PACKAGE_NAME}/css/fleetfinder.min.css?v={context["version"]}'
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
self.assertIn(member=expected_static_css_src, container=rendered_template)
|
|
75
|
+
self.assertNotIn(member="integrity=", container=rendered_template)
|
|
76
|
+
|
|
77
|
+
@override_settings(DEBUG=False)
|
|
78
|
+
def test_invalid_file_type(self) -> None:
|
|
79
|
+
"""
|
|
80
|
+
Test should raise a ValueError for an invalid file type
|
|
81
|
+
|
|
82
|
+
:return:
|
|
83
|
+
:rtype:
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
context = Context({"version": __version__})
|
|
87
|
+
template_to_render = Template(
|
|
88
|
+
template_string=(
|
|
89
|
+
"{% load fleetfinder %}"
|
|
90
|
+
"{% fleetfinder_static 'invalid/invalid.txt' %}"
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
with self.assertRaises(ValueError):
|
|
95
|
+
template_to_render.render(context=context)
|
|
@@ -1,21 +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
|
-
AA_FLEETFINDER_BASE_DIR = os.path.join(os.path.dirname(__file__))
|
|
15
|
-
AA_FLEETFINDER_STATIC_DIR = os.path.join(
|
|
16
|
-
AA_FLEETFINDER_BASE_DIR, "static", "fleetfinder"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
APP_NAME = "aa-fleetfinder"
|
|
20
|
-
GITHUB_URL = f"https://github.com/ppfeufer/{APP_NAME}"
|
|
21
|
-
USER_AGENT = f"{APP_NAME}/{__version__} ({GITHUB_URL}) via django-esi/{esi_version}"
|
|
Binary file
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Test the apps' template tags
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
# Django
|
|
6
|
-
from django.template import Context, Template
|
|
7
|
-
from django.test import TestCase
|
|
8
|
-
|
|
9
|
-
# AA Fleet Finder
|
|
10
|
-
from fleetfinder import __version__
|
|
11
|
-
from fleetfinder.helper.static_files import calculate_integrity_hash
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class TestVersionedStatic(TestCase):
|
|
15
|
-
"""
|
|
16
|
-
Test the `fleetfinder_static` template tag
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
def test_versioned_static(self):
|
|
20
|
-
"""
|
|
21
|
-
Test should return the versioned static
|
|
22
|
-
|
|
23
|
-
:return:
|
|
24
|
-
:rtype:
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
context = Context(dict_={"version": __version__})
|
|
28
|
-
template_to_render = Template(
|
|
29
|
-
template_string=(
|
|
30
|
-
"{% load fleetfinder %}"
|
|
31
|
-
"{% fleetfinder_static 'css/fleetfinder.min.css' %}"
|
|
32
|
-
)
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
rendered_template = template_to_render.render(context)
|
|
36
|
-
|
|
37
|
-
expected_static_src = (
|
|
38
|
-
f'/static/fleetfinder/css/fleetfinder.min.css?v={context["version"]}'
|
|
39
|
-
)
|
|
40
|
-
expected_static_src_integrity = calculate_integrity_hash(
|
|
41
|
-
"css/fleetfinder.min.css"
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
self.assertIn(member=expected_static_src, container=rendered_template)
|
|
45
|
-
self.assertIn(member=expected_static_src_integrity, container=rendered_template)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/cs_CZ/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/fr_FR/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/it_IT/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/ko_KR/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/nl_NL/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/pl_PL/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/locale/zh_Hans/LC_MESSAGES/django.mo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/css/fleetfinder.css
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/static/fleetfinder/css/fleetfinder.min.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/create-fleet.html
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/dashboard.html
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/edit-fleet.html
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/fleet-details.html
RENAMED
|
File without changes
|
{aa_fleetfinder-2.3.1 → aa_fleetfinder-2.3.2}/fleetfinder/templates/fleetfinder/join-fleet.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|