2020-05-27 16:31:11 +00:00
|
|
|
let Sentry = null;
|
2020-05-27 16:47:53 +00:00
|
|
|
if(process.env.NODE_ENV === "development") {
|
2020-05-27 16:31:11 +00:00
|
|
|
console.debug("Initializing Preact Debugger...")
|
|
|
|
require("preact/debug");
|
|
|
|
}
|
2020-05-28 14:15:54 +00:00
|
|
|
//else if(process.env.NODE_ENV === "production") {
|
2020-05-27 16:31:11 +00:00
|
|
|
console.debug("Initializing Sentry...")
|
|
|
|
Sentry = require("@sentry/browser");
|
2020-05-28 14:02:00 +00:00
|
|
|
let SentryIntegrations = require("@sentry/integrations")
|
2020-05-28 00:26:20 +00:00
|
|
|
// noinspection JSUnresolvedVariable
|
|
|
|
Sentry.init({
|
|
|
|
dsn: "https://9f5089346fd14e04a6f412638474dfec@o40131.ingest.sentry.io/5255500",
|
2020-05-28 13:19:33 +00:00
|
|
|
release: process.env.RELEASE,
|
2020-05-28 14:02:00 +00:00
|
|
|
environment: "production",
|
2020-05-28 14:32:33 +00:00
|
|
|
beforeSend(event, hint) {
|
|
|
|
if (event.exception) {
|
|
|
|
Sentry.showReportDialog({ eventId: event.event_id });
|
|
|
|
}
|
|
|
|
return event;
|
|
|
|
}
|
2020-05-28 00:26:20 +00:00
|
|
|
});
|
2020-05-28 14:15:54 +00:00
|
|
|
//}
|
2020-03-01 21:18:41 +00:00
|
|
|
|
2020-03-01 20:25:46 +00:00
|
|
|
// noinspection ES6UnusedImports
|
2020-03-11 11:37:34 +00:00
|
|
|
import _style from './index.less';
|
2020-03-01 20:25:46 +00:00
|
|
|
// noinspection ES6UnusedImports
|
|
|
|
import _manifest from './meta/manifest.json';
|
|
|
|
// noinspection ES6UnusedImports
|
|
|
|
import _cname from './meta/CNAME';
|
|
|
|
// noinspection ES6UnusedImports
|
|
|
|
import _nojekyll from './meta/.nojekyll';
|
2020-03-01 21:18:41 +00:00
|
|
|
|
|
|
|
import Router from 'preact-router';
|
2020-03-01 20:25:46 +00:00
|
|
|
import {createHashHistory} from "history";
|
2020-03-01 21:18:41 +00:00
|
|
|
import Home from './routes/home';
|
|
|
|
import Fisica from './routes/fisica';
|
|
|
|
import VlDiGeometria from './routes/vldigeometria';
|
|
|
|
import MingwInstall from './routes/mingwinstall';
|
2020-05-27 16:31:11 +00:00
|
|
|
import Footer from './components/Parts/Footer';
|
2020-03-01 21:18:41 +00:00
|
|
|
import Statistica from './routes/statistica';
|
2020-05-27 13:15:02 +00:00
|
|
|
import OttimizzazioneLineare from "./routes/OttimizzazioneLineare";
|
2020-03-11 16:15:17 +00:00
|
|
|
import BasiDiDati from './routes/basiDiDati';
|
|
|
|
import CalcoloNumerico from './routes/calcoloNumerico';
|
2020-03-11 18:12:30 +00:00
|
|
|
import ApprendimentoSistemiArtificiali from "./routes/apprendimentoSistemiArtificiali";
|
2020-05-23 21:23:45 +00:00
|
|
|
import LatexRenderColor from "./contexts/LatexRenderColor";
|
2019-11-07 10:22:09 +00:00
|
|
|
|
2019-12-09 15:29:44 +00:00
|
|
|
// noinspection JSUnusedGlobalSymbols
|
2020-05-23 21:32:09 +00:00
|
|
|
export default function(props) {
|
2020-05-28 01:10:41 +00:00
|
|
|
throw new Error("Sentry Test")
|
|
|
|
|
2020-05-23 21:32:09 +00:00
|
|
|
return (
|
|
|
|
<div id="app">
|
|
|
|
<LatexRenderColor.Provider value={"White"}>
|
|
|
|
<h1><a href="/">Appuntiweb</a> <small>di <a href="https://steffo.eu/">Steffo</a></small></h1>
|
|
|
|
<Router history={createHashHistory()}>
|
|
|
|
<Home path="/"/>
|
|
|
|
<Fisica path="/fisica"/>
|
|
|
|
<VlDiGeometria path="/vldigeometria"/>
|
|
|
|
<MingwInstall path="/mingwinstall"/>
|
|
|
|
<Statistica path="/statistica"/>
|
|
|
|
<OttimizzazioneLineare path="/ottimizzazionelineare"/>
|
|
|
|
<BasiDiDati path="/basididati"/>
|
|
|
|
<CalcoloNumerico path="/calcolonumerico"/>
|
|
|
|
<ApprendimentoSistemiArtificiali path={"/apprendimentosistemiartificiali"}/>
|
|
|
|
</Router>
|
2020-05-27 16:31:11 +00:00
|
|
|
<Footer/>
|
2020-05-23 21:32:09 +00:00
|
|
|
</LatexRenderColor.Provider>
|
|
|
|
</div>
|
|
|
|
);
|
2019-11-07 10:22:09 +00:00
|
|
|
}
|