mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-23 00:14:21 +00:00
0.3.6
This commit is contained in:
parent
021b7c00fa
commit
c4b8c683fa
53 changed files with 181 additions and 152 deletions
6
docs/bundle.fe00b.js → docs/bundle.08358.js
generated
6
docs/bundle.fe00b.js → docs/bundle.08358.js
generated
File diff suppressed because one or more lines are too long
1
docs/bundle.08358.js.map
generated
Normal file
1
docs/bundle.08358.js.map
generated
Normal file
File diff suppressed because one or more lines are too long
1
docs/bundle.9489d.esm.js.LICENSE.txt
generated
1
docs/bundle.9489d.esm.js.LICENSE.txt
generated
|
@ -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
1
docs/bundle.d97c4.esm.js.LICENSE.txt
generated
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/*! For license information please see bundle.d97c4.esm.js.LICENSE.txt */
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.9489d.esm.js","sourceRoot":""}
|
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.d97c4.esm.js","sourceRoot":""}
|
1
docs/bundle.fe00b.js.map
generated
1
docs/bundle.fe00b.js.map
generated
File diff suppressed because one or more lines are too long
2
docs/index.html
generated
2
docs/index.html
generated
|
@ -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>
|
2
docs/push-manifest.json
generated
2
docs/push-manifest.json
generated
|
@ -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
2
docs/route-BasiDiDati.chunk.ee01a.js.map
generated
2
docs/route-BasiDiDati.chunk.ee01a.js.map
generated
File diff suppressed because one or more lines are too long
2
docs/route-CalcoloNumerico.chunk.3644c.js
generated
Normal file
2
docs/route-CalcoloNumerico.chunk.3644c.js
generated
Normal file
File diff suppressed because one or more lines are too long
1
docs/route-CalcoloNumerico.chunk.3644c.js.map
generated
Normal file
1
docs/route-CalcoloNumerico.chunk.3644c.js.map
generated
Normal file
File diff suppressed because one or more lines are too long
2
docs/route-CalcoloNumerico.chunk.52fc3.js
generated
2
docs/route-CalcoloNumerico.chunk.52fc3.js
generated
File diff suppressed because one or more lines are too long
1
docs/route-CalcoloNumerico.chunk.52fc3.js.map
generated
1
docs/route-CalcoloNumerico.chunk.52fc3.js.map
generated
File diff suppressed because one or more lines are too long
2
docs/route-CalcoloNumerico.chunk.ca5bf.esm.js
generated
2
docs/route-CalcoloNumerico.chunk.ca5bf.esm.js
generated
File diff suppressed because one or more lines are too long
2
docs/route-CalcoloNumerico.chunk.fee61.esm.js
generated
Normal file
2
docs/route-CalcoloNumerico.chunk.fee61.esm.js
generated
Normal file
File diff suppressed because one or more lines are too long
|
@ -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
2
docs/route-Fisica.chunk.52a73.esm.js
generated
Normal file
File diff suppressed because one or more lines are too long
|
@ -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":""}
|
2
docs/route-Fisica.chunk.613f1.js
generated
2
docs/route-Fisica.chunk.613f1.js
generated
File diff suppressed because one or more lines are too long
1
docs/route-Fisica.chunk.613f1.js.map
generated
1
docs/route-Fisica.chunk.613f1.js.map
generated
File diff suppressed because one or more lines are too long
2
docs/route-Fisica.chunk.df5ab.esm.js
generated
2
docs/route-Fisica.chunk.df5ab.esm.js
generated
File diff suppressed because one or more lines are too long
2
docs/route-Fisica.chunk.e9b30.js
generated
Normal file
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
1
docs/route-Fisica.chunk.e9b30.js.map
generated
Normal file
File diff suppressed because one or more lines are too long
2
docs/route-Home.chunk.771c5.js.map
generated
2
docs/route-Home.chunk.771c5.js.map
generated
File diff suppressed because one or more lines are too long
2
docs/route-MingwInstall.chunk.1fcbd.js.map
generated
2
docs/route-MingwInstall.chunk.1fcbd.js.map
generated
File diff suppressed because one or more lines are too long
36
docs/route-OttimizzazioneLineare.chunk.3ebd7.esm.js
generated
36
docs/route-OttimizzazioneLineare.chunk.3ebd7.esm.js
generated
File diff suppressed because one or more lines are too long
36
docs/route-OttimizzazioneLineare.chunk.5d955.esm.js
generated
Normal file
36
docs/route-OttimizzazioneLineare.chunk.5d955.esm.js
generated
Normal file
File diff suppressed because one or more lines are too long
|
@ -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":""}
|
2
docs/route-OttimizzazioneLineare.chunk.b3b17.js
generated
Normal file
2
docs/route-OttimizzazioneLineare.chunk.b3b17.js
generated
Normal file
File diff suppressed because one or more lines are too long
1
docs/route-OttimizzazioneLineare.chunk.b3b17.js.map
generated
Normal file
1
docs/route-OttimizzazioneLineare.chunk.b3b17.js.map
generated
Normal file
File diff suppressed because one or more lines are too long
2
docs/route-OttimizzazioneLineare.chunk.f238b.js
generated
2
docs/route-OttimizzazioneLineare.chunk.f238b.js
generated
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
40
docs/route-Statistica.chunk.04c26.esm.js
generated
Normal file
File diff suppressed because one or more lines are too long
|
@ -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
2
docs/route-Statistica.chunk.94f25.js
generated
Normal file
File diff suppressed because one or more lines are too long
1
docs/route-Statistica.chunk.94f25.js.map
generated
Normal file
1
docs/route-Statistica.chunk.94f25.js.map
generated
Normal file
File diff suppressed because one or more lines are too long
2
docs/route-Statistica.chunk.af2a2.js
generated
2
docs/route-Statistica.chunk.af2a2.js
generated
File diff suppressed because one or more lines are too long
1
docs/route-Statistica.chunk.af2a2.js.map
generated
1
docs/route-Statistica.chunk.af2a2.js.map
generated
File diff suppressed because one or more lines are too long
40
docs/route-Statistica.chunk.cf7f8.esm.js
generated
40
docs/route-Statistica.chunk.cf7f8.esm.js
generated
File diff suppressed because one or more lines are too long
2
docs/sw-esm.js
generated
2
docs/sw-esm.js
generated
File diff suppressed because one or more lines are too long
2
docs/sw.js
generated
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
|
@ -1,7 +1,7 @@
|
||||||
import Latex from "./Latex";
|
import Latex, {LatexDisplay} from "./Latex";
|
||||||
|
|
||||||
export default function (props) {
|
export default function (props) {
|
||||||
return (
|
return (
|
||||||
<Latex inline={false}>{props.children}</Latex>
|
<Latex inline={false} display={LatexDisplay.BLOCK}>{props.children}</Latex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import Latex from "./Latex";
|
import Latex, {LatexDisplay} from "./Latex";
|
||||||
|
|
||||||
export default function (props) {
|
export default function (props) {
|
||||||
return (
|
return (
|
||||||
<Latex inline={true}>{props.children}</Latex>
|
<Latex inline={true} display={LatexDisplay.INLINE}>{props.children}</Latex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,38 +2,58 @@ import style from './Latex.less';
|
||||||
import {useContext} from "preact/hooks";
|
import {useContext} from "preact/hooks";
|
||||||
import LatexRenderColor from "../../contexts/LatexRenderColor";
|
import LatexRenderColor from "../../contexts/LatexRenderColor";
|
||||||
import LatexDefaultInline from "../../contexts/LatexDefaultInline";
|
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) {
|
export default function(props) {
|
||||||
// black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow
|
// black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow
|
||||||
let renderColor = useContext(LatexRenderColor);
|
let renderColor = useContext(LatexRenderColor);
|
||||||
let defaultInline = useContext(LatexDefaultInline);
|
let defaultInline = useContext(LatexDefaultInline);
|
||||||
|
let defaultDisplay = useContext(LatexDefaultDisplay);
|
||||||
|
|
||||||
let is_inline;
|
let inline;
|
||||||
if(props.inline === undefined) {
|
if(props.inline === undefined) {
|
||||||
is_inline = defaultInline;
|
inline = defaultInline;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
is_inline = props.inline;
|
inline = props.inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_inline) {
|
let display;
|
||||||
let equation = `\\inline {\\color{${renderColor}} ${props.children} }`;
|
if(props.display === undefined) {
|
||||||
return (
|
if(defaultDisplay === null) {
|
||||||
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
|
display = LatexDisplay.INLINE;
|
||||||
alt={props.children}
|
}
|
||||||
title={props.children}
|
else {
|
||||||
class={style.latex + " " + style.inline}
|
display = defaultDisplay;
|
||||||
/>
|
}
|
||||||
);
|
}
|
||||||
}
|
else {
|
||||||
else {
|
display = props.display;
|
||||||
let equation = `{\\color{${renderColor}} ${props.children} }`;
|
}
|
||||||
return (
|
|
||||||
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
|
if(inline) {
|
||||||
alt={props.children}
|
let equation = `\\inline {\\color{${renderColor}} ${props.children} }`;
|
||||||
title={props.children}
|
return (
|
||||||
class={style.latex + " " + style.block}
|
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
|
||||||
/>
|
alt={props.children}
|
||||||
);
|
title={props.children}
|
||||||
}
|
class={style.latex + " " + display}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let equation = `{\\color{${renderColor}} ${props.children} }`;
|
||||||
|
return (
|
||||||
|
<img src={`https://latex.codecogs.com/svg.latex?${equation}`}
|
||||||
|
alt={props.children}
|
||||||
|
title={props.children}
|
||||||
|
class={style.latex + " " + display}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
3
src/contexts/LatexDefaultDisplay.js
Normal file
3
src/contexts/LatexDefaultDisplay.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import {createContext} from "preact";
|
||||||
|
|
||||||
|
export default createContext(null);
|
|
@ -1,17 +1,19 @@
|
||||||
import { Component } from 'preact';
|
import { Component } from 'preact';
|
||||||
import Latex from '../components/Rendering/Latex';
|
import Latex, {LatexDisplay} from '../components/Rendering/Latex';
|
||||||
import Panel from '../components/Elements/Panel';
|
import Panel from '../components/Elements/Panel';
|
||||||
import Section from "../components/Elements/Section";
|
import Section from "../components/Elements/Section";
|
||||||
import Plus from '../components/PageSpecific/Fisica/Plus';
|
import Plus from '../components/PageSpecific/Fisica/Plus';
|
||||||
import Minus from '../components/PageSpecific/Fisica/Minus';
|
import Minus from '../components/PageSpecific/Fisica/Minus';
|
||||||
import Todo from "../components/Elements/Todo";
|
import Todo from "../components/Elements/Todo";
|
||||||
import LatexDefaultInline from "../contexts/LatexDefaultInline";
|
import LatexDefaultInline from "../contexts/LatexDefaultInline";
|
||||||
|
import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay";
|
||||||
|
|
||||||
const r = String.raw;
|
const r = String.raw;
|
||||||
|
|
||||||
export default function(props) {
|
export default function(props) {
|
||||||
return (
|
return (
|
||||||
<LatexDefaultInline.Provider value={false}>
|
<LatexDefaultInline.Provider value={false}>
|
||||||
|
<LatexDefaultDisplay.Provider value={LatexDisplay.INLINE}>
|
||||||
<div>
|
<div>
|
||||||
<h1>Fisica</h1>
|
<h1>Fisica</h1>
|
||||||
<Section title="Vettori">
|
<Section title="Vettori">
|
||||||
|
@ -1188,6 +1190,7 @@ export default function(props) {
|
||||||
</Panel>
|
</Panel>
|
||||||
</Section>
|
</Section>
|
||||||
</div>
|
</div>
|
||||||
|
</LatexDefaultDisplay.Provider>
|
||||||
</LatexDefaultInline.Provider>
|
</LatexDefaultInline.Provider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
import Latex from '../components/Rendering/Latex';
|
import Latex, {LatexDisplay} from '../components/Rendering/Latex';
|
||||||
import Panel from '../components/Elements/Panel';
|
import Panel from '../components/Elements/Panel';
|
||||||
import Section from "../components/Elements/Section";
|
import Section from "../components/Elements/Section";
|
||||||
import Example from "../components/Elements/Example";
|
import Example from "../components/Elements/Example";
|
||||||
import Plus from "../components/PageSpecific/Fisica/Plus";
|
import Plus from "../components/PageSpecific/Fisica/Plus";
|
||||||
import Minus from "../components/PageSpecific/Fisica/Minus";
|
import Minus from "../components/PageSpecific/Fisica/Minus";
|
||||||
import LatexDefaultInline from "../contexts/LatexDefaultInline";
|
import LatexDefaultInline from "../contexts/LatexDefaultInline";
|
||||||
|
import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay";
|
||||||
|
|
||||||
const r = String.raw;
|
const r = String.raw;
|
||||||
|
|
||||||
export default function(props) {
|
export default function(props) {
|
||||||
return (
|
return (
|
||||||
<LatexDefaultInline.Provider value={false}>
|
<LatexDefaultInline.Provider value={false}>
|
||||||
|
<LatexDefaultDisplay.Provider value={LatexDisplay.INLINE}>
|
||||||
<div>
|
<div>
|
||||||
<h1>Statistica ed Elementi di Probabilità</h1>
|
<h1>Statistica ed Elementi di Probabilità</h1>
|
||||||
<Section title={"Tipi di probabilità"}>
|
<Section title={"Tipi di probabilità"}>
|
||||||
|
@ -1993,6 +1995,7 @@ export default function(props) {
|
||||||
</Panel>
|
</Panel>
|
||||||
</Section>
|
</Section>
|
||||||
</div>
|
</div>
|
||||||
|
</LatexDefaultDisplay.Provider>
|
||||||
</LatexDefaultInline.Provider>
|
</LatexDefaultInline.Provider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue