diff --git a/pages/index.tsx b/pages/index.tsx index 2e0e15d..ed16546 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,10 +1,17 @@ import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, ListOrdered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from "../components/link" import { ThemeSwitcher } from '../components/theme-switcher' import { Warn420 } from '../components/warn' +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Home: NextPage = () => { return <> diff --git a/pages/year1/algebra/index.tsx b/pages/year1/algebra/index.tsx index 9a400e2..4f5b8ac 100644 --- a/pages/year1/algebra/index.tsx +++ b/pages/year1/algebra/index.tsx @@ -1,8 +1,16 @@ import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, ListOrdered, ListUnordered, Panel} from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { MaterialLi } from "../../../components/materialLi" + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/algoritmi/index.tsx b/pages/year1/algoritmi/index.tsx index 589c9f6..d04867e 100644 --- a/pages/year1/algoritmi/index.tsx +++ b/pages/year1/algoritmi/index.tsx @@ -1,8 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, Panel, BringAttention as B, ListOrdered, ListUnordered } from "@steffo/bluelib-react" -import type { NextPage } from "next" +import type { NextPage, NextPageContext } from "next" import { MaterialLi } from "../../../components/materialLi" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/analisi/index.tsx b/pages/year1/analisi/index.tsx index a4f097c..a7ced95 100644 --- a/pages/year1/analisi/index.tsx +++ b/pages/year1/analisi/index.tsx @@ -1,8 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, ListOrdered, ListUnordered, Panel} from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { MaterialLi } from '../../../components/materialLi' +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/architettura/index.tsx b/pages/year1/architettura/index.tsx index ebc099b..a627c45 100644 --- a/pages/year1/architettura/index.tsx +++ b/pages/year1/architettura/index.tsx @@ -1,9 +1,16 @@ import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, BringAttention as B, ListOrdered, Panel, Code, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { MaterialLi } from '../../../components/materialLi' +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/programmazione1/index.tsx b/pages/year1/programmazione1/index.tsx index 3bcc887..5b8ca36 100644 --- a/pages/year1/programmazione1/index.tsx +++ b/pages/year1/programmazione1/index.tsx @@ -1,7 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, Dialog, BringAttention as B, ListOrdered, ListUnordered, Panel } from "@steffo/bluelib-react" -import type { NextPage } from "next" +import type { NextPage, NextPageContext } from "next" import { Link } from "../../../components/compat-old" + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/programmazione1/mingw.tsx b/pages/year1/programmazione1/mingw.tsx index 854b353..9357549 100644 --- a/pages/year1/programmazione1/mingw.tsx +++ b/pages/year1/programmazione1/mingw.tsx @@ -1,5 +1,5 @@ import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, Code } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/compat-old' import Image from "next/image" @@ -16,6 +16,13 @@ import imgklZQ9So from "../../../public/images/year1/programmazione1/klZQ9So.png import imgF6lBCqS from "../../../public/images/year1/programmazione1/F6lBCqS.png" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year1/programmazione2/index.tsx b/pages/year1/programmazione2/index.tsx index 71958e4..afc38be 100644 --- a/pages/year1/programmazione2/index.tsx +++ b/pages/year1/programmazione2/index.tsx @@ -1,5 +1,12 @@ import { Heading, Chapter, Box, Idiomatic as I, Emphasis } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} const Page: NextPage = () => { diff --git a/pages/year2/apprendimento/index.tsx b/pages/year2/apprendimento/index.tsx index 34d8959..48a301e 100644 --- a/pages/year2/apprendimento/index.tsx +++ b/pages/year2/apprendimento/index.tsx @@ -1,10 +1,17 @@ import { ListUnordered } from "@steffo/bluelib-react" import { Heading, Chapter, Box, Panel, Idiomatic as I } from "@steffo/bluelib-react" -import { NextPage } from "next" +import { NextPage, NextPageContext } from "next" import { Link } from "../../../components/link" import { Warn1024 } from "../../../components/warn" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/apprendimento/teoria.tsx b/pages/year2/apprendimento/teoria.tsx index 75657b3..28d0720 100644 --- a/pages/year2/apprendimento/teoria.tsx +++ b/pages/year2/apprendimento/teoria.tsx @@ -1,7 +1,14 @@ import { Heading } from "@steffo/bluelib-react" import { Split, Box, r, ILatex, BLatex, PLatex, P, Anchor, I, B, Help, Example, LI } from "../../../components/compat-old" import { Link } from "../../../components/link" -import { NextPage } from "next" +import { NextPage, NextPageContext } from "next" + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} const Tick = (props: any) => {props.children ?? "tick"} diff --git a/pages/year2/calcolo/index.tsx b/pages/year2/calcolo/index.tsx index b90062e..2a794f7 100644 --- a/pages/year2/calcolo/index.tsx +++ b/pages/year2/calcolo/index.tsx @@ -1,9 +1,16 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from "@steffo/bluelib-react"; -import { NextPage } from "next"; +import { NextPage, NextPageContext } from "next"; import { Link } from "../../../components/link"; import { Warn1024 } from "../../../components/warn"; +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/calcolo/teoria.tsx b/pages/year2/calcolo/teoria.tsx index 9f06602..c7f0e45 100644 --- a/pages/year2/calcolo/teoria.tsx +++ b/pages/year2/calcolo/teoria.tsx @@ -1,7 +1,14 @@ import { Heading } from "@steffo/bluelib-react" import { Section, Panel, r, ILatex, BLatex, PLatex, P, Anchor, I, B, Help, Example, Link } from "../../../components/compat-old" import { Link as NewLink } from "../../../components/link" -import { NextPage } from "next" +import { NextPage, NextPageContext } from "next" + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} const Tick = (props) => {props.children ?? "tick"} diff --git a/pages/year2/database/index.tsx b/pages/year2/database/index.tsx index 343f246..57274c0 100644 --- a/pages/year2/database/index.tsx +++ b/pages/year2/database/index.tsx @@ -1,9 +1,16 @@ import { Heading, Chapter, Box, Panel, Idiomatic as I, ListUnordered } from "@steffo/bluelib-react"; -import { NextPage } from "next"; +import { NextPage, NextPageContext } from "next"; import { Link } from "../../../components/link"; import { Warn1024 } from "../../../components/warn"; +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/database/teoria.tsx b/pages/year2/database/teoria.tsx index 8e4c483..22e57ea 100644 --- a/pages/year2/database/teoria.tsx +++ b/pages/year2/database/teoria.tsx @@ -1,8 +1,16 @@ import { Heading } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Section, Panel, BLatex, r, ILatex, PLatex, Example } from '../../../components/compat-old' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/fisica/index.tsx b/pages/year2/fisica/index.tsx index 8ccb403..7e3399f 100644 --- a/pages/year2/fisica/index.tsx +++ b/pages/year2/fisica/index.tsx @@ -1,9 +1,17 @@ import { ListUnordered } from "@steffo/bluelib-react" import {Heading, Chapter, Box, Panel, Idiomatic as I} from "@steffo/bluelib-react" +import { NextPageContext } from "next" import { Link } from "../../../components/link" import { Warn1024 } from "../../../components/warn" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + export default function Fisica() { return <> diff --git a/pages/year2/fisica/teoria.tsx b/pages/year2/fisica/teoria.tsx index a1e0001..f2ac5c6 100644 --- a/pages/year2/fisica/teoria.tsx +++ b/pages/year2/fisica/teoria.tsx @@ -1,8 +1,16 @@ import { Heading } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Split, P, LatexMath, r, Plus, Minus, Anchor, Box, Todo, B } from '../../../components/compat-old' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/oggetti/index.tsx b/pages/year2/oggetti/index.tsx index cc91d42..35b1b06 100644 --- a/pages/year2/oggetti/index.tsx +++ b/pages/year2/oggetti/index.tsx @@ -1,5 +1,13 @@ import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, Panel } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + const Page: NextPage = () => { return <> diff --git a/pages/year2/ottimizzazione/index.tsx b/pages/year2/ottimizzazione/index.tsx index 8b71107..8384ca4 100644 --- a/pages/year2/ottimizzazione/index.tsx +++ b/pages/year2/ottimizzazione/index.tsx @@ -1,9 +1,16 @@ import { Heading, Chapter, Box, Panel, Idiomatic as I, ListUnordered, Emphasis } from '@steffo/bluelib-react' import { Link } from '../../../components/link' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Warn1024 } from '../../../components/warn' +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/ottimizzazione/teoria.tsx b/pages/year2/ottimizzazione/teoria.tsx index 2cd3197..bab3c70 100644 --- a/pages/year2/ottimizzazione/teoria.tsx +++ b/pages/year2/ottimizzazione/teoria.tsx @@ -1,9 +1,16 @@ import { Heading } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { Section, Box, Split, Panel, r, ILatex, BLatex, PLatex, Latex, Help, Example, Color, TablePanel, Code, Plus, Minus, Todo, Image } from "../../../components/compat-old" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Min = ({ children = undefined, ...props }: any) => ( {props.children ? props.children : "min"} diff --git a/pages/year2/sistemioperativi/index.tsx b/pages/year2/sistemioperativi/index.tsx index a53c4be..e286057 100644 --- a/pages/year2/sistemioperativi/index.tsx +++ b/pages/year2/sistemioperativi/index.tsx @@ -1,7 +1,15 @@ import Bluelib, { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, Panel } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { MaterialLi } from '../../../components/materialLi' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year2/statistica/index.tsx b/pages/year2/statistica/index.tsx index 351c30f..f724e81 100644 --- a/pages/year2/statistica/index.tsx +++ b/pages/year2/statistica/index.tsx @@ -1,8 +1,16 @@ import {Heading, Chapter, Panel, Idiomatic as I, Box, ListUnordered} from "@steffo/bluelib-react" +import { NextPageContext } from "next" import { Link } from "../../../components/link" import { Warn1024 } from "../../../components/warn" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + export default function Statistica() { return <> diff --git a/pages/year2/statistica/teoria.tsx b/pages/year2/statistica/teoria.tsx index 6f03baf..76a769d 100644 --- a/pages/year2/statistica/teoria.tsx +++ b/pages/year2/statistica/teoria.tsx @@ -1,9 +1,16 @@ import * as Bluelib from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { Section, Box, r, Latex, Example, Plus, Minus, P, B, I } from "../../../components/compat-old" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year3/diritto/index.tsx b/pages/year3/diritto/index.tsx index 3cb5046..8549a76 100644 --- a/pages/year3/diritto/index.tsx +++ b/pages/year3/diritto/index.tsx @@ -1,5 +1,13 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + const Page: NextPage = () => { return <> diff --git a/pages/year3/gestione/index.tsx b/pages/year3/gestione/index.tsx index d0c27e9..5a6bc63 100644 --- a/pages/year3/gestione/index.tsx +++ b/pages/year3/gestione/index.tsx @@ -1,8 +1,16 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { Warn1024 } from '../../../components/warn' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year3/gestione/teoria.tsx b/pages/year3/gestione/teoria.tsx index d69fc5d..42e046c 100644 --- a/pages/year3/gestione/teoria.tsx +++ b/pages/year3/gestione/teoria.tsx @@ -1,11 +1,18 @@ import { Heading, Strikethrough, UAnnotation as U } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' import { Box, Split, r, Help, Color, Code, I, Todo, B, LI, Anchor, P, Aside, LatexMath } from "../../../components/compat-old" import tokenStyle from "./tokenStyle.module.css" import Image from "next/image" +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Token = ({ children = undefined, indexTerm = undefined, stopword = undefined }: any) => { if(indexTerm) { return ( diff --git a/pages/year3/linguaggi/index.tsx b/pages/year3/linguaggi/index.tsx index e48b58c..c84f9cd 100644 --- a/pages/year3/linguaggi/index.tsx +++ b/pages/year3/linguaggi/index.tsx @@ -1,7 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year3/paradigmi/index.tsx b/pages/year3/paradigmi/index.tsx index cd330dc..bd12c24 100644 --- a/pages/year3/paradigmi/index.tsx +++ b/pages/year3/paradigmi/index.tsx @@ -1,7 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered, Abbreviation } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year3/progetto/index.tsx b/pages/year3/progetto/index.tsx index 754bf69..a068e51 100644 --- a/pages/year3/progetto/index.tsx +++ b/pages/year3/progetto/index.tsx @@ -1,7 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <> diff --git a/pages/year3/protocolli/index.tsx b/pages/year3/protocolli/index.tsx index a64872c..4e94aef 100644 --- a/pages/year3/protocolli/index.tsx +++ b/pages/year3/protocolli/index.tsx @@ -1,5 +1,13 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' + + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + const Page: NextPage = () => { return <> diff --git a/pages/year3/tecweb/index.tsx b/pages/year3/tecweb/index.tsx index 8c2b020..a6e8efb 100644 --- a/pages/year3/tecweb/index.tsx +++ b/pages/year3/tecweb/index.tsx @@ -1,7 +1,15 @@ import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' -import type { NextPage } from 'next' +import type { NextPage, NextPageContext } from 'next' import { Link } from '../../../components/link' + +export async function getStaticProps(_context: NextPageContext) { + return { + props: {} + } +} + + const Page: NextPage = () => { return <>