mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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 { queries } = this.props;
|
||||||
const queryKeys = Object.keys(queries);
|
const queryKeys = Object.keys(queries);
|
||||||
const queriesAsArray = queryKeys.map(key => queries[key]);
|
const queriesAsArray = queryKeys.map(key => queries[key]);
|
||||||
return queriesAsArray.some(
|
return queriesAsArray.some(q =>
|
||||||
q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
|
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
|
||||||
}
|
}
|
||||||
startTimer() {
|
startTimer() {
|
||||||
if (!(this.timer)) {
|
if (!(this.timer)) {
|
||||||
|
BIN
superset/assets/stylesheets/fonts/Roboto-Regular.woff
Normal file
BIN
superset/assets/stylesheets/fonts/Roboto-Regular.woff
Normal file
Binary file not shown.
BIN
superset/assets/stylesheets/fonts/Roboto-Regular.woff2
Normal file
BIN
superset/assets/stylesheets/fonts/Roboto-Regular.woff2
Normal file
Binary file not shown.
@ -2,13 +2,6 @@
|
|||||||
// Bootswatch
|
// 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 =====================================================================
|
||||||
|
|
||||||
.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 {
|
body {
|
||||||
margin: 0px !important;
|
margin: 0px !important;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ const config = {
|
|||||||
/* for font-awesome */
|
/* for font-awesome */
|
||||||
{
|
{
|
||||||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
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])?$/,
|
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||||
|
Loading…
Reference in New Issue
Block a user