Skip to content

Commit 6eeea45

Browse files
committed
👕
1 parent 21b139c commit 6eeea45

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

src/electron/mongo.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
module.exports.start = function(done) {
1313
done();
14-
// debug('starting bundled mongodb on port 27017');
15-
// var bin = path.resolve(__dirname + '/../../bin/mongod');
16-
// var dbpath = untildify('~/.mongodb/scout-demo');
17-
// mkdirp(dbpath, function() {
18-
// mongo = proc.spawn(bin, ['--port', '27017', '--dbpath', dbpath, '--bind_ip', '127.0.0.1']);
19-
// mongo.stderr.pipe(process.stderr);
20-
// mongo.stdout.pipe(process.stdout);
21-
// setTimeout(function() {
22-
// debug('Standalone ready on localhost:27017!');
23-
// done();
24-
// }, 1000);
25-
// });
14+
// debug('starting bundled mongodb on port 27017');
15+
// var bin = path.resolve(__dirname + '/../../bin/mongod');
16+
// var dbpath = untildify('~/.mongodb/scout-demo');
17+
// mkdirp(dbpath, function() {
18+
// mongo = proc.spawn(bin, ['--port', '27017', '--dbpath', dbpath, '--bind_ip', '127.0.0.1']);
19+
// mongo.stderr.pipe(process.stderr);
20+
// mongo.stdout.pipe(process.stdout);
21+
// setTimeout(function() {
22+
// debug('Standalone ready on localhost:27017!');
23+
// done();
24+
// }, 1000);
25+
// });
2626
};
2727

2828
module.exports.stop = function(done) {

src/field-list/type-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ var TypeListItem = View.extend(tooltipMixin, {
101101
evt.stopPropagation();
102102

103103
if (this.active) {
104-
// @todo rueckstiess: already active, query building mode
105-
// this.toggle('selected');
104+
// @todo rueckstiess: already active, query building mode
105+
// this.toggle('selected');
106106
} else {
107107
// no clicks on Undefined allowed
108108
if (this.model.getId() === 'Undefined') {

src/minicharts/querybuilder.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@ module.exports = {
5959

6060
// determine what kind of query this is (distinct or range)
6161
switch (this.model.getType()) {
62-
case 'Boolean': // fall-through to String
63-
case 'String':
64-
queryType = 'distinct';
65-
break;
66-
case 'Number':
67-
if (data.source === 'unique') {
62+
case 'Boolean': // fall-through to String
63+
case 'String':
6864
queryType = 'distinct';
69-
} else {
65+
break;
66+
case 'Number':
67+
if (data.source === 'unique') {
68+
queryType = 'distinct';
69+
} else {
70+
queryType = 'range';
71+
}
72+
break;
73+
case 'ObjectID': // fall-through to Date
74+
case 'Date':
7075
queryType = 'range';
71-
}
72-
break;
73-
case 'ObjectID': // fall-through to Date
74-
case 'Date':
75-
queryType = 'range';
76-
break;
77-
default: // @todo other types not implemented yet
78-
throw new Error('unsupported querybuilder type ' + this.model.getType());
76+
break;
77+
default: // @todo other types not implemented yet
78+
throw new Error('unsupported querybuilder type ' + this.model.getType());
7979
}
8080

8181
// now call appropriate event handlers and query build methods

src/minicharts/viz.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ var VizView = AmpersandView.extend({
8989
// pick html, canvas or svg template
9090
if (!this.template) {
9191
switch (this.renderMode) {
92-
case 'canvas':
93-
this.template = '<canvas data-hook="viz-container" id="canvas"></canvas>';
94-
break;
95-
case 'svg':
96-
this.template = require('./svg-template.jade');
97-
break;
98-
case 'html':
99-
default:
100-
this.template = '<div data-hook="viz-container"></div>';
101-
break;
92+
case 'canvas':
93+
this.template = '<canvas data-hook="viz-container" id="canvas"></canvas>';
94+
break;
95+
case 'svg':
96+
this.template = require('./svg-template.jade');
97+
break;
98+
case 'html':
99+
default:
100+
this.template = '<div data-hook="viz-container"></div>';
101+
break;
102102
}
103103
}
104104
},

0 commit comments

Comments
 (0)