-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
feat: integrate devtools #21331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: integrate devtools #21331
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bc5e52b
feat: init
webfansplz 2f0dcb1
feat: devtools playground
webfansplz cd408a1
chore: update
webfansplz 4f2fe0f
chore: update
webfansplz 4c45c3a
chore: add docs
webfansplz f6a3c57
chore: improve error log
webfansplz cd7d4aa
chore: remove auto enable
webfansplz 354d955
chore: update
webfansplz df7e71b
chore: update
webfansplz 7a73a9f
chore: update
webfansplz 5004915
chore: fix typo
webfansplz f3f7fb1
chore: update
webfansplz ae85938
Merge branch 'main' into feat/devtools
webfansplz ca75b9f
chore: update
webfansplz 7d42828
chore: tweak
sapphi-red bcbf80a
chore: update
webfansplz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,12 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <title>DevTools</title> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="app"></div> | ||
| <script type="module" src="/src/main.ts"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,19 @@ | ||
| { | ||
| "name": "@vitejs/test-devtools", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "debug": "node --inspect-brk ../../packages/vite/bin/vite", | ||
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "vue": "^3.5.25" | ||
| }, | ||
| "devDependencies": { | ||
| "vite": "workspace:*", | ||
| "@vitejs/devtools": "^0.0.0-alpha.24" | ||
| } | ||
| } |
This file contains hidden or 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,19 @@ | ||
| import { ref } from 'vue' | ||
|
|
||
| export function useCounter() { | ||
| const count = ref(0) | ||
|
|
||
| function increment() { | ||
| count.value++ | ||
| } | ||
|
|
||
| function decrement() { | ||
| count.value-- | ||
| } | ||
|
|
||
| return { | ||
| count, | ||
| increment, | ||
| decrement, | ||
| } | ||
| } |
This file contains hidden or 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 { watchEffect } from 'vue' | ||
| import { useCounter } from './counter' | ||
|
|
||
| const { count, increment, decrement } = useCounter() | ||
|
|
||
| watchEffect(() => { | ||
| document.querySelector('#app')!.textContent = `${count.value}` | ||
| }) | ||
|
|
||
| const timer = setInterval(() => { | ||
| if (count.value < 6) { | ||
| increment() | ||
| } else { | ||
| decrement() | ||
| clearInterval(timer) | ||
| } | ||
| }, 1000) |
This file contains hidden or 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,11 @@ | ||
| // no test exists, this should be tested manually | ||
|
webfansplz marked this conversation as resolved.
|
||
|
|
||
| import { defineConfig } from 'vite' | ||
|
webfansplz marked this conversation as resolved.
|
||
|
|
||
| export default defineConfig({ | ||
| base: '/', | ||
| devtools: { | ||
| enabled: false, | ||
|
webfansplz marked this conversation as resolved.
|
||
| port: 5173, | ||
| }, | ||
| }) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.