mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
d5623b854f
commit
21a545829e
5 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,9 @@
|
||||||
|
|
||||||
@vite('resources/js/web-terminal.js')
|
@vite('resources/js/web-terminal.js')
|
||||||
|
|
||||||
|
<div class="bg-black/5 dark:bg-white/5 rounded p-4">
|
||||||
<div id="js-web-terminal"></div>
|
<div id="js-web-terminal"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,7 @@
|
||||||
"css": [
|
"css": [
|
||||||
"assets/web-terminal-c039bc4a.css"
|
"assets/web-terminal-c039bc4a.css"
|
||||||
],
|
],
|
||||||
"file": "assets/web-terminal-6085c523.js",
|
"file": "assets/web-terminal-940be4ad.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"src": "resources/js/web-terminal.js"
|
"src": "resources/js/web-terminal.js"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ if (terminalElement !== null) {
|
||||||
const terminal = new Terminal({
|
const terminal = new Terminal({
|
||||||
allowTransparency: true,
|
allowTransparency: true,
|
||||||
theme: {
|
theme: {
|
||||||
background: '#09090b',
|
background: 'rgba(22,22,23,0)',
|
||||||
foreground: '#cccccc',
|
foreground: '#cccccc',
|
||||||
selectionBackground: '#399ef440',
|
selectionBackground: '#399ef440',
|
||||||
black: '#666666',
|
black: '#666666',
|
||||||
|
@ -45,6 +45,7 @@ if (terminalElement !== null) {
|
||||||
|
|
||||||
fitAddon.fit();
|
fitAddon.fit();
|
||||||
|
|
||||||
|
|
||||||
const socket = new WebSocket(`ws://${window.location.host}/_shell/?sessionId=${window.terminal.sessionId}`);
|
const socket = new WebSocket(`ws://${window.location.host}/_shell/?sessionId=${window.terminal.sessionId}`);
|
||||||
socket.addEventListener('open', (_) => {
|
socket.addEventListener('open', (_) => {
|
||||||
terminal.onData((data) => socket.send(data));
|
terminal.onData((data) => socket.send(data));
|
||||||
|
|
Loading…
Reference in a new issue