You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-terminal-plus

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-terminal-plus

A fork of the the 'react-terminal' package, with some extra features - react-terminal-plus

0.0.15
Source
npmnpm
Version published
Weekly downloads
521
10.62%
Maintainers
1
Weekly downloads
 
Created
Source

Forked version of react-terminal

original repo: https://github.com/bony2023/react-terminal

setting up github repo in gitlab: https://gist.github.com/DavideMontersino/810ebaa170a2aa2d2cad

Roadmap

Features to add:

  • [X]: Properly styled results - white-space: pre-wrap;
  • [X]: Add new native commands like: CTRL+L, CTRL+C
  • []: Hook to run controlled commands - e.g useTerminal()
  • []: Allow highlighting of text with keyboard

New Commands

  • cls => same as clear

New Shortcuts

CTRL + C CTRL + L

Required to launch

  • Cancel command shortcut (or at least button)

To Look At

  • blinking cursor (maybe too fast)
  • look into colors highlights
  • a way to copy everything
  • save buffer to local-storage

Portal Stuff

  • allow eval on portal - iframe isolate?
  • connection state info
  • firewall rules

Timeline 4 weeks / 5 June - 2 July

week 1/2

  • Implement "cancel running command" shortcut => Ctrl + C
  • Add cls command => same as clear
  • Allow eval on portal - iframe isolate?
  • Hide Mongo Terminal it behind employee flag for internal testing

week 3/4 (if time permits)

  • a way to copy everything
  • save buffer to local-storage
  • apply colors highlights

Terminal Features

  • [X]: Copy Pasting through keyboard - Ctrl+c/Ctrl+V
  • [X]: Copy Pasting through browser's context menu - Right Click
  • [X]: Cancel running command with Ctrl+C
  • [X]: Clear terminal with Ctrl+L
  • [X]: Add cls command to clear terminal
  • [X]: Localstorage support for commands history

Mongo Shell in Portal - Missing Features

  • [X]: Talk with Francisco about the portal's security concerns
  • [X]: Bug showing the connected database - urgent
  • [X]: colors/font-size/line-height - urgent
  • [X]: Terminal background color - talk with Design
  • [X]: Integrate into the tutorial?? - later
  • [1]: Blocklist commands - [window, ...]
  • [2]: Only show mongo shell if there are workspaces with KAI enabled - let's hide for now
  • [3]: Look at analytics
  • [2]: Look at firewall rules - try
  • [2]: Talk with Design about including a "don't copy paste" warning - later
  • []: ???

Keywords

node

FAQs

Package last updated on 13 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts