clay-server 2.23.0-beta.3 → 2.23.0-beta.4
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/bin/cli.js +3 -10
- package/lib/public/index.html +1 -1
- package/lib/public/modules/profile.js +4 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -443,20 +443,13 @@ async function restartDaemonFromConfig() {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
// Rebuild config (preserve everything except pid)
|
|
446
|
-
var newConfig = {
|
|
446
|
+
var newConfig = Object.assign({}, lastConfig, {
|
|
447
447
|
pid: null,
|
|
448
448
|
port: targetPort,
|
|
449
|
-
pinHash: lastConfig.pinHash || null,
|
|
450
|
-
tls: lastConfig.tls !== undefined ? lastConfig.tls : useHttps,
|
|
451
|
-
debug: lastConfig.debug || false,
|
|
452
|
-
keepAwake: lastConfig.keepAwake || false,
|
|
453
|
-
dangerouslySkipPermissions: lastConfig.dangerouslySkipPermissions || false,
|
|
454
|
-
osUsers: lastConfig.osUsers || false,
|
|
455
449
|
projects: (lastConfig.projects || []).filter(function (p) {
|
|
456
450
|
return fs.existsSync(p.path);
|
|
457
|
-
})
|
|
458
|
-
|
|
459
|
-
};
|
|
451
|
+
})
|
|
452
|
+
});
|
|
460
453
|
|
|
461
454
|
ensureConfigDir();
|
|
462
455
|
saveConfig(newConfig);
|
package/lib/public/index.html
CHANGED
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
<div class="user-island-profile">
|
|
728
728
|
<div class="user-island-avatar"><span class="user-island-avatar-letter">?</span></div>
|
|
729
729
|
<div class="user-island-info">
|
|
730
|
-
<span class="user-island-name"
|
|
730
|
+
<span class="user-island-name"></span>
|
|
731
731
|
<span class="user-island-cta hidden">Personalize your name</span>
|
|
732
732
|
</div>
|
|
733
733
|
</div>
|
|
@@ -64,7 +64,10 @@ export function debouncedSave() {
|
|
|
64
64
|
export function applyToIsland() {
|
|
65
65
|
var avatarWrap = document.querySelector('.user-island-avatar');
|
|
66
66
|
var nameEl = document.querySelector('.user-island-name');
|
|
67
|
-
if (!avatarWrap || !nameEl)
|
|
67
|
+
if (!avatarWrap || !nameEl) {
|
|
68
|
+
requestAnimationFrame(applyToIsland);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
68
71
|
|
|
69
72
|
var displayName = profile.name || 'Awesome Clay User';
|
|
70
73
|
|