Skip to content

Commit

Permalink
fix imports a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Aug 28, 2023
1 parent 9e92947 commit e4ad1cd
Show file tree
Hide file tree
Showing 50 changed files with 65 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/01.problem.labels/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/01.solution.labels/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/02.problem.aria/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/02.solution.aria/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/03.problem.focus/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.accessibility/03.solution.focus/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/03.schema-validation/01.problem.zod/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
2 changes: 1 addition & 1 deletion exercises/06.honeypot/01.problem.basic/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { cssBundleHref } from '@remix-run/css-bundle'
import { json, type LinksFunction } from '@remix-run/node'
import {
Expand All @@ -11,7 +12,6 @@ import {
useLoaderData,
type MetaFunction,
} from '@remix-run/react'
import os from 'node:os'
import faviconAssetUrl from './assets/favicon.svg'
import { GeneralErrorBoundary } from './components/error-boundary.tsx'
import { KCDShop } from './kcdshop.tsx'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { Input } from '#app/components/ui/input.tsx'
import { Label } from '#app/components/ui/label.tsx'

export async function action({ request }: DataFunctionArgs) {
// 💣 you can remove this comment once you've used the form data
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const formData = await request.formData()
// 🐨 throw a 400 response if the name field is filled out
// we'll implement signup later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { json, redirect, type DataFunctionArgs } from '@remix-run/node'
import { Form, Link, useLoaderData, type MetaFunction } from '@remix-run/react'
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'
import { floatingToolbarClassName } from '#app/components/floating-toolbar.tsx'
import { Button } from '#app/components/ui/button.tsx'
import { db } from '#app/utils/db.server.ts'
import { invariantResponse } from '#app/utils/misc.ts'
import { json, redirect, type DataFunctionArgs } from '@remix-run/node'
import { Form, Link, useLoaderData, type MetaFunction } from '@remix-run/react'
import { type loader as notesLoader } from './notes.tsx'

export async function loader({ params }: DataFunctionArgs) {
Expand Down
Loading

0 comments on commit e4ad1cd

Please sign in to comment.