1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-25 01:14:21 +00:00

Make all pages static

This commit is contained in:
Steffo 2022-06-28 19:13:40 +02:00
parent 2ef50e651c
commit 6873a4a07c
Signed by: steffo
GPG key ID: 6965406171929D01
30 changed files with 253 additions and 28 deletions

View file

@ -1,10 +1,17 @@
import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, ListOrdered } from '@steffo/bluelib-react' 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 { Link } from "../components/link"
import { ThemeSwitcher } from '../components/theme-switcher' import { ThemeSwitcher } from '../components/theme-switcher'
import { Warn420 } from '../components/warn' import { Warn420 } from '../components/warn'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Home: NextPage = () => { const Home: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,8 +1,16 @@
import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, ListOrdered, ListUnordered, Panel} from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
import { MaterialLi } from "../../../components/materialLi" import { MaterialLi } from "../../../components/materialLi"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -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 { 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" import { MaterialLi } from "../../../components/materialLi"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,8 +1,15 @@
import { Heading, Chapter, Box, Idiomatic as I, Code, Anchor as A, ListOrdered, ListUnordered, Panel} from '@steffo/bluelib-react' 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' import { MaterialLi } from '../../../components/materialLi'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -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 { 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 { Link } from '../../../components/link'
import { MaterialLi } from '../../../components/materialLi' import { MaterialLi } from '../../../components/materialLi'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -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 { 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" import { Link } from "../../../components/compat-old"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,5 +1,5 @@
import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, Code } from '@steffo/bluelib-react' 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 { Link } from '../../../components/compat-old'
import Image from "next/image" 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" import imgF6lBCqS from "../../../public/images/year1/programmazione1/F6lBCqS.png"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,5 +1,12 @@
import { Heading, Chapter, Box, Idiomatic as I, Emphasis } from '@steffo/bluelib-react' 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 = () => { const Page: NextPage = () => {

View file

@ -1,10 +1,17 @@
import { ListUnordered } from "@steffo/bluelib-react" import { ListUnordered } from "@steffo/bluelib-react"
import { Heading, Chapter, Box, Panel, Idiomatic as I } 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 { Link } from "../../../components/link"
import { Warn1024 } from "../../../components/warn" import { Warn1024 } from "../../../components/warn"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,7 +1,14 @@
import { Heading } from "@steffo/bluelib-react" 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 { Split, Box, r, ILatex, BLatex, PLatex, P, Anchor, I, B, Help, Example, LI } from "../../../components/compat-old"
import { Link } from "../../../components/link" 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) => <Help text={"Un quanto di tempo del sistema."}>{props.children ?? "tick"}</Help> const Tick = (props: any) => <Help text={"Un quanto di tempo del sistema."}>{props.children ?? "tick"}</Help>

View file

@ -1,9 +1,16 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from "@steffo/bluelib-react"; 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 { Link } from "../../../components/link";
import { Warn1024 } from "../../../components/warn"; import { Warn1024 } from "../../../components/warn";
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,7 +1,14 @@
import { Heading } from "@steffo/bluelib-react" 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 { 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 { 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) => <Help text={"Un quanto di tempo del sistema."}>{props.children ?? "tick"}</Help> const Tick = (props) => <Help text={"Un quanto di tempo del sistema."}>{props.children ?? "tick"}</Help>

View file

@ -1,9 +1,16 @@
import { Heading, Chapter, Box, Panel, Idiomatic as I, ListUnordered } from "@steffo/bluelib-react"; 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 { Link } from "../../../components/link";
import { Warn1024 } from "../../../components/warn"; import { Warn1024 } from "../../../components/warn";
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,8 +1,16 @@
import { Heading } from '@steffo/bluelib-react' 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 { Section, Panel, BLatex, r, ILatex, PLatex, Example } from '../../../components/compat-old'
import { Link } from '../../../components/link' import { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,9 +1,17 @@
import { ListUnordered } from "@steffo/bluelib-react" import { ListUnordered } from "@steffo/bluelib-react"
import {Heading, Chapter, Box, Panel, Idiomatic as I} 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 { Link } from "../../../components/link"
import { Warn1024 } from "../../../components/warn" import { Warn1024 } from "../../../components/warn"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
export default function Fisica() { export default function Fisica() {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,8 +1,16 @@
import { Heading } from '@steffo/bluelib-react' 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 { Split, P, LatexMath, r, Plus, Minus, Anchor, Box, Todo, B } from '../../../components/compat-old'
import { Link } from '../../../components/link' import { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,5 +1,13 @@
import { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, Panel } from '@steffo/bluelib-react' 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 = () => { const Page: NextPage = () => {
return <> return <>

View file

@ -1,9 +1,16 @@
import { Heading, Chapter, Box, Panel, Idiomatic as I, ListUnordered, Emphasis } from '@steffo/bluelib-react' import { Heading, Chapter, Box, Panel, Idiomatic as I, ListUnordered, Emphasis } from '@steffo/bluelib-react'
import { Link } from '../../../components/link' import { Link } from '../../../components/link'
import type { NextPage } from 'next' import type { NextPage, NextPageContext } from 'next'
import { Warn1024 } from '../../../components/warn' import { Warn1024 } from '../../../components/warn'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,9 +1,16 @@
import { Heading } from '@steffo/bluelib-react' import { Heading } from '@steffo/bluelib-react'
import type { NextPage } from 'next' import type { NextPage, NextPageContext } from 'next'
import { Link } from '../../../components/link' 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" 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) => ( const Min = ({ children = undefined, ...props }: any) => (
<Color builtin={"cyan"}> <Color builtin={"cyan"}>
<Help text={"In problemi in cui il primale è di minimizzazione."}>{props.children ? props.children : "min"}</Help> <Help text={"In problemi in cui il primale è di minimizzazione."}>{props.children ? props.children : "min"}</Help>

View file

@ -1,7 +1,15 @@
import Bluelib, { Heading, Chapter, Box, Idiomatic as I, Anchor as A, ListUnordered, Panel } from '@steffo/bluelib-react' 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' import { MaterialLi } from '../../../components/materialLi'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,8 +1,16 @@
import {Heading, Chapter, Panel, Idiomatic as I, Box, ListUnordered} from "@steffo/bluelib-react" import {Heading, Chapter, Panel, Idiomatic as I, Box, ListUnordered} from "@steffo/bluelib-react"
import { NextPageContext } from "next"
import { Link } from "../../../components/link" import { Link } from "../../../components/link"
import { Warn1024 } from "../../../components/warn" import { Warn1024 } from "../../../components/warn"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
export default function Statistica() { export default function Statistica() {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,9 +1,16 @@
import * as Bluelib from '@steffo/bluelib-react' import * as Bluelib from '@steffo/bluelib-react'
import type { NextPage } from 'next' import type { NextPage, NextPageContext } from 'next'
import { Link } from '../../../components/link' import { Link } from '../../../components/link'
import { Section, Box, r, Latex, Example, Plus, Minus, P, B, I } from "../../../components/compat-old" 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 = () => { const Page: NextPage = () => {
return <> return <>
<Bluelib.Heading level={2}> <Bluelib.Heading level={2}>

View file

@ -1,5 +1,13 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 = () => { const Page: NextPage = () => {
return <> return <>

View file

@ -1,8 +1,16 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
import { Warn1024 } from '../../../components/warn' import { Warn1024 } from '../../../components/warn'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,11 +1,18 @@
import { Heading, Strikethrough, UAnnotation as U } from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
import { Box, Split, r, Help, Color, Code, I, Todo, B, LI, Anchor, P, Aside, LatexMath } from "../../../components/compat-old" 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 tokenStyle from "./tokenStyle.module.css"
import Image from "next/image" import Image from "next/image"
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Token = ({ children = undefined, indexTerm = undefined, stopword = undefined }: any) => { const Token = ({ children = undefined, indexTerm = undefined, stopword = undefined }: any) => {
if(indexTerm) { if(indexTerm) {
return ( return (

View file

@ -1,7 +1,15 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,7 +1,15 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered, Abbreviation } from '@steffo/bluelib-react' 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' import { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,7 +1,15 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>

View file

@ -1,5 +1,13 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 = () => { const Page: NextPage = () => {
return <> return <>

View file

@ -1,7 +1,15 @@
import { Heading, Chapter, Box, Idiomatic as I, Panel, ListUnordered } from '@steffo/bluelib-react' 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 { Link } from '../../../components/link'
export async function getStaticProps(_context: NextPageContext) {
return {
props: {}
}
}
const Page: NextPage = () => { const Page: NextPage = () => {
return <> return <>
<Heading level={2}> <Heading level={2}>