Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed error if latestSGV not filled #4919

Merged
merged 40 commits into from
Sep 17, 2019
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6f8a295
(bluefox) add npmignore
GermanBluefox Jul 29, 2019
f81298f
Release 0.12.3
sulkaharo Jul 30, 2019
1ce3b0b
Make it runnable as npm package
GermanBluefox Jul 30, 2019
6727428
(bluefox) use absolute path for static folder
GermanBluefox Jul 31, 2019
94be928
Merge remote-tracking branch 'remotes/nightscout/master'
GermanBluefox Aug 3, 2019
5f222b7
Allow start not only from cgm-remote-monitor
GermanBluefox Aug 3, 2019
5afbdd4
(bluefox) add polling option to make it possible the communication wi…
GermanBluefox Aug 6, 2019
60b40d1
0.12.3-2
GermanBluefox Aug 6, 2019
8d06b40
(bluefox) fix errors
GermanBluefox Aug 6, 2019
409b6a5
(bluefox) fix clock with authentication
GermanBluefox Aug 6, 2019
0a2dcbe
(bluefox) fix clock
GermanBluefox Aug 6, 2019
b523419
Merge remote-tracking branch 'remotes/nightscout/dev'
GermanBluefox Aug 6, 2019
007cea4
fix time
GermanBluefox Aug 6, 2019
11aff8a
Formatting
GermanBluefox Aug 6, 2019
3c25914
Fix clock if authentication is enabled
GermanBluefox Aug 6, 2019
baa613f
Merge branch 'dev'
GermanBluefox Aug 6, 2019
366d10c
Add time to clock view back
GermanBluefox Aug 6, 2019
bb5fe99
Merge branch 'dev'
GermanBluefox Aug 6, 2019
3a52cac
Formatting
GermanBluefox Aug 6, 2019
ce21b4e
Merge branch 'dev'
GermanBluefox Aug 6, 2019
d2d82dd
Fix authentication dialog
GermanBluefox Aug 7, 2019
d61e8f9
Select browser language for authentication dialog
GermanBluefox Aug 7, 2019
7bb7289
Merge branch 'dev'
GermanBluefox Aug 7, 2019
050808d
Update hashauth.js
GermanBluefox Aug 7, 2019
ccad081
Update hashauth.js
GermanBluefox Aug 7, 2019
293ac55
Update hashauth.js
GermanBluefox Aug 7, 2019
afbe6a3
Update hashauth.js
GermanBluefox Aug 7, 2019
fa442ae
(bluefox) fix chart if no latestSGV defined
GermanBluefox Aug 10, 2019
d361a72
Select language from localStorage
GermanBluefox Aug 10, 2019
22474e2
Fix language selection
GermanBluefox Aug 10, 2019
bd42ad8
Merge branch 'dev' into dev
GermanBluefox Aug 23, 2019
db1febb
Charts were fixed if no latestSGV value found
GermanBluefox Aug 23, 2019
7f22ad4
Merge remote-tracking branch 'remotes/nightscout/dev' into dev
GermanBluefox Aug 23, 2019
2c935ee
Merge branch 'dev' of https://github.com/GermanBluefox/cgm-remote-mon…
GermanBluefox Aug 23, 2019
88c6d16
Merge branch 'dev'
GermanBluefox Aug 23, 2019
6baf359
Remove .npmignore
GermanBluefox Aug 23, 2019
beed799
Merge branch 'master' into dev
GermanBluefox Aug 23, 2019
f4e07fb
Some code formatting. No relevant changes
GermanBluefox Aug 23, 2019
18cd822
Show "-?-" in clock mode if no measured value found.
GermanBluefox Aug 23, 2019
a87fb50
Small CSS Formatting
GermanBluefox Aug 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
GermanBluefox committed Aug 6, 2019
commit 11aff8ab2a0b8362da3103f243d7487478d5238e
46 changes: 23 additions & 23 deletions views/clockviews/shared.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,33 @@
</main>
<script src="/<%= locals.bundle %>/js/bundle.clock.js?v=<%= locals.cachebuster %>"></script>

<script type="text/javascript">
var clockFace = "<%= face %>"; // can now be used in scripts
<script type="text/javascript">
var clockFace = "<%= face %>"; // can now be used in scripts

var parts = (location.search || '?').substring(1).split('&');
var token = '';
parts.forEach(function (val) {
if (val.startsWith('token=')) {
token = val.substring('token='.length);
}
});
var parts = (location.search || '?').substring(1).split('&');
var token = '';
parts.forEach(function (val) {
if (val.startsWith('token=')) {
token = val.substring('token='.length);
}
});

var secret = typeof localStorage !== 'undefined' ? localStorage.getItem('apisecrethash') : '';
var src = '/api/v1/status.js?t=' + Date.now();
var secret = typeof localStorage !== 'undefined' ? localStorage.getItem('apisecrethash') : '';
var src = '/api/v1/status.js?t=' + Date.now();

if (secret) {
src += '&secret=' + secret;
} else if (token) {
src += '&token=' + token;
}
if (secret) {
src += '&secret=' + secret;
} else if (token) {
src += '&token=' + token;
}

var script = document.createElement('script');
script.onload = function () {
window.Nightscout.client.init( );
};
script.src = src;
var script = document.createElement('script');
script.onload = function () {
window.Nightscout.client.init( );
};
script.src = src;

document.head.appendChild(script); //or something of the likes
</script>
document.head.appendChild(script); //or something of the likes
</script>
</body>
</html>