-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Conway-Jones
committed
May 9, 2018
1 parent
1c861d2
commit ea8243f
Showing
6 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<head></head> | ||
<body> | ||
<script src="js/app.min.js"></script> | ||
<script> | ||
for (var key in localStorage) { | ||
if (localStorage.hasOwnProperty(key)) { | ||
if (key.indexOf("nr-") === 0) { | ||
localStorage.removeItem(key); | ||
} | ||
} | ||
} | ||
$.ajax({ | ||
type: "GET", | ||
url: window.location.href, | ||
async: true, | ||
username: "some_non_user_name", | ||
password: "a_not_valid_password" | ||
}) | ||
.done(function() { alert('Error!') }) | ||
.fail(function() { | ||
var url = window.location.href.split("logout")[0]; | ||
setTimeout(function() { window.location.href = url; }, 1000); | ||
}); | ||
</script> | ||
<style> | ||
div { | ||
width: 400px; | ||
height: 300px; | ||
position: absolute; | ||
top:0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
margin: auto; | ||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif; | ||
} | ||
</style> | ||
<div class="node-red-ui--notabs"> | ||
<table><tr><td><center><a href= "./"><img src="icon120x120.png"/></a></center></td></tr> | ||
<tr><td><center><h2>Welcome to the Node-RED Dashboard</h2></center></td></tr> | ||
<tr><td><center>Please <a href ="./">sign in</a> to see your flow.</center></td></tr></table> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters