clay-server 2.11.0-beta.13 → 2.11.0-beta.14
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/lib/daemon.js +1 -1
- package/lib/pages.js +9 -1
- package/lib/public/modules/terminal.js +1 -1
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -152,8 +152,8 @@ var relay = createServer({
|
|
|
152
152
|
uidGid = { uid: parseInt(passwdLine[0], 10), gid: parseInt(passwdLine[1], 10) };
|
|
153
153
|
} catch (e) {}
|
|
154
154
|
if (uidGid) {
|
|
155
|
-
execSync("git init", { cwd: targetDir, uid: uidGid.uid, gid: uidGid.gid, env: { PATH: "/usr/local/bin:/usr/bin:/bin" } });
|
|
156
155
|
execSync("chown -R " + linuxUser + ":" + linuxUser + " " + JSON.stringify(targetDir));
|
|
156
|
+
execSync("git init", { cwd: targetDir, uid: uidGid.uid, gid: uidGid.gid, env: { PATH: "/usr/local/bin:/usr/bin:/bin" } });
|
|
157
157
|
} else {
|
|
158
158
|
execSync("git init", { cwd: targetDir });
|
|
159
159
|
}
|
package/lib/pages.js
CHANGED
|
@@ -3,13 +3,21 @@ function pinPageHtml() {
|
|
|
3
3
|
'<meta charset="UTF-8">' +
|
|
4
4
|
'<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">' +
|
|
5
5
|
'<meta name="apple-mobile-web-app-capable" content="yes">' +
|
|
6
|
+
'<link rel="icon" type="image/png" href="/favicon-banded.png">' +
|
|
7
|
+
'<link rel="apple-touch-icon" href="/apple-touch-icon.png">' +
|
|
6
8
|
'<title>Clay</title>' +
|
|
7
9
|
'<style>' + authPageStyles + '</style></head><body><div class="c">' +
|
|
8
|
-
'<h1
|
|
10
|
+
'<h1 id="greeting"></h1>' +
|
|
9
11
|
'<div class="sub">Enter your PIN to continue</div>' +
|
|
10
12
|
pinBoxesHtml +
|
|
11
13
|
'<div class="err" id="err"></div>' +
|
|
12
14
|
'<script>' +
|
|
15
|
+
'(function(){' +
|
|
16
|
+
'var h=document.getElementById("greeting");' +
|
|
17
|
+
'var visited=localStorage.getItem("clay_visited");' +
|
|
18
|
+
'if(visited){h.textContent="Welcome back"}' +
|
|
19
|
+
'else{h.textContent="Welcome to Clay";localStorage.setItem("clay_visited","1")}' +
|
|
20
|
+
'})();' +
|
|
13
21
|
pinBoxScript +
|
|
14
22
|
'var err=document.getElementById("err");' +
|
|
15
23
|
'function submitPin(){' +
|
|
@@ -775,7 +775,7 @@ function showTermCtxMenu(e, tab) {
|
|
|
775
775
|
// Clear
|
|
776
776
|
var clearItem = document.createElement("button");
|
|
777
777
|
clearItem.className = "term-ctx-item";
|
|
778
|
-
clearItem.innerHTML = iconHtml("trash-2") + " <span>Clear
|
|
778
|
+
clearItem.innerHTML = iconHtml("trash-2") + " <span>Clear Console</span>";
|
|
779
779
|
clearItem.addEventListener("click", function (ev) {
|
|
780
780
|
ev.stopPropagation();
|
|
781
781
|
closeTermCtxMenu();
|