Vuejs terminal UI emulator Vuejs component for displaying UI element that acts as console terminal. Actual terminal logic code forked from Ptty.
Vuejs component for displaying UI element that acts as console terminal. Actual terminal logic code forked from Ptty.
npm i vue-terminal-ui --save
// import plugin
import VueTerminal from 'vue-terminal-ui'
// add to components section
components{
VueTerminal
},
// add method to call on command is typed
methods: {
onCliCommand(data, resolve, reject){
// typed command is available in data.text
// don't forget to resolve or reject the Promise
setTimeout(()=> {
resolve('')
}, 300)
}
},
// use in template
<VueTerminal :intro="intro"
console-sign="$"
allow-arbitrary
height="500px"
@command="onCliCommand"></VueTerminal>
props
intro
(String) - intro text when terminal starts;console-sign
(String) - starting symbol for each command line, eg. my-folder/master $
or just >>
;allow-arbitrary
(Boolean) - allow type any command in addition to basic ones, then @command
will be called;height
(String) - UI block height, eg. 500px
;event
@command
- callback function to call with command; accepts text, and resolve/reject callbacksAuthor: shershen08
Demo: https://codesandbox.io/s/4xxxkznk74
Source Code: https://github.com/shershen08/vue-terminal-ui
In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.
Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get
In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.
There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.
Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.