-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vite Inspect Integration + React for Website
- Loading branch information
Showing
10 changed files
with
82 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Integration } from '../integration'; | ||
import ViteInspect from './vite-inspect'; | ||
|
||
export default function consoleIntegration() { | ||
return { | ||
name: 'vite-inspect', | ||
tabs: () => [ | ||
{ | ||
id: 'vite-inspect', | ||
title: 'Vite Inspect', | ||
content: ViteInspect, | ||
}, | ||
], | ||
|
||
setup: () => {}, | ||
} satisfies Integration; | ||
} |
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,9 @@ | ||
export default function ViteInspect() { | ||
return ( | ||
<div className="h-full w-full divide-y divide-indigo-500 bg-indigo-950 p-4"> | ||
<div className="flex h-full w-full flex-col gap-2"> | ||
<iframe src="http://localhost:4321/__inspect/" className="h-full w-full" /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default function ReactIsland() { | ||
const throwError = () => { | ||
throw new Error('Error thrown from ReactIsland.tsx'); | ||
}; | ||
|
||
return ( | ||
<div style={{ border: '3px solid blue', padding: '1rem' }}> | ||
<h3>Hi, I am a React Island</h3> | ||
<p> | ||
Nostrud dolore ad voluptate duis proident ullamco duis laboris mollit. Exercitation esse laborum id do ullamco | ||
tempor id fugiat. Id commodo anim ad dolore dolore irure officia elit est Lorem magna quis. Tempor ipsum magna | ||
labore quis Lorem commodo mollit ipsum labore sint aliqua. Est occaecat amet proident adipisicing quis aliquip | ||
fugiat commodo dolor. Consectetur cupidatat cillum occaecat mollit laborum voluptate ea. | ||
</p> | ||
<button onClick={throwError}>Click me to throw an error</button> | ||
</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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.