Skip to content

Commit dbe82a1

Browse files
authored
Merge pull request #1 from epicweb-dev/part_3
Part 3
2 parents 563032d + 67fb062 commit dbe82a1

File tree

387 files changed

+31723
-2435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+31723
-2435
lines changed

.codex/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
full-auto = true
2+
bypass-approvals = true
3+
bypass-sandbox = true
4+
trusted-workspace = true

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ data.db
1313
# file as well, but since this is for a workshop
1414
# we're going to keep them around.
1515
# .env
16-
test-results
16+
test-results
17+
**/generated/**
18+
data.db*
19+
.env

exercises/02.metadata/01.problem.styling/app/routes/_landing._index/featured-products.section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { products } from 'data/products'
21
import { ArrowRight, Star } from 'lucide-react'
32
import { Link } from 'react-router'
3+
import { products } from '../../../data/products'
44

55
export const FeaturedProductsSection = () => {
66
const featuredProducts = products.slice(0, 4)

exercises/02.metadata/01.problem.styling/app/routes/_landing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Outlet } from 'react-router'
2-
import { Footer } from '~/components/footer'
3-
import { Header } from '~/components/header'
2+
import { Footer } from '#app/components/footer'
3+
import { Header } from '#app/components/header'
44

55
export default function LayoutPage() {
66
return (

exercises/02.metadata/01.problem.styling/tsconfig.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,13 @@
55
"**/.client/**/*",
66
".react-router/types/**/*"
77
],
8+
"extends": ["@epic-web/config/typescript"],
89
"compilerOptions": {
9-
"lib": ["DOM", "DOM.Iterable", "ES2022"],
1010
"types": ["node", "vite/client"],
11-
"target": "ES2022",
12-
"module": "ES2022",
13-
"moduleResolution": "bundler",
14-
"jsx": "react-jsx",
1511
"rootDirs": [".", "./.react-router/types"],
16-
"baseUrl": ".",
1712
"paths": {
18-
"~/*": ["./app/*"]
13+
"#app/*": ["./app/*"]
1914
},
20-
"esModuleInterop": true,
21-
"verbatimModuleSyntax": true,
22-
"noEmit": true,
23-
"resolveJsonModule": true,
24-
"skipLibCheck": true,
25-
"strict": true
15+
"noUncheckedIndexedAccess": false
2616
}
2717
}

exercises/02.metadata/01.solution.styling/app/routes/_landing._index/featured-products.section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { products } from 'data/products'
21
import { ArrowRight, Star } from 'lucide-react'
32
import { Link } from 'react-router'
3+
import { products } from '../../../data/products'
44

55
export const FeaturedProductsSection = () => {
66
const featuredProducts = products.slice(0, 4)

exercises/02.metadata/01.solution.styling/app/routes/_landing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Outlet } from 'react-router'
2-
import { Footer } from '~/components/footer'
3-
import { Header } from '~/components/header'
2+
import { Footer } from '#app/components/footer'
3+
import { Header } from '#app/components/header'
44

55
export default function LayoutPage() {
66
return (

exercises/02.metadata/01.solution.styling/tsconfig.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,13 @@
55
"**/.client/**/*",
66
".react-router/types/**/*"
77
],
8+
"extends": ["@epic-web/config/typescript"],
89
"compilerOptions": {
9-
"lib": ["DOM", "DOM.Iterable", "ES2022"],
1010
"types": ["node", "vite/client"],
11-
"target": "ES2022",
12-
"module": "ES2022",
13-
"moduleResolution": "bundler",
14-
"jsx": "react-jsx",
1511
"rootDirs": [".", "./.react-router/types"],
16-
"baseUrl": ".",
1712
"paths": {
18-
"~/*": ["./app/*"]
13+
"#app/*": ["./app/*"]
1914
},
20-
"esModuleInterop": true,
21-
"verbatimModuleSyntax": true,
22-
"noEmit": true,
23-
"resolveJsonModule": true,
24-
"skipLibCheck": true,
25-
"strict": true
15+
"noUncheckedIndexedAccess": false
2616
}
2717
}

exercises/02.metadata/02.problem.titles-react/app/routes/_landing._index/featured-products.section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { products } from 'data/products'
21
import { ArrowRight, Star } from 'lucide-react'
32
import { Link } from 'react-router'
3+
import { products } from '../../../data/products'
44

55
export const FeaturedProductsSection = () => {
66
const featuredProducts = products.slice(0, 4)

exercises/02.metadata/02.problem.titles-react/app/routes/_landing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Outlet } from 'react-router'
2-
import { Footer } from '~/components/footer'
3-
import { Header } from '~/components/header'
2+
import { Footer } from '#app/components/footer'
3+
import { Header } from '#app/components/header'
44

55
export default function LayoutPage() {
66
return (

0 commit comments

Comments
 (0)