Optimize size of images and remove screenshot folder from release script
|
@ -34,7 +34,8 @@ rm -Rf \
|
||||||
weather/package.json \
|
weather/package.json \
|
||||||
weather/.ci \
|
weather/.ci \
|
||||||
weather/.tx \
|
weather/.tx \
|
||||||
weather/doc
|
weather/doc \
|
||||||
|
weather/screenshots
|
||||||
|
|
||||||
tar cfz weather-${RELEASE_VERSION}.tar.gz weather
|
tar cfz weather-${RELEASE_VERSION}.tar.gz weather
|
||||||
echo "Release version "${RELEASE_VERSION}" is now ready."
|
echo "Release version "${RELEASE_VERSION}" is now ready."
|
||||||
|
|
After Width: | Height: | Size: 2.0 MiB |
BIN
img/fog.png
Before Width: | Height: | Size: 4.7 MiB |
After Width: | Height: | Size: 1.2 MiB |
BIN
img/mist.png
Before Width: | Height: | Size: 2.7 MiB |
BIN
img/sand.jpg
Before Width: | Height: | Size: 7.9 MiB After Width: | Height: | Size: 3.0 MiB |
After Width: | Height: | Size: 1.1 MiB |
BIN
img/sun.png
Before Width: | Height: | Size: 2.2 MiB |
After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 2.3 MiB |
10
js/app.js
|
@ -39,7 +39,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
|
||||||
$scope.homeCity = '';
|
$scope.homeCity = '';
|
||||||
|
|
||||||
$scope.imageMapper = {
|
$scope.imageMapper = {
|
||||||
"Clear": "sun.png",
|
"Clear": "sun.jpg",
|
||||||
"Clouds": "clouds.png",
|
"Clouds": "clouds.png",
|
||||||
"Drizzle": "drizzle.jpg",
|
"Drizzle": "drizzle.jpg",
|
||||||
"Smoke": "todo.png",
|
"Smoke": "todo.png",
|
||||||
|
@ -48,12 +48,12 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
|
||||||
"Ash": "todo.png",
|
"Ash": "todo.png",
|
||||||
"Squall": "todo.png",
|
"Squall": "todo.png",
|
||||||
"Tornado": "tornado.jpg",
|
"Tornado": "tornado.jpg",
|
||||||
"Haze": "mist.png",
|
"Haze": "mist.jpg",
|
||||||
"Mist": "mist.png",
|
"Mist": "mist.jpg",
|
||||||
"Rain": "rain.jpg",
|
"Rain": "rain.jpg",
|
||||||
"Snow": "snow.png",
|
"Snow": "snow.png",
|
||||||
"Thunderstorm": "thunderstorm.png",
|
"Thunderstorm": "thunderstorm.jpg",
|
||||||
"Fog": "fog.png",
|
"Fog": "fog.jpg",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload weather information each minute
|
// Reload weather information each minute
|
||||||
|
|