添加vue devtools
parent
f39d13c8f8
commit
3b02703805
|
@ -17,6 +17,8 @@ module.exports = merge(baseConfig, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
ELECTRON_DISABLE_SECURITY_WARNINGS: 'true',
|
ELECTRON_DISABLE_SECURITY_WARNINGS: 'true',
|
||||||
},
|
},
|
||||||
|
__VUE_OPTIONS_API__: 'true',
|
||||||
|
__VUE_PROD_DEVTOOLS__: 'false',
|
||||||
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
|
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
@ -32,6 +32,8 @@ module.exports = merge(baseConfig, {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: '"production"',
|
NODE_ENV: '"production"',
|
||||||
},
|
},
|
||||||
|
__VUE_OPTIONS_API__: 'true',
|
||||||
|
__VUE_PROD_DEVTOOLS__: 'false',
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
|
|
|
@ -17,6 +17,8 @@ module.exports = merge(baseConfig, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
ELECTRON_DISABLE_SECURITY_WARNINGS: 'true',
|
ELECTRON_DISABLE_SECURITY_WARNINGS: 'true',
|
||||||
},
|
},
|
||||||
|
__VUE_OPTIONS_API__: 'true',
|
||||||
|
__VUE_PROD_DEVTOOLS__: 'false',
|
||||||
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
|
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
@ -31,6 +31,8 @@ module.exports = merge(baseConfig, {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: '"production"',
|
NODE_ENV: '"production"',
|
||||||
},
|
},
|
||||||
|
__VUE_OPTIONS_API__: 'true',
|
||||||
|
__VUE_PROD_DEVTOOLS__: 'false',
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
|
|
|
@ -6,16 +6,16 @@
|
||||||
*/
|
*/
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
const electronDebug = require('electron-debug')
|
const electronDebug = require('electron-debug')
|
||||||
const { default: installExtension, VUEJS_DEVTOOLS } = require('electron-devtools-installer')
|
const { default: installExtension, VUEJS3_DEVTOOLS } = require('electron-devtools-installer')
|
||||||
// Install `electron-debug` with `devtron`
|
// Install `electron-debug` with `devtron`
|
||||||
electronDebug({
|
electronDebug({
|
||||||
showDevTools: true,
|
showDevTools: true,
|
||||||
devToolsMode: 'undocked',
|
devToolsMode: 'undocked',
|
||||||
})
|
})
|
||||||
|
console.log(VUEJS3_DEVTOOLS)
|
||||||
// Install `vue-devtools`
|
// Install `vue-devtools`
|
||||||
electron.app.on('ready', () => {
|
electron.app.on('ready', () => {
|
||||||
installExtension(VUEJS_DEVTOOLS)
|
installExtension(VUEJS3_DEVTOOLS)
|
||||||
.then(name => console.log(`Added Extension: ${name}`))
|
.then(name => console.log(`Added Extension: ${name}`))
|
||||||
.catch(err => console.log('An error occurred: ', err))
|
.catch(err => console.log('An error occurred: ', err))
|
||||||
})
|
})
|
||||||
|
|
|
@ -13,6 +13,7 @@ import ControlBtns from './ControlBtns'
|
||||||
import NavBar from './NavBar'
|
import NavBar from './NavBar'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'CoreAside',
|
||||||
components: { ControlBtns, NavBar },
|
components: { ControlBtns, NavBar },
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['setting']),
|
...mapGetters(['setting']),
|
||||||
|
|
|
@ -34,6 +34,7 @@ import music from '@renderer/utils/music'
|
||||||
import CommentFloor from './CommentFloor'
|
import CommentFloor from './CommentFloor'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'MusicComment',
|
||||||
props: {
|
props: {
|
||||||
show: Boolean,
|
show: Boolean,
|
||||||
musicInfo: {
|
musicInfo: {
|
||||||
|
|
|
@ -51,6 +51,7 @@ import usePlayProgress from '@renderer/utils/compositions/usePlayProgress'
|
||||||
import { statusText, musicInfo, setShowPlayerDetail, isPlay, musicInfoItem, playInfo, playMusicInfo } from '@renderer/core/share/player'
|
import { statusText, musicInfo, setShowPlayerDetail, isPlay, musicInfoItem, playInfo, playMusicInfo } from '@renderer/core/share/player'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'CorePlayBar',
|
||||||
components: {
|
components: {
|
||||||
ControlBtns,
|
ControlBtns,
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,6 +50,7 @@ import LyricPlayer from './LyricPlayer'
|
||||||
import PlayBar from './PlayBar'
|
import PlayBar from './PlayBar'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'CorePlayDetail',
|
||||||
components: {
|
components: {
|
||||||
LyricPlayer,
|
LyricPlayer,
|
||||||
PlayBar,
|
PlayBar,
|
||||||
|
|
|
@ -13,6 +13,7 @@ import ControlBtns from './ControlBtns'
|
||||||
import SearchInput from './SearchInput'
|
import SearchInput from './SearchInput'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'CoreToolBar',
|
||||||
components: { SearchInput, ControlBtns },
|
components: { SearchInput, ControlBtns },
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['setting']),
|
...mapGetters(['setting']),
|
||||||
|
|
Loading…
Reference in New Issue