Skip to content

Commit

Permalink
Added Octicons icon set.
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Jul 27, 2015
1 parent a2414ed commit dfd9581
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 2 deletions.
Binary file added Fonts/Octicons.ttf
Binary file not shown.
222 changes: 222 additions & 0 deletions Octicons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
/**
* Octicons icon set component.
* Usage: <Octicons name="icon-name" size={20} color="#4F8EF7" />
*
* @providesModule Octicons
*/
'use strict';

var createIconSet = require('./lib/create-icon-set');
var glyphMap = {
"alert": 61485,
"alignment-align": 61578,
"alignment-aligned-to": 61582,
"alignment-unalign": 61579,
"arrow-down": 61503,
"arrow-left": 61504,
"arrow-right": 61502,
"arrow-small-down": 61600,
"arrow-small-left": 61601,
"arrow-small-right": 61553,
"arrow-small-up": 61599,
"arrow-up": 61501,
"beer": 61545,
"book": 61447,
"bookmark": 61563,
"briefcase": 61651,
"broadcast": 61512,
"browser": 61637,
"bug": 61585,
"calendar": 61544,
"check": 61498,
"checklist": 61558,
"chevron-down": 61603,
"chevron-left": 61604,
"chevron-right": 61560,
"chevron-up": 61602,
"circle-slash": 61572,
"circuit-board": 61654,
"clippy": 61493,
"clock": 61510,
"cloud-download": 61451,
"cloud-upload": 61452,
"code": 61535,
"color-mode": 61541,
"comment-add": 61483,
"comment": 61483,
"comment-discussion": 61519,
"credit-card": 61509,
"dash": 61642,
"dashboard": 61565,
"database": 61590,
"device-camera": 61526,
"device-camera-video": 61527,
"device-desktop": 62076,
"device-mobile": 61496,
"diff": 61517,
"diff-added": 61547,
"diff-ignored": 61593,
"diff-modified": 61549,
"diff-removed": 61548,
"diff-renamed": 61550,
"ellipsis": 61594,
"eye-unwatch": 61518,
"eye-watch": 61518,
"eye": 61518,
"file-binary": 61588,
"file-code": 61456,
"file-directory": 61462,
"file-media": 61458,
"file-pdf": 61460,
"file-submodule": 61463,
"file-symlink-directory": 61617,
"file-symlink-file": 61616,
"file-text": 61457,
"file-zip": 61459,
"flame": 61650,
"fold": 61644,
"gear": 61487,
"gift": 61506,
"gist": 61454,
"gist-secret": 61580,
"git-branch-create": 61472,
"git-branch-delete": 61472,
"git-branch": 61472,
"git-commit": 61471,
"git-compare": 61612,
"git-merge": 61475,
"git-pull-request-abandoned": 61449,
"git-pull-request": 61449,
"globe": 61622,
"graph": 61507,
"heart": 9829,
"history": 61566,
"home": 61581,
"horizontal-rule": 61552,
"hourglass": 61598,
"hubot": 61597,
"inbox": 61647,
"info": 61529,
"issue-closed": 61480,
"issue-opened": 61478,
"issue-reopened": 61479,
"jersey": 61465,
"jump-down": 61554,
"jump-left": 61605,
"jump-right": 61606,
"jump-up": 61555,
"key": 61513,
"keyboard": 61453,
"law": 61656,
"light-bulb": 61440,
"link": 61532,
"link-external": 61567,
"list-ordered": 61538,
"list-unordered": 61537,
"location": 61536,
"gist-private": 61546,
"mirror-private": 61546,
"git-fork-private": 61546,
"lock": 61546,
"logo-github": 61586,
"mail": 61499,
"mail-read": 61500,
"mail-reply": 61521,
"mark-github": 61450,
"markdown": 61641,
"megaphone": 61559,
"mention": 61630,
"microscope": 61577,
"milestone": 61557,
"mirror-public": 61476,
"mirror": 61476,
"mortar-board": 61655,
"move-down": 61608,
"move-left": 61556,
"move-right": 61609,
"move-up": 61607,
"mute": 61568,
"no-newline": 61596,
"octoface": 61448,
"organization": 61495,
"package": 61636,
"paintcan": 61649,
"pencil": 61528,
"person-add": 61464,
"person-follow": 61464,
"person": 61464,
"pin": 61505,
"playback-fast-forward": 61629,
"playback-pause": 61627,
"playback-play": 61631,
"playback-rewind": 61628,
"plug": 61652,
"repo-create": 61533,
"gist-new": 61533,
"file-directory-create": 61533,
"file-add": 61533,
"plus": 61533,
"podium": 61615,
"primitive-dot": 61522,
"primitive-square": 61523,
"pulse": 61573,
"puzzle": 61632,
"question": 61484,
"quote": 61539,
"radio-tower": 61488,
"repo-delete": 61441,
"repo": 61441,
"repo-clone": 61516,
"repo-force-push": 61514,
"gist-fork": 61442,
"repo-forked": 61442,
"repo-pull": 61446,
"repo-push": 61445,
"rocket": 61491,
"rss": 61492,
"ruby": 61511,
"screen-full": 61542,
"screen-normal": 61543,
"search-save": 61486,
"search": 61486,
"server": 61591,
"settings": 61564,
"log-in": 61494,
"sign-in": 61494,
"log-out": 61490,
"sign-out": 61490,
"split": 61638,
"squirrel": 61618,
"star-add": 61482,
"star-delete": 61482,
"star": 61482,
"steps": 61639,
"stop": 61583,
"repo-sync": 61575,
"sync": 61575,
"tag-remove": 61461,
"tag-add": 61461,
"tag": 61461,
"telescope": 61576,
"terminal": 61640,
"three-bars": 61534,
"thumbsdown": 61659,
"thumbsup": 61658,
"tools": 61489,
"trashcan": 61648,
"triangle-down": 61531,
"triangle-left": 61508,
"triangle-right": 61530,
"triangle-up": 61610,
"unfold": 61497,
"unmute": 61626,
"versions": 61540,
"remove-close": 61569,
"x": 61569
};

var Octicons = createIconSet(glyphMap, 'octicons');

module.exports = Octicons;
module.exports.glyphMap = glyphMap;

3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"devDependencies": {
"ionicons": "~2.0.1",
"css-social-buttons": "~1.0.0",
"foundation-icon-fonts": "*"
"foundation-icon-fonts": "*",
"octicons": "~2.4.1"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf {Fonts,Entypo.js,EvilIcons.js,FontAwesome.js,Foundation.js,Ionicons.js,MaterialIcons.js,Zocial.js} && mkdir Fonts && npm run build-entypo && npm run build-evilicons && npm run build-fontawesome && npm run build-foundation && npm run build-ionicons && npm run build-materialicons && npm run build-zocial",
"build": "rm -rf {Fonts,Entypo.js,EvilIcons.js,FontAwesome.js,Foundation.js,Ionicons.js,MaterialIcons.js,Octicons.js,Zocial.js} && mkdir Fonts && npm run build-entypo && npm run build-evilicons && npm run build-fontawesome && npm run build-foundation && npm run build-ionicons && npm run build-materialicons && npm run build-octicons && npm run build-zocial",
"build-entypo": "mkdir -p tmp/svg && curl https://dl.dropboxusercontent.com/u/4339492/entypo.zip > tmp/entypo.zip && unzip -j tmp/entypo.zip *.svg -x __MACOSX/* -d tmp/svg && fontcustom compile tmp/svg -o tmp -n Entypo -t css -h && node generate-icon tmp/Entypo.css --componentName=Entypo --fontFamily=Entypo > Entypo.js && cp tmp/Entypo.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-evilicons": "fontcustom compile node_modules/evil-icons/assets/icons -o tmp -n EvilIcons -t css -h && node generate-icon tmp/EvilIcons.css --prefix=.icon-ei- --componentName=EvilIcons --fontFamily=EvilIcons > EvilIcons.js && cp tmp/EvilIcons.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-fontawesome": "node generate-icon node_modules/font-awesome/css/font-awesome.css --prefix=.fa- --componentName=FontAwesome --fontFamily=FontAwesome > FontAwesome.js && cp node_modules/font-awesome/fonts/fontawesome-webfont.ttf Fonts/FontAwesome.ttf",
"build-foundation": "node generate-icon bower_components/foundation-icon-fonts/foundation-icons.css --prefix=.fi- --componentName=Foundation --fontFamily=fontcustom > Foundation.js && cp bower_components/foundation-icon-fonts/foundation-icons.ttf Fonts/Foundation.ttf",
"build-ionicons": "node generate-icon bower_components/ionicons/css/ionicons.css --prefix=.ion- --componentName=Ionicons --fontFamily=Ionicons > Ionicons.js && cp bower_components/ionicons/fonts/ionicons.ttf Fonts/Ionicons.ttf",
"build-materialicons": "mkdir -p tmp/svg && for f in ./node_modules/material-design-icons/*/svg/production/ic_*_48px.svg; do t=${f/*\\/ic_/}; t=${t/_48px/}; cp \"$f\" \"./tmp/svg/${t//_/-}\"; done && fontcustom compile tmp/svg -o tmp -n MaterialIcons -t css -h && node generate-icon tmp/MaterialIcons.css --componentName=MaterialIcons --fontFamily=MaterialIcons > MaterialIcons.js && cp tmp/MaterialIcons.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-octicons": "node generate-icon bower_components/octicons/octicons/octicons.css --prefix=.octicon- --componentName=Octicons --fontFamily=octicons > Octicons.js && cp bower_components/octicons/octicons/octicons.ttf Fonts/Octicons.ttf",
"build-zocial": "node generate-icon bower_components/css-social-buttons/css/zocial.css --prefix=.zocial. --componentName=Zocial --fontFamily=zocial > Zocial.js && cp bower_components/css-social-buttons/css/zocial.ttf Fonts/Zocial.ttf"
},
"keywords": [
Expand Down

0 comments on commit dfd9581

Please sign in to comment.