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:
17
lib/frontend/index.js
Normal file
17
lib/frontend/index.js
Normal 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
|
Reference in New Issue
Block a user