Skip to content

Commit

Permalink
refactor(images): images mostly fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lugovsky committed Dec 17, 2015
1 parent 1cff1f2 commit ab26929
Show file tree
Hide file tree
Showing 105 changed files with 174 additions and 103 deletions.
3 changes: 3 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
},
"slimScroll": {
"main": "./jquery.slimscroll.js"
},
"font-awesome": {
"main": "css/font-awesome.css"
}
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions gulp/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ gulp.task('watch', ['inject'], function () {
gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower.json'], ['inject-reload']);

gulp.watch([
path.join(conf.paths.src, '/app/**/*.css'),
path.join(conf.paths.src, '/app/**/*.scss')
path.join(conf.paths.src, '/sass/**/*.css'),
path.join(conf.paths.src, '/sass/**/*.scss')
], function(event) {
if(isOnlyChange(event)) {
gulp.start('styles-reload');
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/charts/amCharts/areaChart/AreaChartCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('AreaChartCtrl', AreaChartCtrl);

/** @ngInject */
function AreaChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper) {
function AreaChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper, layoutPaths) {
var id = $element[0].getAttribute('id');
var areaChart = AmCharts.makeChart(id, {
type: 'serial',
Expand Down Expand Up @@ -131,7 +131,7 @@
export: {
enabled: true
},
pathToImages: 'img/'
pathToImages: layoutPaths.images.amChart
});

tplSkinChartWatcherHelper.watchAxisChartStyleChanges($scope, areaChart);
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/charts/amCharts/barChart/BarChartCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('BarChartCtrl', BarChartCtrl);

/** @ngInject */
function BarChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper) {
function BarChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper, layoutPaths) {
var id = $element[0].getAttribute('id');
var barChart = AmCharts.makeChart(id, {
type: 'serial',
Expand Down Expand Up @@ -79,7 +79,7 @@
enabled: true
},
creditsPosition: 'top-right',
pathToImages: 'img/'
pathToImages: layoutPaths.images.amChart
});

tplSkinChartWatcherHelper.watchAxisChartStyleChanges($scope, barChart);
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/charts/amCharts/funnelChart/FunnelChartCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('FunnelChartCtrl', FunnelChartCtrl);

/** @ngInject */
function FunnelChartCtrl($scope, $element, tplSkinChartWatcherHelper) {
function FunnelChartCtrl($scope, $element, tplSkinChartWatcherHelper, layoutPaths) {
var id = $element[0].getAttribute('id');
var funnelChart = AmCharts.makeChart(id, {
type: 'funnel',
Expand Down Expand Up @@ -60,7 +60,7 @@
enabled: true
},
creditsPosition: 'bottom-left',
pathToImages: 'img/'
pathToImages: layoutPaths
});

tplSkinChartWatcherHelper.watchFunnelChanges($scope, funnelChart);
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('LineChartCtrl', LineChartCtrl);

/** @ngInject */
function LineChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper) {
function LineChartCtrl($scope, layoutColors, $element, tplSkinChartWatcherHelper, layoutPaths) {
var id = $element[0].getAttribute('id');
var lineChart = AmCharts.makeChart(id, {
type: 'serial',
Expand Down Expand Up @@ -137,7 +137,7 @@
enabled: true
},
creditsPosition: 'bottom-right',
pathToImages: 'img/'
pathToImages: layoutPaths.images.amChart
});

tplSkinChartWatcherHelper.watchAxisChartStyleChanges($scope, lineChart);
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/charts/amCharts/pieChart/PieChartCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('PieChartCtrl', PieChartCtrl);

/** @ngInject */
function PieChartCtrl($scope, $element, tplSkinChartWatcherHelper) {
function PieChartCtrl($scope, $element, tplSkinChartWatcherHelper, layoutPaths) {
var id = $element[0].getAttribute('id');
var pieChart = AmCharts.makeChart(id, {
type: 'pie',
Expand Down Expand Up @@ -94,7 +94,7 @@
marginLeft: 0,
marginRight: 0,
pullOutRadius: 0,
pathToImages: 'img/',
pathToImages: layoutPaths.images.amChart,
responsive: {
enabled: true,
rules: [
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/dashboard/blurFeed/BlurFeedCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author: 'Andrey',
header: 'added new video',
text: 'Vader and Me',
preview: 'vader-and-me-preview',
preview: 'app/feed/vader-and-me-preview.png',
link: 'https://www.youtube.com/watch?v=IfcpzBbbamk',
time: 'Today 9:30 pm',
ago: '3 hrs ago',
Expand All @@ -32,7 +32,7 @@
author: 'Vlad',
header: 'added new image',
text: 'My little kitten',
preview: 'my-little-kitten',
preview: 'app/feed/my-little-kitten.png',
link: 'http://api.ning.com/files/DtcI2O2Ry7A7VhVxeiWfGU9WkHcMy4WSTWZ79oxJq*h0iXvVGndfD7CIYy-Ax-UAFCBCdqXI4GCBw3FOLKTTjQc*2cmpdOXJ/1082127884.jpeg',
time: 'Today 2:20 pm',
ago: '10 hrs ago',
Expand All @@ -48,7 +48,7 @@
author: 'Nick',
header: 'posted location',
text: 'New York, USA',
preview: 'new-york-location',
preview: 'app/feed/new-york-location.png',
link: 'https://www.google.by/maps/place/New+York,+NY,+USA/@40.7201111,-73.9893872,14z',
time: '11.11.2015',
ago: '2 days ago',
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/dashboard/blurFeed/blurFeed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div class="feed-messages-container" track-width="smallContainerWidth" min-width="360">
<div class="feed-message" ng-repeat="message in feed" ng-class="{'left': $index%2==0, 'right': $index%2==1}">
<div class="message-icon" ng-if="message.type == 'text-message'">
<img class="photo-icon" ng-src="img/{{ ::message.author }}.png">
<img class="photo-icon" ng-src="{{::( message.author | profilePicture )}}">
</div>
<div class="message-icon" ng-if="message.type != 'text-message'">
<span class="media-icon" ng-class="::message.type"></span>
<img class="sub-photo-icon" ng-src="img/{{ ::message.author }}.png">
<img class="sub-photo-icon" ng-src="{{::( message.author | profilePicture )}}">
</div>
<div class="text-block" ng-class="{'small-message': smallContainerWidth && message.type != 'text-message', '{{::message.type}}': true}">
<div class="message-header">
Expand All @@ -17,7 +17,7 @@
</div>
<div class="preview" ng-if="message.preview">
<a href="{{::message.link}}" target="_blank">
<img ng-src="img/{{ ::message.preview }}.png">
<img ng-src="{{ ::( message.preview | appImage )}}">
</a>
</div>
<div class="message-time">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('DashboardLineChartCtrl', DashboardLineChartCtrl);

/** @ngInject */
function DashboardLineChartCtrl($scope, tplSkinManager, tplSkinChartWatcherHelper, layoutColors) {
function DashboardLineChartCtrl($scope, tplSkinManager, tplSkinChartWatcherHelper, layoutColors, layoutPaths) {
var chartData = [
{ date: new Date(2012, 11), value: 0, value0: 0 },
{ date: new Date(2013, 0), value: 15000, value0: 19000},
Expand Down Expand Up @@ -111,7 +111,7 @@
backgroundAlpha: 0
},
zoomOutText: '',
pathToImages: 'img/'
pathToImages: layoutPaths.images.amChart
});

tplSkinChartWatcherHelper.watchAxisChartStyleChanges($scope, chart);
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/dashboard/dashboardMap/DashboardMapCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.controller('DashboardMapCtrl', DashboardMapCtrl);

/** @ngInject */
function DashboardMapCtrl(layoutColors) {
function DashboardMapCtrl(layoutColors, layoutPaths) {
var map = AmCharts.makeChart('amChartMap', {
type: 'map',
theme: 'blur',
Expand Down Expand Up @@ -96,7 +96,7 @@
enabled: true
},
creditsPosition: 'bottom-right',
pathToImages: 'img/'
pathToImages: layoutPaths.images.amChart
});
}
})();
2 changes: 1 addition & 1 deletion src/app/pages/dashboard/popularApp/popularApp.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="popular-app-img">
<img src="img/my-app-logo.png"/>
<img ng-src="{{::( 'app/my-app-logo.png' | appImage )}}"/>
</div>
<div class="popular-app-cost row">
<div class="col-xs-9">
Expand Down
Loading

0 comments on commit ab26929

Please sign in to comment.