From 6ffe5939a51cb2dbaa97822755b00e723c09ac67 Mon Sep 17 00:00:00 2001 From: Lightling Date: Mon, 13 May 2024 20:30:14 -0400 Subject: [PATCH] remove project tile web component vue does not support defining web components without shadow root, rendering them practically useless --- projects/frontend/src/components/web-components/index.ts | 5 ----- .../src/components/web-components/project-tile.ts | 9 --------- projects/frontend/src/main.ts | 2 -- 3 files changed, 16 deletions(-) delete mode 100644 projects/frontend/src/components/web-components/index.ts delete mode 100644 projects/frontend/src/components/web-components/project-tile.ts diff --git a/projects/frontend/src/components/web-components/index.ts b/projects/frontend/src/components/web-components/index.ts deleted file mode 100644 index 40fb2f3..0000000 --- a/projects/frontend/src/components/web-components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { registerProjectTile } from './project-tile' - -export const register = () => { - registerProjectTile() -} diff --git a/projects/frontend/src/components/web-components/project-tile.ts b/projects/frontend/src/components/web-components/project-tile.ts deleted file mode 100644 index a43b957..0000000 --- a/projects/frontend/src/components/web-components/project-tile.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineCustomElement } from 'vue' - -import ProjectTileSFC from 'src/views/project/project-tile.vue' - -export const ProjectTile = defineCustomElement(ProjectTileSFC) - -export const registerProjectTile = () => { - customElements.define('project-tile', ProjectTile) -} diff --git a/projects/frontend/src/main.ts b/projects/frontend/src/main.ts index 9512a28..2a63009 100644 --- a/projects/frontend/src/main.ts +++ b/projects/frontend/src/main.ts @@ -9,7 +9,6 @@ import './main.sass' import { createRoutes, initializeRouteStore } from './routes' import { headingSectionsExtension } from './utilities/marked' -import { register } from './components/web-components' marked .use(headingSectionsExtension() as any) @@ -28,7 +27,6 @@ export const createApp = ViteSSG( { routes: createRoutes() }, // function to have custom setups ({ app, router, routes, isClient, initialState }) => { - register() app.use(createPinia()) initializeRouteStore(routes) },