From 943a45f98be64435a5ad28616e0e4a51445e781d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Mint=C4=9Bl?= Date: Sat, 5 Oct 2024 16:17:32 +0200 Subject: [PATCH] Remove vuetify plugin --- frontend/src/main.js | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index f999811e..be0bc766 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -144,15 +144,13 @@ window.addEventListener('hashchange', focusTab); window.addEventListener('DOMContentLoaded', focusTab); import { defineCustomElement } from 'vue'; -import { createVuetify } from 'vuetify'; -import { VDataTable } from 'vuetify/components'; import AllTasks from './Teacher/AllTasks.vue'; /** * Register new Vue component as a custom element. - * @param {string} name - * @param {unknown} component - * @param {(app) => void} configure + * @param {string} name Suffix to `kelvin-` as name of new custom element + * @param {(props: unknown, ctx: unknown) => unknown} component Vue Component + * @param {(app) => void} configure Expose app variable to use plugins for example */ const registerVueComponent = (name, component, configure = undefined) => { customElements.define( @@ -164,15 +162,4 @@ const registerVueComponent = (name, component, configure = undefined) => { ); }; -const vuetify = createVuetify({ - components: { - VDataTable - }, - theme: { - defaultTheme: 'dark' - } -}); - -registerVueComponent('tasks-all', AllTasks, (app) => { - app.use(vuetify); -}); +registerVueComponent('tasks-all', AllTasks);