gitxelectron 1.1.5 → 1.1.6
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/out/main/index.js
CHANGED
|
@@ -446,7 +446,12 @@ function initGit(sessionId, baseDir) {
|
|
|
446
446
|
maxConcurrentProcesses: 6,
|
|
447
447
|
unsafe: { allowUnsafeEditor: true, allowUnsafeAskPass: true, allowUnsafeCredentialHelper: true }
|
|
448
448
|
};
|
|
449
|
-
const git = simpleGit.simpleGit(options)
|
|
449
|
+
const git = simpleGit.simpleGit(options).env({
|
|
450
|
+
...process.env,
|
|
451
|
+
GCM_INTERACTIVE: "false",
|
|
452
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
453
|
+
GIT_ASKPASS: "echo"
|
|
454
|
+
});
|
|
450
455
|
gitSessions.set(sessionId, { git, repoPath: baseDir });
|
|
451
456
|
}
|
|
452
457
|
function cleanupGitSession(sessionId) {
|
|
@@ -459,7 +464,12 @@ function getGitSession(sessionId) {
|
|
|
459
464
|
}
|
|
460
465
|
async function isGitRepo(dir) {
|
|
461
466
|
try {
|
|
462
|
-
const tempGit = simpleGit.simpleGit(dir)
|
|
467
|
+
const tempGit = simpleGit.simpleGit(dir).env({
|
|
468
|
+
...process.env,
|
|
469
|
+
GCM_INTERACTIVE: "false",
|
|
470
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
471
|
+
GIT_ASKPASS: "echo"
|
|
472
|
+
});
|
|
463
473
|
return await tempGit.checkIsRepo();
|
|
464
474
|
} catch {
|
|
465
475
|
return false;
|
|
@@ -13437,7 +13437,7 @@ const RetroSpaceGame = () => {
|
|
|
13437
13437
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute bottom-4 left-4 text-white/40 font-mono text-xs pointer-events-none", children: "Space Explorer | Arrow Keys: Thrust/Turn | Down: Brake" })
|
|
13438
13438
|
] });
|
|
13439
13439
|
};
|
|
13440
|
-
const LiveGitHubSpace = () => {
|
|
13440
|
+
const LiveGitHubSpace = React.memo(() => {
|
|
13441
13441
|
const canvasRef = reactExports.useRef(null);
|
|
13442
13442
|
const [lastFetch, setLastFetch] = reactExports.useState(/* @__PURE__ */ new Date());
|
|
13443
13443
|
reactExports.useEffect(() => {
|
|
@@ -13528,9 +13528,7 @@ const LiveGitHubSpace = () => {
|
|
|
13528
13528
|
stars.forEach((s) => {
|
|
13529
13529
|
s.x -= s.speed;
|
|
13530
13530
|
if (s.x < 0) s.x = canvas.width;
|
|
13531
|
-
ctx.
|
|
13532
|
-
ctx.arc(s.x, s.y, s.size, 0, Math.PI * 2);
|
|
13533
|
-
ctx.fill();
|
|
13531
|
+
ctx.fillRect(s.x, s.y, s.size, s.size);
|
|
13534
13532
|
});
|
|
13535
13533
|
for (let i = activeShips.length - 1; i >= 0; i--) {
|
|
13536
13534
|
const ship = activeShips[i];
|
|
@@ -13546,15 +13544,14 @@ const LiveGitHubSpace = () => {
|
|
|
13546
13544
|
ctx.beginPath();
|
|
13547
13545
|
ctx.ellipse(5, -2, 8, 4, 0, 0, Math.PI * 2);
|
|
13548
13546
|
ctx.fill();
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
gradient.addColorStop(1, ship.color);
|
|
13552
|
-
ctx.fillStyle = gradient;
|
|
13547
|
+
ctx.fillStyle = ship.color;
|
|
13548
|
+
ctx.globalAlpha = 0.5;
|
|
13553
13549
|
ctx.beginPath();
|
|
13554
13550
|
ctx.moveTo(-15, -4);
|
|
13555
13551
|
ctx.lineTo(-40, 0);
|
|
13556
13552
|
ctx.lineTo(-15, 4);
|
|
13557
13553
|
ctx.fill();
|
|
13554
|
+
ctx.globalAlpha = 1;
|
|
13558
13555
|
ctx.font = "12px sans-serif";
|
|
13559
13556
|
ctx.fillStyle = "rgba(255,255,255,0.7)";
|
|
13560
13557
|
ctx.fillText(ship.text, -20, 20);
|
|
@@ -13596,7 +13593,7 @@ const LiveGitHubSpace = () => {
|
|
|
13596
13593
|
] })
|
|
13597
13594
|
] })
|
|
13598
13595
|
] });
|
|
13599
|
-
};
|
|
13596
|
+
});
|
|
13600
13597
|
const SIZE = 4;
|
|
13601
13598
|
const emptyGrid = () => Array(SIZE).fill(null).map(() => Array(SIZE).fill(null));
|
|
13602
13599
|
const addRandomTile = (grid) => {
|
package/out/renderer/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
|
|
22
22
|
rel="stylesheet"
|
|
23
23
|
/>
|
|
24
|
-
<script type="module" crossorigin src="./assets/index-
|
|
24
|
+
<script type="module" crossorigin src="./assets/index-BTpR3GHo.js"></script>
|
|
25
25
|
<link rel="stylesheet" crossorigin href="./assets/index-pLZRLSz9.css">
|
|
26
26
|
</head>
|
|
27
27
|
|