1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-23 00:14:21 +00:00
This commit is contained in:
Steffo 2020-06-08 20:54:32 +02:00
parent 021b7c00fa
commit c4b8c683fa
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
53 changed files with 181 additions and 152 deletions

File diff suppressed because one or more lines are too long

1
docs/bundle.08358.js.map generated Normal file

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
/*! For license information please see bundle.9489d.esm.js.LICENSE.txt */

File diff suppressed because one or more lines are too long

1
docs/bundle.d97c4.esm.js.LICENSE.txt generated Normal file
View file

@ -0,0 +1 @@
/*! For license information please see bundle.d97c4.esm.js.LICENSE.txt */

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.9489d.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.d97c4.esm.js","sourceRoot":""}

File diff suppressed because one or more lines are too long

2
docs/index.html generated
View file

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Appunti Web</title><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="apple-touch-icon" href="./assets/icons/apple-touch-icon.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#a0ccff"><link rel="shortcut icon" href="/favicon.ico"><style>*{box-sizing:border-box}body{background-color:#0d193b;color:#a0ccff;font-family:Arial,sans-serif}</style><link href="/bundle.0c633.css" rel="preload" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/bundle.0c633.css"></noscript></head><body><script type="__PREACT_CLI_DATA__">{"preRenderData":{"url":"/"}}</script><script nomodule="">!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script><script crossorigin="anonymous" src="/bundle.9489d.esm.js" type="module"></script><script nomodule="" src="/polyfills.ff6a1.js"></script><script nomodule="" defer="defer" src="/bundle.fe00b.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Appunti Web</title><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="apple-touch-icon" href="./assets/icons/apple-touch-icon.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#a0ccff"><link rel="shortcut icon" href="/favicon.ico"><style>*{box-sizing:border-box}body{background-color:#0d193b;color:#a0ccff;font-family:Arial,sans-serif}</style><link href="/bundle.0c633.css" rel="preload" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/bundle.0c633.css"></noscript></head><body><script type="__PREACT_CLI_DATA__">{"preRenderData":{"url":"/"}}</script><script nomodule="">!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script><script crossorigin="anonymous" src="/bundle.d97c4.esm.js" type="module"></script><script nomodule="" src="/polyfills.ff6a1.js"></script><script nomodule="" defer="defer" src="/bundle.08358.js"></script></body></html>

View file

@ -1 +1 @@
{"/":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1}},"/AlgoritmiEStruttureDati~route-VlDiGeometria":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}},"/AlgoritmiEStruttureDati":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-AlgoritmiEStruttureDati.chunk.02d3a.esm.js":{"type":"script","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.9febd.css":{"type":"style","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}},"/ApprendimentoSistemiArtificiali":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-ApprendimentoSistemiArtificiali.chunk.e1829.esm.js":{"type":"script","weight":0.9},"route-ApprendimentoSistemiArtificiali.chunk.282b5.css":{"type":"style","weight":0.9}},"/BasiDiDati":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-BasiDiDati.chunk.eacf8.esm.js":{"type":"script","weight":0.9},"route-BasiDiDati.chunk.c9a44.css":{"type":"style","weight":0.9}},"/CalcoloNumerico":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-CalcoloNumerico.chunk.ca5bf.esm.js":{"type":"script","weight":0.9},"route-CalcoloNumerico.chunk.ad5ae.css":{"type":"style","weight":0.9}},"/Fisica":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-Fisica.chunk.df5ab.esm.js":{"type":"script","weight":0.9},"route-Fisica.chunk.40f37.css":{"type":"style","weight":0.9}},"/Home":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-Home.chunk.ff1bd.esm.js":{"type":"script","weight":0.9},"route-Home.chunk.8001a.css":{"type":"style","weight":0.9}},"/MingwInstall":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-MingwInstall.chunk.01820.esm.js":{"type":"script","weight":0.9},"route-MingwInstall.chunk.d169e.css":{"type":"style","weight":0.9}},"/OttimizzazioneLineare":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-OttimizzazioneLineare.chunk.3ebd7.esm.js":{"type":"script","weight":0.9},"route-OttimizzazioneLineare.chunk.722ef.css":{"type":"style","weight":0.9}},"/Statistica":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-Statistica.chunk.cf7f8.esm.js":{"type":"script","weight":0.9},"route-Statistica.chunk.25487.css":{"type":"style","weight":0.9}},"/VlDiGeometria":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.9489d.esm.js":{"type":"script","weight":1},"route-VlDiGeometria.chunk.5dedf.esm.js":{"type":"script","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.9febd.css":{"type":"style","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}}}
{"/":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1}},"/AlgoritmiEStruttureDati~route-VlDiGeometria":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}},"/AlgoritmiEStruttureDati":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-AlgoritmiEStruttureDati.chunk.02d3a.esm.js":{"type":"script","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.9febd.css":{"type":"style","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}},"/ApprendimentoSistemiArtificiali":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-ApprendimentoSistemiArtificiali.chunk.e1829.esm.js":{"type":"script","weight":0.9},"route-ApprendimentoSistemiArtificiali.chunk.282b5.css":{"type":"style","weight":0.9}},"/BasiDiDati":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-BasiDiDati.chunk.eacf8.esm.js":{"type":"script","weight":0.9},"route-BasiDiDati.chunk.c9a44.css":{"type":"style","weight":0.9}},"/CalcoloNumerico":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-CalcoloNumerico.chunk.fee61.esm.js":{"type":"script","weight":0.9},"route-CalcoloNumerico.chunk.ad5ae.css":{"type":"style","weight":0.9}},"/Fisica":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-Fisica.chunk.52a73.esm.js":{"type":"script","weight":0.9},"route-Fisica.chunk.40f37.css":{"type":"style","weight":0.9}},"/Home":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-Home.chunk.ff1bd.esm.js":{"type":"script","weight":0.9},"route-Home.chunk.8001a.css":{"type":"style","weight":0.9}},"/MingwInstall":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-MingwInstall.chunk.01820.esm.js":{"type":"script","weight":0.9},"route-MingwInstall.chunk.d169e.css":{"type":"style","weight":0.9}},"/OttimizzazioneLineare":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-OttimizzazioneLineare.chunk.5d955.esm.js":{"type":"script","weight":0.9},"route-OttimizzazioneLineare.chunk.722ef.css":{"type":"style","weight":0.9}},"/Statistica":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-Statistica.chunk.04c26.esm.js":{"type":"script","weight":0.9},"route-Statistica.chunk.25487.css":{"type":"style","weight":0.9}},"/VlDiGeometria":{"bundle.0c633.css":{"type":"style","weight":1},"bundle.d97c4.esm.js":{"type":"script","weight":1},"route-VlDiGeometria.chunk.5dedf.esm.js":{"type":"script","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.9febd.css":{"type":"style","weight":0.9},"route-AlgoritmiEStruttureDati~route-VlDiGeometria.chunk.eee3f.esm.js":{"type":"script","weight":0.9}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-CalcoloNumerico.chunk.ca5bf.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-CalcoloNumerico.chunk.fee61.esm.js","sourceRoot":""}

2
docs/route-Fisica.chunk.52a73.esm.js generated Normal file

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Fisica.chunk.df5ab.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Fisica.chunk.52a73.esm.js","sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
docs/route-Fisica.chunk.e9b30.js generated Normal file

File diff suppressed because one or more lines are too long

1
docs/route-Fisica.chunk.e9b30.js.map generated Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-OttimizzazioneLineare.chunk.3ebd7.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-OttimizzazioneLineare.chunk.5d955.esm.js","sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

40
docs/route-Statistica.chunk.04c26.esm.js generated Normal file

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Statistica.chunk.cf7f8.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Statistica.chunk.04c26.esm.js","sourceRoot":""}

2
docs/route-Statistica.chunk.94f25.js generated Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
docs/sw-esm.js generated

File diff suppressed because one or more lines are too long

2
docs/sw.js generated

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
import Latex from "./Latex";
import Latex, {LatexDisplay} from "./Latex";
export default function (props) {
return (
<Latex inline={false}>{props.children}</Latex>
<Latex inline={false} display={LatexDisplay.BLOCK}>{props.children}</Latex>
);
}

View file

@ -1,7 +1,7 @@
import Latex from "./Latex";
import Latex, {LatexDisplay} from "./Latex";
export default function (props) {
return (
<Latex inline={true}>{props.children}</Latex>
<Latex inline={true} display={LatexDisplay.INLINE}>{props.children}</Latex>
);
}

View file

@ -2,27 +2,47 @@ import style from './Latex.less';
import {useContext} from "preact/hooks";
import LatexRenderColor from "../../contexts/LatexRenderColor";
import LatexDefaultInline from "../../contexts/LatexDefaultInline";
import LatexDefaultDisplay from "../../contexts/LatexDefaultDisplay";
export const LatexDisplay = Object.freeze({
INLINE: style.inline,
BLOCK: style.block,
})
export default function(props) {
// black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow
let renderColor = useContext(LatexRenderColor);
let defaultInline = useContext(LatexDefaultInline);
let defaultDisplay = useContext(LatexDefaultDisplay);
let is_inline;
let inline;
if(props.inline === undefined) {
is_inline = defaultInline;
inline = defaultInline;
}
else {
is_inline = props.inline;
inline = props.inline;
}
if(is_inline) {
let display;
if(props.display === undefined) {
if(defaultDisplay === null) {
display = LatexDisplay.INLINE;
}
else {
display = defaultDisplay;
}
}
else {
display = props.display;
}
if(inline) {
let equation = `\\inline {\\color{${renderColor}} ${props.children} }`;
return (
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
alt={props.children}
title={props.children}
class={style.latex + " " + style.inline}
class={style.latex + " " + display}
/>
);
}
@ -32,7 +52,7 @@ export default function(props) {
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
alt={props.children}
title={props.children}
class={style.latex + " " + style.block}
class={style.latex + " " + display}
/>
);
}

View file

@ -0,0 +1,3 @@
import {createContext} from "preact";
export default createContext(null);

View file

@ -1,17 +1,19 @@
import { Component } from 'preact';
import Latex from '../components/Rendering/Latex';
import Latex, {LatexDisplay} from '../components/Rendering/Latex';
import Panel from '../components/Elements/Panel';
import Section from "../components/Elements/Section";
import Plus from '../components/PageSpecific/Fisica/Plus';
import Minus from '../components/PageSpecific/Fisica/Minus';
import Todo from "../components/Elements/Todo";
import LatexDefaultInline from "../contexts/LatexDefaultInline";
import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay";
const r = String.raw;
export default function(props) {
return (
<LatexDefaultInline.Provider value={false}>
<LatexDefaultDisplay.Provider value={LatexDisplay.INLINE}>
<div>
<h1>Fisica</h1>
<Section title="Vettori">
@ -1188,6 +1190,7 @@ export default function(props) {
</Panel>
</Section>
</div>
</LatexDefaultDisplay.Provider>
</LatexDefaultInline.Provider>
)
}

View file

@ -1,16 +1,18 @@
import Latex from '../components/Rendering/Latex';
import Latex, {LatexDisplay} from '../components/Rendering/Latex';
import Panel from '../components/Elements/Panel';
import Section from "../components/Elements/Section";
import Example from "../components/Elements/Example";
import Plus from "../components/PageSpecific/Fisica/Plus";
import Minus from "../components/PageSpecific/Fisica/Minus";
import LatexDefaultInline from "../contexts/LatexDefaultInline";
import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay";
const r = String.raw;
export default function(props) {
return (
<LatexDefaultInline.Provider value={false}>
<LatexDefaultDisplay.Provider value={LatexDisplay.INLINE}>
<div>
<h1>Statistica ed Elementi di Probabilità</h1>
<Section title={"Tipi di probabilità"}>
@ -1993,6 +1995,7 @@ export default function(props) {
</Panel>
</Section>
</div>
</LatexDefaultDisplay.Provider>
</LatexDefaultInline.Provider>
)
}