-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4a64a5d
Showing
30 changed files
with
11,572 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "app/bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
temp | ||
.tmp | ||
dist | ||
.sass-cache | ||
app/bower_components | ||
test/bower_components | ||
package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"node": true, | ||
"browser": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"globals" : { | ||
"chrome": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,302 @@ | ||
/*jshint camelcase: false*/ | ||
// Generated on 2013-11-16 using generator-chrome-extension 0.2.5 | ||
'use strict'; | ||
var mountFolder = function (connect, dir) { | ||
return connect.static(require('path').resolve(dir)); | ||
}; | ||
|
||
// # Globbing | ||
// for performance reasons we're only matching one level down: | ||
// 'test/spec/{,*/}*.js' | ||
// use this if you want to recursively match all subfolders: | ||
// 'test/spec/**/*.js' | ||
|
||
module.exports = function (grunt) { | ||
// show elapsed time at the end | ||
require('time-grunt')(grunt); | ||
// load all grunt tasks | ||
require('load-grunt-tasks')(grunt); | ||
|
||
// configurable paths | ||
var yeomanConfig = { | ||
app: 'app', | ||
dist: 'dist' | ||
}; | ||
|
||
grunt.initConfig({ | ||
yeoman: yeomanConfig, | ||
watch: { | ||
options: { | ||
spawn: false | ||
}, | ||
coffee: { | ||
files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'], | ||
tasks: ['coffee:dist'] | ||
}, | ||
coffeeTest: { | ||
files: ['test/spec/{,*/}*.coffee'], | ||
tasks: ['coffee:test'] | ||
}, | ||
compass: { | ||
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], | ||
tasks: ['compass:server'] | ||
} | ||
}, | ||
connect: { | ||
options: { | ||
port: 9000, | ||
// change this to '0.0.0.0' to access the server from outside | ||
hostname: 'localhost' | ||
}, | ||
test: { | ||
options: { | ||
middleware: function (connect) { | ||
return [ | ||
mountFolder(connect, '.tmp'), | ||
mountFolder(connect, 'test') | ||
]; | ||
} | ||
} | ||
} | ||
}, | ||
clean: { | ||
dist: { | ||
files: [{ | ||
dot: true, | ||
src: [ | ||
'.tmp', | ||
'<%= yeoman.dist %>/*', | ||
'!<%= yeoman.dist %>/.git*' | ||
] | ||
}] | ||
}, | ||
server: '.tmp' | ||
}, | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
all: [ | ||
'Gruntfile.js', | ||
'<%= yeoman.app %>/scripts/{,*/}*.js', | ||
'test/spec/{,*/}*.js' | ||
] | ||
}, | ||
mocha: { | ||
all: { | ||
options: { | ||
run: true, | ||
urls: ['http://localhost:<%= connect.options.port %>/index.html'] | ||
} | ||
} | ||
}, | ||
coffee: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= yeoman.app %>/scripts', | ||
src: '{,*/}*.coffee', | ||
dest: '.tmp/scripts', | ||
ext: '.js' | ||
}] | ||
}, | ||
test: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'test/spec', | ||
src: '{,*/}*.coffee', | ||
dest: '.tmp/spec', | ||
ext: '.js' | ||
}] | ||
} | ||
}, | ||
compass: { | ||
options: { | ||
sassDir: '<%= yeoman.app %>/styles', | ||
cssDir: '.tmp/styles', | ||
generatedImagesDir: '.tmp/images/generated', | ||
imagesDir: '<%= yeoman.app %>/images', | ||
javascriptsDir: '<%= yeoman.app %>/scripts', | ||
fontsDir: '<%= yeoman.app %>/styles/fonts', | ||
importPath: '<%= yeoman.app %>/bower_components', | ||
httpImagesPath: '/images', | ||
httpGeneratedImagesPath: '/images/generated', | ||
relativeAssets: false | ||
}, | ||
dist: {}, | ||
server: { | ||
options: { | ||
debugInfo: true | ||
} | ||
} | ||
}, | ||
// not used since Uglify task does concat, | ||
// but still available if needed | ||
/*concat: { | ||
dist: {} | ||
},*/ | ||
// not enabled since usemin task does concat and uglify | ||
// check index.html to edit your build targets | ||
// enable this task if you prefer defining your build targets here | ||
/*uglify: { | ||
dist: {} | ||
},*/ | ||
useminPrepare: { | ||
options: { | ||
dest: '<%= yeoman.dist %>' | ||
}, | ||
html: [ | ||
'<%= yeoman.app %>/popup.html' | ||
] | ||
}, | ||
usemin: { | ||
options: { | ||
dirs: ['<%= yeoman.dist %>'] | ||
}, | ||
html: ['<%= yeoman.dist %>/{,*/}*.html'], | ||
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'] | ||
}, | ||
imagemin: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= yeoman.app %>/images', | ||
src: '{,*/}*.{png,jpg,jpeg}', | ||
dest: '<%= yeoman.dist %>/images' | ||
}] | ||
} | ||
}, | ||
svgmin: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= yeoman.app %>/images', | ||
src: '{,*/}*.svg', | ||
dest: '<%= yeoman.dist %>/images' | ||
}] | ||
} | ||
}, | ||
cssmin: { | ||
dist: { | ||
files: { | ||
'<%= yeoman.dist %>/styles/main.css': [ | ||
'.tmp/styles/{,*/}*.css', | ||
'<%= yeoman.app %>/styles/{,*/}*.css' | ||
] | ||
} | ||
} | ||
}, | ||
htmlmin: { | ||
dist: { | ||
options: { | ||
/*removeCommentsFromCDATA: true, | ||
// https://github.com/yeoman/grunt-usemin/issues/44 | ||
//collapseWhitespace: true, | ||
collapseBooleanAttributes: true, | ||
removeAttributeQuotes: true, | ||
removeRedundantAttributes: true, | ||
useShortDoctype: true, | ||
removeEmptyAttributes: true, | ||
removeOptionalTags: true*/ | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= yeoman.app %>', | ||
src: '*.html', | ||
dest: '<%= yeoman.dist %>' | ||
}] | ||
} | ||
}, | ||
// Put files not handled in other tasks here | ||
copy: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
dot: true, | ||
cwd: '<%= yeoman.app %>', | ||
dest: '<%= yeoman.dist %>', | ||
src: [ | ||
'*.{ico,png,txt}', | ||
'images/{,*/}*.{webp,gif}', | ||
'_locales/{,*/}*.json' | ||
] | ||
}, { | ||
expand: true, | ||
cwd: '.tmp/images', | ||
dest: '<%= yeoman.dist %>/images', | ||
src: [ | ||
'generated/*' | ||
] | ||
}] | ||
} | ||
}, | ||
concurrent: { | ||
server: [ | ||
'coffee:dist', | ||
'compass:server' | ||
], | ||
test: [ | ||
'coffee', | ||
'compass' | ||
], | ||
dist: [ | ||
'coffee', | ||
'compass:dist', | ||
'imagemin', | ||
'svgmin', | ||
'htmlmin' | ||
] | ||
}, | ||
chromeManifest: { | ||
dist: { | ||
options: { | ||
buildnumber: true, | ||
background: { | ||
target:'scripts/background.js' | ||
} | ||
}, | ||
src: '<%= yeoman.app %>', | ||
dest: '<%= yeoman.dist %>' | ||
} | ||
}, | ||
compress: { | ||
dist: { | ||
options: { | ||
archive: 'package/SFNav.zip' | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'dist/', | ||
src: ['**'], | ||
dest: '' | ||
}] | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('test', [ | ||
'clean:server', | ||
'concurrent:test', | ||
'connect:test', | ||
'mocha' | ||
]); | ||
|
||
grunt.registerTask('build', [ | ||
'clean:dist', | ||
'chromeManifest:dist', | ||
'useminPrepare', | ||
'concurrent:dist', | ||
'cssmin', | ||
'concat', | ||
'uglify', | ||
'copy', | ||
'usemin', | ||
'compress' | ||
]); | ||
|
||
grunt.registerTask('default', [ | ||
'jshint', | ||
'test', | ||
'build' | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Salesforce Navigator | ||
|
||
This extension helps you get to any salesforce page quickly. Just type in what you need to do. | ||
|
||
- All objects list views and create new pages are available (even for objects that don't have tabs). Type in "List <Object Name>" or "New <Object Name>" | ||
|
||
- All setup links are available -- Type in "Setup" to see all. For example, if you want to get to the Account fields setup, type in "Account Fields". Or any custom object setup page, type "setup <Custom Object Name>" | ||
|
||
- (beta) Thanks to the SF tooling API, you can now create fields. "cf Account newField TEXT 100." | ||
|
||
Check it out on the Chrome Web Store: | ||
[Salesforce Navigator](https://chrome.google.com/webstore/detail/salesforce-navigator/ecjmdlggbilopfkkhggmgebbmbiklcdo) | ||
|
||
Maintainers: [Daniel Nakov](https://twitter.com/dnak0v) and [Wes Weingartner](https://twitter.com/wes1278) | ||
|
||
## Getting Started | ||
Project was scaffolded using [Yeoman](http://yeoman.io/) using [generator-chrome-extension](https://github.com/yeoman/generator-chrome-extension) | ||
|
||
## Test | ||
To test, go to: chrome://extensions, enable Developer mode and load app as an unpacked extension. | ||
|
||
## License | ||
[MIT License](http://en.wikipedia.org/wiki/MIT_License) | ||
|
Oops, something went wrong.