-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add Standalone Vue Remote Devtools App (electron shell) (#451) #452
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
Conversation
Might be able to pick up some tips from this: https://github.com/vuetwo/vuetron |
@rigor789 I updated your PR on this branch https://github.com/vuejs/vue-devtools/tree/add-remote-devtools take a look. Quick instruction:
|
…ation and express serving file for client (backend)
Add connector as importable script
…ad of hardcoding localhost
src/backend/hook.js
Outdated
@@ -12,75 +12,77 @@ | |||
export function installHook (window) { | |||
let listeners = {} | |||
|
|||
const hook = { | |||
Vue: null, | |||
if (!window.hasOwnProperty('__VUE_DEVTOOLS_GLOBAL_HOOK__')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps without extra indentation?
if (window.hasOwnProperty('__VUE_DEVTOOLS_GLOBAL_HOOK__')) return
shells/dev/target-electron.html
Outdated
<div id="app"></div> | ||
<div id="shadow"></div> | ||
<script src="http://localhost:8098"></script> | ||
<script src="build/hook.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hook is not needed here, it's being loaded by above script
This is a WIP for adding an electron shell and remote debugging to VueDevtools.
Discussion is at #451