From 2d050bc737e368597c67fd2153b7377de4b5ced4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 23 May 2020 23:32:09 +0200 Subject: [PATCH] Move old components in a different folder --- src/components/{ => old}/code.js | 0 src/components/{ => old}/copyright.css | 0 src/components/{ => old}/copyright.js | 0 src/components/{ => old}/error.js | 0 src/components/{ => old}/error.less | 2 +- src/components/{ => old}/example.css | 0 src/components/{ => old}/example.js | 0 src/components/{ => old}/hypothesis.css | 0 src/components/{ => old}/hypothesis.js | 0 src/components/{ => old}/markdown.css | 0 src/components/{ => old}/markdown.js | 0 src/components/{ => old}/minus.css | 0 src/components/{ => old}/minus.js | 0 src/components/{ => old}/panel.css | 0 src/components/{ => old}/panel.js | 0 src/components/{ => old}/plus.css | 0 src/components/{ => old}/plus.js | 0 src/components/{ => old}/proof.css | 0 src/components/{ => old}/proof.js | 0 src/components/{ => old}/split.css | 0 src/components/{ => old}/split.js | 0 src/components/{ => old}/theorem.css | 0 src/components/{ => old}/theorem.js | 0 src/components/{ => old}/thesis.css | 0 src/components/{ => old}/thesis.js | 0 src/components/{ => old}/timer.js | 0 src/components/{ => old}/timer.less | 2 +- src/components/{ => old}/todo.css | 0 src/components/{ => old}/todo.js | 0 src/index.js | 45 +++++++++---------- src/routes/apprendimentoSistemiArtificiali.js | 10 ++--- src/routes/basiDiDati.js | 10 ++--- src/routes/calcoloNumerico.js | 10 ++--- src/routes/fisica.js | 10 ++--- src/routes/home.js | 6 +-- src/routes/mingwinstall.js | 2 +- src/routes/ottimizzazioneLineare.js | 14 +++--- src/routes/statistica.js | 20 ++++----- src/routes/vldigeometria.js | 4 +- 39 files changed, 66 insertions(+), 69 deletions(-) rename src/components/{ => old}/code.js (100%) rename src/components/{ => old}/copyright.css (100%) rename src/components/{ => old}/copyright.js (100%) rename src/components/{ => old}/error.js (100%) rename src/components/{ => old}/error.less (73%) rename src/components/{ => old}/example.css (100%) rename src/components/{ => old}/example.js (100%) rename src/components/{ => old}/hypothesis.css (100%) rename src/components/{ => old}/hypothesis.js (100%) rename src/components/{ => old}/markdown.css (100%) rename src/components/{ => old}/markdown.js (100%) rename src/components/{ => old}/minus.css (100%) rename src/components/{ => old}/minus.js (100%) rename src/components/{ => old}/panel.css (100%) rename src/components/{ => old}/panel.js (100%) rename src/components/{ => old}/plus.css (100%) rename src/components/{ => old}/plus.js (100%) rename src/components/{ => old}/proof.css (100%) rename src/components/{ => old}/proof.js (100%) rename src/components/{ => old}/split.css (100%) rename src/components/{ => old}/split.js (100%) rename src/components/{ => old}/theorem.css (100%) rename src/components/{ => old}/theorem.js (100%) rename src/components/{ => old}/thesis.css (100%) rename src/components/{ => old}/thesis.js (100%) rename src/components/{ => old}/timer.js (100%) rename src/components/{ => old}/timer.less (95%) rename src/components/{ => old}/todo.css (100%) rename src/components/{ => old}/todo.js (100%) diff --git a/src/components/code.js b/src/components/old/code.js similarity index 100% rename from src/components/code.js rename to src/components/old/code.js diff --git a/src/components/copyright.css b/src/components/old/copyright.css similarity index 100% rename from src/components/copyright.css rename to src/components/old/copyright.css diff --git a/src/components/copyright.js b/src/components/old/copyright.js similarity index 100% rename from src/components/copyright.js rename to src/components/old/copyright.js diff --git a/src/components/error.js b/src/components/old/error.js similarity index 100% rename from src/components/error.js rename to src/components/old/error.js diff --git a/src/components/error.less b/src/components/old/error.less similarity index 73% rename from src/components/error.less rename to src/components/old/error.less index 84b4878..2f5c853 100644 --- a/src/components/error.less +++ b/src/components/old/error.less @@ -1,4 +1,4 @@ -@import "../styles/constants.less"; +@import "../../styles/constants.less"; .errorcolor { padding: 4px; diff --git a/src/components/example.css b/src/components/old/example.css similarity index 100% rename from src/components/example.css rename to src/components/old/example.css diff --git a/src/components/example.js b/src/components/old/example.js similarity index 100% rename from src/components/example.js rename to src/components/old/example.js diff --git a/src/components/hypothesis.css b/src/components/old/hypothesis.css similarity index 100% rename from src/components/hypothesis.css rename to src/components/old/hypothesis.css diff --git a/src/components/hypothesis.js b/src/components/old/hypothesis.js similarity index 100% rename from src/components/hypothesis.js rename to src/components/old/hypothesis.js diff --git a/src/components/markdown.css b/src/components/old/markdown.css similarity index 100% rename from src/components/markdown.css rename to src/components/old/markdown.css diff --git a/src/components/markdown.js b/src/components/old/markdown.js similarity index 100% rename from src/components/markdown.js rename to src/components/old/markdown.js diff --git a/src/components/minus.css b/src/components/old/minus.css similarity index 100% rename from src/components/minus.css rename to src/components/old/minus.css diff --git a/src/components/minus.js b/src/components/old/minus.js similarity index 100% rename from src/components/minus.js rename to src/components/old/minus.js diff --git a/src/components/panel.css b/src/components/old/panel.css similarity index 100% rename from src/components/panel.css rename to src/components/old/panel.css diff --git a/src/components/panel.js b/src/components/old/panel.js similarity index 100% rename from src/components/panel.js rename to src/components/old/panel.js diff --git a/src/components/plus.css b/src/components/old/plus.css similarity index 100% rename from src/components/plus.css rename to src/components/old/plus.css diff --git a/src/components/plus.js b/src/components/old/plus.js similarity index 100% rename from src/components/plus.js rename to src/components/old/plus.js diff --git a/src/components/proof.css b/src/components/old/proof.css similarity index 100% rename from src/components/proof.css rename to src/components/old/proof.css diff --git a/src/components/proof.js b/src/components/old/proof.js similarity index 100% rename from src/components/proof.js rename to src/components/old/proof.js diff --git a/src/components/split.css b/src/components/old/split.css similarity index 100% rename from src/components/split.css rename to src/components/old/split.css diff --git a/src/components/split.js b/src/components/old/split.js similarity index 100% rename from src/components/split.js rename to src/components/old/split.js diff --git a/src/components/theorem.css b/src/components/old/theorem.css similarity index 100% rename from src/components/theorem.css rename to src/components/old/theorem.css diff --git a/src/components/theorem.js b/src/components/old/theorem.js similarity index 100% rename from src/components/theorem.js rename to src/components/old/theorem.js diff --git a/src/components/thesis.css b/src/components/old/thesis.css similarity index 100% rename from src/components/thesis.css rename to src/components/old/thesis.css diff --git a/src/components/thesis.js b/src/components/old/thesis.js similarity index 100% rename from src/components/thesis.js rename to src/components/old/thesis.js diff --git a/src/components/timer.js b/src/components/old/timer.js similarity index 100% rename from src/components/timer.js rename to src/components/old/timer.js diff --git a/src/components/timer.less b/src/components/old/timer.less similarity index 95% rename from src/components/timer.less rename to src/components/old/timer.less index 329865b..9422b13 100644 --- a/src/components/timer.less +++ b/src/components/old/timer.less @@ -1,4 +1,4 @@ -@import "../styles/constants"; +@import "../../styles/constants"; .timer { display: grid; diff --git a/src/components/todo.css b/src/components/old/todo.css similarity index 100% rename from src/components/todo.css rename to src/components/old/todo.css diff --git a/src/components/todo.js b/src/components/old/todo.js similarity index 100% rename from src/components/todo.js rename to src/components/old/todo.js diff --git a/src/index.js b/src/index.js index 467126e..9087149 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ import "preact/debug"; -import { Component } from 'preact'; // noinspection ES6UnusedImports import _style from './index.less'; @@ -16,7 +15,7 @@ import Home from './routes/home'; import Fisica from './routes/fisica'; import VlDiGeometria from './routes/vldigeometria'; import MingwInstall from './routes/mingwinstall'; -import Copyright from './components/copyright'; +import Copyright from './components/old/copyright'; import Statistica from './routes/statistica'; import OttimizzazioneLineare from "./routes/ottimizzazioneLineare"; import BasiDiDati from './routes/basiDiDati'; @@ -25,26 +24,24 @@ import ApprendimentoSistemiArtificiali from "./routes/apprendimentoSistemiArtifi import LatexRenderColor from "./contexts/LatexRenderColor"; // noinspection JSUnusedGlobalSymbols -export default class App extends Component { - render() { - return ( -
- -

Appuntiweb di Steffo

- - - - - - - - - - - - -
-
- ); - } +export default function(props) { + return ( +
+ +

Appuntiweb di Steffo

+ + + + + + + + + + + + +
+
+ ); } diff --git a/src/routes/apprendimentoSistemiArtificiali.js b/src/routes/apprendimentoSistemiArtificiali.js index da27e8f..e3c525e 100644 --- a/src/routes/apprendimentoSistemiArtificiali.js +++ b/src/routes/apprendimentoSistemiArtificiali.js @@ -1,10 +1,10 @@ import {Component} from 'preact' -import Split from "../components/split"; +import Split from "../components/old/split"; import Latex from "../components/latex"; -import Panel from "../components/panel"; -import Example from "../components/example"; -import Todo from "../components/todo"; -import Code from "../components/code"; +import Panel from "../components/old/panel"; +import Example from "../components/old/example"; +import Todo from "../components/old/todo"; +import Code from "../components/old/code"; const r = String.raw; diff --git a/src/routes/basiDiDati.js b/src/routes/basiDiDati.js index 94e886a..2dc1bc4 100644 --- a/src/routes/basiDiDati.js +++ b/src/routes/basiDiDati.js @@ -1,10 +1,10 @@ import {Component} from 'preact' -import Split from "../components/split"; +import Split from "../components/old/split"; import Latex from "../components/latex"; -import Panel from "../components/panel"; -import Example from "../components/example"; -import Todo from "../components/todo"; -import Timer from "../components/timer"; +import Panel from "../components/old/panel"; +import Example from "../components/old/example"; +import Todo from "../components/old/todo"; +import Timer from "../components/old/timer"; const r = String.raw; diff --git a/src/routes/calcoloNumerico.js b/src/routes/calcoloNumerico.js index 9f109b0..ac80370 100644 --- a/src/routes/calcoloNumerico.js +++ b/src/routes/calcoloNumerico.js @@ -1,10 +1,10 @@ import {Component} from 'preact' -import Split from "../components/split"; +import Split from "../components/old/split"; import Latex from "../components/latex"; -import Panel from "../components/panel"; -import Example from "../components/example"; -import Todo from "../components/todo"; -import Timer from "../components/timer"; +import Panel from "../components/old/panel"; +import Example from "../components/old/example"; +import Todo from "../components/old/todo"; +import Timer from "../components/old/timer"; const r = String.raw; diff --git a/src/routes/fisica.js b/src/routes/fisica.js index 810cf29..ac2386e 100644 --- a/src/routes/fisica.js +++ b/src/routes/fisica.js @@ -1,10 +1,10 @@ import { Component } from 'preact'; import Latex from '../components/latex'; -import Panel from '../components/panel'; -import Split from '../components/split'; -import Plus from '../components/plus'; -import Minus from '../components/minus'; -import Todo from '../components/todo'; +import Panel from '../components/old/panel'; +import Split from '../components/old/split'; +import Plus from '../components/old/plus'; +import Minus from '../components/old/minus'; +import Todo from '../components/old/todo'; const r = String.raw; diff --git a/src/routes/home.js b/src/routes/home.js index e892c22..473ed55 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -1,7 +1,7 @@ import { Component } from 'preact'; -import Panel from '../components/panel'; -import Split from '../components/split'; -import Todo from "../components/todo"; +import Panel from '../components/old/panel'; +import Split from '../components/old/split'; +import Todo from "../components/old/todo"; export default class Home extends Component { render() { diff --git a/src/routes/mingwinstall.js b/src/routes/mingwinstall.js index c58d052..9a8dbe2 100644 --- a/src/routes/mingwinstall.js +++ b/src/routes/mingwinstall.js @@ -1,5 +1,5 @@ import { Component } from 'preact'; -import Panel from '../components/panel'; +import Panel from '../components/old/panel'; export default class MingwInstall extends Component { render() { diff --git a/src/routes/ottimizzazioneLineare.js b/src/routes/ottimizzazioneLineare.js index 2077552..9e61248 100644 --- a/src/routes/ottimizzazioneLineare.js +++ b/src/routes/ottimizzazioneLineare.js @@ -1,12 +1,12 @@ import {Component} from 'preact' -import Split from "../components/split"; +import Split from "../components/old/split"; import Latex from "../components/latex"; -import Panel from "../components/panel"; -import Example from "../components/example"; -import Todo from "../components/todo"; -import Minus from "../components/minus"; -import Plus from "../components/plus"; -import Code from "../components/code"; +import Panel from "../components/old/panel"; +import Example from "../components/old/example"; +import Todo from "../components/old/todo"; +import Minus from "../components/old/minus"; +import Plus from "../components/old/plus"; +import Code from "../components/old/code"; const r = String.raw; diff --git a/src/routes/statistica.js b/src/routes/statistica.js index 3cc1997..e28dee8 100644 --- a/src/routes/statistica.js +++ b/src/routes/statistica.js @@ -1,15 +1,15 @@ import { Component } from 'preact'; import Latex from '../components/latex'; -import Panel from '../components/panel'; -import Split from '../components/split'; -import Todo from '../components/todo'; -import Theorem from "../components/theorem"; -import Hypothesis from "../components/hypothesis"; -import Thesis from "../components/thesis"; -import Proof from "../components/proof"; -import Example from "../components/example"; -import Plus from "../components/plus"; -import Minus from "../components/minus"; +import Panel from '../components/old/panel'; +import Split from '../components/old/split'; +import Todo from '../components/old/todo'; +import Theorem from "../components/old/theorem"; +import Hypothesis from "../components/old/hypothesis"; +import Thesis from "../components/old/thesis"; +import Proof from "../components/old/proof"; +import Example from "../components/old/example"; +import Plus from "../components/old/plus"; +import Minus from "../components/old/minus"; const r = String.raw; diff --git a/src/routes/vldigeometria.js b/src/routes/vldigeometria.js index 234a8eb..0f4c5b1 100644 --- a/src/routes/vldigeometria.js +++ b/src/routes/vldigeometria.js @@ -1,6 +1,6 @@ import { Component } from 'preact'; -import Markdown from '../components/markdown'; -import Panel from '../components/panel'; +import Markdown from '../components/old/markdown'; +import Panel from '../components/old/panel'; const r = String.raw;