Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add font awesome fix, import css to main js, remove font awesome from main css

Ed Plato9ff54f2e536f
diff --git a/web/css/main.css b/web/css/main.css
index 63373ed26..d88ef0b8d 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -1,8 +1,9 @@
/* Dependency CSS */
@import url("../../node_modules/bootstrap/dist/css/bootstrap.css");
-@import url("../../node_modules/font-awesome/css/font-awesome.css");
-@import url("../../node_modules/jquery-ui-bundle/jquery-ui.structure.css");
-@import url("../../node_modules/jquery-ui-bundle/jquery-ui.theme.css");
+
+/* @import url("../../node_modules/font-awesome/css/font-awesome.css"); import via webpack */
+@import url("../../node_modules/jquery-ui/themes/base/jquery-ui.css");
+@import url("../../node_modules/jquery-ui/themes/ui-darkness/jquery-ui.css");
@import url("../../node_modules/icheck/skins/square/grey.css");
@import url("../../node_modules/icheck/skins/square/red.css");
@import url("../../node_modules/icheck/skins/line/red.css");
diff --git a/web/js/main.js b/web/js/main.js
index e986f74a5..3554c6657 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -33,10 +33,10 @@ import { layersActive } from './layers/active';
import { mapParser } from './map/map';
import { mapModel } from './map/model';
import { mapui } from './map/ui';
-import { mapRotate } from './map/rotation';
+import { MapRotate } from './map/rotation';
import { MapRunningData } from './map/runningdata';
import { mapLayerBuilder } from './map/layerbuilder';
-import { mapDatelineBuilder } from './map/datelinebuilder';
+import { mapDateLineBuilder } from './map/datelinebuilder';
import { mapPrecacheTile } from './map/precachetile';
import { mapAnimate } from './map/animate';
@@ -87,6 +87,10 @@ import Brand from './brand';
import tour from './tour';
import { uiInfo } from './ui/info';
+// App and Dependency CSS imports
+import 'font-awesome-webpack';
+import '../css/main.css';
+
import { polyfill } from './polyfill';
polyfill(); // Polyfills some browser features
@@ -212,10 +216,10 @@ window.onload = () => {
}
// HACK: Map needs to be created before the data download model
var mapComponents = {
- Rotation: mapRotate,
+ Rotation: MapRotate,
Runningdata: MapRunningData,
Layerbuilder: mapLayerBuilder,
- Dateline: mapDatelineBuilder,
+ Dateline: mapDateLineBuilder,
Precache: mapPrecacheTile
};
ui.map = mapui(models, config, mapComponents);