2020-12-15 10:23:20 +01:00
|
|
|
import App from './components/App.svelte'
|
|
|
|
|
|
|
|
import * as stores from './stores'
|
2020-12-15 21:16:30 +01:00
|
|
|
import * as services from './services'
|
2020-12-20 15:00:00 +01:00
|
|
|
import serviceWorkerBoot from './sw-boot'
|
2020-12-20 15:06:08 +01:00
|
|
|
import loggerBoot from './logger-boot'
|
2020-12-15 10:23:20 +01:00
|
|
|
|
|
|
|
const boot = () => {
|
2020-12-15 21:16:30 +01:00
|
|
|
|
|
|
|
services.storageListener.register()
|
|
|
|
|
2020-12-20 15:00:00 +01:00
|
|
|
serviceWorkerBoot()
|
2020-12-20 15:06:08 +01:00
|
|
|
loggerBoot()
|
2020-12-20 15:00:00 +01:00
|
|
|
|
2020-12-15 10:23:20 +01:00
|
|
|
new App({
|
|
|
|
target: document.querySelector('#root'),
|
|
|
|
})
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
window._fb2ical = {
|
|
|
|
...stores,
|
2020-12-15 21:16:30 +01:00
|
|
|
...services,
|
2020-12-15 10:23:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-20 15:24:25 +01:00
|
|
|
boot()
|