Skip to content

Commit 72fb87f

Browse files
committed
Convert to NextJS
Hopefully this will make forms work with netlify as we can statically build some of the pages
1 parent f41ce07 commit 72fb87f

36 files changed

+1971
-3693
lines changed

.eslintcache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"/Users/danwood/Developer/climb-tags/src/components/Constants.ts":"1","/Users/danwood/Developer/climb-tags/src/components/Header.tsx":"2","/Users/danwood/Developer/climb-tags/src/main.tsx":"3","/Users/danwood/Developer/climb-tags/src/components/App.tsx":"4","/Users/danwood/Developer/climb-tags/src/components/Creator.tsx":"5","/Users/danwood/Developer/climb-tags/src/components/RouteRow.tsx":"6","/Users/danwood/Developer/climb-tags/src/components/Routes.tsx":"7","/Users/danwood/Developer/climb-tags/src/components/GradeButton.tsx":"8","/Users/danwood/Developer/climb-tags/src/components/Popper.tsx":"9","/Users/danwood/Developer/climb-tags/src/components/GradePopup.tsx":"10","/Users/danwood/Developer/climb-tags/src/components/ResizableSegments.tsx":"11","/Users/danwood/Developer/climb-tags/src/components/ColorPicker.tsx":"12","/Users/danwood/Developer/climb-tags/src/hooks/useDragX.ts":"13","/Users/danwood/Developer/climb-tags/src/hooks/useRefValue.ts":"14","/Users/danwood/Developer/climb-tags/src/components/FeedbackForm.tsx":"15","/Users/danwood/Developer/climb-tags/src/components/MadeBy.tsx":"16"},{"size":788,"mtime":1649074474072,"results":"17","hashOfConfig":"18"},{"size":504,"mtime":1655781888656,"results":"19","hashOfConfig":"18"},{"size":292,"mtime":1649074918495,"results":"20","hashOfConfig":"18"},{"size":588,"mtime":1655782604540,"results":"21","hashOfConfig":"18"},{"size":1641,"mtime":1655781892371,"results":"22","hashOfConfig":"18"},{"size":2219,"mtime":1654791207140,"results":"23","hashOfConfig":"18"},{"size":786,"mtime":1654814330962,"results":"24","hashOfConfig":"18"},{"size":1052,"mtime":1654789148887,"results":"25","hashOfConfig":"18"},{"size":1128,"mtime":1649074986641,"results":"26","hashOfConfig":"18"},{"size":847,"mtime":1654790725987,"results":"27","hashOfConfig":"18"},{"size":1487,"mtime":1654791760437,"results":"28","hashOfConfig":"18"},{"size":1678,"mtime":1654791392158,"results":"29","hashOfConfig":"18"},{"size":1317,"mtime":1654791672672,"results":"30","hashOfConfig":"18"},{"size":519,"mtime":1654779056221,"results":"31","hashOfConfig":"18"},{"size":2987,"mtime":1655783491054,"results":"32","hashOfConfig":"18"},{"size":387,"mtime":1655782450908,"results":"33","hashOfConfig":"18"},{"filePath":"34","messages":"35","suppressedMessages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1k33ivu",{"filePath":"37","messages":"38","suppressedMessages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","suppressedMessages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"43"},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","suppressedMessages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","suppressedMessages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","suppressedMessages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","suppressedMessages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/danwood/Developer/climb-tags/src/components/Constants.ts",[],[],"/Users/danwood/Developer/climb-tags/src/components/Header.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/main.tsx",[],[],[],"/Users/danwood/Developer/climb-tags/src/components/App.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/Creator.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/RouteRow.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/Routes.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/GradeButton.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/Popper.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/GradePopup.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/ResizableSegments.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/ColorPicker.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/hooks/useDragX.ts",[],[],"/Users/danwood/Developer/climb-tags/src/hooks/useRefValue.ts",[],[],"/Users/danwood/Developer/climb-tags/src/components/FeedbackForm.tsx",[],[],"/Users/danwood/Developer/climb-tags/src/components/MadeBy.tsx",[],[]]

.gitignore

+32-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
423
npm-debug.log*
524
yarn-debug.log*
625
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
.eslintcache
15-
16-
# Editor directories and files
17-
.vscode/*
18-
!.vscode/extensions.json
19-
.idea
20-
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/FeedbackForm.tsx components/FeedbackForm.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export function FeedbackForm() {
1212
</div>
1313
</div>
1414
<div className="col-span-2 mt-0">
15-
{/* @ts-expect-error netlify is a custom form attribute netlify uses for backend forms */}
16-
<form method="POST" netlify>
15+
<form method="POST" data-netlify="true">
1716
<div className="overflow-hidden rounded-md shadow">
1817
<div className="space-y-6 bg-white p-6">
1918
<div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.html

-22
This file was deleted.

next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
}
5+
6+
module.exports = nextConfig

0 commit comments

Comments
 (0)