Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Reorganization [part 1]#1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
0d54d1f0b51d05f4811f25b27e7f6b680888dbcf9f99484a1768d24fe8d75fd6bca8723a874e594f9cd4c454258ef3053ca5094451d6f21809ca8a7c77b3b35a536d3953c259732efea96b5c1c22ee1faeeb1b26535cb8b85e929b5efe5aff3646da8131509d3b9f1fe535fe92abf31fFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Diff view
Diff view
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --ignore-directory=is:dist | ||
| --ignore-directory=is:build | ||
| --ignore-directory=is:assets | ||
| --ignore-file=ext:svg | ||
| --ignore-file=ext:log |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| node_modules | ||
| build/* | ||
| !build/README.md | ||
| dist/* | ||
| !dist/README.md | ||
| npm-debug.log | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Directory of non-distributed built files |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,42 @@ | ||
| 'use strict'; | ||
| var http = require('http'); | ||
| var ecstatic = require('ecstatic'); | ||
| var browserify = require('browserify'); | ||
| var open = require('open'); | ||
| var fs = require('fs'); | ||
| var http = require('http'); | ||
| var path = require('path'); | ||
| var exec = require('child_process').exec; | ||
| var bundleName = 'test-images-viewer-bundle.js', | ||
| listName = 'list-of-incorrect-images.txt'; | ||
| var browserify = require('browserify'); | ||
| var ecstatic = require('ecstatic'); | ||
| var _open = require('open'); | ||
| var constants = require('../../tasks/util/constants'); | ||
| fs.unlink(bundleName, function(err) { | ||
| // TODO make this an optional argument | ||
| var PORT = '9090'; | ||
| console.log('Listening on :' + PORT + '\n'); | ||
| var listName = 'list-of-incorrect-images.txt'; | ||
| // build image viewer bundle | ||
| fs.unlink(constants.pathToImageViewerBundle, function() { | ||
| exec('ls ../test-images-diffs/ > ' + listName, function() { | ||
| var b = browserify('./viewer.js', { | ||
| debug: true, | ||
| verbose: true | ||
| }); | ||
| var b = browserify(path.join(__dirname, './viewer.js'), { debug: true }); | ||
| b.transform('brfs'); | ||
| b.bundle().pipe(fs.createWriteStream(bundleName)); | ||
| b.bundle(function(err) { | ||
| if(err) throw err; | ||
| _open('http://localhost:' + PORT + '/devtools/image_viewer'); | ||
| }) | ||
| .pipe(fs.createWriteStream(constants.pathToImageViewerBundle)); | ||
| fs.readFile(listName, 'utf8', function(err, data) { | ||
| console.log('In ' + listName + ':\n' + data); | ||
| }); | ||
| }); | ||
| }); | ||
| // boot up server | ||
| http.createServer( | ||
| ecstatic({ root: '../.' }) | ||
| ).listen(9090); | ||
| console.log('Listening on :9090\n'); | ||
| open('http://localhost:9090/test-images-viewer'); | ||
| ecstatic({ root: constants.pathToRoot }) | ||
| ).listen(PORT); |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,67 +1,39 @@ | ||
| <!DOCTYPE html> | ||
| <head> | ||
| <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT" /> | ||
| <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT" /> | ||
| </head> | ||
| <body> | ||
| <div id="plot-list" style="overflow:auto; height: 100px;"></div> | ||
| <div id="status-info" style="display: block; position: absolute; top: 150px;"></div> | ||
| <div id="embedded-graph"></div> | ||
| <div id="embedded-image"style=" | ||
| display: block; | ||
| position: absolute; | ||
| top: 800px; | ||
| "> | ||
| </div> | ||
| <script type="text/javascript" src="./../shelly/shelly/static/js/plugins/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script> | ||
| <script> | ||
| PLOTLYENV = { | ||
| TOPOJSON_URL: '../shelly/plotlyjs/static/plotlyjs/src/geo/topojson/' | ||
| }; | ||
| </script> | ||
| <div id="plot-list" style="overflow:auto; height:100px;"></div> | ||
| <div id="status-info" style="display:block; position:absolute; top:150px;"></div> | ||
| <div id="embedded-graph"></div> | ||
| <div id="embedded-image" style="display:block; position:absolute; top:800px;"></div> | ||
| <script type="text/javascript" src="./../shelly/plotlyjs/static/plotlyjs/build/plotlyjs-bundle.js" charset="utf-8"></script> | ||
| <script type="text/javascript" src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script> | ||
| <script type="text/javascript" src="test-bundle.js"></script> | ||
| <script type="text/javascript" src="../../dist/plotly.js" charset="utf-8"></script> | ||
| <script>PLOTLYENV = { TOPOJSON_URL: '../../src/assets/topojson/' };</script> | ||
| <script> | ||
| MathJax.Hub.Config({ | ||
| messageStyle: 'none', | ||
| skipStartupTypeset: true, | ||
| displayAlign: "left", | ||
| tex2jax: { | ||
| inlineMath: [["$","$"],["\\(","\\)"]] | ||
| } | ||
| }); | ||
| </script> | ||
| <script type="text/javascript" src="../../build/test_dashboard-bundle.js"></script> | ||
| <script> | ||
| <!-- helper functions to manipulate graph div --> | ||
| <script> | ||
| var Tabs = { | ||
| get: function() { | ||
| getGraph: function() { | ||
| return document.getElementById('embedded-graph').children[0]; | ||
| }, | ||
| fresh: function() { | ||
| var anchor = document.getElementById('embedded-graph'), | ||
| plotDiv = Tabs.get(); | ||
| if(plotDiv) anchor.removeChild(plotDiv); | ||
| plotDiv = document.createElement('div'); | ||
| anchor.appendChild(plotDiv); | ||
| return plotDiv; | ||
| } | ||
| }; | ||
| graphDiv = Tabs.getGraph(); | ||
| Tabs.getGraph = Tabs.get; | ||
| if(graphDiv) anchor.removeChild(graphDiv); | ||
| graphDiv = document.createElement('div'); | ||
| anchor.appendChild(graphDiv); | ||
| var Themes = { | ||
| reTileLock: null | ||
| return graphDiv; | ||
| } | ||
| }; | ||
| </script> | ||
| </script> | ||
| </body> | ||
| </html> |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for ignoring
dist/*as well and have usgit add -f dist/when we bump the version.Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes lets do this - we can always turn it off if we don't like it