From 70b6fe99a00ae7a7e199c86dd6d84bde883d1d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20de=20Jes=C3=BAs=20Cort=C3=A9s=20Castellanos?= <96152034+notsoweb@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:55:10 -0600 Subject: [PATCH] =?UTF-8?q?UPDATE:=20Logo=20y=20versi=C3=B3n=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/images/.gitignore | 2 -- src/auth.js | 13 +++++++++---- src/components/Holos/Layout/App.vue | 2 -- src/components/Holos/Layout/Auth.vue | 2 +- src/components/Holos/Logo.vue | 4 ++-- src/components/Holos/Skeleton/Sidebar/Left.vue | 2 +- src/index.js | 8 +++++--- src/pages/Admin/Users/Roles.vue | 1 - .../Partials/TwoFactorAuthenticationForm.vue | 2 -- .../Profile/Partials/UpdatePasswordForm.vue | 1 - src/services/Page.js | 18 +++++++++++++++--- 11 files changed, 33 insertions(+), 22 deletions(-) delete mode 100644 public/images/.gitignore diff --git a/public/images/.gitignore b/public/images/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/public/images/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/src/auth.js b/src/auth.js index e898f09..f170525 100644 --- a/src/auth.js +++ b/src/auth.js @@ -8,7 +8,7 @@ import { i18n, lang } from '@/lang/i18n.js'; import router from '@Router/Auth' import Notify from '@Plugins/Notify' import TailwindScreen from '@Plugins/TailwindScreen' -import { pagePlugin } from '@Services/Page'; +import { defineApp, pagePlugin, reloadApp } from '@Services/Page'; import Auth from '@Holos/Layout/Auth.vue' @@ -22,16 +22,21 @@ window.TwScreen = new TailwindScreen(); async function boot() { try { - const { data } = await axios.get(import.meta.env.VITE_API_URL + '/api/routes'); - + 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 = data; + 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) diff --git a/src/components/Holos/Layout/App.vue b/src/components/Holos/Layout/App.vue index ea81eec..8aa64dc 100644 --- a/src/components/Holos/Layout/App.vue +++ b/src/components/Holos/Layout/App.vue @@ -1,7 +1,6 @@