forked from google/grr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Some bugfixes to the server build process. - Changing the client search to return all clients when searching for - "." or the empty string.
- Loading branch information
1 parent
59adfb2
commit 757f5df
Showing
91 changed files
with
1,462 additions
and
6,428 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
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
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
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,9 @@ | ||
gnureadline==6.3.3 | ||
pexpect==3.3 | ||
psutil==2.1.3 | ||
pycrypto==2.6.1 | ||
pyinstaller==2.1 | ||
python-dateutil==2.3 | ||
pytz==2014.10 | ||
rekall==1.3.1 | ||
urllib3==1.10 |
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,7 @@ | ||
psutil==2.1.3 | ||
pycrypto==2.6.1 | ||
pyinstaller==2.1 | ||
python-dateutil==2.3 | ||
pytz==2014.10 | ||
rekall==1.3.1 | ||
urllib3==1.10 |
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
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
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,97 @@ | ||
/** | ||
* Gruntfile for GRR UI frontend code. | ||
* @param {*} grunt | ||
*/ | ||
module.exports = function(grunt) { | ||
|
||
var closureCompiler = require('superstartup-closure-compiler'); | ||
|
||
// Find all mentioned third-party JS files in the base.html template file. | ||
// As order of these files is important, we can't use glob to concat them, | ||
// but have to rely on order specified in base.html. | ||
var getThirdPartyJsFiles = function() { | ||
var baseTemplate = grunt.file.read('templates/base.html'); | ||
var re = /<script src="\/(static\/third-party\/.+\.js)"/gm; | ||
var result = []; | ||
|
||
while (match = re.exec(baseTemplate)) { | ||
if (match[1] != 'static/third-party/third-party.bundle.js') { | ||
result.push(match[1]); | ||
} | ||
|
||
re.lastIndex = match.index + 1; | ||
} | ||
|
||
return result; | ||
}; | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
closureCompiler: { | ||
options: { | ||
compilerFile: closureCompiler.getPath(), | ||
compilerOpts: { | ||
language_in: 'ECMASCRIPT5', | ||
angular_pass: 'true', | ||
compilation_level: 'WHITESPACE_ONLY', | ||
create_source_map: 'static/grr-ui.bundle.js.map', | ||
summary_detail_level: 3, | ||
closure_entry_point: 'grrUi.appController.module', | ||
manage_closure_dependencies: 'true' | ||
} | ||
}, | ||
// GRR UI Javascript sources are compiled via Closure compiler. | ||
compileUiBundleJs: { | ||
src: ['static/javascript/closure/base.js', | ||
'static/angular-components/**/*.js', | ||
'!static/angular-components/**/*_test.js'], | ||
dest: 'static/grr-ui.bundle.js' | ||
}, | ||
}, | ||
concat: { | ||
// GRR UI CSS sources are just concatenated. | ||
compileUiBundleCss: { | ||
src: ['static/css/**/*.css'], | ||
dest: 'static/grr-ui.bundle.css' | ||
}, | ||
// Third-party JS files are concatenated in the order of their | ||
// appearance in base.html. | ||
compileThirdPartyBundleJs: { | ||
src: getThirdPartyJsFiles(), | ||
dest: 'static/third-party/third-party.bundle.js' | ||
}, | ||
// Third-party CSS files are just concatenated. | ||
compileThirdPartyBundleCss: { | ||
src: ['static/third-party/**/*.css'], | ||
dest: 'static/third-party/third-party.bundle.css' | ||
} | ||
}, | ||
closureDepsWriter: { | ||
options: { | ||
depswriter: '/usr/local/bin/depswriter.py', | ||
root_with_prefix: '"static/angular-components ../../angular-components"' | ||
}, | ||
// GRR closure deps file is regenerated with depswriter.py. | ||
genDeps: { | ||
dest: 'static/javascript/closure/deps.js' | ||
} | ||
} | ||
}); | ||
|
||
// "compile" task recompiles all dynamically generated files. | ||
grunt.registerTask('compile', ['closureCompiler:compileUiBundleJs', | ||
'concat:compileUiBundleCss', | ||
'concat:compileThirdPartyBundleJs', | ||
'concat:compileThirdPartyBundleCss', | ||
'closureDepsWriter:genDeps']); | ||
|
||
// Load closure compiler plugin. | ||
grunt.loadNpmTasks('grunt-closure-tools'); | ||
|
||
// Load concat plugin. | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['compile']); | ||
}; |
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
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
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
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,18 @@ | ||
{ | ||
"name": "grr", | ||
"author": "Mikhail Bushkov", | ||
"version": "0.1.0", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.11.1", | ||
"grunt-html2js": "^0.3.0", | ||
"grunt-karma": "^0.10.1", | ||
"karma": "^0.12.31", | ||
"grunt-closure-tools": "^0.9.8", | ||
"superstartup-closure-compiler": "^0.1.6", | ||
"grunt-contrib-concat": "^0.5.1", | ||
"grunt-contrib-less": "^1.0.1", | ||
"grunt-contrib-uglify": "^0.8.1", | ||
"grunt-contrib-watch": "^0.6.1" | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.