Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Dec 29, 2023
1 parent 7c59d3e commit 400ac11
Show file tree
Hide file tree
Showing 118 changed files with 239 additions and 239 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vue-devtools-next/monorepo",
"name": "@vue/devtools-next-monorepo",
"type": "module",
"version": "0.0.0",
"private": true,
Expand Down Expand Up @@ -71,8 +71,8 @@
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.10.5",
"@unocss/eslint-plugin": "^0.58.0",
"@vue-devtools-next/core": "workspace:^",
"@vue-devtools-next/schema": "workspace:^",
"@vue/devtools-next-core": "workspace:^",
"@vue/devtools-next-schema": "workspace:^",
"archiver": "^6.0.1",
"bumpp": "^9.2.1",
"cross-env": "^7.0.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/browser-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vue-devtools-next/browser-extension",
"name": "@vue/devtools-next-browser-extension",
"type": "module",
"version": "0.0.0",
"private": true,
Expand All @@ -13,8 +13,8 @@
"dev": "cross-env NODE_ENV=development tsup --watch"
},
"dependencies": {
"@vue-devtools-next/core": "workspace:^",
"@vue-devtools-next/shared": "workspace:^"
"@vue/devtools-next-core": "workspace:^",
"@vue/devtools-next-shared": "workspace:^"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-extension/src/background.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isNumeric } from '@vue-devtools-next/shared'
import { isNumeric } from '@vue/devtools-next-shared'

type PortInfo = Record<'tab' | 'name', string | number> & { port: chrome.runtime.Port }
type PortDetail = Record<'devtools' | 'userApp', chrome.runtime.Port>
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-extension/src/user-app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { target } from '@vue-devtools-next/shared'
import { target } from '@vue/devtools-next-shared'
import { Bridge } from '../../core/src/bridge'
import { prepareInjection } from '../../core/src/injection'

Expand Down
12 changes: 6 additions & 6 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vue-devtools-next/client",
"name": "@vue/devtools-next-client",
"type": "module",
"version": "0.0.0",
"private": true,
Expand All @@ -26,11 +26,11 @@
"dependencies": {
"@unocss/preset-icons": "^0.58.0",
"@unocss/runtime": "^0.58.0",
"@vue-devtools-next/core": "workspace:^",
"@vue-devtools-next/kit": "workspace:^",
"@vue-devtools-next/schema": "workspace:*",
"@vue-devtools-next/shared": "workspace:^",
"@vue-devtools-next/ui": "workspace:*",
"@vue/devtools-next-core": "workspace:^",
"@vue/devtools-next-kit": "workspace:^",
"@vue/devtools-next-schema": "workspace:*",
"@vue/devtools-next-shared": "workspace:^",
"@vue/devtools-next-ui": "workspace:*",
"@vueuse/core": "^10.7.0",
"@vueuse/integrations": "^10.7.0",
"colord": "^2.9.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Ref } from 'vue'
import { useDevToolsBridge, useDevToolsState } from '@vue-devtools-next/core'
import { isInChromePanel } from '@vue-devtools-next/shared'
import { useDevToolsBridge, useDevToolsState } from '@vue/devtools-next-core'
import { isInChromePanel } from '@vue/devtools-next-shared'
import { Pane, Splitpanes } from 'splitpanes'
import('./setup/unocss-runtime')
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/CommandPalette.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueIcon, VueInput, VueOverlay } from '@vue-devtools-next/ui'
import { VueIcon, VueInput, VueOverlay } from '@vue/devtools-next-ui'
import Fuse from 'fuse.js'
import type { CommandItem } from '../composables/state-commands'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/WaitForConnection.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueInput } from '@vue-devtools-next/ui'
import { VueInput } from '@vue/devtools-next-ui'
import AppConnecting from '~/components/AppConnecting.vue'
const props = defineProps<{
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/components/assets/AssetDetails.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useTimeAgo } from '@vueuse/core'
import type { AssetInfo, CodeSnippet } from '@vue-devtools-next/core'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue-devtools-next/core'
import { VueButton, VueIcon, VTooltip as vTooltip } from '@vue-devtools-next/ui'
import type { AssetInfo, CodeSnippet } from '@vue/devtools-next-core'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue/devtools-next-core'
import { VueButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-next-ui'
const props = defineProps<{
modelValue: AssetInfo
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/components/assets/AssetDropZone.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { AssetEntry } from '@vue-devtools-next/core'
import { VueButton, VueIcon, VueInput } from '@vue-devtools-next/ui'
import type { AssetEntry } from '@vue/devtools-next-core'
import { VueButton, VueIcon, VueInput } from '@vue/devtools-next-ui'
const props = defineProps({
modelValue: {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/assets/AssetFontPreview.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { hash } from 'ohash'
import type { AssetInfo } from '@vue-devtools-next/core'
import type { AssetInfo } from '@vue/devtools-next-core'
const props = defineProps<{
asset: AssetInfo
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/assets/AssetGridItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { AssetInfo } from '@vue-devtools-next/core'
import type { AssetInfo } from '@vue/devtools-next-core'
const props = defineProps<{
asset: AssetInfo
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/components/assets/AssetListItem.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { AssetInfo } from '@vue-devtools-next/core'
import { VueIcon } from '@vue-devtools-next/ui'
import type { AssetInfo } from '@vue/devtools-next-core'
import { VueIcon } from '@vue/devtools-next-ui'
const props = withDefaults(defineProps<{
item: any
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/assets/AssetPreview.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { AssetInfo } from '@vue-devtools-next/core'
import type { AssetInfo } from '@vue/devtools-next-core'
defineProps<{
asset: AssetInfo
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/chrome/ViewModeSwitch.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton } from '@vue-devtools-next/ui'
import { VueButton } from '@vue/devtools-next-ui'
useColorMode()
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/components/code/CodeSnippets.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { BuiltinLanguage } from 'shikiji'
import type { CodeSnippet } from '@vue-devtools-next/core'
import { VueButton } from '@vue-devtools-next/ui'
import type { CodeSnippet } from '@vue/devtools-next-core'
import { VueButton } from '@vue/devtools-next-ui'
const props = defineProps<{
codeSnippets: CodeSnippet[]
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/components/common/DockingPanel.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { VueButton, VueDarkToggle, VueIcon, VueSelect } from '@vue-devtools-next/ui'
import { isInChromePanel } from '@vue-devtools-next/shared'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue-devtools-next/core'
import { VueButton, VueDarkToggle, VueIcon, VueSelect } from '@vue/devtools-next-ui'
import { isInChromePanel } from '@vue/devtools-next-shared'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue/devtools-next-core'
// #region view mode
const viewMode = inject<Ref<'overlay' | 'panel'>>('viewMode', ref('overlay'))
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/EmptyPane.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueIcon } from '@vue-devtools-next/ui'
import { VueIcon } from '@vue/devtools-next-ui'
const props = defineProps<{
icon?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueInput } from '@vue-devtools-next/ui'
import { VueInput } from '@vue/devtools-next-ui'
const props = defineProps<{
search?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/SectionBlock.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useVModel } from '@vueuse/core'
import { VueIcon } from '@vue-devtools-next/ui'
import { VueIcon } from '@vue/devtools-next-ui'
const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/SideNav.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueDropdown } from '@vue-devtools-next/ui'
import { VueDropdown } from '@vue/devtools-next-ui'
const showDocking = ref(false)
const showMoreTabs = ref(false)
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/SideNavItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { RouterLink } from 'vue-router'
import { toValue } from '@vueuse/core'
import { VueTooltip } from '@vue-devtools-next/ui'
import { VueTooltip } from '@vue/devtools-next-ui'
import type { ModuleBuiltinTab } from '~/types'
const props = withDefaults(
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/common/SplitScreen.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton, VueCard, VueDropdown, VTooltip as vTooltip } from '@vue-devtools-next/ui'
import { VueButton, VueCard, VueDropdown, VTooltip as vTooltip } from '@vue/devtools-next-ui'
function close() {
devtoolsClientState.value.splitScreen.enabled = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { ComponentTreeNode } from '@vue-devtools-next/kit'
import type { ComponentTreeNode } from '@vue/devtools-next-kit'
const props = withDefaults(defineProps<{
data: ComponentTreeNode
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/components/graph/GraphDrawer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { VueButton, VueDrawer, showVueNotification } from '@vue-devtools-next/ui'
import { useDevToolsState } from '@vue-devtools-next/core'
import { VueButton, VueDrawer, showVueNotification } from '@vue/devtools-next-ui'
import { useDevToolsState } from '@vue/devtools-next-core'
defineProps<{
top?: HTMLElement
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/graph/GraphNavbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueCheckbox, VueInput } from '@vue-devtools-next/ui'
import { VueCheckbox, VueInput } from '@vue/devtools-next-ui'
const text = graphSearchText
const settings = graphSettings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, VTooltip as vTooltip } from '@vue-devtools-next/ui'
import type { InspectorState, InspectorStateEditorPayload } from '@vue-devtools-next/kit'
import type { ButtonProps } from '@vue-devtools-next/ui/dist/types/src/components/Button'
import { useDevToolsBridgeRpc } from '@vue-devtools-next/core'
import { VueButton, VueDropdown, VueDropdownButton, VueIcon, VTooltip as vTooltip } from '@vue/devtools-next-ui'
import type { InspectorState, InspectorStateEditorPayload } from '@vue/devtools-next-kit'
import type { ButtonProps } from '@vue/devtools-next-ui/dist/types/src/components/Button'
import { useDevToolsBridgeRpc } from '@vue/devtools-next-core'
import type { EditorAddNewPropType, EditorInputValidType } from '../../../composables/inspector'
const props = withDefaults(defineProps<{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { VueButton, VueIcon, VueInput, VTooltip as vTooltip } from '@vue-devtools-next/ui'
import { VueButton, VueIcon, VueInput, VTooltip as vTooltip } from '@vue/devtools-next-ui'
const props = withDefaults(defineProps<{
modelValue: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { InspectorNodeTag } from '@vue-devtools-next/kit'
import type { InspectorNodeTag } from '@vue/devtools-next-kit'
import { toHex } from '~/utils'
defineProps<{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { InspectorState } from '@vue-devtools-next/kit'
import type { InspectorState } from '@vue/devtools-next-kit'
const props = withDefaults(defineProps<{
data: InspectorState[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { InspectorCustomState, InspectorState, InspectorStateEditorPayload } from '@vue-devtools-next/kit'
import { sortByKey } from '@vue-devtools-next/shared'
import { formatInspectorStateValue, getInspectorStateValueType } from '@vue-devtools-next/kit'
import { useDevToolsBridgeRpc } from '@vue-devtools-next/core'
import type { InspectorCustomState, InspectorState, InspectorStateEditorPayload } from '@vue/devtools-next-kit'
import { sortByKey } from '@vue/devtools-next-shared'
import { formatInspectorStateValue, getInspectorStateValueType } from '@vue/devtools-next-kit'
import { useDevToolsBridgeRpc } from '@vue/devtools-next-core'
import Actions from './InspectorDataField/Actions.vue'
import type { EditorAddNewPropType } from '~/composables/inspector'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { InspectorState } from '@vue-devtools-next/kit'
import type { InspectorState } from '@vue/devtools-next-kit'
withDefaults(defineProps<{
data: InspectorState[]
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/inspector/InspectorTree.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { InspectorNodeTag } from '@vue-devtools-next/kit'
import type { InspectorNodeTag } from '@vue/devtools-next-kit'
import { RecycleScroller } from 'vue-virtual-scroller'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/pages/RoutePathItem.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { RouteRecordNormalized } from 'vue-router'
import { VueButton, VueDropdown, VueInput } from '@vue-devtools-next/ui'
import { VueButton, VueDropdown, VueInput } from '@vue/devtools-next-ui'
const props = defineProps<{
route: RouteRecordNormalized
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/components/pages/RoutesTable.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { VueBadge } from '@vue-devtools-next/ui'
import { VueBadge } from '@vue/devtools-next-ui'
import type { RouteRecordNormalized } from 'vue-router'
import { useDevToolsState } from '@vue-devtools-next/core'
import { useDevToolsState } from '@vue/devtools-next-core'
const props = defineProps<{
pages: RouteRecordNormalized[]
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/timeline/TimelineEvent.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { TimelineEvent } from '@vue-devtools-next/kit'
import type { TimelineEvent } from '@vue/devtools-next-kit'
import { RecycleScroller } from 'vue-virtual-scroller'
import { formatTime } from '~/utils'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/composables/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DevtoolsBridgeAppRecord } from '@vue-devtools-next/core'
import type { DevtoolsBridgeAppRecord } from '@vue/devtools-next-core'

export const activeAppRecords = shallowRef<DevtoolsBridgeAppRecord[]>([])
export const activeAppRecordId = ref<string | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/composables/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useDevToolsState } from '@vue-devtools-next/core'
import { useDevToolsState } from '@vue/devtools-next-core'

const fns: (() => void)[] = []

Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/composables/graph.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ModuleInfo } from '@vue-devtools-next/core'
import type { ModuleInfo } from '@vue/devtools-next-core'
import { DataSet } from 'vis-network/standalone'
import type { Edge, Node, Options } from 'vis-network'
import { deepClone } from '@vue-devtools-next/shared'
import { deepClone } from '@vue/devtools-next-shared'

// #region file types
export const fileTypes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/composables/open-in-editor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useDevToolsBridgeRpc } from '@vue-devtools-next/core'
import { useDevToolsBridgeRpc } from '@vue/devtools-next-core'

const bridgeRpc = useDevToolsBridgeRpc()

Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/composables/state-commands.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { randomStr } from '@vue-devtools-next/shared'
import { CustomCommand } from '@vue-devtools-next/kit'
import { randomStr } from '@vue/devtools-next-shared'
import { CustomCommand } from '@vue/devtools-next-kit'
import { MaybeRefOrGetter } from 'vue'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue-devtools-next/core'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue/devtools-next-core'

export interface CommandItem {
id: string
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/composables/state-tab.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue-devtools-next/core'
import { useDevToolsBridgeRpc, useDevToolsState } from '@vue/devtools-next-core'
import type { MaybeRef } from 'vue'
import type { CustomTab } from '@vue-devtools-next/kit'
import { isInElectron } from '@vue-devtools-next/shared'
import type { CustomTab } from '@vue/devtools-next-kit'
import { isInElectron } from '@vue/devtools-next-shared'

import type { ModuleBuiltinTab } from '~/types/tab'

Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/composables/view-mode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VIEW_MODE_STORAGE_KEY, isInChromePanel, target } from '@vue-devtools-next/shared'
import { useDevToolsBridge } from '@vue-devtools-next/core'
import { VIEW_MODE_STORAGE_KEY, isInChromePanel, target } from '@vue/devtools-next-shared'
import { useDevToolsBridge } from '@vue/devtools-next-core'

export function useToggleViewMode() {
const bridge = useDevToolsBridge()
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/constants/tab.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { DevtoolsBridgeAppRecord } from '@vue-devtools-next/core'
import { deepClone, isInElectron } from '@vue-devtools-next/shared'
import type { DevtoolsBridgeAppRecord } from '@vue/devtools-next-core'
import { deepClone, isInElectron } from '@vue/devtools-next-shared'
import type { ModuleBuiltinTab } from '~/types'

// @unocss-include
Expand Down
Loading

0 comments on commit 400ac11

Please sign in to comment.