From da8a631a6dc09d0a7e451a7aa569a444828d1a1c Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 11 Jul 2021 16:31:27 +0200 Subject: [PATCH] wip --- src/terminal.ts | 8 +++++--- tabby/app/management/commands/add_version.py | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/terminal.ts b/src/terminal.ts index 56564a6..ab6f10d 100644 --- a/src/terminal.ts +++ b/src/terminal.ts @@ -43,12 +43,14 @@ async function start () { await webRequire(url) } + document.querySelector('app-root')['style'].display = 'flex' + const tabby = window['Tabby'] const pluginURLs = connector.getPluginsToLoad().map(x => `${baseUrl}/${x}`) - const pluginModules = await tabby.loadPlugins(pluginURLs) - - document.querySelector('app-root')['style'].display = 'flex' + const pluginModules = await tabby.loadPlugins(pluginURLs, (current, total) => { + (document.querySelector('.progress .bar') as HTMLElement).style.width = `${100 * current / total}%` // eslint-disable-line + }) const config = connector.loadConfig() tabby.bootstrap({ diff --git a/tabby/app/management/commands/add_version.py b/tabby/app/management/commands/add_version.py index 7a96164..aceb1a6 100644 --- a/tabby/app/management/commands/add_version.py +++ b/tabby/app/management/commands/add_version.py @@ -25,6 +25,7 @@ class Command(BaseCommand): 'tabby-terminal', 'tabby-ssh', 'tabby-community-color-schemes', + 'tabby-serial', 'tabby-web', 'tabby-web-demo', ]