Cambio a typescript
This commit is contained in:
parent
3a313d033d
commit
537bfd52ff
4 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@ import * as bulmaToast from 'bulma-toast';
|
||||||
import Vue from '../../node_modules/vue/dist/vue.esm.js';
|
import Vue from '../../node_modules/vue/dist/vue.esm.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
|
import './shims-vue.d.ts';
|
||||||
|
|
||||||
// Registro de components
|
// Registro de components
|
||||||
const components = import.meta.glob('./components/**/*.vue', { eager: true });
|
const components = import.meta.glob('./components/**/*.vue', { eager: true });
|
||||||
|
@ -12,7 +13,7 @@ Object.entries(components).forEach(([path, module]) => {
|
||||||
.replace(/\//g, '-') // Replace subfolders with hyphens
|
.replace(/\//g, '-') // Replace subfolders with hyphens
|
||||||
.replace(/([a-z])([A-Z])/g, '$1-$2') // camelCase to kebab-case
|
.replace(/([a-z])([A-Z])/g, '$1-$2') // camelCase to kebab-case
|
||||||
.toLowerCase(); // Enforce kebab-case for HTML
|
.toLowerCase(); // Enforce kebab-case for HTML
|
||||||
Vue.component(name, module.default);
|
Vue.component(name, (module as any).default);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.Vue = Vue;
|
window.Vue = Vue;
|
|
@ -5,7 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{{ config('app.name', 'Pedidos del MPS') }}</title>
|
<title>{{ config('app.name', 'Pedidos del MPS') }}</title>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
|
||||||
@vite(['resources/sass/app.scss', 'resources/js/app.js'])
|
@vite(['resources/sass/app.scss', 'resources/js/app.ts'])
|
||||||
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
|
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<!-- Fonts -->
|
<!-- Fonts -->
|
||||||
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
|
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
|
||||||
@vite(['resources/sass/app.scss', 'resources/js/app.js'])
|
@vite(['resources/sass/app.scss', 'resources/js/app.ts'])
|
||||||
@yield('stylesheets')
|
@yield('stylesheets')
|
||||||
</head>
|
</head>
|
||||||
<body class="has-navbar-fixed-top">
|
<body class="has-navbar-fixed-top">
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
input: ['resources/js/app.js', 'resources/sass/app.scss'],
|
input: ['resources/js/app.ts', 'resources/sass/app.scss'],
|
||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
vue(),
|
vue(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue