Update terminal.
This commit is contained in:
parent
7b2c93bcef
commit
a95a09a062
@ -34,7 +34,7 @@ class ComposeFileManager:
|
|||||||
return False
|
return False
|
||||||
async def reader(event_handler,stream):
|
async def reader(event_handler,stream):
|
||||||
while True:
|
while True:
|
||||||
line = await stream.readline()
|
line = await stream.read(1024)
|
||||||
print("XXX",line)
|
print("XXX",line)
|
||||||
if not line:
|
if not line:
|
||||||
break
|
break
|
||||||
@ -81,12 +81,9 @@ class ComposeFileManager:
|
|||||||
|
|
||||||
async def get_instance(self, name):
|
async def get_instance(self, name):
|
||||||
instance = self.compose.get("services", {}).get(name)
|
instance = self.compose.get("services", {}).get(name)
|
||||||
print(self.compose.get("services", {}))
|
instance = json.loads(json.dumps(instance,default=str))
|
||||||
print(instance)
|
|
||||||
instance['status'] = await self.get_instance_status(name)
|
instance['status'] = await self.get_instance_status(name)
|
||||||
print("INSTANCE",instance)
|
return instance
|
||||||
|
|
||||||
return json.loads(json.dumps(instance,default=str))
|
|
||||||
|
|
||||||
def duplicate_instance(self, name, new_name):
|
def duplicate_instance(self, name, new_name):
|
||||||
orig = self.get_instance(name)
|
orig = self.get_instance(name)
|
||||||
|
@ -18,10 +18,6 @@
|
|||||||
<script src="/message-list.js" type="module"></script>
|
<script src="/message-list.js" type="module"></script>
|
||||||
<script src="/chat-input.js" type="module"></script>
|
<script src="/chat-input.js" type="module"></script>
|
||||||
<script src="/container.js" type="module"></script>
|
<script src="/container.js" type="module"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm/css/xterm.css">
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/xterm/lib/xterm.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit/lib/xterm-addon-fit.js"></script>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="/sandbox.css">
|
<link rel="stylesheet" href="/sandbox.css">
|
||||||
<link rel="stylesheet" href="/user-list.css">
|
<link rel="stylesheet" href="/user-list.css">
|
||||||
<link rel="stylesheet" href="/fa640.all.min.css">
|
<link rel="stylesheet" href="/fa640.all.min.css">
|
||||||
@ -58,10 +54,13 @@
|
|||||||
<script type="module">
|
<script type="module">
|
||||||
import { app } from "/app.js";
|
import { app } from "/app.js";
|
||||||
import { Container } from "/container.js";
|
import { Container } from "/container.js";
|
||||||
|
{% if channel %}
|
||||||
app.channelUid = '{{ channel.uid.value }}'
|
app.channelUid = '{{ channel.uid.value }}'
|
||||||
|
|
||||||
window.getContainer = function(){
|
window.getContainer = function(){
|
||||||
return new Container(app.channelUid,true)
|
return new Container(app.channelUid,true)
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
let installPrompt = null
|
let installPrompt = null
|
||||||
window.addEventListener("beforeinstallprompt", (e) => {
|
window.addEventListener("beforeinstallprompt", (e) => {
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
|
@ -5,7 +5,11 @@
|
|||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
||||||
<section class="chat-area">
|
<section class="chat-area">
|
||||||
<div id="terminal" class="hidden"></div>
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm/css/xterm.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/xterm/lib/xterm.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit/lib/xterm-addon-fit.js"></script>
|
||||||
|
|
||||||
|
<div id="terminal" class="hidden"></div>
|
||||||
<message-list class="chat-messages">
|
<message-list class="chat-messages">
|
||||||
{% if not messages %}
|
{% if not messages %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user