├── .gitignore
├── README.md
├── History.md
├── styles.css
├── template.html
├── component.json
├── proposer.js
└── LICENSE
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | proposer icon
2 | =========
3 |
4 | proposer icon for DemocracyOs apps family
5 |
6 | 
--------------------------------------------------------------------------------
/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.2 / 2014-11-25
3 | ==================
4 | * Fix align styles.
5 | * Fix typos.
6 | * Update component.json
7 |
8 | 0.0.1 / 2014-11-21
9 | ==================
10 |
11 | Initial release
12 |
--------------------------------------------------------------------------------
/styles.css:
--------------------------------------------------------------------------------
1 | .proposer {
2 | display: inline-block;
3 | }
4 |
5 | .proposer a {
6 | display: inline-block;
7 | }
8 |
9 | .proposer a img {
10 | display: inline-block;
11 | height: 30px;
12 | width: 30px;
13 | border-radius: 100%;
14 | margin-top: 1px;
15 | }
16 |
17 | .proposer .proposer-data {
18 | float: right;
19 | padding-left: 10px;
20 | display: inline-block;
21 | line-height: 10px;
22 | }
23 |
--------------------------------------------------------------------------------
/template.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "proposer",
3 | "repo": "DemocracyOS/proposer",
4 | "description": "Proposer icon for law/bill projects",
5 | "version": "0.0.2",
6 | "keywords": [
7 | "icon",
8 | "profile",
9 | "ui"
10 | ],
11 | "dependencies": {
12 | "ripplejs/ripple": "0.5.3"
13 | },
14 | "development": {},
15 | "license": "MIT",
16 | "scripts": [
17 | "proposer.js"
18 | ],
19 | "styles": [
20 | "styles.css"
21 | ],
22 | "templates": [
23 | "template.html"
24 | ],
25 | "main": "proposer.js"
26 | }
27 |
--------------------------------------------------------------------------------
/proposer.js:
--------------------------------------------------------------------------------
1 | var ripple = require('ripple');
2 | var template = require('./template.html');
3 |
4 | /**
5 | * Create a proposer icon.
6 | *
7 | * @param {Object} proposer should be set:
8 | *
9 | * {String} data.imageUrl Url for link image icon
10 | * {String} data.image url for the image source jpg| png | etc.
11 | * {String} data.authorTitle title for the autor
12 | * {String} data.authorUrl url to the author profile/page/external link
13 | * {String} data.name Name of the author
14 | * {String} data.affiliationTitle Affiliations of the author.
15 | * {String} data.affiliationUrl Affiliations of the url.
16 | * {String} data.affiliation name of the author.
17 | *
18 | * @constructor
19 | */
20 | function Proposer (proposer) {
21 | if (!this instanceof Proposer) {
22 | return new Proposer(proposer);
23 | }
24 |
25 | var View = ripple(template);
26 | return new View(proposer);
27 | }
28 |
29 | module.exports = Proposer;
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Mariano
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------