mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 15:10:25 +00:00
update
This commit is contained in:
parent
d5623b854f
commit
21a545829e
5 changed files with 8 additions and 5 deletions
|
@ -31,7 +31,7 @@ class Terminal extends Page
|
|||
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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue