Skip to content

Commit 35bb760

Browse files
committed
Merge branch 'dev'
2 parents 2b2c0b5 + a71f786 commit 35bb760

File tree

12 files changed

+938
-452
lines changed

12 files changed

+938
-452
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:8
2+
3+
# Copy dependency info
4+
COPY package*.json /usr/src/app/
5+
6+
# Change working directory
7+
WORKDIR /usr/src/app/
8+
9+
# Install dependencies
10+
RUN npm install
11+
12+
# Copy source code
13+
COPY . /usr/src/app/
14+
15+
# Expose API port to the outside
16+
EXPOSE 5000
17+
18+
# Launch application
19+
CMD ["npm","start"]

components/2d_network.html

Lines changed: 257 additions & 89 deletions
Large diffs are not rendered by default.

components/files.html

Lines changed: 234 additions & 196 deletions
Large diffs are not rendered by default.

components/help.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div id="help-panel" class="container">
2-
<h1 id="help-title"></h1>
3-
<div id="help-content"></div>
4-
<div id="help-footer"></div>
2+
<div class="jumbotron">
3+
<h1 id="help-title"></h1>
4+
<div id="help-content"></div>
5+
<div id="help-footer"></div>
6+
</div>
57
</div>
68

79
<script>

components/timeline.html

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
function refresh(){
5151
let wrapper = $('#timeline-wrapper').empty().parent();
52-
let tickFormat = d3.timeFormat("%Y-%m-%d");
52+
let tickFormat = d3.timeFormat('%Y-%m-%d');
5353
width = wrapper.width() - margin.left - margin.right,
5454
height = wrapper.height() - margin.top - margin.bottom;
5555
middle = height / 2;
@@ -64,8 +64,7 @@
6464
}
6565
});
6666
if(times.length < 2){
67-
times.push(new Date(2000, 1, 1));
68-
times.push(new Date());
67+
times = [new Date(2000, 1, 1), new Date()];
6968
}
7069
timeDomainStart = Math.min(...times);
7170
timeDomainEnd = Math.max(...times);
@@ -74,34 +73,34 @@
7473
.domain([timeDomainStart, timeDomainEnd])
7574
.rangeRound([0, width]);
7675

77-
svg = d3.select("#timeline-wrapper").append("svg")
78-
.attr("width", width + margin.left + margin.right)
79-
.attr("height", height + margin.top + margin.bottom)
80-
.append("g")
81-
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
76+
svg = d3.select('#timeline-wrapper').append('svg')
77+
.attr('width', width + margin.left + margin.right)
78+
.attr('height', height + margin.top + margin.bottom)
79+
.append('g')
80+
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
8281

83-
svg.append("g")
84-
.attr("class", "axis axis--grid")
85-
.attr("transform", "translate(0," + height + ")")
82+
svg.append('g')
83+
.attr('class', 'axis axis--grid')
84+
.attr('transform', 'translate(0,' + height + ')')
8685
.call(d3.axisBottom(x)
8786
.ticks(d3.timeYear)
8887
.tickSize(-height)
8988
.tickFormat(function(){ return null; })
9089
);
9190

92-
svg.append("g")
93-
.attr("class", "axis axis--x")
94-
.attr("transform", "translate(0," + height + ")")
91+
svg.append('g')
92+
.attr('class', 'axis axis--x')
93+
.attr('transform', 'translate(0,' + height + ')')
9594
.call(d3.axisBottom(x)
9695
.tickSize(8)
9796
.tickPadding(8)
9897
.tickFormat(tickFormat)
9998
)
100-
.attr("text-anchor", null)
101-
.selectAll("text")
102-
.attr("x", 6);
99+
.attr('text-anchor', null)
100+
.selectAll('text')
101+
.attr('x', 6);
103102

104-
svg.append("g")
103+
svg.append('g')
105104
.attr('class', 'nodes');
106105

107106
svg.select('.nodes')
@@ -124,8 +123,8 @@
124123
}
125124
});
126125

127-
brushG = svg.append("g")
128-
.attr("class", "brush")
126+
brushG = svg.append('g')
127+
.attr('class', 'brush')
129128
.call(brush);
130129
}
131130

0 commit comments

Comments
 (0)