Coder Social home page Coder Social logo

greystate / componentize Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 515 KB

The way I do "component-based" frontend development, includes using this to view the individual components

License: MIT License

HTML 21.18% Less 37.02% JavaScript 41.79%
components css frontend javascript less

componentize's People

Contributors

greystate avatar

Watchers

 avatar  avatar

componentize's Issues

Rename script file(s)

The script file should be renamed to componentize.coffee (and thus, the dist file becomes componentize.js

Enable .solid-bg to use a specific color

When adding the .solid-bg class to a component, it should be possible to also specify the color if necessary, using a CSS custom property, e.g.:

<div class="component solid-bg" style="--bg-color:#ff8000;">

Add the `.assertRendered()` mixin

I always use this, and I always forget that it never exists before I've added it :)

And it's used within the componentize context, so makes sense to add it here.

Make compact view use full width

When viewing the components on a mobile/compact screen, put the component name on top of the component and let the component use the full width.

TOC is not sorted in Chrome

In the Google Chrome browser, the Table Of Contents overlay is not sorted alphabetically.

Problem's here in the toc.js file:

items.sort((a, b) => a.dataset.title > b.dataset.title)

The sort function should return either 1 or -1 instead of true / false as it currently does.

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.