componentsDjangoType 2.1.5__tar.gz → 2.1.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-2.1.5/componentsDjangoType.egg-info → componentsdjangotype-2.1.7}/PKG-INFO +1 -1
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/SOURCES.txt +3 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authenticator_configurator.py +17 -17
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/copy_source.py +9 -3
- componentsdjangotype-2.1.7/services/utils/css/aside.css +41 -0
- componentsdjangotype-2.1.7/services/utils/views/aside.html +32 -0
- componentsdjangotype-2.1.7/services/utils/views/user.html +4 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/setup.py +1 -1
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/LICENSE +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/MANIFEST.in +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/README.md +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/commands/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/commands/__pycache__/createApp.cpython-312.pyc +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/commands/createApp.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authentication/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authentication/auth.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authentication/forms.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/__init__.py +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/css/authentication.css +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/js/alertErrors.js +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/home.html +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/layouts/index.html +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/logged.html +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/login.html +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/signup.html +0 -0
- {componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/setup.cfg +0 -0
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
@@ -23,10 +23,13 @@ services/authentication/__init__.py
|
|
23
23
|
services/authentication/auth.py
|
24
24
|
services/authentication/forms.py
|
25
25
|
services/utils/__init__.py
|
26
|
+
services/utils/css/aside.css
|
26
27
|
services/utils/css/authentication.css
|
27
28
|
services/utils/js/alertErrors.js
|
29
|
+
services/utils/views/aside.html
|
28
30
|
services/utils/views/home.html
|
29
31
|
services/utils/views/logged.html
|
30
32
|
services/utils/views/login.html
|
31
33
|
services/utils/views/signup.html
|
34
|
+
services/utils/views/user.html
|
32
35
|
services/utils/views/layouts/index.html
|
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authenticator_configurator.py
RENAMED
@@ -242,8 +242,6 @@ urlpatterns = [
|
|
242
242
|
js_dir = os.path.join(static_dir, 'js')
|
243
243
|
css_dir = os.path.join(static_dir, 'css')
|
244
244
|
user_dir_css = os.path.join(css_dir, 'user')
|
245
|
-
user_dir_html = os.path.join(templates_dir, 'user')
|
246
|
-
user_dir_components = os.path.join(templates_dir, 'components')
|
247
245
|
|
248
246
|
# Crear las carpetas principales y subcarpetas
|
249
247
|
os.makedirs(templates_dir, exist_ok=True)
|
@@ -252,35 +250,37 @@ urlpatterns = [
|
|
252
250
|
os.makedirs(js_dir, exist_ok=True)
|
253
251
|
os.makedirs(css_dir, exist_ok=True)
|
254
252
|
os.makedirs(user_dir_css, exist_ok=True)
|
255
|
-
os.makedirs(user_dir_html, exist_ok=True)
|
256
|
-
os.makedirs(user_dir_components, exist_ok=True)
|
257
253
|
|
258
254
|
stdout.write("Estructura de carpetas creada.\n")
|
259
255
|
|
260
256
|
files_to_copy = [
|
261
257
|
("services.utils.js", "alertErrors.js", os.path.join(js_dir, "alertErrors.js")),
|
262
258
|
("services.utils.css", "authentication.css", os.path.join(css_dir, "authentication.css")),
|
263
|
-
("services.utils.css
|
259
|
+
("services.utils.css", "aside.css", os.path.join(css_dir, "aside.css")), # Subpaquete específico
|
264
260
|
("services.utils.views.layouts", "index.html", os.path.join(layouts_dir, "index.html")),
|
265
261
|
("services.utils.views", "home.html", os.path.join(templates_dir, "home.html")),
|
266
262
|
("services.utils.views", "signup.html", os.path.join(templates_dir, "signup.html")),
|
267
263
|
("services.utils.views", "login.html", os.path.join(templates_dir, "login.html")),
|
268
264
|
("services.utils.views", "logged.html", os.path.join(templates_dir, "logged.html")),
|
269
|
-
("services.utils.views
|
270
|
-
("services.utils.views
|
265
|
+
("services.utils.views", "user.html", os.path.join(templates_dir, "user.html")), # Subpaquete específico
|
266
|
+
("services.utils.views", "aside.html", os.path.join(templates_dir, "aside.html")), # Subpaquete específico
|
271
267
|
]
|
272
268
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
269
|
+
packages_to_check = [
|
270
|
+
"services.utils.css",
|
271
|
+
"services.utils.css.user",
|
272
|
+
"services.utils.views",
|
273
|
+
"services.utils.views.user",
|
274
|
+
"services.utils.views.components"
|
275
|
+
]
|
276
|
+
|
277
|
+
for package in packages_to_check:
|
277
278
|
try:
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
print(f"El recurso '{resource_name}' no está disponible en el paquete '{package}'.")
|
279
|
+
resources = list(pkg_resources.contents(package))
|
280
|
+
print(f"Recursos disponibles en '{package}': {resources}")
|
281
|
+
except ImportError as e:
|
282
|
+
print(f"Error al importar el paquete '{package}': {e}")
|
283
283
|
except Exception as e:
|
284
|
-
print(f"Error
|
284
|
+
print(f"Error desconocido en el paquete '{package}': {e}")
|
285
285
|
|
286
286
|
stdout.write("Archivos estáticos copiados.\n")
|
@@ -16,13 +16,19 @@ def copy_static_file(package, resource_name, destination_path, stdout=sys.stdout
|
|
16
16
|
# Crear el directorio de destino si no existe
|
17
17
|
os.makedirs(os.path.dirname(destination_path), exist_ok=True)
|
18
18
|
|
19
|
-
#
|
19
|
+
# Verificar que el recurso existe
|
20
|
+
if not pkg_resources.is_resource(package, resource_name):
|
21
|
+
stdout.write(f"El recurso '{resource_name}' no existe en el paquete '{package}'.\n")
|
22
|
+
return
|
23
|
+
|
24
|
+
# Leer el archivo y escribirlo en la ruta destino
|
20
25
|
with pkg_resources.open_binary(package, resource_name) as resource_file:
|
21
26
|
with open(destination_path, 'wb') as dest_file:
|
22
27
|
shutil.copyfileobj(resource_file, dest_file)
|
23
28
|
|
24
29
|
stdout.write(f"El recurso '{resource_name}' fue copiado a '{destination_path}'.\n")
|
25
|
-
except
|
26
|
-
stdout.write(f"
|
30
|
+
except ImportError as e:
|
31
|
+
stdout.write(f"Error: No se pudo importar el paquete '{package}': {e}\n")
|
27
32
|
except Exception as e:
|
28
33
|
stdout.write(f"Error al copiar el archivo '{resource_name}': {e}\n")
|
34
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.user-sidebar {
|
2
|
+
max-width: 300px;
|
3
|
+
background-color: #f9fafb;
|
4
|
+
border: 1px solid #e5e7eb;
|
5
|
+
border-radius: 0.5rem;
|
6
|
+
padding: 1rem;
|
7
|
+
display: inline-block;
|
8
|
+
overflow: hidden;
|
9
|
+
}
|
10
|
+
|
11
|
+
.user-menu {
|
12
|
+
list-style-type: none;
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
.user-item {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
margin-bottom: 1rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
.user-item .icon {
|
24
|
+
display: flex;
|
25
|
+
justify-content: center;
|
26
|
+
align-items: center;
|
27
|
+
width: 2.5rem;
|
28
|
+
height: 2.5rem;
|
29
|
+
font-size: 1.2rem;
|
30
|
+
}
|
31
|
+
|
32
|
+
.user-item .text {
|
33
|
+
font-size: 1rem;
|
34
|
+
color: #1f2937;
|
35
|
+
font-weight: 500;
|
36
|
+
}
|
37
|
+
|
38
|
+
.user-item:last-child {
|
39
|
+
margin-bottom: 0;
|
40
|
+
}
|
41
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{% load static %}
|
2
|
+
{% block css %}
|
3
|
+
<link rel="stylesheet" href="{% static 'css/user/aside.css' %}">
|
4
|
+
{% endblock %}
|
5
|
+
<aside class="user-sidebar bg-gray-100 p-4 rounded-lg shadow-md">
|
6
|
+
<ul class="user-menu list-none m-0 p-0">
|
7
|
+
<li class="user-item flex items-center mb-4">
|
8
|
+
<span class="icon bg-blue-500 text-white rounded-full p-2 mr-3">
|
9
|
+
<box-icon type='solid' name='image-alt'></box-icon>
|
10
|
+
</span>
|
11
|
+
<span class="text">Image</span>
|
12
|
+
</li>
|
13
|
+
<li class="user-item flex items-center mb-4">
|
14
|
+
<span class="icon bg-green-500 text-white rounded-full p-2 mr-3">
|
15
|
+
<box-icon name='user'></box-icon>
|
16
|
+
</span>
|
17
|
+
<span class="text">Name</span>
|
18
|
+
</li>
|
19
|
+
<li class="user-item flex items-center mb-4">
|
20
|
+
<span class="icon bg-orange-500 text-white rounded-full p-2 mr-3">
|
21
|
+
<box-icon type='solid' name='lock-alt'></box-icon>
|
22
|
+
</span>
|
23
|
+
<span class="text">Password</span>
|
24
|
+
</li>
|
25
|
+
<li class="user-item flex items-center">
|
26
|
+
<span class="icon bg-red-500 text-white rounded-full p-2 mr-3">
|
27
|
+
<box-icon name='trash-alt' type='solid' ></box-icon>
|
28
|
+
</span>
|
29
|
+
<span class="text">Delete User</span>
|
30
|
+
</li>
|
31
|
+
</ul>
|
32
|
+
</aside>
|
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
|
File without changes
|
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/componentsDjangoType.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/authentication/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/css/authentication.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.1.5 → componentsdjangotype-2.1.7}/services/utils/views/layouts/index.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|