Skip to content

Commit

Permalink
refactor(assets): move vendor images via gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaSkywalker committed Feb 24, 2016
1 parent 87a7806 commit c66a021
Show file tree
Hide file tree
Showing 48 changed files with 28 additions and 3 deletions.
15 changes: 15 additions & 0 deletions gulp/images.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');

gulp.task('copyVendorImages',function () {
return gulp.src([
path.join(conf.wiredep.directory, '**/ammap/dist/ammap/images/**/*'),
path.join(conf.wiredep.directory, '**/amcharts/dist/amcharts/images/**/*'),
path.join(conf.wiredep.directory, '**/ionrangeslider/img/**/*')
])
.pipe(gulp.dest(path.join(conf.paths.dist, '/assets/img/theme/vendor')));
});

2 changes: 1 addition & 1 deletion gulp/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gulp.task('inject-reload', ['inject'], function () {
browserSync.reload();
});

gulp.task('inject', ['scripts', 'styles', 'injectAuth', 'inject404'], function () {
gulp.task('inject', ['scripts', 'styles', 'injectAuth', 'inject404', 'copyVendorImages'], function () {
var injectStyles = gulp.src([
path.join(conf.paths.tmp, '/serve/app/main.css'),
path.join('!' + conf.paths.tmp, '/serve/app/vendor.css')
Expand Down
4 changes: 2 additions & 2 deletions src/app/theme/theme.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
images: {
root: IMAGES_ROOT,
profile: IMAGES_ROOT + 'app/profile/',
amMap: 'assets/img/theme/vendor/ammap/',
amChart: 'assets/img/theme/vendor/amchart/'
amMap: 'assets/img/theme/vendor/ammap//dist/ammap/images/',
amChart: 'assets/img/theme/vendor/amcharts/dist/amcharts/images/'
}
});

Expand Down
Binary file removed src/assets/img/theme/vendor/amchart/dragIcon.gif
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/dragIconBlack.gif
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/dragIconH.gif
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/dragIconHBlack.gif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/export.png
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/exportWhite.png
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/lens.png
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/lensWhite.png
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/lensWhite_old.png
Binary file not shown.
Binary file removed src/assets/img/theme/vendor/amchart/lens_old.png
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/arrowDown.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/arrowUp.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/export.png
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/homeIcon.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/homeIconWhite.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/minus.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/panDown.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/panLeft.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/panRight.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/panUp.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/plus.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/xIcon.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/ammap/xIconH.gif
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/leaflet/layers-2x.png
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/leaflet/layers.png
Diff not rendered.
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/leaflet/marker-icon.png
Diff not rendered.
Binary file removed src/assets/img/theme/vendor/leaflet/marker-shadow.png
Diff not rendered.
10 changes: 10 additions & 0 deletions src/sass/app/_slider.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
.slider-box{
min-height: 86px;
}

.irs-bar,
.irs-bar-edge,
.irs-line-left,
.irs-line-mid,
.irs-line-right,
.irs-slider {
background-image: url(../assets/img/theme/vendor/ionrangeslider/img/sprite-skin-flat.png);
background-repeat: repeat-x;
}

0 comments on commit c66a021

Please sign in to comment.