diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..51d130c --- /dev/null +++ b/.jshintrc @@ -0,0 +1,45 @@ +{ + "strict": true, + "globalstrict": true, + "jquery": true, + "node": true, + "browser": true, + "camelcase": true, + "nonew": true, + "curly": true, + "eqeqeq": true, + "immed": true, + "newcap": true, + "regexp": true, + "evil": true, + "eqnull": true, + "expr": true, + "trailing": true, + "undef": true, + "unused": true, + + "predef": [ + "self", + "console", + "importScripts", + "cryptoLib", + "Backbone", + "forge", + "uuid", + "Lawnchair", + "_", + "process", + "describe", + "it", + "chai", + "ok", + "equal", + "deepEqual", + "start", + "chrome" + ], + + "globals": { + "app": true + } +} \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 79930e6..3803ba3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -42,15 +42,19 @@ module.exports = function(grunt) { }, jshint: { - all: ['Gruntfile.js', 'src/js/**/*.js'] + all: ['Gruntfile.js', 'src/js/**/*.js'], + options: { + jshintrc: '.jshintrc' + } }, qunit: { all: { options: { urls: [ - 'http://localhost:<%= connect.test.options.port %>/test/unit/index.html', - 'http://localhost:<%= connect.test.options.port %>/test/integration/index.html'] + 'http://localhost:<%= connect.test.options.port %>/test/unit/index.html', + 'http://localhost:<%= connect.test.options.port %>/test/integration/index.html' + ] } } } @@ -63,7 +67,7 @@ module.exports = function(grunt) { // Default task(s). grunt.registerTask('dev', ['connect:dev']); - grunt.registerTask('test', ['jshint', 'connect:test', 'qunit']); + grunt.registerTask('test', ['connect:test', 'qunit']); grunt.registerTask('prod', ['connect:prod']); }; \ No newline at end of file diff --git a/src/background.js b/src/background.js new file mode 100644 index 0000000..15286bd --- /dev/null +++ b/src/background.js @@ -0,0 +1,10 @@ +'use strict'; + +chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('index.html', { + 'bounds': { + 'width': 805, + 'height': 620 + } + }); +}); \ No newline at end of file diff --git a/src/css/styles.css b/src/css/styles.css index 2edfe63..4977e38 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -41,4 +41,14 @@ textarea.ui-input-text { max-width: 400px; margin-left: auto; margin-right: auto; +} + +div#sandboxDiv iframe { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + height: 100%; + width: 100%; } \ No newline at end of file diff --git a/src/index.html b/src/index.html index 5bd74e9..900d615 100755 --- a/src/index.html +++ b/src/index.html @@ -5,7 +5,6 @@