-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move stubs to inertia/ directory (#6)
* refactor: move stubs to `inertia` directory * chore: move inertia middleware to server stack * feat: add not_found and server_error components * fix: entrypoint vue * refactor: move to inertia_layout.edge * test: fix failing test
- Loading branch information
1 parent
7638372
commit 250958b
Showing
37 changed files
with
243 additions
and
175 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
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,14 @@ | ||
{{{ | ||
exports({ to: app.makePath('inertia/pages/errors/not_found.tsx') }) | ||
}}} | ||
export default function NotFound() { | ||
return ( | ||
<> | ||
<div className="container"> | ||
<div className="title">Page not found</div> | ||
|
||
<span>This page does not exist.</span> | ||
</div> | ||
</> | ||
) | ||
} |
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,14 @@ | ||
{{{ | ||
exports({ to: app.makePath('inertia/pages/errors/server_error.tsx') }) | ||
}}} | ||
export default function ServerError(props: { error: any }) { | ||
return ( | ||
<> | ||
<div className="container"> | ||
<div className="title">Server Error</div> | ||
|
||
<span>{props.error.message}</span> | ||
</div> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,25 +1,15 @@ | ||
{{{ | ||
exports({ to: app.makePath('resources/tsconfig.json') }) | ||
exports({ to: app.makePath('inertia/tsconfig.json') }) | ||
}}} | ||
{ | ||
"extends": "@adonisjs/tsconfig/tsconfig.client.json", | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"jsx": "react-jsx", | ||
"lib": ["DOM", "ESNext", "DOM.Iterable", "ES2020"], | ||
"useDefineForClassFields": true, | ||
"baseUrl": ".", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"jsx": "react-jsx", | ||
"paths": { | ||
"@/*": ["./*"], | ||
"~/*": ["../*"], | ||
}, | ||
"resolveJsonModule": true, | ||
"types": ["vite/client"], | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"verbatimModuleSyntax": true, | ||
"skipLibCheck": true, | ||
}, | ||
"include": ["./**/*.ts", "./**/*.tsx"], | ||
} |
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,14 @@ | ||
{{{ | ||
exports({ to: app.makePath('inertia/pages/errors/not_found.tsx') }) | ||
}}} | ||
export default function NotFound() { | ||
return ( | ||
<> | ||
<div class="container"> | ||
<div class="title">Page not found</div> | ||
|
||
<span>This page does not exist.</span> | ||
</div> | ||
</> | ||
) | ||
} |
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,14 @@ | ||
{{{ | ||
exports({ to: app.makePath('inertia/pages/errors/server_error.tsx') }) | ||
}}} | ||
export default function ServerError(props: { error: any }) { | ||
return ( | ||
<> | ||
<div class="container"> | ||
<div class="title">Server Error</div> | ||
|
||
<span>{props.error.message}</span> | ||
</div> | ||
</> | ||
) | ||
} |
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
Oops, something went wrong.