butter-github-star

WebJar for butter-github-star

License

License

Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.bowergithub.jcrestel
ArtifactId

ArtifactId

butter-github-star
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

butter-github-star
WebJar for butter-github-star
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/JCrestel/butter-github-star

Download butter-github-star

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.jcrestel/butter-github-star/ -->
<dependency>
    <groupId>org.webjars.bowergithub.jcrestel</groupId>
    <artifactId>butter-github-star</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jcrestel/butter-github-star/
implementation 'org.webjars.bowergithub.jcrestel:butter-github-star:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jcrestel/butter-github-star/
implementation ("org.webjars.bowergithub.jcrestel:butter-github-star:1.0.3")
'org.webjars.bowergithub.jcrestel:butter-github-star:jar:1.0.3'
<dependency org="org.webjars.bowergithub.jcrestel" name="butter-github-star" rev="1.0.3">
  <artifact name="butter-github-star" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.jcrestel', module='butter-github-star', version='1.0.3')
)
libraryDependencies += "org.webjars.bowergithub.jcrestel" % "butter-github-star" % "1.0.3"
[org.webjars.bowergithub.jcrestel/butter-github-star "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : iron-icons jar [2.0.1,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.1,3)

Project Modules

There are no modules declared in this project.

<butter-github-star> Published on webcomponents.org Build Status

This web-component shows the number of stars of a Github repository.

<butter-github-star user="JCrestel" repository="butter-github-star"></butter-github-star>

Installation

Install the component using Bower

$ bower install butter-github-star --save

Usage

  • Import Web Components's polyfill (if needed):
<script src="../webcomponentsjs/webcomponents.min.js"></script>
  • Import the component:
<link rel="import" href="../butter-github-star/butter-github-star.html">
  • Use the component:
<butter-github-star user="JCrestel" repository="butter-github-star"></butter-github-star>

Attributes

Attribute Type Mandatory Description
user String Yes User on Github
repository String Yes Repository of the user

Styling

<butter-github-star> provides the following custom properties for styling:

Custom property Description Default
--butter-icon-color Color of the star --iron-icon-fill-color
--iron-icon-fill-color Color of the star if --butter-icon-color not defined black
--butter-background-color Background color of left part #e6ebf1
--butter-border-color Border color rgba(27,31,35,0.35)
--butter-font-familly Font familly 'Roboto', 'Noto', sans-serif

Demo

View the demo here: https://jcrestel.github.io/butter-github-star/

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

Apache 2.0

Versions

Version
1.0.3
1.0.2