Skip to content

Commit

Permalink
no more @
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Aug 8, 2024
1 parent aeccf54 commit 2c0ff00
Show file tree
Hide file tree
Showing 26 changed files with 100 additions and 100 deletions.
2 changes: 1 addition & 1 deletion component/ChartOrSandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactNode, useRef, useState } from 'react';
import { useDimensions } from '../hook/use-dimensions';
import { Caption } from './UI/Caption';
import { CodeSandbox } from './CodeSandbox';
import { Button } from '@/component/UI/button';
import { Button } from 'component/UI/button';

type ChartOrSandboxProps = {
VizComponent: (props: {
Expand Down
2 changes: 1 addition & 1 deletion component/CodeSandboxButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Each folder in the /src/viz folder is a codesandbox showing the related viz component
// Just pass the folder name to this component and it will embed the codesandbox
import React from 'react';
import { Button } from '@/component/UI/button';
import { Button } from 'component/UI/button';
import { CodeSandbox } from './CodeSandbox';

type CodeSandboxButtonProps = {
Expand Down
4 changes: 2 additions & 2 deletions component/ExerciseAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/component/UI/accordion';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/component/UI/tabs';
} from 'component/UI/accordion';
import { Tabs, TabsContent, TabsList, TabsTrigger } from 'component/UI/tabs';
import { Check, Eye } from 'lucide-react';
import { ReactNode } from 'react';
import { CodeSandbox } from './CodeSandbox';
Expand Down
4 changes: 2 additions & 2 deletions component/TocBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
BreadcrumbLink,
BreadcrumbList,
BreadcrumbSeparator,
} from '@/component/UI/breadcrumb';
} from 'component/UI/breadcrumb';

import {
DropdownMenu,
Expand All @@ -16,7 +16,7 @@ import {
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from './UI/dropdown-menu';
import { Button, buttonVariants } from '@/component/UI/button';
import { Button, buttonVariants } from 'component/UI/button';
import { moduleList } from '@/util/moduleList';
import { Lesson, lessonList } from '@/util/lessonList';
import { Circle } from 'lucide-react';
Expand Down
4 changes: 2 additions & 2 deletions pages/articles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/component/UI/accordion';
} from 'component/UI/accordion';
import { Lesson, lessonList } from '@/util/lessonList';
import { Badge } from '@/component/UI/badge';
import { Badge } from 'component/UI/badge';
import { moduleList } from '@/util/moduleList';

const graphDescription = (
Expand Down
12 changes: 6 additions & 6 deletions pages/course/hover-effect/css-descendant-selector.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Badge } from '@/component/UI/badge';
import GraphGallery from '@/component/GraphGallery';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import { CodeBlock } from 'component/UI/CodeBlock';
import { Badge } from 'component/UI/badge';
import GraphGallery from 'component/GraphGallery';
import { TreemapHoverEffectDemo } from '@/viz/TreemapHoverEffect/TreemapHoverEffectDemo';
import Link from 'next/link';

Expand Down
12 changes: 6 additions & 6 deletions pages/course/hover-effect/css-pseudo-class.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import { ScatterplotHoverHighlightPseudoClassDemo } from '@/viz/ScatterplotHoverHighlightPseudoClass/ScatterplotHoverHighlightPseudoClassDemo';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Badge } from '@/component/UI/badge';
import GraphGallery from '@/component/GraphGallery';
import { CodeBlock } from 'component/UI/CodeBlock';
import { Badge } from 'component/UI/badge';
import GraphGallery from 'component/GraphGallery';

const previousURL = '/course/hover-effect/introduction';
const currentURL = '/course/hover-effect/css-pseudo-class';
Expand Down
12 changes: 6 additions & 6 deletions pages/course/hover-effect/internal-state.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import { CodeBlock } from 'component/UI/CodeBlock';
import { DonutChartHoverDemo } from '@/viz/DonutChartHover/DonutChartHoverDemo';
import { ScatterplotHoverHighlightDimDemo } from '@/viz/ScatterplotHoverHighlightDim/ScatterplotHoverHighlightDimDemo';
import { Badge } from '@/component/UI/badge';
import GraphGallery from '@/component/GraphGallery';
import { Badge } from 'component/UI/badge';
import GraphGallery from 'component/GraphGallery';

const previousURL = '/course/hover-effect/toggle-class-in-js';
const currentURL = '/course/hover-effect/internal-state';
Expand Down
10 changes: 5 additions & 5 deletions pages/course/hover-effect/introduction.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { Sidenote } from '@/component/SideNote';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import { Sidenote } from 'component/SideNote';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import { ScatterplotHoverHighlightDimDemo } from '@/viz/ScatterplotHoverHighlightDim/ScatterplotHoverHighlightDimDemo';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/component/UI/tabs';
import { Tabs, TabsContent, TabsList, TabsTrigger } from 'component/UI/tabs';
import { ScatterplotHoverHighlightPseudoClassDemo } from '@/viz/ScatterplotHoverHighlightPseudoClass/ScatterplotHoverHighlightPseudoClassDemo';
import { TreemapHoverEffectDemo } from '@/viz/TreemapHoverEffect/TreemapHoverEffectDemo';
import { LineChartSyncCursorDemo } from '@/viz/LineChartSyncCursor/LineChartSyncCursorDemo';
Expand Down
14 changes: 7 additions & 7 deletions pages/course/hover-effect/link-two-graphs.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from 'react';
import { Layout } from '@/component/Layout';
import TitleAndDescription from '@/component/TitleAndDescription';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import ChartFamilySection from '@/component/ChartFamilySection';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Layout } from 'component/Layout';
import TitleAndDescription from 'component/TitleAndDescription';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import ChartFamilySection from 'component/ChartFamilySection';
import { CodeBlock } from 'component/UI/CodeBlock';
import { ScatterplotHoverHighlightTwoLayersDemo } from '@/viz/ScatterplotHoverHighlightTwoLayers/ScatterplotHoverHighlightTwoLayersDemo';
import { DonutChartHoverDemo } from '@/viz/DonutChartHover/DonutChartHoverDemo';
import { TreemapHoverEffectDemo } from '@/viz/TreemapHoverEffect/TreemapHoverEffectDemo';
import Link from 'next/link';
import { Badge } from '@/component/UI/badge';
import { Badge } from 'component/UI/badge';
import { ScatterplotHoverHighlightPseudoClassDemo } from '@/viz/ScatterplotHoverHighlightPseudoClass/ScatterplotHoverHighlightPseudoClassDemo';
import { ScatterplotHoverHighlightDimDemo } from '@/viz/ScatterplotHoverHighlightDim/ScatterplotHoverHighlightDimDemo';
import GraphGallery from '@/component/GraphGallery';
import GraphGallery from 'component/GraphGallery';

const graphDescription = (
<>
Expand Down
8 changes: 4 additions & 4 deletions pages/course/hover-effect/toggle-class-in-js.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { ChartOrSandbox } from '@/component/ChartOrSandbox';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { ChartOrSandbox } from 'component/ChartOrSandbox';
import { CodeBlock } from 'component/UI/CodeBlock';
import { DonutChartHoverDemo } from '@/viz/DonutChartHover/DonutChartHoverDemo';

const previousURL = '/course/hover-effect/css-descendant-selector';
Expand Down
4 changes: 2 additions & 2 deletions pages/course/introduction/initial-setup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';

const previousURL = '/course/introduction/introduction-to-d3';
Expand Down
8 changes: 4 additions & 4 deletions pages/course/introduction/introduction-to-d3.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { Sidenote } from '@/component/SideNote';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/component/UI/tabs';
import { Sidenote } from 'component/SideNote';
import { Tabs, TabsContent, TabsList, TabsTrigger } from 'component/UI/tabs';
import { ScatterplotHoverHighlightPseudoClassDemo } from '@/viz/ScatterplotHoverHighlightPseudoClass/ScatterplotHoverHighlightPseudoClassDemo';
import { TreemapHoverEffectDemo } from '@/viz/TreemapHoverEffect/TreemapHoverEffectDemo';
import { LineChartSyncCursorDemo } from '@/viz/LineChartSyncCursor/LineChartSyncCursorDemo';
Expand Down
8 changes: 4 additions & 4 deletions pages/course/introduction/introduction-to-react.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { Sidenote } from '@/component/SideNote';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/component/UI/tabs';
import { Sidenote } from 'component/SideNote';
import { Tabs, TabsContent, TabsList, TabsTrigger } from 'component/UI/tabs';
import { ScatterplotHoverHighlightPseudoClassDemo } from '@/viz/ScatterplotHoverHighlightPseudoClass/ScatterplotHoverHighlightPseudoClassDemo';
import { TreemapHoverEffectDemo } from '@/viz/TreemapHoverEffect/TreemapHoverEffectDemo';
import { LineChartSyncCursorDemo } from '@/viz/LineChartSyncCursor/LineChartSyncCursorDemo';
Expand Down
4 changes: 2 additions & 2 deletions pages/course/introduction/js-dataviz-libraries.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';

const previousURL = '/course/introduction/introduction-to-react';
Expand Down
6 changes: 3 additions & 3 deletions pages/course/responsiveness/code-organization.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { CodeBlock } from 'component/UI/CodeBlock';

const previousURL = '/course/responsiveness/using-the-hook';
const currentURL = '/course/responsiveness/code-organization';
Expand Down
4 changes: 2 additions & 2 deletions pages/course/responsiveness/common-pitfalls.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';

const previousURL = '/course/responsiveness/code-organization';
Expand Down
6 changes: 3 additions & 3 deletions pages/course/responsiveness/introduction.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import React, { useRef } from 'react';
import { data as densityChartData } from '@/data/one-numeric-variable-random';
import { useDimensions } from '@/hook/use-dimensions';
import { DensityChart } from '@/viz/DensityChartBasic/DensityChart';
import Link from 'next/link';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { CodeBlock } from 'component/UI/CodeBlock';

const previousURL = '/course/axis/draw-with-d3';
const currentURL = '/course/responsiveness/introduction';
Expand Down
6 changes: 3 additions & 3 deletions pages/course/responsiveness/use-dimension-hook.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { CodeBlock } from 'component/UI/CodeBlock';

const previousURL = '/course/responsiveness/introduction';
const currentURL = '/course/responsiveness/use-dimension-hook';
Expand Down
8 changes: 4 additions & 4 deletions pages/course/responsiveness/using-the-hook.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { CodeSandbox } from '@/component/CodeSandbox';
import { CodeBlock } from 'component/UI/CodeBlock';
import { CodeSandbox } from 'component/CodeSandbox';

const previousURL = '/course/responsiveness/use-dimension-hook';
const currentURL = '/course/responsiveness/using-the-hook';
Expand Down
14 changes: 7 additions & 7 deletions pages/course/scales/introduction.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import React, { useCallback, useState } from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeSandbox } from '@/component/CodeSandbox';
import { CodeSandbox } from 'component/CodeSandbox';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/UI/select';
import { Sidenote } from '@/component/SideNote';
} from 'component/UI/select';
import { Sidenote } from 'component/SideNote';
import { MoveHorizontal, MoveVertical } from 'lucide-react';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Button } from '@/component/UI/button';
import { CodeBlock } from 'component/UI/CodeBlock';
import { Button } from 'component/UI/button';

const previousURL = '/course/svg/path-element';
const currentURL = '/course/scales/introduction';
Expand Down
8 changes: 4 additions & 4 deletions pages/course/svg/introduction.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeSandbox } from '@/component/CodeSandbox';
import { CodeSandbox } from 'component/CodeSandbox';
import Link from 'next/link';
import { Badge } from '@/component/UI/badge';
import { Badge } from 'component/UI/badge';

const previousURL = '/course/introduction/initial-setup';
const currentURL = '/course/svg/introduction';
Expand Down
10 changes: 5 additions & 5 deletions pages/course/svg/main-svg-elements.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeSandbox } from '@/component/CodeSandbox';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { ExerciseAccordion } from '@/component/ExerciseAccordion';
import { CodeSandbox } from 'component/CodeSandbox';
import { CodeBlock } from 'component/UI/CodeBlock';
import { ExerciseAccordion } from 'component/ExerciseAccordion';
import Link from 'next/link';

const previousURL = '/course/svg/introduction';
Expand Down
12 changes: 6 additions & 6 deletions pages/course/svg/path-element.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import Link from 'next/link';
import { CodeBlock } from '@/component/UI/CodeBlock';
import { Sidenote } from '@/component/SideNote';
import { CodeSandbox } from '@/component/CodeSandbox';
import { ExerciseAccordion } from '@/component/ExerciseAccordion';
import { CodeBlock } from 'component/UI/CodeBlock';
import { Sidenote } from 'component/SideNote';
import { CodeSandbox } from 'component/CodeSandbox';
import { ExerciseAccordion } from 'component/ExerciseAccordion';

const previousURL = '/course/svg/main-svg-elements';
const currentURL = '/course/svg/path-element';
Expand Down
10 changes: 5 additions & 5 deletions pages/course/svg/tips-and-tricks.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React, { useState } from 'react';
import TitleAndDescription from '@/component/TitleAndDescription';
import { LayoutCourse } from '@/component/LayoutCourse';
import TitleAndDescription from 'component/TitleAndDescription';
import { LayoutCourse } from 'component/LayoutCourse';
import { lessonList } from '@/util/lessonList';
import { CodeSandbox } from '@/component/CodeSandbox';
import { CodeSandbox } from 'component/CodeSandbox';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/UI/select';
import { Sidenote } from '@/component/SideNote';
} from 'component/UI/select';
import { Sidenote } from 'component/SideNote';
import { MoveHorizontal, MoveVertical } from 'lucide-react';

const previousURL = '/course/svg/path-element';
Expand Down
8 changes: 4 additions & 4 deletions pages/react-d3-dataviz-course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/component/UI/accordion';
} from 'component/UI/accordion';
import { Lesson, lessonList } from '@/util/lessonList';
import { Badge } from '@/component/UI/badge';
import { Badge } from 'component/UI/badge';
import { moduleList } from '@/util/moduleList';
import { LessonBadge } from '@/component/LessonBadge';
import { buttonVariants } from '@/component/UI/button';
import { LessonBadge } from 'component/LessonBadge';
import { buttonVariants } from 'component/UI/button';

const graphDescription = (
<>
Expand Down

0 comments on commit 2c0ff00

Please sign in to comment.