Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 28, 2024
1 parent d5623b8 commit 21a5458
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/Modules/Terminal/Filament/Pages/Terminal.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function getViewData(): array
if ($runNewTerminal) {
$exec = shell_exec('node /usr/local/phyre/web/Modules/Terminal/nodejs/terminal/server.js >> /usr/local/phyre/web/storage/logs/terminal/server-terminal.log &');
}

return [
'title' => 'Terminal',
'sessionId' => $sessionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

@vite('resources/js/web-terminal.js')

<div id="js-web-terminal"></div>
<div class="bg-black/5 dark:bg-white/5 rounded p-4">
<div id="js-web-terminal"></div>
</div>

</div>

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"css": [
"assets/web-terminal-c039bc4a.css"
],
"file": "assets/web-terminal-6085c523.js",
"file": "assets/web-terminal-940be4ad.js",
"isEntry": true,
"src": "resources/js/web-terminal.js"
}
Expand Down
3 changes: 2 additions & 1 deletion web/resources/js/web-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (terminalElement !== null) {
const terminal = new Terminal({
allowTransparency: true,
theme: {
background: '#09090b',
background: 'rgba(22,22,23,0)',
foreground: '#cccccc',
selectionBackground: '#399ef440',
black: '#666666',
Expand Down Expand Up @@ -45,6 +45,7 @@ if (terminalElement !== null) {

fitAddon.fit();


const socket = new WebSocket(`ws://${window.location.host}/_shell/?sessionId=${window.terminal.sessionId}`);
socket.addEventListener('open', (_) => {
terminal.onData((data) => socket.send(data));
Expand Down

0 comments on commit 21a5458

Please sign in to comment.