-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from AlexStack/react19-nextjs15
React19 nextjs15
- Loading branch information
Showing
18 changed files
with
666 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
'use client'; | ||
|
||
import { Box } from '@mui/material'; | ||
import Link from 'next/link'; | ||
import * as React from 'react'; | ||
|
||
import { useSharedUtilContext } from '@/hooks/useSharedUtilContext'; | ||
|
||
const BottomLinks = () => { | ||
const { openConfirmDialog } = useSharedUtilContext(); | ||
|
||
return ( | ||
<section> | ||
<Box sx={{ m: 5 }}> | ||
<Link | ||
href='https://github.com/AlexStack/nextjs-materia-mui-typescript-hook-form-scaffold-boilerplate-starter' | ||
target='_blank' | ||
> | ||
See the Github repository page | ||
</Link> | ||
</Box> | ||
<Box sx={{ m: 5, a: { color: 'red' } }}> | ||
<Link | ||
href='https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.jparrowsec.cn%2FAlexStack%2Fnextjs-materia-mui-typescript-hook-form-scaffold-boilerplate-starter&showOptionalTeamCreation=false' | ||
target='_blank' | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
openConfirmDialog({ | ||
title: 'Copy this repository to your Vercel', | ||
content: | ||
'Please make sure you have a Vercel account and login first', | ||
onConfirm: () => { | ||
window.open((e.target as HTMLAnchorElement).href, '_blank'); | ||
}, | ||
hideCancelButton: true, | ||
}); | ||
}} | ||
> | ||
Click here to deploy a demo site to your Vercel in 1 minute | ||
</Link> | ||
</Box> | ||
|
||
<Box sx={{ m: 5 }}> | ||
<Link | ||
href='/test-page-not-exists' | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
openConfirmDialog({ | ||
title: 'Mock a page not found', | ||
content: | ||
'This is an URL not exists, click OK you will see a custom 404 error page. You can also test the 404 page by typing a random URL in the browser address bar.', | ||
onConfirm: () => { | ||
window.open((e.target as HTMLAnchorElement).href, '_blank'); | ||
}, | ||
hideCancelButton: true, | ||
}); | ||
}} | ||
> | ||
Test 404 page not found (mock file not exists) | ||
</Link> | ||
</Box> | ||
<Box sx={{ m: 5 }}> | ||
<a | ||
href='/?slug=testError500' | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
openConfirmDialog({ | ||
title: 'Mock a server side error', | ||
content: | ||
'This is mock throw a server side error, click OK you will see a custom 500 error page. ', | ||
onConfirm: () => { | ||
window.open((e.target as HTMLAnchorElement).href, '_blank'); | ||
}, | ||
}); | ||
}} | ||
> | ||
Test 500 error page (mock server side throw error) | ||
</a> | ||
</Box> | ||
</section> | ||
); | ||
}; | ||
|
||
export default BottomLinks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.