1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

feature: add Svelte framework to app, refactor tracking panel into Svelte component

This commit is contained in:
Ondřej Synáček
2020-12-15 10:23:20 +01:00
parent e3a2ebeaf2
commit a89777b91a
14 changed files with 511 additions and 89 deletions

17
lib/frontend/index.js Normal file
View File

@ -0,0 +1,17 @@
import App from './components/App.svelte'
import * as stores from './stores'
const boot = () => {
new App({
target: document.querySelector('#root'),
})
if (process.env.NODE_ENV === 'development') {
window._fb2ical = {
...stores,
}
}
}
export default boot