aboutsummaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-24 05:19:57 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-28 00:06:26 +0200
commitf7f2d1193758bb9d7a2d467f188cf755c8d5ddc9 (patch)
tree4c8c0f3df3a67204bb0d16670b360bea6518aa81 /data/js
parent397286c87dc9aa3cba458973bdc65b3f3be14657 (diff)
Removes old data server and cleans up python code
Diffstat (limited to 'data/js')
-rw-r--r--data/js/vue-app.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/data/js/vue-app.js b/data/js/vue-app.js
deleted file mode 100644
index 80a813f..0000000
--- a/data/js/vue-app.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const { createApp } = Vue
-const { loadModule } = window['vue3-sfc-loader']
-
-const addStyle = styleStr => {
- const style = document.createElement('style')
- const ref = document.head.getElementsByTagName('style')[0] || null
- style.textContent = styleStr
- document.head.insertBefore(style, ref)
-}
-
-const getFile = url => fetch(url).then(resp => resp.ok ? resp.text() : Promise.reject(resp))
-const moduleCache = { vue: Vue }
-
-const options = { addStyle, getFile, moduleCache }
-
-const app = createApp({
- components: {
- App: Vue.defineAsyncComponent(() => loadModule('vue/App.vue', options)),
- Section: Vue.defineAsyncComponent(() => loadModule('vue/Section.vue', options)),
- Plot: Vue.defineAsyncComponent(() => loadModule('vue/Plot.vue', options)),
- },
-})
-
-app.mount('#app')