Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tbekolay committed Jul 14, 2016
1 parent 27090b8 commit a56bf72
Show file tree
Hide file tree
Showing 35 changed files with 301 additions and 6,436 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ target/
# Vagrant
.vagrant
Vagrantfile

# Node JS stuff
node_modules
2 changes: 1 addition & 1 deletion nengo_gui/static/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Nengo.disable_editor = function() {
}

Nengo.Ace = function (uid, args) {
this.AceRange = ace.require('ace/range').Range;
this.AceRange = ace.Range;
if (uid[0] === '<') {
console.log("invalid uid for Ace: " + uid);
}
Expand Down
5 changes: 1 addition & 4 deletions nengo_gui/static/components/netgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ Nengo.NetGraph = function(parent, args) {
* this is needed for saving the SVG plot to disk*/

/** load contents of the CSS file as string */
var file = document.getElementById('netgraphcss');
var css = Array.prototype.map.call(file.sheet.cssRules, function
css_text(x) {return x.cssText; } ).join('\n');

var css = require('css-to-string-loader!./netgraph.css');
/** embed CSS code into SVG tag */
var s = document.createElement('style');
s.setAttribute('type', 'text/css');
Expand Down
2 changes: 2 additions & 0 deletions nengo_gui/static/data_to_csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ var data_to_csv = function(data_set){
return csv_string;

}

module.exports = data_to_csv;
Binary file added nengo_gui/static/dist/favicon.ico
Binary file not shown.
71 changes: 71 additions & 0 deletions nengo_gui/static/dist/nengo.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions nengo_gui/static/jquery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Loads jQuery and all of the plugins we use.
*
* Since jQuery plugins work by modifying the global variable $,
* we load up all of the plugins we use here so that we don't load
* plugins multiple times.
*/

var jQuery = require('jquery');

require('imports?$=jquery,jQuery=jquery!bootstrap');
require('imports?$=jquery,jQuery=jquery!bootstrap-validator');
require('imports?$=jquery,jQuery=jquery!jqueryfiletree/src/jQueryFileTree');
require('imports?$=jquery,jQuery=jquery!jquery-ui');

module.exports = jQuery;
5 changes: 0 additions & 5 deletions nengo_gui/static/lib/css/bootstrap.min.css

This file was deleted.

11 changes: 0 additions & 11 deletions nengo_gui/static/lib/js/ace-src-min/ace.js

This file was deleted.

5 changes: 0 additions & 5 deletions nengo_gui/static/lib/js/ace-src-min/ext-searchbox.js

This file was deleted.

1 change: 0 additions & 1 deletion nengo_gui/static/lib/js/ace-src-min/mode-python.js

This file was deleted.

7 changes: 0 additions & 7 deletions nengo_gui/static/lib/js/bootstrap.min.js

This file was deleted.

5 changes: 0 additions & 5 deletions nengo_gui/static/lib/js/d3.v3.min.js

This file was deleted.

Loading

0 comments on commit a56bf72

Please sign in to comment.