Code Monkey home page Code Monkey logo

pure-terminal's Introduction

pure-terminal's People

Contributors

jcubic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rampall

pure-terminal's Issues

Setup TypeScript aware linter

add tslint and check the files, the code passes but if linter show errors fix them if possible they should be trivial like missing semicolons.

Use version of the image from tag

The problem with jQuery Terminal is that the main image is taken from the master on GitHub. So it always has the latest version even if you look into the history version on NPM.

The solution would be to use tag instead of the branch to get the image for NPM.

Split linting and testing GitHub Actions

I've seen this in one project. It would be beneficial to run both tests and Lint as separate workflows. So you can show both badges in README. Lint may fail but tests should not.

Figure out Images inside Links

This is the missing feature in jQuery Terminal. But links and images use the same slots in formatting.

This doesn't work:

term.echo('[[!;;;;https://example.com;][[@;;;;image.png]]]')

The nested formatting will flatten and the image will be removed because of inheritance.

Setup unit tests

Add tests for the format function. Each module should have a separate test file.

Copy solution and code from jquery.terminal.

  • add jest Npm package
  • add to GitHub action
  • create __tests__ directory
  • add a single file for testing the format function from the original test (you need to import the format function from the module and modify the code so it works without $.terminal namespace) nested_formatting

Create solution to generate CSS with random class for CSP

To fix the issue with CSP the library from the start should use a similar approach to styled-components. Generate <style> tag that can have nonce attribute and each element that need custom CSS will have a class.

The problem is formatting that uses inline styles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.