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