From 917e3e1df3fbc8d8435b809308647eea2e528589 Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 14 Sep 2024 16:25:57 -0300 Subject: [PATCH] Ajustes de refactor --- resources/js/components.js | 3 +++ .../js/components/{LoginCompras.vue => compras/Login.vue} | 0 resources/js/components/{ => pedidos}/ProductoCard.vue | 2 +- resources/js/components/pedidos/ProductosContainer.vue | 4 ++-- resources/views/auth/compras_login.blade.php | 2 +- resources/views/auth/login.blade.php | 2 +- resources/views/subpedidos_create.blade.php | 2 +- 7 files changed, 9 insertions(+), 6 deletions(-) rename resources/js/components/{LoginCompras.vue => compras/Login.vue} (100%) rename resources/js/components/{ => pedidos}/ProductoCard.vue (98%) diff --git a/resources/js/components.js b/resources/js/components.js index e67790e..d2ca0bb 100644 --- a/resources/js/components.js +++ b/resources/js/components.js @@ -2,6 +2,9 @@ import Vue from 'vue'; const requireComponent = require.context('./components', true, /\.vue$/); +// Registro automático de componentes: +// e.g. components/foo/bar/UnComponente.vue +// se registra como 'foo-bar-un-componente' requireComponent.keys().forEach(fileName => { // Get the component config const componentConfig = requireComponent(fileName); diff --git a/resources/js/components/LoginCompras.vue b/resources/js/components/compras/Login.vue similarity index 100% rename from resources/js/components/LoginCompras.vue rename to resources/js/components/compras/Login.vue diff --git a/resources/js/components/ProductoCard.vue b/resources/js/components/pedidos/ProductoCard.vue similarity index 98% rename from resources/js/components/ProductoCard.vue rename to resources/js/components/pedidos/ProductoCard.vue index 0790be0..8722642 100644 --- a/resources/js/components/ProductoCard.vue +++ b/resources/js/components/pedidos/ProductoCard.vue @@ -103,7 +103,7 @@ export default {