Skip to content

Commit 7012ebd

Browse files
committed
refactor: removed [at]utils alias
1 parent 5b788d2 commit 7012ebd

File tree

19 files changed

+19
-22
lines changed

19 files changed

+19
-22
lines changed

packages/app-frontend/src/features/chrome/pane-visibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isChrome } from '@utils/env'
1+
import { isChrome } from '@vue-devtools/shared-utils'
22

33
let panelShown = !isChrome
44
let pendingAction = null

packages/app-frontend/src/features/components/RenderCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
import { reactive, watch } from '@vue/composition-api'
3-
import { BridgeEvents } from '@utils/consts'
3+
import { BridgeEvents } from '@vue-devtools/shared-utils'
44
import { useBridge } from '@front/features/bridge'
55
import { darkMode } from '@front/util/theme'
66

packages/app-frontend/src/features/inspector/DataField.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script lang="ts">
22
import { defineComponent } from '@vue/composition-api'
3-
import { BridgeEvents } from '@vue-devtools/shared-utils'
43
import {
4+
BridgeEvents,
55
isPlainObject,
66
sortByKey,
77
openInEditor,
88
copyToClipboard,
9-
} from '@utils/util'
9+
} from '@vue-devtools/shared-utils'
1010
import DataFieldEdit from '@front/mixins/data-field-edit'
1111
import { formattedValue, valueType, valueDetails } from '@front/util/format'
1212
import { getBridge } from '../bridge'

packages/app-frontend/src/mixins/data-field-edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
UNDEFINED,
33
SPECIAL_TOKENS,
44
parse,
5-
} from '@utils/util'
5+
} from '@vue-devtools/shared-utils'
66

77
let currentEditedField = null
88

packages/app-frontend/src/plugins/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { simpleGet } from '@utils/util'
1+
import { simpleGet } from '@vue-devtools/shared-utils'
22

33
const reg = /\{\{\s*([\w_.-]+)\s*\}\}/g
44

packages/app-frontend/src/plugins/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Vue from 'vue'
44
import PortalVue from 'portal-vue'
55
import VueUi, { generateHtmlIcon } from '@vue/ui'
66
import VueVirtualScroller from 'vue-virtual-scroller'
7-
import { keys } from '@utils/env'
7+
import { keys } from '@vue-devtools/shared-utils'
88
import VI18n from './i18n'
99
import Responsive from './responsive'
1010
import GlobalRefs from './global-refs'

packages/app-frontend/src/util/format/value.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
isPlainObject,
77
escape,
88
specialTokenToString,
9-
} from '@utils/util'
9+
} from '@vue-devtools/shared-utils'
1010

1111
const rawTypeRE = /^\[object (\w+)]$/
1212
const specialTypeRE = /^\[native (\w+) (.*?)(<>((.|\s)*))?\]$/

packages/app-frontend/src/util/shared-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { onUnmounted } from '@vue/composition-api'
2-
import { watchSharedData } from '@utils/shared-data'
2+
import { watchSharedData } from '@vue-devtools/shared-utils'
33

44
export function onSharedDataChange (prop, handler) {
55
const off = watchSharedData(prop, handler)

packages/build-tools/src/createConfig.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ exports.createConfig = (config, target = { chrome: 52, firefox: 48 }) => {
1818
alias: {
1919
'@front': '@vue-devtools/app-frontend/src',
2020
'@back': '@vue-devtools/app-backend-core/lib',
21-
'@utils': '@vue-devtools/shared-utils/lib',
2221
},
2322
// symlinks: false,
2423
fallback: {

packages/shell-chrome/src/backend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// this is injected to the app page when the panel is activated.
22

33
import { initBackend } from '@back'
4-
import { Bridge } from '@utils/bridge'
4+
import { Bridge } from '@vue-devtools/shared-utils'
55

66
window.addEventListener('message', handshake)
77

packages/shell-chrome/src/detector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { installToast } from '@back/toast'
2-
import { isFirefox } from '@utils/env'
2+
import { isFirefox } from '@vue-devtools/shared-utils'
33

44
window.addEventListener('message', e => {
55
if (e.source === window && e.data.vueDetected) {

packages/shell-chrome/src/devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// this script is called when the VueDevtools panel is activated.
22

33
import { initDevTools } from '@front'
4-
import { Bridge } from '@utils/bridge'
4+
import { Bridge } from '@vue-devtools/shared-utils'
55

66
initDevTools({
77

packages/shell-chrome/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This script is injected into every page.
22
import { installHook } from '@back/hook'
3-
import { isFirefox } from '@utils/env'
3+
import { isFirefox } from '@vue-devtools/shared-utils'
44

55
// inject the hook
66
if (document instanceof HTMLDocument) {

packages/shell-electron/src/backend.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import io from 'socket.io-client'
22
import { initBackend } from '@back'
3-
import { Bridge } from '@utils/bridge'
43
import { installToast } from '@back/toast'
5-
import { target } from '@utils/env'
4+
import { Bridge, target } from '@vue-devtools/shared-utils'
65

76
const host = target.__VUE_DEVTOOLS_HOST__ || 'http://localhost'
87
const port = target.__VUE_DEVTOOLS_PORT__ !== undefined ? target.__VUE_DEVTOOLS_PORT__ : 8098

packages/shell-electron/src/devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import io from 'socket.io-client'
22
import { initDevTools } from '@front'
3-
import { Bridge } from '@utils/bridge'
3+
import { Bridge } from '@vue-devtools/shared-utils'
44

55
const port = window.process.env.PORT || 8098
66
const socket = io('http://localhost:' + port)

packages/shell-electron/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { installHook } from '@back/hook'
2-
import { target } from '@utils/env'
2+
import { target } from '@vue-devtools/shared-utils'
33

44
installHook(target)

packages/shell-host/src/backend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { initBackend } from '@back'
2-
import { Bridge } from '@utils/bridge'
2+
import { Bridge } from '@vue-devtools/shared-utils'
33

44
const bridge = new Bridge({
55
listen (fn) {

packages/shell-host/src/devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { initDevTools } from '@front'
2-
import { Bridge } from '@utils/bridge'
2+
import { Bridge } from '@vue-devtools/shared-utils'
33

44
const target = document.getElementById('target')
55
const targetWindow = target.contentWindow

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"paths": {
5-
"@back/*": ["packages/app-backend/src/*"],
5+
"@back/*": ["packages/app-backend-core/src/*"],
66
"@front/*": ["packages/app-frontend/src/*"],
7-
"@utils/*": ["packages/shared-utils/src/*"]
87
},
98
"moduleResolution": "node",
109
"allowSyntheticDefaultImports": true,

0 commit comments

Comments
 (0)