forked from grafana/worldmap-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added static file copy script to build process
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
let fs = require('fs'); | ||
let mkdirp = require('mkdirp'); | ||
let getDirName = require('path').dirname; | ||
|
||
let copy = [ | ||
{ from: './src/css/worldmap.dark.css', to: './dist/css/worldmap.dark.css' }, | ||
{ from: './src/css/worldmap.light.css', to: './dist/css/worldmap.light.css' }, | ||
]; | ||
|
||
copy.forEach(path => { | ||
let dir = getDirName(path.to); | ||
if (!fs.existsSync(dir)) { | ||
mkdirp(dir, function (err) { | ||
if (err) return cb(err); | ||
}); | ||
} | ||
fs.createReadStream(path.from).pipe(fs.createWriteStream(path.to)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
.map-darken img.leaflet-tile { | ||
/* -webkit-filter: brightness(1.6) grayscale(1) contrast(1); | ||
filter: brightness(1.6) grayscale(1) contrast(1); */ | ||
} | ||
|
||
.worldmap-popup .leaflet-popup-content-wrapper, .worldmap-popup .leaflet-popup-tip { | ||
background-color: #333; | ||
} |