Git Product home page Git Product logo

simple-console's Issues

I effing love this!

Today I wrote a super simple console logger that embeds in my webapp (not yet published) because I got tired of making calls to the real console and opening it. Sometimes you just need the very basics. I call it microconsole. If you like the name you are welcome to it. It's really just an output box with very limited functionality. Then a thought came to me. I wonder if others have thought of this so I did a google search and there was surprising number of them out there.

More on my microconsole. It only accepts inputs via a function. The input function which I call microlog(...args) takes full advantage of functional programming with rest/spread operators. That is really helpful. Anyway I just wanted to say that I may embed your console in my page or at the very least examine it to see how the gears turn. Good luck I will definitely bookmark this.

Avoid potential CSS selector conflict

The CSS uses some generic selectors like error and success that are likely to conflict.

Possible solutions:

Scoping selectors to .simple-console * (as opposed to prefixing the classes) is not an option, at least for .dark and .light, which are user-applied classes which should work applying them outside of .simple-console; and those are also part of the API currently, whereas other selectors are not, so maybe they should stay unprefixed.

Console messages have no minimum height

Messages should have min-height of probably 1em, so that if you enter just whitespace they don't get squished up and mess up the layout.

Noticing this with Ooplie's console. Less noticeable with the simple-console demo because it outputs "undefined" in that case.

[Feature request]

Hi,

I wished there was a success function beside log/warn/error, similar to warn and error but with a green background.

Thanks for the library it does a nice job.

Make it a web component

I don't have experience with web components, but I think this project should be an ideal candidate for being a web component.

[Feature request] hide input

Hi,

It would be cool to have the ability to hide the input so that it just acts as an output console. I used your library and hid the input with css, it does the job but a function/option in the API to do so would be really cool.

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.