How to use @vue/devtools - 3 common examples

To help you get started, we’ve selected a few @vue/devtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kloudless / meeting-scheduler / src / embed / index.js View on Github external
import devtools from '@vue/devtools';
import MeetingSchedulerView from 'view/MeetingSchedulerView';
import { INTERNAL_EVENTS } from 'constants';

/**
 * @vue/devtools will be replace with an empty module by webpack null-loader for
 * production build.
 */
if (devtools && devtools.connect) {
  devtools.connect('localhost', 8098);
}

if (window.parent !== window) {
  // only execute this script when launched inside iframe
  const id = window.location.hash.substr(1);
  setTimeout(() => {
    const scheduler = new MeetingSchedulerView({
      id,
    });

    scheduler.messenger.connect(window.parent);
    scheduler.messenger.send({
      event: INTERNAL_EVENTS.VIEW_LOAD,
    }, '*');
  }, 0);
}
github nativescript-vue / nativescript-vue-devtools / index.js View on Github external
showToast,
        io() {
          try {
            const SocketIO = require('nativescript-socketio').SocketIO
            const address = `http://${getServerIpAddress(host, port)}`
            let socketIO = new SocketIO(address, {debug: debug})
            socketIO.connect()

            return socketIO
          } catch (error) {
            console.log(error)
          }
        }
      })

      devtools.init(Vue);
    }
github nativescript-vue / nativescript-vue-devtools / index.js View on Github external
const setupDevtools = () => {
      devtools.connect('ws://localhost', port, {
        app: this,
        showToast,
        io() {
          try {
            const SocketIO = require('nativescript-socketio').SocketIO
            const address = `http://${getServerIpAddress(host, port)}`
            let socketIO = new SocketIO(address, {debug: debug})
            socketIO.connect()

            return socketIO
          } catch (error) {
            console.log(error)
          }
        }
      })

@vue/devtools

> This package provides a standalone vue-devtools application, that can be used to debug any Vue app regardless of the environment. Now you can debug your app opened in mobile browser, safari, native script etc. not just desktop chrome or firefox.

MIT
Latest version published 3 days ago

Package Health Score

84 / 100
Full package analysis

Popular @vue/devtools functions

Similar packages