cmShoppingList 0.11__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.
- cmshoppinglist-0.11/LICENSE +21 -0
- cmshoppinglist-0.11/PKG-INFO +86 -0
- cmshoppinglist-0.11/README.md +60 -0
- cmshoppinglist-0.11/cmShoppingList/__init__.py +5 -0
- cmshoppinglist-0.11/cmShoppingList/admin.py +5 -0
- cmshoppinglist-0.11/cmShoppingList/app_settings.py +6 -0
- cmshoppinglist-0.11/cmShoppingList/apps.py +7 -0
- cmshoppinglist-0.11/cmShoppingList/auth_hooks.py +34 -0
- cmshoppinglist-0.11/cmShoppingList/management/__init__.py +0 -0
- cmshoppinglist-0.11/cmShoppingList/management/commands/data/market_types.tsv +18616 -0
- cmshoppinglist-0.11/cmShoppingList/management/commands/populate_types.py +141 -0
- cmshoppinglist-0.11/cmShoppingList/migrations/0001_initial.py +36 -0
- cmshoppinglist-0.11/cmShoppingList/migrations/0002_itemequivalence.py +26 -0
- cmshoppinglist-0.11/cmShoppingList/migrations/__init__.py +0 -0
- cmshoppinglist-0.11/cmShoppingList/models.py +42 -0
- cmshoppinglist-0.11/cmShoppingList/static/cmShoppingList/components/ShoppingList.js +224 -0
- cmshoppinglist-0.11/cmShoppingList/static/cmShoppingList/css/main.css +41 -0
- cmshoppinglist-0.11/cmShoppingList/static/cmShoppingList/scripts/parse.js +168 -0
- cmshoppinglist-0.11/cmShoppingList/tasks.py +12 -0
- cmshoppinglist-0.11/cmShoppingList/templates/cmShoppingList/base.html +8 -0
- cmshoppinglist-0.11/cmShoppingList/templates/cmShoppingList/index.html +66 -0
- cmshoppinglist-0.11/cmShoppingList/templates/cmShoppingList/vue/shoppinglist-component.html +59 -0
- cmshoppinglist-0.11/cmShoppingList/urls.py +13 -0
- cmshoppinglist-0.11/cmShoppingList/views.py +42 -0
- cmshoppinglist-0.11/pyproject.toml +74 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 cmbrando999@gmail.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cmShoppingList
|
|
3
|
+
Version: 0.11
|
|
4
|
+
Summary: Shopping List plugin app for Alliance Auth.
|
|
5
|
+
Author-email: CMBrando <CMBrando999@gmail.com>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: Environment :: Web Environment
|
|
9
|
+
Classifier: Framework :: Django
|
|
10
|
+
Classifier: Framework :: Django :: 4.0
|
|
11
|
+
Classifier: Framework :: Django :: 4.2
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
21
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: allianceauth>=3
|
|
24
|
+
Project-URL: Homepage, https://github.com/CMBrando/cmShoppingList
|
|
25
|
+
|
|
26
|
+
# Shopping List
|
|
27
|
+
|
|
28
|
+
This is a Shopping List app for [Alliance Auth](https://gitlab.com/allianceauth/allianceauth) (AA)
|
|
29
|
+
|
|
30
|
+
## Features
|
|
31
|
+
|
|
32
|
+
- Paste in your Eve/FleetUp fit (with optional multiplier) and then paste in your eve list of assets. It will run a comparison and let you know what still needs to be purchased. Now includes equivalence checks
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
Once you have cloned the repo or copied all files into place.
|
|
37
|
+
|
|
38
|
+
Make sure you are in your venv. Then install it with pip from PyPi or pip in editable mode if downloaded from source:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install cmShoppingList
|
|
42
|
+
or
|
|
43
|
+
pip install -e {path_to}/cmShoppingList
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
First add your app to the Django project by adding 'cmShoppingList' to INSTALLED_APPS in `settings/local.py`.
|
|
48
|
+
|
|
49
|
+
Next perform migrations to add models to the database:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
python manage.py migrate
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Next initalize all the market types and equivalences
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
python manage.py populate_types
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Next copy all the static data to the output folder
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
python manage.py collectstatic --noinput
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Finally restart your AA setup.
|
|
68
|
+
|
|
69
|
+
## Permissions
|
|
70
|
+
|
|
71
|
+
There is only one permission for this application and it's to allow access and show it in the menu
|
|
72
|
+
|
|
73
|
+
View Shopping List menu item
|
|
74
|
+
*cmShoppingList.basic_access*
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Shopping List
|
|
2
|
+
|
|
3
|
+
This is a Shopping List app for [Alliance Auth](https://gitlab.com/allianceauth/allianceauth) (AA)
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Paste in your Eve/FleetUp fit (with optional multiplier) and then paste in your eve list of assets. It will run a comparison and let you know what still needs to be purchased. Now includes equivalence checks
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
Once you have cloned the repo or copied all files into place.
|
|
12
|
+
|
|
13
|
+
Make sure you are in your venv. Then install it with pip from PyPi or pip in editable mode if downloaded from source:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install cmShoppingList
|
|
17
|
+
or
|
|
18
|
+
pip install -e {path_to}/cmShoppingList
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
First add your app to the Django project by adding 'cmShoppingList' to INSTALLED_APPS in `settings/local.py`.
|
|
23
|
+
|
|
24
|
+
Next perform migrations to add models to the database:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
python manage.py migrate
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Next initalize all the market types and equivalences
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
python manage.py populate_types
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Next copy all the static data to the output folder
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python manage.py collectstatic --noinput
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Finally restart your AA setup.
|
|
43
|
+
|
|
44
|
+
## Permissions
|
|
45
|
+
|
|
46
|
+
There is only one permission for this application and it's to allow access and show it in the menu
|
|
47
|
+
|
|
48
|
+
View Shopping List menu item
|
|
49
|
+
*cmShoppingList.basic_access*
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from django.utils.translation import gettext_lazy as _
|
|
2
|
+
|
|
3
|
+
from allianceauth import hooks
|
|
4
|
+
from allianceauth.services.hooks import MenuItemHook, UrlHook
|
|
5
|
+
|
|
6
|
+
from . import urls
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CMShoppingListMenuItem(MenuItemHook):
|
|
10
|
+
"""This class ensures only authorized users will see the menu entry"""
|
|
11
|
+
|
|
12
|
+
def __init__(self):
|
|
13
|
+
# setup menu entry for sidebar
|
|
14
|
+
MenuItemHook.__init__(
|
|
15
|
+
self,
|
|
16
|
+
_("Shopping List"),
|
|
17
|
+
"fas fa-cart-shopping fa-fw",
|
|
18
|
+
"cmShoppingList:index"
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
def render(self, request):
|
|
22
|
+
if request.user.has_perm("cmShoppingList.basic_access"):
|
|
23
|
+
return MenuItemHook.render(self, request)
|
|
24
|
+
return ""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@hooks.register("menu_item_hook")
|
|
28
|
+
def register_menu():
|
|
29
|
+
return CMShoppingListMenuItem()
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@hooks.register("url_hook")
|
|
33
|
+
def register_urls():
|
|
34
|
+
return UrlHook(urls, "cmShoppingList", r"^cmShoppingList/")
|
|
File without changes
|