componentsDjangoType 1.0.5__tar.gz → 1.0.6__tar.gz

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