GithubHelp home page GithubHelp logo

vanxrice / github-repos-cards Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 3.42 MB

A Polymer web component that displays git repository data from Github

Home Page: http://vanxrice.github.io/github-repos-cards/components/github-repos-cards

License: Apache License 2.0

CSS 100.00%

github-repos-cards's Introduction

<github-repos-cards>

A Polymer web component that displays git repository data as a grid collection of cards. The <github-repo-card> displays basic repo information, including: stargazer/watcher count, repo description, a link to the README, default branch and last commit time, and includes a download link. <github-repo-card> is the standalone card, it does not make any request and may be used without <github-repos-cards>. This project intentionally does not define much styling (CSS or otherwise), you should style these elements in your application so they integrate well.

This element was intended to be used with Github's API, and expects a response in the form of Github's API v3. However requests are not restricted to Github, a JSONP request is made for the provided request string - this allows you to use a different REST API.

The response object is exposed as response, this can be used to manually set the model or to use the request outside of this element. See the demo for an example that sums stargazers.

See the component page for more information.

Live demo

See the demo page.

How To Use

Installation

Available on Bower as github-repos-pages.

Add to bower.json:

{
  "dependencies": {
    "github-repos-cards": "~0.1.0"
  }
}

Usage

This component is built using Polymer and uses the Web Component stack.

<!-- … -->
<script src="../webcomponentsjs/webcomponents.js"></script>

<link rel="import" href="../github-repos-cards/github-repos-cards.html">
<!-- ... -->
<github-repos-cards maxRepoCount="5" response="{{ghResponse}}"
  request="https://api.github.com/users/vanxrice/repos?type=owner&sort=updated&direction=desc">
</github-repos-cards>

Maintained by

License

Apache License Version 2.0, see LICENSE file

Copyright © 2014 @van_rice

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.