From 62acbba6b6ba115c11f156c554d622ca2fce0095 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 May 2020 18:07:00 +0200 Subject: [PATCH] Migrate routes to the new style --- src/index.js | 19 +- src/routes/ApprendimentoSistemiArtificiali.js | 215 +++++++++++++++++ src/routes/{basiDiDati.js => BasiDiDati.js} | 14 +- ...{calcoloNumerico.js => CalcoloNumerico.js} | 11 +- src/routes/{fisica.js => Fisica.js} | 12 +- src/routes/Home.js | 106 +++++++++ .../{mingwinstall.js => MingwInstall.js} | 0 src/routes/OttimizzazioneLineare.js | 3 + src/routes/{statistica.js => Statistica.js} | 13 +- .../{vldigeometria.js => VlDiGeometria.js} | 25 +- src/routes/apprendimentoSistemiArtificiali.js | 218 ------------------ src/routes/home.js | 108 --------- 12 files changed, 368 insertions(+), 376 deletions(-) create mode 100644 src/routes/ApprendimentoSistemiArtificiali.js rename src/routes/{basiDiDati.js => BasiDiDati.js} (84%) rename src/routes/{calcoloNumerico.js => CalcoloNumerico.js} (98%) rename src/routes/{fisica.js => Fisica.js} (99%) create mode 100644 src/routes/Home.js rename src/routes/{mingwinstall.js => MingwInstall.js} (100%) rename src/routes/{statistica.js => Statistica.js} (99%) rename src/routes/{vldigeometria.js => VlDiGeometria.js} (89%) delete mode 100644 src/routes/apprendimentoSistemiArtificiali.js delete mode 100644 src/routes/home.js diff --git a/src/index.js b/src/index.js index 7742977..8906cc4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,4 @@ +// Import debugging tools let Sentry = null; if(process.env.NODE_ENV === "development") { console.debug("Initializing Preact Debugger...") @@ -32,16 +33,16 @@ import _nojekyll from './meta/.nojekyll'; import Router from 'preact-router'; import {createHashHistory} from "history"; -import Home from './routes/home'; -import Fisica from './routes/fisica'; -import VlDiGeometria from './routes/vldigeometria'; -import MingwInstall from './routes/mingwinstall'; +import Home from './routes/Home'; +import Fisica from './routes/Fisica'; +import VlDiGeometria from './routes/VlDiGeometria'; +import MingwInstall from './routes/MingwInstall'; import Footer from './components/Parts/Footer'; -import Statistica from './routes/statistica'; +import Statistica from './routes/Statistica'; import OttimizzazioneLineare from "./routes/OttimizzazioneLineare"; -import BasiDiDati from './routes/basiDiDati'; -import CalcoloNumerico from './routes/calcoloNumerico'; -import ApprendimentoSistemiArtificiali from "./routes/apprendimentoSistemiArtificiali"; +import BasiDiDati from './routes/BasiDiDati'; +import CalcoloNumerico from './routes/CalcoloNumerico'; +import ApprendimentoSistemiArtificiali from "./routes/ApprendimentoSistemiArtificiali"; import LatexRenderColor from "./contexts/LatexRenderColor"; // noinspection JSUnusedGlobalSymbols @@ -59,7 +60,7 @@ export default function(props) { - +