diff --git a/auth.html b/auth.html deleted file mode 100644 index ce94140..0000000 --- a/auth.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Login - - -
- - - - \ No newline at end of file diff --git a/package.json b/package.json index 9a61eaa..6727ef0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "notsoweb.frontend", "copyright": "Notsoweb Software Inc.", "private": true, - "version": "0.9.8", + "version": "0.9.9", "type": "module", "scripts": { "dev": "vite", diff --git a/src/auth.js b/src/auth.js deleted file mode 100644 index f170525..0000000 --- a/src/auth.js +++ /dev/null @@ -1,50 +0,0 @@ -import './css/base.css' - -import axios from 'axios'; -import { createPinia } from 'pinia' -import { createApp } from 'vue' -import { useRoute, ZiggyVue } from 'ziggy-js'; -import { i18n, lang } from '@/lang/i18n.js'; -import router from '@Router/Auth' -import Notify from '@Plugins/Notify' -import TailwindScreen from '@Plugins/TailwindScreen' -import { defineApp, pagePlugin, reloadApp } from '@Services/Page'; - -import Auth from '@Holos/Layout/Auth.vue' - -// Configurar axios -axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; - -// Crear instancias globales -window.Lang = lang; -window.Notify = new Notify(); -window.TwScreen = new TailwindScreen(); - -async function boot() { - try { - const routes = await axios.get(import.meta.env.VITE_API_URL + '/api/resources/routes'); - const app = await axios.get(import.meta.env.VITE_API_URL + '/api/resources/app'); - - // Iniciar rutas - window.Ziggy = routes.data; - window.route = useRoute(); - - defineApp(app.data); - } catch (error) { - console.error(error); - alert('Failed to load routes'); - } - - reloadApp(); - - createApp(Auth) - .use(createPinia()) - .use(i18n) - .use(pagePlugin) - .use(router) - .use(ZiggyVue) - .mount('#app'); -} - -// Iniciar aplicación -boot(); diff --git a/src/components/App.vue b/src/components/App.vue new file mode 100644 index 0000000..2cb333f --- /dev/null +++ b/src/components/App.vue @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/src/components/Holos/DropdownLink.vue b/src/components/Holos/DropdownLink.vue index 65caa39..5aa3e22 100644 --- a/src/components/Holos/DropdownLink.vue +++ b/src/components/Holos/DropdownLink.vue @@ -6,7 +6,7 @@ defineProps({ to: String }); -const style = 'block px-4 py-2 text-sm leading-5 hover:bg-secondary/80 dark:hover:bg-secondary-d/80 focus:outline-hidden focus:bg-gray-100 transition'; +const style = 'block px-4 py-2 text-sm leading-5 hover:bg-secondary/80 dark:hover:bg-secondary-d/80 focus:outline-hidden focus:bg-gray-100 cursor-pointer transition';