Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 944c8ae

Browse files
preparing v0.5.1
1 parent c42a24a commit 944c8ae

File tree

4 files changed

+35
-24
lines changed

4 files changed

+35
-24
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h1>
9595
<button class="close">Close Temps</button>
9696
</div>
9797
<div class="footer">
98-
<a href="https://jackd248.github.io/temps/" target="_blank" alt="temps">temps</a> - v0.5.0 &copy; 2016
98+
<a href="https://jackd248.github.io/temps/" target="_blank" alt="temps">temps</a> - v0.5.1 &copy; 2016
9999
</div>
100100
</div>
101101
</div>

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "temps",
33
"productName": "Temps",
44
"website": "https://jackd248.github.io/temps/",
5-
"version": "0.5.0",
5+
"version": "0.5.1",
66
"icon": "assets/app.png",
77
"description": "A simple but smart menubar weather app",
88
"main": "app.js",
9-
"electronVersion": "1.4.1",
9+
"electronVersion": "1.4.2",
1010
"keywords": [
1111
"electron",
1212
"temperature",
@@ -43,11 +43,11 @@
4343
"electron-packager": "^8.0.0",
4444
"electron-prebuilt": "^1.4.1",
4545
"electron-installer-dmg": "0.1.2",
46-
"electron-builder": "7.3.0",
47-
"standard": "^7.1.1"
46+
"electron-builder": "7.10.2",
47+
"standard": "^8.3.0"
4848
},
4949
"dependencies": {
50-
"electron": "1.4.1",
50+
"electron": "1.4.2",
5151
"menubar": "^5.1.0",
5252
"auto-launch": "^5.0.1",
5353
"applescript": "^1.0.0",

src/config.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "temps",
3-
"version": "v0.5.0",
3+
"version": "v0.5.1",
44
"apikey": "547bbdc38bd641bef6645cd2c4bc613f",
55
"timezone": {
66
"url": "https://maps.googleapis.com/maps/api/timezone/json",
@@ -53,7 +53,18 @@
5353
"Ulaanbaatar, MN",
5454
"Wellington, NZ",
5555
"Moscow, RU",
56-
"Madrid, SP"
56+
"Madrid, SP",
57+
"Tirana, AL",
58+
"Algiers, DZ",
59+
"Andorra la Vella, AD",
60+
"Vatican City, VA",
61+
"Caracas, VE",
62+
"Abu Dhabi, AE",
63+
"Kyiv, UA",
64+
"Kampala, UG",
65+
"Ankara, TR",
66+
"Tunis, TN",
67+
""
5768
]
5869
}
5970
}

src/main.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
var localStorage = require('localStorage')
2-
var JsonStorage = require('json-storage').JsonStorage
3-
var store = JsonStorage.create(localStorage, 'temps', { stringify: true })
2+
let JsonStorage = require('json-storage').JsonStorage
3+
let store = JsonStorage.create(localStorage, 'temps', { stringify: true })
44

5-
var $, jQuery = require('jquery')
6-
var chart = require('chart.js')
7-
var ipcRenderer = require('electron').ipcRenderer
8-
var CountUp = require('countup.js')
5+
const jQuery = require('jquery')
6+
const chart = require('chart.js')
7+
const ipcRenderer = require('electron').ipcRenderer
8+
const CountUp = require('countup.js')
99

1010
const config = require('./src/config.json')
1111

12-
var wdata = {}
12+
let wdata = {}
1313

14-
var color = null
15-
var loading = [false, false, false, false]
16-
var timeoffset = config.timezone.offset
17-
var numAnim = null
14+
let color = null
15+
let loading = [false, false, false, false]
16+
let timeoffset = config.timezone.offset
17+
let numAnim = null
1818

1919
window.onload = function ()
2020
{
@@ -25,7 +25,7 @@ window.onload = function ()
2525
loadEventListener()
2626
}
2727

28-
var loadEventListener = function () {
28+
const loadEventListener = function () {
2929

3030
jQuery('#details .content').click(toggleDetails)
3131

@@ -56,7 +56,7 @@ var loadEventListener = function () {
5656
})
5757

5858
jQuery('input[type="checkbox"][name="favorite-city"]').change(function () {
59-
var bool = jQuery('input[type="checkbox"][name="favorite-city"]:checked').length > 0
59+
const bool = jQuery('input[type="checkbox"][name="favorite-city"]:checked').length > 0
6060
if (bool) {
6161
setFavoriteCity(jQuery('input#city').val())
6262
} else {
@@ -65,7 +65,7 @@ var loadEventListener = function () {
6565
})
6666

6767
jQuery('input[type="checkbox"][name="mb-info"]').change(function () {
68-
var bool = jQuery('input[type="checkbox"][name="mb-info"]:checked').length > 0
68+
const bool = jQuery('input[type="checkbox"][name="mb-info"]:checked').length > 0
6969
setMbInfo(bool)
7070
if (getMbInfo()) {
7171
refreshWeather()
@@ -75,7 +75,7 @@ var loadEventListener = function () {
7575
})
7676

7777
jQuery('input[type="checkbox"][name="auto-launch"]').change(function () {
78-
var bool = jQuery('input[type="checkbox"][name="auto-launch"]:checked').length > 0
78+
const bool = jQuery('input[type="checkbox"][name="auto-launch"]:checked').length > 0
7979
setAutoLaunch(bool)
8080
ipcRenderer.send('auto-launch')
8181
})
@@ -124,7 +124,7 @@ var loadEventListener = function () {
124124
ipcRenderer.on('random-city', randomCity)
125125
}
126126

127-
var init = function () {
127+
const init = function () {
128128
if (store.get('actual-city')) {
129129
setCity(store.get('actual-city'))
130130
} else {

0 commit comments

Comments
 (0)