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 {