Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icaliman/d-share
Share buttons in Derby apps
https://github.com/icaliman/d-share
Last synced: about 1 month ago
JSON representation
Share buttons in Derby apps
- Host: GitHub
- URL: https://github.com/icaliman/d-share
- Owner: icaliman
- License: other
- Created: 2014-08-04T14:59:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-09T09:30:04.000Z (over 10 years ago)
- Last Synced: 2024-09-18T05:07:14.320Z (3 months ago)
- Language: CoffeeScript
- Homepage: http://icaliman.github.io/d-share/
- Size: 1.04 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-derby - d-share - Share buttons in Derby apps (Components)
README
d-share
========Share buttons in Derby apps.
Share your website on multiple third-party social networks.
## Available Sharing Networks
* Google+
* Tumblr
* MySpace
* SinaOther Sharing Networks, for these we have not icons (Contributors welcome!!!)
* Douban
* Kaixin
* Netease
* Renren
* Sohu## Usage Examples
First of make sure to install d-share through npm `npm install d-share`.
### Including
```js
app.use(require('d-share'));
```### In template
```html
Share on Facebook
```
### Component Attributes
| Attribute | Description | Applies To |
| :--- | :--- | :--- |
| service | The network to share to (please refer to the available networks; must be all lower case) | All |
| url | The URL you want to share | All, except Netease |
| text | The title or text you want to enter when sharing | Email, Pinterest, Twitter, Reddit, LinkedIn, MySpace, Douban, Kaixin, Netease, Renren, Sina, Sohu |
| desc | The description you want to enter when sharing | Email, MySpace |
| image | The image you want to enter when sharing | Pinterest, Douban, Sina |
| icon-size | Icon size, can be 16 or 32, defaults to 32 | optional |## TODO
* Store icons in another place (currently we use github).