Skip to content

Commit

Permalink
Remove vuetify plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Oct 5, 2024
1 parent a192113 commit 943a45f
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);

0 comments on commit 943a45f

Please sign in to comment.