smart-home-engine 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/assets/{index-CEoqAVCK.css → index-55TivCbD.css} +1 -1
- package/dist/web/assets/index-fKlQBrQH.js +287 -0
- package/dist/web/assets/{tsMode-B-GlXT-q.js → tsMode-C0zJ2TUA.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/web/broker-api.js +5 -1
- package/dist/web/assets/index-BcDolzP5.js +0 -277
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-
|
|
1
|
+
import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-fKlQBrQH.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
package/dist/web/index.html
CHANGED
|
@@ -172,10 +172,10 @@
|
|
|
172
172
|
}
|
|
173
173
|
})();
|
|
174
174
|
</script>
|
|
175
|
-
<script type="module" crossorigin src="/assets/index-
|
|
175
|
+
<script type="module" crossorigin src="/assets/index-fKlQBrQH.js"></script>
|
|
176
176
|
<link rel="modulepreload" crossorigin href="/assets/monaco-langs-DKJI_o9J.js">
|
|
177
177
|
<link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
|
|
178
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
178
|
+
<link rel="stylesheet" crossorigin href="/assets/index-55TivCbD.css">
|
|
179
179
|
</head>
|
|
180
180
|
<body>
|
|
181
181
|
<div id="app"></div>
|
package/package.json
CHANGED
package/src/web/broker-api.js
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
const express = require('express');
|
|
17
17
|
const path = require('path');
|
|
18
18
|
const fs = require('fs');
|
|
19
|
+
const os = require('os');
|
|
19
20
|
const crypto = require('crypto');
|
|
20
21
|
const { execFile, spawn } = require('child_process');
|
|
21
22
|
const { promisify } = require('util');
|
|
@@ -30,6 +31,9 @@ const { getBrokerLogBuffer } = require('./log-ws');
|
|
|
30
31
|
// Default SSH identity file respects the configured data directory
|
|
31
32
|
const DEFAULT_SSH_KEY = path.join(sheConfig['data-dir'], 'ssh', 'broker_id_ed25519');
|
|
32
33
|
|
|
34
|
+
// ssh-deploy falls back to the account she runs under when broker.ssh.user is unset
|
|
35
|
+
const DEFAULT_SSH_USER = os.userInfo().username;
|
|
36
|
+
|
|
33
37
|
const router = express.Router();
|
|
34
38
|
|
|
35
39
|
let _log = null;
|
|
@@ -110,7 +114,7 @@ router.get('/status', (req, res) => {
|
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
res.json({ dynsec: ds, sys, sshKeyDefault: DEFAULT_SSH_KEY, sshConfigured, sshHost });
|
|
117
|
+
res.json({ dynsec: ds, sys, sshKeyDefault: DEFAULT_SSH_KEY, sshUserDefault: DEFAULT_SSH_USER, sshConfigured, sshHost });
|
|
114
118
|
});
|
|
115
119
|
|
|
116
120
|
// ── mosquitto.conf ─────────────────────────────────────────────────────────────
|