2022-04-14 02:12:38 +03:00
|
|
|
import App from './components/App.svelte';
|
2022-04-14 16:56:01 +03:00
|
|
|
import gateway from './gateway';
|
2022-04-26 22:45:40 +03:00
|
|
|
import { getAuthToken, initStorageDefaults } from './storage';
|
2022-04-23 23:07:46 +03:00
|
|
|
import logging from "./logging";
|
2022-04-26 22:45:40 +03:00
|
|
|
import { authWithToken } from './auth';
|
2022-04-27 05:03:47 +03:00
|
|
|
import { initResponsiveHandlers } from './responsive';
|
2022-04-23 23:07:46 +03:00
|
|
|
|
|
|
|
window.__waffle = {
|
|
|
|
logging,
|
|
|
|
gateway
|
|
|
|
};
|
2022-04-14 16:56:01 +03:00
|
|
|
|
|
|
|
initStorageDefaults();
|
2022-04-27 05:03:47 +03:00
|
|
|
initResponsiveHandlers();
|
2022-04-26 22:45:40 +03:00
|
|
|
authWithToken(getAuthToken());
|
2022-04-14 00:31:03 +03:00
|
|
|
|
2022-04-17 20:23:20 +03:00
|
|
|
// Remove loading screen
|
|
|
|
const loadingElement = document.getElementById("pre--loading-screen");
|
|
|
|
if (loadingElement) {
|
|
|
|
loadingElement.parentElement.removeChild(loadingElement);
|
|
|
|
}
|
|
|
|
|
2022-04-14 00:31:03 +03:00
|
|
|
const app = new App({
|
|
|
|
target: document.body
|
|
|
|
});
|
|
|
|
|
|
|
|
export default app;
|