serve roboto font locally (#2519)

* serve roboto locally

* add trailing comma

* fix long line for linter
This commit is contained in:
Alanna Scott 2017-04-03 13:05:13 -07:00 committed by GitHub
parent 0c0666caa0
commit dcc6f2a18f
6 changed files with 9 additions and 10 deletions

View File

@ -19,8 +19,8 @@ class QueryAutoRefresh extends React.PureComponent {
const { queries } = this.props;
const queryKeys = Object.keys(queries);
const queriesAsArray = queryKeys.map(key => queries[key]);
return queriesAsArray.some(
q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
return queriesAsArray.some(q =>
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
}
startTimer() {
if (!(this.timer)) {

Binary file not shown.

Binary file not shown.

View File

@ -2,13 +2,6 @@
// Bootswatch
// -----------------------------------------------------
@web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700";
.web-font(@path) {
@import url("@{path}");
}
.web-font(@web-font-path);
// Navbar =====================================================================
.navbar {

View File

@ -1,3 +1,9 @@
@font-face {
font-family: "Roboto";
src: url("./fonts/Roboto-Regular.woff2") format("woff2"),
url("./fonts/Roboto-Regular.woff") format("woff");
}
body {
margin: 0px !important;
}

View File

@ -85,7 +85,7 @@ const config = {
/* for font-awesome */
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=10000&minetype=application/font-woff',
loader: 'url-loader?limit=10000&mimetype=application/font-woff',
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,