2020-06-29 15:23:57 +00:00
|
|
|
// Import debugging tools
|
|
|
|
let Sentry = null;
|
|
|
|
if(process.env.NODE_ENV === "development") {
|
|
|
|
console.debug("Initializing Preact Debugger...")
|
|
|
|
require("preact/debug");
|
|
|
|
}
|
|
|
|
else if(process.env.NODE_ENV === "production") {
|
|
|
|
console.debug("Initializing Sentry...")
|
|
|
|
Sentry = require("@sentry/browser");
|
|
|
|
let SentryIntegrations = require("@sentry/integrations")
|
|
|
|
// noinspection JSUnresolvedVariable
|
|
|
|
Sentry.init({
|
|
|
|
// TODO: Sentry DSN goes here
|
2020-06-30 17:13:48 +00:00
|
|
|
dsn: "https://05965b0d953049f493ddca387c1e4c90@o40131.ingest.sentry.io/5300173",
|
2020-06-29 15:23:57 +00:00
|
|
|
release: process.env.RELEASE,
|
|
|
|
environment: "production",
|
|
|
|
beforeSend(event, hint) {
|
|
|
|
if (event.exception) {
|
|
|
|
Sentry.showReportDialog({ eventId: event.event_id });
|
|
|
|
}
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-06-30 17:13:48 +00:00
|
|
|
import Home from "./routes/Home";
|
|
|
|
|
2020-06-29 15:23:57 +00:00
|
|
|
// noinspection ES6UnusedImports
|
|
|
|
import "bluelib/dist/index.css";
|
2020-07-03 01:26:12 +00:00
|
|
|
import {theme} from "bluelib";
|
2020-06-29 15:23:57 +00:00
|
|
|
import './meta/manifest.json';
|
|
|
|
import './meta/CNAME';
|
|
|
|
import './meta/.nojekyll';
|
|
|
|
import './meta/favicon.ico';
|
|
|
|
|
|
|
|
import Router from 'preact-router';
|
|
|
|
import {createHashHistory} from "history";
|
|
|
|
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
export default function(props) {
|
|
|
|
return (
|
|
|
|
<div id="app" class={theme.bluelib}>
|
2020-07-01 15:16:36 +00:00
|
|
|
<BasicContainer>
|
|
|
|
<Router history={createHashHistory()}>
|
|
|
|
<Home path={"/"}/>
|
|
|
|
</Router>
|
|
|
|
</BasicContainer>
|
2020-06-29 15:23:57 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|