componentsDjangoType 1.0.5__tar.gz → 1.0.6__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.
- {componentsdjangotype-1.0.5/componentsDjangoType.egg-info → componentsdjangotype-1.0.6}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType/management/commands/createApp.py +260 -261
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/setup.py +1 -1
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/LICENSE +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/MANIFEST.in +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/README.md +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/setup.cfg +0 -0
@@ -262,6 +262,8 @@ class Command(BaseCommand):
|
|
262
262
|
}
|
263
263
|
for template_file, content in template_files.items():
|
264
264
|
template_file_path = os.path.join(templates_dir, template_file)
|
265
|
+
# escritura de los archivoos html
|
266
|
+
write_file(template_file_path, content)
|
265
267
|
|
266
268
|
# escritura de los archivos
|
267
269
|
|
@@ -277,275 +279,272 @@ class Command(BaseCommand):
|
|
277
279
|
|
278
280
|
# escritura del archivos js
|
279
281
|
write_file(js_file_path, """
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
282
|
+
function closeAlert() {
|
283
|
+
const alert = document.getElementById('alert');
|
284
|
+
if (alert) {
|
285
|
+
alert.remove();
|
286
|
+
}
|
287
|
+
}
|
286
288
|
""")
|
287
289
|
|
288
290
|
# escritura del archivo css
|
289
291
|
write_file(css_file_path, """
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
292
|
+
/* Navbar */
|
293
|
+
.navbar {
|
294
|
+
display: flex;
|
295
|
+
justify-content: space-between;
|
296
|
+
align-items: center;
|
297
|
+
padding: 10px 20px;
|
298
|
+
background-color: #333; /* Color de fondo */
|
299
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
300
|
+
}
|
301
|
+
|
302
|
+
/* Logo */
|
303
|
+
.navbar .logo a {
|
304
|
+
color: #ffffff;
|
305
|
+
font-size: 1.5em;
|
306
|
+
text-decoration: none;
|
307
|
+
transition: color 0.3s ease;
|
308
|
+
}
|
309
|
+
|
310
|
+
.navbar .logo a:hover {
|
311
|
+
color: #4a90e2; /* Hover del logo */
|
312
|
+
}
|
313
|
+
|
314
|
+
/* Links de navegación */
|
315
|
+
.nav-links {
|
316
|
+
display: flex;
|
317
|
+
gap: 15px;
|
318
|
+
list-style: none;
|
319
|
+
margin: 0;
|
320
|
+
padding: 0;
|
321
|
+
}
|
322
|
+
|
323
|
+
.nav-links .nav-item {
|
324
|
+
color: #ffffff;
|
325
|
+
font-size: 1em;
|
326
|
+
text-decoration: none;
|
327
|
+
padding: 8px 15px;
|
328
|
+
border-radius: 5px;
|
329
|
+
transition: background-color 0.3s ease, color 0.3s ease;
|
330
|
+
}
|
331
|
+
|
332
|
+
.nav-links .nav-item:hover {
|
333
|
+
background-color: #4a90e2; /* Hover */
|
334
|
+
color: #ffffff;
|
335
|
+
}
|
336
|
+
|
337
|
+
/* Estilos para dispositivos móviles */
|
338
|
+
.menu-toggle {
|
339
|
+
display: none;
|
340
|
+
}
|
341
|
+
|
342
|
+
@media (max-width: 768px) {
|
343
|
+
.menu-toggle {
|
344
|
+
display: inline-block;
|
345
|
+
font-size: 1.5em;
|
346
|
+
color: #ffffff;
|
347
|
+
cursor: pointer;
|
348
|
+
padding: 8px 15px;
|
349
|
+
}
|
350
|
+
|
351
|
+
.nav-links {
|
352
|
+
flex-direction: column;
|
353
|
+
position: absolute;
|
354
|
+
top: 100%;
|
355
|
+
right: 0;
|
356
|
+
width: 100%;
|
357
|
+
background-color: #333;
|
358
|
+
max-height: 0;
|
359
|
+
overflow: hidden;
|
360
|
+
transition: max-height 0.3s ease;
|
361
|
+
}
|
362
|
+
|
363
|
+
/* Activar menú desplegable */
|
364
|
+
.nav-links.active {
|
365
|
+
max-height: 300px; /* Ajustar altura */
|
366
|
+
}
|
367
|
+
|
368
|
+
.nav-links .nav-item {
|
369
|
+
padding: 10px 20px;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
/* formularios */
|
374
|
+
/* Contenedor para centrar el formulario */
|
375
|
+
.form-wrapper {
|
376
|
+
display: flex;
|
377
|
+
justify-content: center;
|
378
|
+
align-items: center;
|
379
|
+
margin-top: 50px;
|
380
|
+
}
|
381
|
+
|
382
|
+
/* Contenedor del formulario */
|
383
|
+
.form-container {
|
384
|
+
padding: 20px;
|
385
|
+
background: black; /* Fondo azul con transparencia */
|
386
|
+
border-radius: 8px;
|
387
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
388
|
+
color: white;
|
389
|
+
text-align: center;
|
390
|
+
max-width: 400px;
|
391
|
+
width: 100%;
|
392
|
+
}
|
393
|
+
|
394
|
+
/* Estilo del formulario */
|
395
|
+
.form-control {
|
396
|
+
display: flex;
|
397
|
+
flex-direction: column;
|
398
|
+
gap: 15px;
|
399
|
+
}
|
400
|
+
|
401
|
+
/* Estilo para las etiquetas */
|
402
|
+
label {
|
403
|
+
font-size: 0.9em;
|
404
|
+
color: #d1d5db; /* Color gris claro */
|
405
|
+
margin-bottom: 5px;
|
406
|
+
text-align: left;
|
407
|
+
}
|
408
|
+
|
409
|
+
/* Estilo para los campos de entrada */
|
410
|
+
input[type="text"],
|
411
|
+
input[type="password"] {
|
412
|
+
padding: 10px;
|
413
|
+
background: rgba(255, 255, 255, 0.2);
|
414
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
415
|
+
border-radius: 5px;
|
416
|
+
color: #ffffff;
|
417
|
+
outline: none;
|
418
|
+
font-size: 1em;
|
419
|
+
transition: background 0.3s ease, box-shadow 0.3s ease;
|
420
|
+
}
|
421
|
+
|
422
|
+
input[type="text"]:focus,
|
423
|
+
input[type="password"]:focus {
|
424
|
+
background: rgba(255, 255, 255, 0.4);
|
425
|
+
box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
|
426
|
+
}
|
427
|
+
|
428
|
+
/* Estilo del botón */
|
429
|
+
button[type="submit"] {
|
430
|
+
padding: 10px;
|
431
|
+
background: #4a90e2;
|
432
|
+
color: white;
|
433
|
+
border: none;
|
434
|
+
border-radius: 5px;
|
435
|
+
cursor: pointer;
|
436
|
+
transition: background 0.3s ease;
|
437
|
+
}
|
438
|
+
|
439
|
+
button[type="submit"]:hover {
|
440
|
+
background: #357ab8;
|
441
|
+
}
|
440
442
|
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
443
|
+
/* alert */
|
444
|
+
|
445
|
+
/* Estilos para la alerta */
|
446
|
+
.alert {
|
447
|
+
max-width: 400px;
|
448
|
+
background-color: #333;
|
449
|
+
color: #ffffff;
|
450
|
+
border-radius: 8px;
|
451
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
452
|
+
margin: 0 auto;
|
453
|
+
position: relative;
|
454
|
+
top: 20px;
|
455
|
+
padding: 15px;
|
456
|
+
}
|
457
|
+
|
458
|
+
.alert-content {
|
459
|
+
display: flex;
|
460
|
+
justify-content: space-between;
|
461
|
+
align-items: center;
|
462
|
+
}
|
463
|
+
|
464
|
+
.close-btn {
|
465
|
+
background: none;
|
466
|
+
border: none;
|
467
|
+
cursor: pointer;
|
468
|
+
color: #ffffff;
|
469
|
+
transition: color 0.3s ease;
|
470
|
+
}
|
471
|
+
|
472
|
+
.close-btn:hover {
|
473
|
+
color: #ff6b6b;
|
474
|
+
}
|
475
|
+
|
476
|
+
.close-icon {
|
477
|
+
width: 16px;
|
478
|
+
height: 16px;
|
479
|
+
}
|
480
|
+
|
481
|
+
/* logged */
|
482
|
+
|
483
|
+
/* Estilos para el contenedor del bloque */
|
484
|
+
.layout-container {
|
485
|
+
display: flex;
|
486
|
+
justify-content: center;
|
487
|
+
align-items: center;
|
488
|
+
height: 100vh;
|
489
|
+
background-color: #f0f4f8;
|
490
|
+
font-family: Arial, sans-serif;
|
491
|
+
}
|
492
|
+
|
493
|
+
/* Estilos para el título */
|
494
|
+
.layout-container h1 {
|
495
|
+
font-size: 2.5rem;
|
496
|
+
color: #4a90e2;
|
497
|
+
font-weight: bold;
|
498
|
+
text-align: center;
|
499
|
+
padding: 20px;
|
500
|
+
border-radius: 8px;
|
501
|
+
background: #ffffff;
|
502
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
503
|
+
}
|
504
|
+
""")
|
503
505
|
# escritura del archivos que estan en la carpeta layouts
|
504
506
|
write_file(layout_files_path, """
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
507
|
+
{% load static %}
|
508
|
+
<!DOCTYPE html>
|
509
|
+
<html lang="en">
|
510
|
+
<head>
|
511
|
+
<meta charset="UTF-8">
|
512
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
513
|
+
<link rel="stylesheet" href="{% static 'css/authentication.css' %}">
|
514
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
|
515
|
+
<title>django components</title>
|
516
|
+
</head>
|
517
|
+
<body class="bg-gray-100 text-gray-800">
|
516
518
|
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
# escritura de los archivoos html
|
548
|
-
write_file(template_file_path, content)
|
519
|
+
<nav class="navbar">
|
520
|
+
<div class="logo">
|
521
|
+
<a href="{% url 'home' %}">
|
522
|
+
<i class="fa-solid fa-house"></i>
|
523
|
+
</a>
|
524
|
+
</div>
|
525
|
+
<div class="menu-toggle">
|
526
|
+
<i class="fa fa-bars"></i>
|
527
|
+
</div>
|
528
|
+
<ul class="nav-links">
|
529
|
+
{% if user.is_authenticated %}
|
530
|
+
<li><a href="{% url 'logout' %}" class="nav-item">Logout</a></li>
|
531
|
+
{% else %}
|
532
|
+
<li><a href="{% url 'signup' %}" class="nav-item">Sign Up</a></li>
|
533
|
+
<li><a href="{% url 'login' %}" class="nav-item">Login</a></li>
|
534
|
+
{% endif %}
|
535
|
+
</ul>
|
536
|
+
</nav>
|
537
|
+
|
538
|
+
<div class="container mx-auto p-4">
|
539
|
+
{% block layout %}
|
540
|
+
{% endblock %}
|
541
|
+
</div>
|
542
|
+
|
543
|
+
{% block script %}
|
544
|
+
{% endblock %}
|
545
|
+
</body>
|
546
|
+
</html>
|
547
|
+
""")
|
549
548
|
|
550
549
|
self.stdout.write(self.style.SUCCESS(
|
551
550
|
"Comando ejecutado exitosamente."))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-1.0.5 → componentsdjangotype-1.0.6}/componentsDjangoType.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|