mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 22:18:03 +00:00
Shell feature (#44)
Resolves #37: adds a shell tab where the user can write mongo shell scripts and execute them.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
import { EventsOn } from '$wails/runtime/runtime';
|
||||
|
||||
import Logs from './logs.svelte';
|
||||
import Shell from '../shell.svelte';
|
||||
import Status from './status.svelte';
|
||||
import SystemInfo from './systeminfo.svelte';
|
||||
|
||||
@ -28,6 +29,7 @@
|
||||
<TabBar
|
||||
tabs={[
|
||||
{ key: 'status', icon: 'chart', title: 'Host status' },
|
||||
{ key: 'shell', icon: 'shell', title: 'Shell' },
|
||||
{ key: 'logs', icon: 'doc', title: 'Logs' },
|
||||
{ key: 'systemInfo', icon: 'server', title: 'System info' },
|
||||
]}
|
||||
@ -38,6 +40,7 @@
|
||||
{#if tab === 'status'} <Status {host} />
|
||||
{:else if tab === 'logs'} <Logs {host} />
|
||||
{:else if tab === 'systemInfo'} <SystemInfo {host} />
|
||||
{:else if tab === 'shell'} <Shell {host} />
|
||||
{/if}
|
||||
</div>
|
||||
{/key}
|
||||
|
Reference in New Issue
Block a user