Skip to content

Basic JavaScript Console for Mobile Devices, as a Vue.js component.

License

Notifications You must be signed in to change notification settings

calirojas506/vue-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-console

Basic JavaScript Console for Mobile Devices, as a Vue.js component.

What is vue-console?

vue-console is a very basic JavaScript console for mobile devices. It means, you'll be able to execute JavaScript code directly in your mobile browser and get error messages generated at run-time.

This is a (global) component created using Vue.js, so you need Vue.js in order to use it. Also, the tiny "UI" uses Bootstrap, but it's included in the CSS file. Don't worry, it's namespaced so won't affect your styles.

vue-console overrides some methods (log, error, warn, clear & info) part of the console object and uses eval to run the code entered by the user. Don't get mad.

How to use vue-console?

Simple. Add it to your page using a script tag, add the CSS file and, finally, place the <vue-console/> component inside your code.

<!-- add vue-console -->
<script src="js/vue-console.js"></script>

The script should be added before creating the instance. Remember this is a global component. So that's the Vue.js way.

<link rel="stylesheet" href="css/vue-console.css">

This file basically contains a copy of Bootstrap namespaced and a couple of styles related to the UI.

<div id="app">
  <!-- add the component to your view -->
  <vue-console :is-visible="true"/>
</div>

By default, the is-visible prop equals to true. It's optional.

Important

Use vue-console only in development mode. Do not forget to remove the script and style files before sending to production.

This script is intended only for browsers, running on Mobile Devices, that lacks of JavaScript console.

Stay In Touch

License

MIT

Copyright (c) 2017, Cali Rojas

About

Basic JavaScript Console for Mobile Devices, as a Vue.js component.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published