remove project tile web component

vue does not support defining web components without shadow root, rendering them practically useless
This commit is contained in:
lightling 2024-05-13 20:30:14 -04:00
parent a0367f8563
commit 6ffe5939a5
3 changed files with 0 additions and 16 deletions

View file

@ -1,5 +0,0 @@
import { registerProjectTile } from './project-tile'
export const register = () => {
registerProjectTile()
}

View file

@ -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)
}

View file

@ -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)
},