mirror of https://github.com/apache/superset.git
serve roboto font locally (#2519)
* serve roboto locally * add trailing comma * fix long line for linter
This commit is contained in:
parent
0c0666caa0
commit
dcc6f2a18f
|
@ -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.
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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])?$/,
|
||||
|
|
Loading…
Reference in New Issue