Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed May 9, 2018
1 parent 1c861d2 commit ea8243f
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

### 2.9.4-beta: Maintenance Release

**Fixes**

- Let text input node handle floating point input when in numeric mode. Issue #391

### 2.9.3: Maintenance Release

**Fixes**
Expand Down
2 changes: 1 addition & 1 deletion dist/dashboard.appcache
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ weather-icons-lite/fonts/weather-icons-lite.woff2
NETWORK:
*

# hash: 59534eb98be770d3dc3189ec7351961df0f80142d601ae8f237be1cc8a832948
# hash: 1b0c73c1f3ab50beaab68aa65403e5b37edbd3485b4881d7fd5c46cf02faf0b9
14 changes: 7 additions & 7 deletions dist/js/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-dashboard",
"version": "2.9.3",
"version": "2.9.4-beta",
"description": "A set of dashboard nodes for Node-RED",
"keywords": [
"node-red"
Expand Down Expand Up @@ -108,7 +108,7 @@
"jquery": "^3.3.1",
"jshint": "^2.9.4",
"justgage": "^1.2.2",
"less": "^3.0.2",
"less": "^3.0.4",
"moment": "~2.22.1",
"sprintf-js": "^1.0.3",
"streamqueue": "~1.1.2",
Expand Down
43 changes: 43 additions & 0 deletions src/logout.html
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>
2 changes: 1 addition & 1 deletion ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function init(server, app, log, redSettings) {

fs.stat(path.join(__dirname, 'dist/index.html'), function(err, stat) {
if (!err) {
app.use( join(settings.path,"manifest.json"), function(req, res) { res.send(mani); });
app.use( join(settings.path, "manifest.json"), function(req, res) { res.send(mani); });
app.use( join(settings.path), serveStatic(path.join(__dirname, "dist")) );
}
else {
Expand Down

0 comments on commit ea8243f

Please sign in to comment.