Skip to content

Commit 094cffe

Browse files
committed
1.0.6
- adds monospace font-family to fileView
1 parent 63461b1 commit 094cffe

13 files changed

+22
-20
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.6 (10/23/2017)
2+
3+
- adds monospace font-family to fileView
4+
15
# 1.0.5 (10/21/2017)
26

37
- fixes a bug that occurs when trying to send data to https server

dist/bundle.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vendor.bundle.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/storybook/iframe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<body>
1818
<div id="root"></div>
1919
<div id="error-display"></div>
20-
<script src="static/preview.8c3bef62ed44f333feaf.bundle.js"></script>
20+
<script src="static/preview.b072c207aca2d6f2ffbc.bundle.js"></script>
2121
</body>
2222
</html>
2323

docs/storybook/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</head>
4141
<body style="margin: 0;">
4242
<div id="root"></div>
43-
<script src="static/manager.b4a16d10effca77c95dd.bundle.js"></script>
43+
<script src="static/manager.636402f6d36656349933.bundle.js"></script>
4444
</body>
4545
</html>
4646

docs/storybook/static/manager.636402f6d36656349933.bundle.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/storybook/static/manager.b4a16d10effca77c95dd.bundle.js

-1
This file was deleted.

docs/storybook/static/preview.8c3bef62ed44f333feaf.bundle.js

-1
This file was deleted.

docs/storybook/static/preview.b072c207aca2d6f2ffbc.bundle.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lcov-server",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "🎯 A simple lcov server & cli parser",
55
"main": "index.js",
66
"homepage": "https://github.com/gabrielcsapo/lcov-server#readme",

src/components/fileView.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.table-fileView td, .hljs-string, .hljs-keyword, .hljs-comment, .hljs-meta, .hljs-params, .hljs-function, .hljs-attr, .hljs-built_in, .hljs-title, .hljs-literal {
2+
font-family: monospace;
3+
}

src/components/fileView.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import './fileView.css';
12
import 'highlight.js/styles/default.css';
2-
import './monospace.css';
33

44
import React from 'react';
55
import PropTypes from 'prop-types';
@@ -10,7 +10,7 @@ class FileView extends React.Component {
1010
const { source, lineMap, extension } = this.props;
1111

1212
return (<div style={{ paddingTop: '25px', paddingBottom: '25px', backgroundColor: 'rgba(246, 244, 244, 0.5)', width: window.innerWidth - 200, margin: '0 auto', fontSize: "16px" }}>
13-
<table className="table responsive">
13+
<table className="table-fileView table responsive">
1414
<tbody>
1515
{Highlight.highlight(extension, source).value.split('\n').map((l, i) => {
1616
// retain the amount of space that will be stripped
@@ -21,9 +21,9 @@ class FileView extends React.Component {
2121
space += '\u00a0';
2222
}
2323
return (<tr key={i}>
24-
<td style={{ fontFamily: "monospace", padding: "2px", paddingRight: "5px", borderBottom: 0, textAlign: "center" }}>{i}</td>
25-
<td style={{ fontFamily: "monospace", padding: "2px", borderBottom: 0 }} dangerouslySetInnerHTML={{ __html: space + l }}></td>
26-
<td style={{ fontFamily: "monospace", padding: "2px", borderBottom: 0, color: color }}>{!isNaN(lineMap[i]) ? `${lineMap[i]}x` : ''}</td>
24+
<td style={{ padding: "2px", paddingRight: "5px", borderBottom: 0, textAlign: "center" }}>{i}</td>
25+
<td style={{ padding: "2px", borderBottom: 0 }} dangerouslySetInnerHTML={{ __html: space + l }}></td>
26+
<td style={{ padding: "2px", borderBottom: 0, color: color }}>{!isNaN(lineMap[i]) ? `${lineMap[i]}x` : ''}</td>
2727
</tr>);
2828
}, [])}
2929
</tbody>

src/components/monospace.css

-5
This file was deleted.

0 commit comments

Comments
 (0)