All Projects → cars10 → vue-static-terminal

cars10 / vue-static-terminal

Licence: other
A fully customizable static terminal component for vue.js

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-static-terminal

manakin
🐦 Prime colors for your Node.js console — quick & safe.
Stars: ✭ 29 (+61.11%)
Mutual labels:  console
snax86
A snake game written in x86 Assembly language for windows console
Stars: ✭ 21 (+16.67%)
Mutual labels:  console
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-5.56%)
Mutual labels:  console
tinydownloader
a tiny downloader with console panel.
Stars: ✭ 80 (+344.44%)
Mutual labels:  console
ansiart2utf8
Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8. Escape codes and line endings are processed for terminal friendliness.
Stars: ✭ 32 (+77.78%)
Mutual labels:  console
attaching jshell
Attach Java 9's JShell to already-running virtual machine
Stars: ✭ 27 (+50%)
Mutual labels:  console
paper-terminal
Print Markdown to a paper in your terminal
Stars: ✭ 33 (+83.33%)
Mutual labels:  console
fenrir
An TTY screenreader for Linux.
Stars: ✭ 33 (+83.33%)
Mutual labels:  console
console-logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+516.67%)
Mutual labels:  console
BetterConsoleTables
Faster, colorable, more configurable, and more robust console colors & tables for C# console applications
Stars: ✭ 59 (+227.78%)
Mutual labels:  console
portera
Remote logs
Stars: ✭ 22 (+22.22%)
Mutual labels:  console
xontrib-prompt-bar
The bar prompt for xonsh shell with customizable sections and Starship support.
Stars: ✭ 27 (+50%)
Mutual labels:  console
smag
Show Me A Graph - Command Line Graphing
Stars: ✭ 78 (+333.33%)
Mutual labels:  console
qbittorrentui
text user interface for qbittorrent
Stars: ✭ 19 (+5.56%)
Mutual labels:  console
tamcolors
tamcolors is a terminal game library which supports multiplayer and audio. tamcolors gives a buffer which lets the user set the character, foreground color and background color which can draw at a stable FPS of 25 on all supported console.
Stars: ✭ 24 (+33.33%)
Mutual labels:  console
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (+94.44%)
Mutual labels:  console
console.history
📜 Store all javascript console logs in console.history
Stars: ✭ 30 (+66.67%)
Mutual labels:  console
contabs
Simple yet flexible tables for console apps.
Stars: ✭ 51 (+183.33%)
Mutual labels:  console
dotfiles
🔧 .files - different setups separated in branches
Stars: ✭ 168 (+833.33%)
Mutual labels:  console
lime
A library for drawing graphics on the console screen
Stars: ✭ 32 (+77.78%)
Mutual labels:  console

vue-static-terminal

A fully customizable static terminal component for vue.js

npm version Screenshot

Visit the wiki for more examples.

Installation

Via npm

First add it to your package.json:

npm install vue-static-terminal --save
# or yarn
yarn add vue-static-terminal

Then import the component js:

import VueStaticTerminal from 'vue-static-terminal'

And the styles. Alternatively copy the styles to your project and customize them.

import 'vue-static-terminal/dist/vue-static-terminal.css'

Manually via <script> tag

If you don't use npm you can download the minified version in dist/vue-static-terminal.min.js and the css in dist/vue-static-terminal.css, then add it to your site:

<link rel="stylesheet" href="vue-static-terminal.css">
<script src="vue-static-terminal.min.js"></script>

Loading the minified version will automatically register the component VueStaticTerminal globally on the browsers window object.

Usage

Load the component:

Vue.use(VueStaticTerminal)

Use the component:

Empty terminal

<static-terminal></vue-static-terminal>
export default {}

Simple example

<static-terminal :header="terminal.header"
                 :prompt="terminal.prompt"
                 :commands="terminal.commands"></vue-static-terminal>
export default {
  data: () => {
    return {
      terminal: {
        header: {
          text: 'some Terminal',
          toolbar: '&#x2715;'
        },
        prompt: '/ >',
        commands: [
          {command: 'ls', result: 'file1 file2'},
          {command: 'whoami', result: 'root'}
        ]
      }
    }
  }
}

Visit the wiki for more examples.

API

The component accepts the following three props:

  • header - type: object
  • prompt - type: string
  • commands - type: array of objects

None of these are required, neither are their respective attributes. All attributes can contain html entities.

header

type: object

Attribute Type Default Example
text string '' 'xterm'
toolbar string <span style="color: lightgrey;">&#9679;</span>&nbsp;&nbsp;<span>&#9679;</span>    '- X'

prompt

type: string

Default Example
'$' '$>'

commands

type: array of objects

Attribute Type Default Example
prompt string undefined. The global prompt will be used '$>'
command string '' 'whoami'
result string '' 'root'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].