Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Bardanov committed Aug 14, 2014
1 parent 0007859 commit 15a9bb5
Show file tree
Hide file tree
Showing 14 changed files with 3,598 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Icon must ends with two \r.
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes


bower*
Binary file added font/pictonic.eot
Binary file not shown.
2,812 changes: 2,812 additions & 0 deletions font/pictonic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added font/pictonic.svgz
Binary file not shown.
Binary file added font/pictonic.ttf
Binary file not shown.
Binary file added font/pictonic.woff
Binary file not shown.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ define(function (require, exports, module) {

ExtensionUtils.loadStyleSheet(module, 'styles/main.css');
ExtensionUtils.loadStyleSheet(module, 'styles/awesome.css');
ExtensionUtils.loadStyleSheet(module, 'styles/pictonic.css');

require('./services/injector').init();

Expand Down
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Brackets Document Toolbar
-------------------------

Extension that adds new toolbar with a list of all open documents.

![example](http://content.screencast.com/users/dnbard/folders/Jing/media/dc98f705-dce7-40bf-ae23-df54cee99819/2014-08-14_1456.png)

Works greatly with [sidebar plus](https://github.com/sathyamoorthi/brackets-sidebar-plus) extension.
77 changes: 77 additions & 0 deletions services/icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
define(function(require, exports){
var container = {
as: {icon: 'icon-prog-actionscript', color: '#C01424' },
js: { icon: 'icon-prog-js02', color: '#F1DA4E' },
ejs: { icon: 'icon-prog-js02', color: '#f4bf75' },
coffee: { icon: 'icon-prog-coffeescr', color: '#c9905e' },
css: { icon: 'icon-css3-02', color: '#34B0D4' },
scss: { icon: 'icon-css3-02', color: '#c6538c' },
sass: { icon: 'icon-css3-02', color: '#c6538c' },
less: { icon: 'icon-css3-02', color: '#1F4262' },
styl: { icon: 'icon-css3-02', color: '#b3d107' },
html: { icon: 'icon-html5-02', color: '#FF4202' },
xml: { icon: 'fa fa-code', color: '#B23E3F' },
php: { icon: 'icon-prog-php02', color:'#6976c3'},
sql: { icon: 'icon-dbs-postgresql', color:'#336691'},
java: { icon: 'icon-prog-java', color:'#3767A1'},
"class": { icon: 'icon-prog-java', color:'#3767A1'},
png: { icon: 'fa fa-file-image-o', color: '#dbb1a9' },
jpg: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
jpeg: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
tiff: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
ico: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
svg: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
gif: { icon: 'fa fa-file-image-o', color: '#dedfa3' },
mp4: { icon: 'fa fa-file-video-o', color: '#dedfa3' },
webm: { icon: 'fa fa-file-video-o', color: '#dedfa3' },
ogg: { icon: 'fa fa-file-video-o', color: '#dedfa3' },
ttf: { icon: 'fa fa-font'},
eot: { icon: 'fa fa-font'},
woff: { icon: 'fa fa-font'},
md: { icon: 'fa fa-file-text-o', color: '#c36b35'},
markdown: { icon: 'fa fa-file-text-o', color: '#c36b35'},
gitignore: { icon: 'icon-vc-git', color: '#a0422e' },
gitmodules: { icon: 'icon-vc-git'},
gitattributes: { icon: 'icon-vc-git'},
htaccess: { icon: 'fa-cog' },
htpasswd: { icon: 'fa-cog' },
conf: { icon: 'fa-cog' },
project: { icon: 'fa-cog' },
jscsrc: { icon: 'fa-cog' },
jshintrc: { icon: 'fa-cog' },
csslintrc: { icon: 'fa-cog' },
todo: { icon: 'fa-cog' },
classpath: { icon: 'fa-cog' },
dart: { icon: 'icon-prog-dart', color: '#1C94C6' },
clj: { icon: 'icon-prog-clojure', color: '#6BB13D' },
go : { icon: 'icon-prog-golang02', color: '#1C94C6' },
hs: { icon: 'icon-prog-haskell', color: '#342849' },
scala: { icon: 'icon-prog-scala', color: '#C81B1F' },
lsp: { icon: 'icon-prog-lisp', color: '#C30803' },
c: { icon: 'icon-prog-c'},
ruby: { icon: 'icon-prog-ruby', color: '#AF0B05' },
cs: { icon: 'icon-prog-csharp', color: '#483F90' },
py: { icon: 'icon-prog-python', color: '#3B6DA2' },
lua: { icon: 'icon-prog-lua02', color: '#01257B' },
erl: { icon: 'icon-prog-erlang', color: '#8C002E' },
sh: { icon: 'icon-prog-bash02' }
};

exports.get = function(fileName){
var splitName = fileName.split('.'), ext;
if (splitName[splitName.length - 1] && splitName.length > 0){
ext = splitName[splitName.length - 1];
return container[ext] ? container[ext].icon : 'fa fa-file';
}
return 'fa fa-file';
}

exports.color = function(fileName){
var splitName = fileName.split('.'), ext;
if (splitName[splitName.length - 1] && splitName.length > 0){
ext = splitName[splitName.length - 1];
return container[ext] ? container[ext].color || "white" : 'white';
}
return 'white';
}
});
9 changes: 9 additions & 0 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@
background: #1d1f21;
}

.ext-documents .document-icon{
font-size: 20px;
position: absolute;
top: 5px;
left: 4px;
}

.ext-documents .document-name{
padding-right: 4px;
margin-left: 14px;
}

.ext-documents .document:before{
Expand All @@ -37,6 +45,7 @@
border-width: 10px 10px 0px 0px;
border-style: solid;
border-color: rgb(60, 63, 65) transparent transparent rgb(60, 63, 65);
z-index: 10;
}

.ext-documents .document-close, .ext-documents .document.plus{
Expand Down
Loading

0 comments on commit 15a9bb5

Please sign in to comment.