-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alpha version of the BLeak results viewer.
- Loading branch information
John Vilk
committed
Feb 10, 2018
1 parent
1b9c992
commit 528700b
Showing
32 changed files
with
2,257 additions
and
214 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,22 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<title>BLeak Results Viewer</title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||
|
||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<link rel="stylesheet" type="text/css" href="node_modules/react-treeview/react-treeview.css"> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
</div> | ||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||
<script src="node_modules/d3/build/d3.min.js"></script> | ||
<script src="build/viewer.js" type="text/javascript"></script> | ||
</body> | ||
</html> |
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,68 @@ | ||
import sourcemaps from 'rollup-plugin-sourcemaps'; | ||
import buble from 'rollup-plugin-buble'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import replace from 'rollup-plugin-replace'; | ||
// import builtins from 'rollup-plugin-node-builtins'; | ||
// import globals from 'rollup-plugin-node-globals'; | ||
import {join} from 'path'; | ||
|
||
const inBase = join(__dirname, 'build', 'src'); | ||
const outBase = join(__dirname, 'build'); | ||
|
||
export default { | ||
input: join(inBase, 'viewer', 'index.js'), | ||
output: [{ | ||
file: join(outBase, 'viewer.js'), | ||
sourcemap: true, | ||
strict: true, | ||
globals: { | ||
d3: 'd3', | ||
jquery: '$' | ||
}, | ||
format: 'iife', | ||
name: 'BLeakResultsViewer' | ||
}], | ||
external: ['d3', 'jquery'], | ||
plugins: [ | ||
sourcemaps(), | ||
buble({ | ||
transforms: { | ||
// Assumes all `for of` statements are on arrays or array-like items. | ||
dangerousForOf: true | ||
} | ||
}), | ||
resolve({ | ||
// use "module" field for ES6 module if possible | ||
module: true, // Default: true | ||
|
||
// use "jsnext:main" if possible | ||
// – see https://github.com/rollup/rollup/wiki/jsnext:main | ||
jsnext: true, // Default: false | ||
|
||
// use "main" field or index.js, even if it's not an ES6 module | ||
// (needs to be converted from CommonJS to ES6 | ||
// – see https://github.com/rollup/rollup-plugin-commonjs | ||
main: true, // Default: true | ||
|
||
// some package.json files have a `browser` field which | ||
// specifies alternative files to load for people bundling | ||
// for the browser. If that's you, use this option, otherwise | ||
// pkg.browser will be ignored | ||
browser: true // Default: false | ||
}), | ||
commonjs({ | ||
namedExports: { | ||
//'vis': ['Network', 'DataSet'], | ||
'react-dom': ['render'], | ||
'react': ['Component', 'createElement'] | ||
} | ||
}), | ||
replace({ | ||
// Production for production builds. | ||
'process.env.NODE_ENV': JSON.stringify( 'development' ) | ||
}) | ||
// builtins(), | ||
// globals() | ||
] | ||
}; |
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
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.