From 48d3f6ca4f43a65b03f2114d73d05fee913ce7f5 Mon Sep 17 00:00:00 2001
From: Steven Petryk
Date: Thu, 18 Jan 2024 10:07:03 -0800
Subject: [PATCH] wip
---
.../custom-components/contexts/page.tsx | 2 --
.../custom-components/overview/page.tsx | 2 --
docs/app/guides/display/circles/page.tsx | 2 --
docs/app/guides/display/coordinates/page.tsx | 21 +++++++++----------
docs/app/guides/display/debug/page.tsx | 3 ---
docs/app/guides/display/ellipses/page.tsx | 2 --
docs/app/guides/display/lines/page.tsx | 3 ---
docs/app/guides/display/plots/page.tsx | 3 ---
docs/app/guides/display/points/page.tsx | 3 ---
docs/app/guides/display/polygons/page.tsx | 3 ---
docs/app/guides/display/text/page.tsx | 3 ---
docs/app/guides/display/transform/page.tsx | 3 ---
docs/app/guides/display/vectors/page.tsx | 3 ---
.../guides/examples/bezier-curves/page.tsx | 5 ++---
.../guides/examples/fancy-parabola/page.tsx | 2 --
.../examples/projectile-motion/page.tsx | 2 --
.../app/guides/examples/riemann-sums/page.tsx | 2 --
.../guides/experimental/animation/page.tsx | 2 --
docs/app/guides/experimental/latex/page.tsx | 3 ---
docs/app/guides/head.tsx | 17 ---------------
.../interaction/movable-points/page.tsx | 3 ---
docs/app/guides/layout.tsx | 8 -------
docs/components/PropTable.tsx | 9 +++-----
.../guide-examples/PlainMafsExample.tsx | 2 +-
.../guide-examples/custom/pizza-march.tsx | 2 +-
.../guide-examples/custom/pizza-slice.tsx | 2 +-
.../guide-examples/custom/point-cloud.tsx | 2 +-
.../debug/PaneVisualizerExample.tsx | 2 +-
.../CartesianCoordinatesConfigExample.tsx | 2 +-
.../CartesianCoordinatesExample.tsx | 2 +-
.../coordinates/PolarCoordinatesExample.tsx | 2 +-
.../display/viewbox/ZoomExample.tsx | 2 +-
src/index.tsx | 2 ++
33 files changed, 26 insertions(+), 100 deletions(-)
delete mode 100644 docs/app/guides/head.tsx
diff --git a/docs/app/guides/custom-components/contexts/page.tsx b/docs/app/guides/custom-components/contexts/page.tsx
index fb20422a..f78b0613 100644
--- a/docs/app/guides/custom-components/contexts/page.tsx
+++ b/docs/app/guides/custom-components/contexts/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import PizzaSlice from "guide-examples/custom/pizza-slice"
import PizzaSliceSource from "!raw-loader!guide-examples/custom/pizza-slice"
diff --git a/docs/app/guides/custom-components/overview/page.tsx b/docs/app/guides/custom-components/overview/page.tsx
index 2011af36..c2e16545 100644
--- a/docs/app/guides/custom-components/overview/page.tsx
+++ b/docs/app/guides/custom-components/overview/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import PizzaMarch from "guide-examples/custom/pizza-march"
export default function CustomPage() {
diff --git a/docs/app/guides/display/circles/page.tsx b/docs/app/guides/display/circles/page.tsx
index a803a40c..a60d2d58 100644
--- a/docs/app/guides/display/circles/page.tsx
+++ b/docs/app/guides/display/circles/page.tsx
@@ -1,11 +1,9 @@
-"use client"
import CodeAndExample from "components/CodeAndExample"
import MovableCircle from "guide-examples/MovableCircle"
import MovableCircleSource from "!raw-loader!guide-examples/MovableCircle"
import { PropTable } from "components/PropTable"
-import { Circle } from "mafs"
export default function Page() {
return (
diff --git a/docs/app/guides/display/coordinates/page.tsx b/docs/app/guides/display/coordinates/page.tsx
index d2de5092..6158c6fe 100644
--- a/docs/app/guides/display/coordinates/page.tsx
+++ b/docs/app/guides/display/coordinates/page.tsx
@@ -1,9 +1,8 @@
-"use client"
-
-import { Coordinates } from "mafs"
import { PropTable } from "components/PropTable"
import CodeAndExample from "components/CodeAndExample"
+import { Coordinates } from "mafs"
+
import CartesianCoordinatesExample from "guide-examples/display/coordinates/CartesianCoordinatesExample"
import CartesianCoordinatesExampleSource from "!raw-loader!guide-examples/display/coordinates/CartesianCoordinatesExample"
@@ -27,12 +26,12 @@ function CoordinatesPage() {
Cartesian coordinates
- }
source={CartesianCoordinatesExampleSource}
- />
+ /> */}
-
+
Axis options
@@ -67,19 +66,19 @@ function CoordinatesPage() {
labels
to render in terms of π.
- }
source={CartesianCoordinatesConfigExampleSource}
- />
+ /> */}
Polar coordinates
- }
source={PolarCoordinatesExampleSource}
- />
+ /> */}
-
+ {/* */}
Axis options
diff --git a/docs/app/guides/display/debug/page.tsx b/docs/app/guides/display/debug/page.tsx
index 97cda68b..5eb3a08d 100644
--- a/docs/app/guides/display/debug/page.tsx
+++ b/docs/app/guides/display/debug/page.tsx
@@ -1,8 +1,5 @@
-"use client"
-
import Code from "components/Code"
import { PropTable } from "components/PropTable"
-import { Debug } from "mafs"
import Link from "next/link"
import CodeAndExample from "components/CodeAndExample"
diff --git a/docs/app/guides/display/ellipses/page.tsx b/docs/app/guides/display/ellipses/page.tsx
index dbb67125..81e4baa2 100644
--- a/docs/app/guides/display/ellipses/page.tsx
+++ b/docs/app/guides/display/ellipses/page.tsx
@@ -1,4 +1,3 @@
-"use client"
import CodeAndExample from "components/CodeAndExample"
import MovableEllipse from "guide-examples/MovableEllipse"
@@ -6,7 +5,6 @@ import MovableEllipseSource from "!raw-loader!guide-examples/MovableEllipse"
import WIP from "components/WIP"
import Link from "next/link"
-import { Ellipse } from "mafs"
import { PropTable } from "components/PropTable"
export default function Page() {
diff --git a/docs/app/guides/display/lines/page.tsx b/docs/app/guides/display/lines/page.tsx
index 66457926..a884e2d7 100644
--- a/docs/app/guides/display/lines/page.tsx
+++ b/docs/app/guides/display/lines/page.tsx
@@ -1,8 +1,5 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import { PropTable } from "components/PropTable"
-import { Line } from "mafs"
import LineSegmentExample from "guide-examples/LineSegmentExample"
import LineSegmentExampleSource from "!raw-loader!guide-examples/LineSegmentExample"
diff --git a/docs/app/guides/display/plots/page.tsx b/docs/app/guides/display/plots/page.tsx
index 61f18ab1..f912d6d1 100644
--- a/docs/app/guides/display/plots/page.tsx
+++ b/docs/app/guides/display/plots/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import OfXAndY from "guide-examples/plots/of-x-and-y"
@@ -15,7 +13,6 @@ import SineStressTest from "guide-examples/plots/sine-stress-test"
import SineStressTestSource from "!raw-loader!guide-examples/plots/sine-stress-test.tsx"
import { PropTable } from "components/PropTable"
-import { Plot } from "mafs"
import InequalitiesExample from "guide-examples/plots/inequalities"
import InequalitiesExampleSource from "!raw-loader!guide-examples/plots/inequalities.tsx"
diff --git a/docs/app/guides/display/points/page.tsx b/docs/app/guides/display/points/page.tsx
index 73d27371..08c18a60 100644
--- a/docs/app/guides/display/points/page.tsx
+++ b/docs/app/guides/display/points/page.tsx
@@ -1,12 +1,9 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import SimplePoint from "guide-examples/display/SimplePoint"
import SimplePointSource from "!raw-loader!guide-examples/display/SimplePoint"
import { PropTable } from "components/PropTable"
-import { Point } from "mafs"
function Points() {
return (
diff --git a/docs/app/guides/display/polygons/page.tsx b/docs/app/guides/display/polygons/page.tsx
index 6681e9d9..867b4790 100644
--- a/docs/app/guides/display/polygons/page.tsx
+++ b/docs/app/guides/display/polygons/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import PolygonExample from "guide-examples/PolygonExample"
@@ -7,7 +5,6 @@ import PolygonExampleSource from "!raw-loader!guide-examples/PolygonExample"
import PolylineExample from "guide-examples/PolylineExample"
import PolylineExampleSource from "!raw-loader!guide-examples/PolylineExample"
import { PropTable } from "components/PropTable"
-import { Polygon, Polyline } from "mafs"
function Polygons() {
return (
diff --git a/docs/app/guides/display/text/page.tsx b/docs/app/guides/display/text/page.tsx
index 02f3153f..5661e199 100644
--- a/docs/app/guides/display/text/page.tsx
+++ b/docs/app/guides/display/text/page.tsx
@@ -1,6 +1,3 @@
-"use client"
-
-import { Text as T } from "mafs"
import CodeAndExample from "components/CodeAndExample"
import TextExample from "guide-examples/TextExample"
diff --git a/docs/app/guides/display/transform/page.tsx b/docs/app/guides/display/transform/page.tsx
index d1a3bb9d..2cf48195 100644
--- a/docs/app/guides/display/transform/page.tsx
+++ b/docs/app/guides/display/transform/page.tsx
@@ -1,11 +1,8 @@
-"use client"
-
import SimpleTransformExample from "guide-examples/utility/SimpleTransform"
import SimpleTransformExampleSource from "!raw-loader!guide-examples/utility/SimpleTransform"
import CodeAndExample from "components/CodeAndExample"
import Code from "components/Code"
import { PropTable } from "components/PropTable"
-import { Transform } from "mafs"
export default function Page() {
return (
diff --git a/docs/app/guides/display/vectors/page.tsx b/docs/app/guides/display/vectors/page.tsx
index 277be933..6d73541a 100644
--- a/docs/app/guides/display/vectors/page.tsx
+++ b/docs/app/guides/display/vectors/page.tsx
@@ -1,6 +1,3 @@
-"use client"
-
-import { Vector } from "mafs"
import { PropTable } from "components/PropTable"
import CodeAndExample from "components/CodeAndExample"
diff --git a/docs/app/guides/examples/bezier-curves/page.tsx b/docs/app/guides/examples/bezier-curves/page.tsx
index 81ea6b18..d24c4206 100644
--- a/docs/app/guides/examples/bezier-curves/page.tsx
+++ b/docs/app/guides/examples/bezier-curves/page.tsx
@@ -1,15 +1,14 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import BezierCurves from "guide-examples/examples/BezierCurves"
import BezierCurvesSource from "!raw-loader!guide-examples/examples/BezierCurves.tsx"
+import Link from "next/link"
export default function BezierCurvesPage() {
return (
<>
This example was inspired by Freya Holmér's excellent{" "}
- video on Bézier curves.
+ video on Bézier curves.
} />
diff --git a/docs/app/guides/examples/fancy-parabola/page.tsx b/docs/app/guides/examples/fancy-parabola/page.tsx
index fb50b14a..fa05ff76 100644
--- a/docs/app/guides/examples/fancy-parabola/page.tsx
+++ b/docs/app/guides/examples/fancy-parabola/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import FancyParabola from "guide-examples/examples/FancyParabola"
import FancyParabolaSource from "!raw-loader!guide-examples/examples/FancyParabola.tsx"
diff --git a/docs/app/guides/examples/projectile-motion/page.tsx b/docs/app/guides/examples/projectile-motion/page.tsx
index 26034623..1dedcf65 100644
--- a/docs/app/guides/examples/projectile-motion/page.tsx
+++ b/docs/app/guides/examples/projectile-motion/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import ProjectileMotion from "guide-examples/examples/ProjectileMotion"
import ProjectileMotionSource from "!raw-loader!guide-examples/examples/ProjectileMotion.tsx"
diff --git a/docs/app/guides/examples/riemann-sums/page.tsx b/docs/app/guides/examples/riemann-sums/page.tsx
index bc980cfc..ffff8dd0 100644
--- a/docs/app/guides/examples/riemann-sums/page.tsx
+++ b/docs/app/guides/examples/riemann-sums/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import Riemann from "guide-examples/examples/Riemann"
import RiemannSource from "!raw-loader!guide-examples/examples/Riemann.tsx"
diff --git a/docs/app/guides/experimental/animation/page.tsx b/docs/app/guides/experimental/animation/page.tsx
index c2b017f2..057a88b8 100644
--- a/docs/app/guides/experimental/animation/page.tsx
+++ b/docs/app/guides/experimental/animation/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import WIP from "components/WIP"
import CodeAndExample from "components/CodeAndExample"
diff --git a/docs/app/guides/experimental/latex/page.tsx b/docs/app/guides/experimental/latex/page.tsx
index 15989238..961c9aad 100644
--- a/docs/app/guides/experimental/latex/page.tsx
+++ b/docs/app/guides/experimental/latex/page.tsx
@@ -1,9 +1,6 @@
-"use client"
import CodeAndExample from "components/CodeAndExample"
import { PropTable } from "components/PropTable"
-import { LaTeX } from "mafs"
-
import LatexExample from "components/guide-examples/display/Latex"
import LatexExampleSource from "!raw-loader!components/guide-examples/display/Latex"
diff --git a/docs/app/guides/head.tsx b/docs/app/guides/head.tsx
deleted file mode 100644
index 773ff347..00000000
--- a/docs/app/guides/head.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-"use client"
-
-import { useSelectedLayoutSegments } from "next/navigation"
-import { getDocContext } from "./guides"
-
-export default function Head() {
- const [, sectionTitleKebab, guideTitleKebab] = useSelectedLayoutSegments()
- const { current } = getDocContext(sectionTitleKebab, guideTitleKebab)
-
- return (
- <>
- {`${current.guideTitle} | ${current.sectionTitle} | Mafs: React components for interactive math`}
-
-
- >
- )
-}
diff --git a/docs/app/guides/interaction/movable-points/page.tsx b/docs/app/guides/interaction/movable-points/page.tsx
index 84333253..4ba96b99 100644
--- a/docs/app/guides/interaction/movable-points/page.tsx
+++ b/docs/app/guides/interaction/movable-points/page.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import CodeAndExample from "components/CodeAndExample"
import PointsAlongFunction from "guide-examples/display/PointsAlongFunction"
@@ -11,7 +9,6 @@ import SnapPointSource from "!raw-loader!guide-examples/SnapPoint"
import { Advanced } from "components/Advanced"
import Code from "components/Code"
import Link from "next/link"
-import { MovablePoint } from "mafs"
import { PropTable } from "components/PropTable"
function Stopwatch() {
diff --git a/docs/app/guides/layout.tsx b/docs/app/guides/layout.tsx
index 9f8341ad..e9a6f5a5 100644
--- a/docs/app/guides/layout.tsx
+++ b/docs/app/guides/layout.tsx
@@ -1,10 +1,5 @@
-import Link from "next/link"
-import NextHead from "next/head"
-
import GuidesSidebar from "./sidebar"
-import fancyFx from "../../helpers/fancyFx"
import ScrollTop from "components/ScrollTop"
-import Head from "./head"
import { Title } from "./title"
import { NextPrevButtons } from "./next-prev-buttons"
import type { Metadata } from "next"
@@ -19,9 +14,6 @@ export const metadata: Metadata = {
export default function GuidesLayout({ children }: { children: React.ReactNode }) {
return (
<>
-
-
-