Skip to content

Commit 3e09800

Browse files
committed
chore clean useless code
1 parent 48e7ef5 commit 3e09800

2 files changed

Lines changed: 48 additions & 20 deletions

File tree

nwb_explorer/nwb_model_interpreter/nwb_geppetto_mappers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ def creates(self, value):
8383
def create_variable(self, name, pynwb_obj, parent_obj):
8484
return self.model_factory.create_text_variable(id=name, text=str(pynwb_obj))
8585

86-
# class ListMapper(NWBGeppettoMapper):
87-
# def creates(self, value):
88-
# return is_collection(value) and value and is_metadata(next(iter(value)))
89-
90-
# def create_variable(self, name, pynwb_obj, parent_obj):
91-
# return self.model_factory.create_text_variable(id=name, text=str(','.join(str(o) for o in pynwb_obj)))
92-
9386
class ImportValueMapper(NWBGeppettoMapper):
9487

9588
def creates(self, value):

webapp/webpack.config.dev.js

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,58 @@
11
var webpackBaseConfig = require('./webpack.config.js');
22
var extended = webpackBaseConfig();
3+
34
extended.devServer = {
4-
progress : true,
5+
progress : false,
56
port : 8081,
67
inline : true,
8+
publicPath: '/geppetto/build',
9+
10+
proxy : [
11+
{
12+
path : '/',
13+
target : 'http://localhost:8888'
14+
},
15+
{
16+
path : '/org.geppetto.frontend',
17+
target : 'ws://localhost:8888',
18+
ws : true
19+
},
20+
{
21+
path : '/notebooks',
22+
target : 'http://localhost:8888'
23+
},
24+
{
25+
path : '/api',
26+
target : 'http://localhost:8888'
27+
},
28+
{
29+
path : '/api/kernels',
30+
target : 'ws://localhost:8888',
31+
ws: true
32+
},
33+
{
34+
path : '/static',
35+
target : 'http://localhost:8888'
36+
},
37+
{
38+
path : '/custom',
39+
target : 'http://localhost:8888'
40+
},
41+
42+
{
43+
path : '/nbextensions',
44+
target : 'http://localhost:8888'
45+
},
46+
],
47+
};
48+
749

8-
proxy : [ {
9-
path : '/',
10-
target : 'http://localhost:8080/'
11-
}, {
12-
path : '/geppetto',
13-
target : 'http://localhost:8080/org.geppetto.frontend'
14-
}, {
15-
path : '/org.geppetto.frontend',
16-
target : 'ws://localhost:8080',
17-
ws : true
18-
}, ],
50+
extended.optimization = {
51+
...extended.optimization,
52+
removeAvailableModules: false,
53+
removeEmptyChunks: false,
1954
};
2055

2156
extended.devtool = 'source-map';
2257

23-
module.exports = extended;
58+
module.exports = extended;

0 commit comments

Comments
 (0)