Skip to content

Commit dbcb15f

Browse files
committed
chore: update
2 parents c97ecf2 + b9f1c4c commit dbcb15f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1248
-233
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: 🐞 Bug report
2+
description: Report an issue
3+
labels: [pending triage]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
- type: textarea
10+
id: bug-description
11+
attributes:
12+
label: Describe the bug
13+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
14+
placeholder: Bug description
15+
validations:
16+
required: true
17+
- type: input
18+
id: reproduction
19+
attributes:
20+
label: Reproduction
21+
description: A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is **required**, otherwise the issue might be closed without further notice. [**Why & How?**](https://antfu.me/posts/why-reproductions-are-required)
22+
placeholder: Reproduction
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: system-info
27+
attributes:
28+
label: System Info
29+
description: Output of `npx envinfo --system --binaries --browsers`
30+
render: Shell
31+
placeholder: System, Binaries, Browsers
32+
validations:
33+
required: true
34+
- type: dropdown
35+
id: package-manager
36+
attributes:
37+
label: Used Package Manager
38+
description: Select the used package manager
39+
options:
40+
- npm
41+
- yarn
42+
- pnpm
43+
- bun
44+
- n/a
45+
validations:
46+
required: true
47+
- type: checkboxes
48+
id: checkboxes
49+
attributes:
50+
label: Validations
51+
description: Before submitting the issue, please make sure you do the following
52+
options:
53+
- label: Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
54+
required: true
55+
- label: Read the [Contributing Guide](https://github.com/antfu/contribute).
56+
required: true
57+
- label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
58+
required: true
59+
- label: Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
60+
required: true
61+
- label: The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
62+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
contact_links:
2+
- name: 🙌 Contribution Guide
3+
url: https://github.com/antfu/contribute
4+
about: Please read through before making contributions.
5+
- name: ⁉️ Why and How to make a reproduction?
6+
url: https://antfu.me/posts/why-reproductions-are-required
7+
about: Reproduction is very important for maintainer to help on your issues!
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 🚀 New feature proposal
2+
description: Propose a new feature
3+
labels: [enhancement]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for your interest in the project and taking the time to fill out this feature report!
9+
- type: textarea
10+
id: feature-description
11+
attributes:
12+
label: Clear and concise description of the problem
13+
description: 'As a developer using Unplugin I want [goal / wish] so that [benefit]. If you intend to submit a PR for this issue, tell us in the description. Thanks!'
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: suggested-solution
18+
attributes:
19+
label: Suggested solution
20+
description: 'In module [xy] we could provide following implementation...'
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: alternative
25+
attributes:
26+
label: Alternative
27+
description: Clear and concise description of any alternative solutions or features you've considered.
28+
- type: textarea
29+
id: additional-context
30+
attributes:
31+
label: Additional context
32+
description: Any other context or screenshots about the feature request here.
33+
- type: checkboxes
34+
id: checkboxes
35+
attributes:
36+
label: Validations
37+
description: Before submitting the issue, please make sure you do the following
38+
options:
39+
- label: Follow our [Code of Conduct](https://github.com/vitejs/devtools/blob/main/.github/CODE_OF_CONDUCT.md)
40+
required: true
41+
- label: Read the [Contributing Guide](https://github.com/antfu/contribute).
42+
required: true
43+
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
44+
required: true

.github/ISSUE_TEMPLATE/typo.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 👀 Typo / Grammar fix
2+
description: You can just go ahead and send a PR! Thank you!
3+
labels: []
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## PR Welcome!
9+
10+
If the typo / grammar issue is trivial and straightforward, you can help by **directly sending a quick pull request**!
11+
If you spot multiple of them, we suggest combining them into a single PR. Thanks!
12+
- type: textarea
13+
id: context
14+
attributes:
15+
label: Additional context

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- DO NOT IGNORE THE TEMPLATE!
2+
3+
Thank you for contributing!
4+
5+
Before submitting the PR, please make sure you do the following:
6+
7+
- Read the [Contributing Guide](https://github.com/antfu/contribute).
8+
- Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
9+
- Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
10+
- Ideally, include relevant tests that fail without this PR but pass with it.
11+
12+
-->
13+
14+
### Description
15+
16+
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
17+
18+
### Linked Issues
19+
20+
### Additional context
21+
22+
<!-- e.g. is there anything you'd like reviewers to focus on? -->

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
3-
"version": "0.0.0-alpha.8",
3+
"version": "0.0.0-alpha.11",
44
"private": true,
55
"packageManager": "pnpm@10.20.0",
66
"scripts": {
@@ -49,6 +49,7 @@
4949
"esbuild": "catalog:build",
5050
"eslint": "catalog:devtools",
5151
"lint-staged": "catalog:devtools",
52+
"magic-string": "catalog:build",
5253
"nuxt": "catalog:build",
5354
"nuxt-eslint-auto-explicit-import": "catalog:devtools",
5455
"nuxt-mcp": "catalog:build",
@@ -59,6 +60,7 @@
5960
"unstorage": "catalog:deps",
6061
"vite": "catalog:build",
6162
"vite-plugin-inspect": "catalog:devtools",
63+
"vite-plugin-vue-tracer": "catalog:playground",
6264
"vitest": "catalog:testing",
6365
"vue": "catalog:frontend",
6466
"vue-tsc": "catalog:devtools"

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vitejs/devtools",
33
"type": "module",
4-
"version": "0.0.0-alpha.8",
4+
"version": "0.0.0-alpha.11",
55
"description": "Vite DevTools",
66
"author": "VoidZero Inc.",
77
"license": "MIT",

packages/core/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"type": "module",
4-
"version": "0.0.0-alpha.8",
4+
"version": "0.0.0-alpha.11",
55
"private": true,
66
"scripts": {
77
"dev": "VITE_DEVTOOLS_LOCAL_DEV=true vite",

packages/core/playground/vite.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import process from 'node:process'
22
import Vue from '@vitejs/plugin-vue'
3+
import UnoCSS from 'unocss/vite'
34
import { defineConfig } from 'vite'
5+
import Tracer from 'vite-plugin-vue-tracer'
46
// eslint-disable-next-line ts/ban-ts-comment
57
// @ts-ignore ignore the type error
68
import { DevToolsViteUI } from '../../vite/src/node'
@@ -29,6 +31,8 @@ export default defineConfig({
2931
builtinDevTools: false,
3032
}),
3133
DevToolsViteUI(),
34+
UnoCSS(),
35+
Tracer(),
3236
{
3337
name: 'local',
3438
devtools: {
@@ -39,18 +43,17 @@ export default defineConfig({
3943
id: 'local',
4044
type: 'iframe',
4145
url: 'https://antfu.me',
42-
4346
})
4447

4548
ctx.docks.register({
4649
type: 'action',
47-
import: ctx.utils.clientEntryFromSimpleFunction(() => {
50+
action: ctx.utils.clientEntryFromSimpleFunction(() => {
4851
// eslint-disable-next-line no-alert
4952
alert('Hello, world!')
5053
}),
5154
id: 'local2',
5255
title: 'Local2',
53-
icon: 'material-symbols-light:add-alert',
56+
icon: 'ph:bell-simple-ringing-duotone',
5457
})
5558
},
5659
},

packages/core/src/client/standalone/App.vue

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import type { DevToolsDockState } from '../webcomponents/components/DockProps'
33
import { getDevToolsRpcClient } from '@vitejs/devtools-kit/client'
44
import { useLocalStorage } from '@vueuse/core'
55
import { computed, markRaw, ref, useTemplateRef, watchEffect } from 'vue'
6-
import Dock from '../webcomponents/components/Dock.vue'
6+
import DockEntries from '../webcomponents/components/DockEntries.vue'
7+
import VitePlus from '../webcomponents/components/icons/VitePlus.vue'
78
import { IframeManager } from '../webcomponents/components/IframeManager'
89
import ViewEntry from '../webcomponents/components/ViewEntry.vue'
10+
import { useStateHandlers } from '../webcomponents/state/state'
911
1012
const { rpc } = await getDevToolsRpcClient()
1113
@@ -39,22 +41,35 @@ watchEffect(() => {
3941
4042
const isDragging = ref(false)
4143
const entry = computed(() => state.value.dockEntry || docks[0])
44+
45+
const { selectDockEntry } = useStateHandlers(state)
4246
</script>
4347

4448
<template>
45-
<div id="iframes-container" ref="iframesContainer" />
46-
<Dock
47-
v-model:is-dragging="isDragging"
48-
:state="state"
49-
:docks="docks"
50-
/>
51-
<ViewEntry
52-
v-if="entry && iframesContainer"
53-
:key="entry.id"
54-
:state="state"
55-
:entry="entry"
56-
:is-dragging="isDragging"
57-
:is-resizing="false"
58-
:iframes="iframes"
59-
/>
49+
<div class="h-screen w-screen of-hidden grid cols-[max-content_1fr]">
50+
<div class="border-r border-base flex flex-col">
51+
<div class="p2 border-b border-base flex">
52+
<VitePlus class="w-7 h-7 ma" />
53+
</div>
54+
<DockEntries
55+
:entries="docks"
56+
class="transition duration-200 p2"
57+
:is-vertical="false"
58+
:selected="state.dockEntry"
59+
@select="selectDockEntry"
60+
/>
61+
</div>
62+
<div>
63+
<div id="iframes-container" ref="iframesContainer" />
64+
<ViewEntry
65+
v-if="entry && iframesContainer"
66+
:key="entry.id"
67+
:state="state"
68+
:entry="entry"
69+
:is-dragging="isDragging"
70+
:is-resizing="false"
71+
:iframes="iframes"
72+
/>
73+
</div>
74+
</div>
6075
</template>

0 commit comments

Comments
 (0)