From a0f794e372848d05068f9154fba9ba781b88c6e9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Nov 2020 14:05:06 +0900 Subject: [PATCH] Improve task manager --- src/client/components/tab.vue | 11 ++- src/client/components/taskmanager.vue | 137 +++++++++++++++++--------- 2 files changed, 98 insertions(+), 50 deletions(-) diff --git a/src/client/components/tab.vue b/src/client/components/tab.vue index 84b520966b..7278c74d9a 100644 --- a/src/client/components/tab.vue +++ b/src/client/components/tab.vue @@ -1,6 +1,6 @@ @@ -29,11 +29,20 @@ export default defineComponent({ padding: 15px 12px 12px 12px; border-bottom: solid 3px transparent; + &:disabled { + opacity: 1 !important; + cursor: default; + } + &.active { color: var(--accent); border-bottom-color: var(--accent); } + &:not(.active):hover { + color: var(--fgHighlighted); + } + > .icon { margin-right: 6px; } diff --git a/src/client/components/taskmanager.vue b/src/client/components/taskmanager.vue index c7f91d082c..29b054d0fa 100644 --- a/src/client/components/taskmanager.vue +++ b/src/client/components/taskmanager.vue @@ -6,47 +6,55 @@
-
-
-
#ID
-
Component
-
Action
+
+
+
+
#ID
+
Component
+
Action
+
+
+
#{{ p.id }}
+
{{ p.component.name ? p.component.name : '' }}
+
+
-
-
#{{ p.id }}
-
{{ p.component.name ? p.component.name : '' }}
-
-
-
-
-
-
#ID
-
Ch
-
Handle
-
In
-
Out
-
-
-
#{{ c.id }}
-
{{ c.channel }}
-
(shared){{ ' ' + c.name }}
-
{{ c.name ? c.name : '' }}
-
{{ c.in }}
-
{{ c.out }}
-
-
-
-
-
#ID
-
Ch
-
Users
-
-
-
#{{ p.id }}
-
{{ p.channel }}
-
{{ p.users }}
+
+
+
#ID
+
Ch
+
Handle
+
In
+
Out
+
+
+
#{{ c.id }}
+
{{ c.channel }}
+
(shared){{ ' ' + c.name }}
+
{{ c.name ? c.name : '' }}
+
{{ c.in }}
+
{{ c.out }}
+
+
+
+
+
#ID
+
Ch
+
Users
+
+
+
#{{ p.id }}
+
{{ p.channel }}
+
{{ p.users }}
+
+ +
+
Windows{{ popups.length }}
+
Stream{{ connections.length }}
+
Stream (Pool){{ pools.length }}
+
@@ -108,24 +116,55 @@ export default defineComponent({