Svelte: Prototype CPU tab

This commit is contained in:
Alessandro Pignotti 2024-10-13 11:47:40 +02:00
parent a43f439179
commit 9de48becfa
2 changed files with 7 additions and 0 deletions

4
src/lib/CpuTab.svelte Normal file
View file

@ -0,0 +1,4 @@
<h1 class="text-lg font-bold">CPU</h1>
<p>WebVM is powered by CheerpX, a x86 virtualization engine in WebAssembly</p>
<p>CheerpX can run securely run unmodified x86 binaries and libraries in the browser</p>
<p>For more information: <a class="text-gray-300" href="https://cheerpx.io/" target="_blank">https://cheerpx.io</a></p>

View file

@ -1,6 +1,7 @@
<script>
import Icon from './Icon.svelte';
import NetworkingTab from './NetworkingTab.svelte';
import CpuTab from './CpuTab.svelte';
const icons = [
//{ icon: 'fas fa-info-circle', info: 'Information' },
@ -41,6 +42,8 @@
<div class="flex flex-col gap-5 shrink-0 w-60 h-full z-10 p-2 bg-neutral-600 text-gray-100" class:hidden={!activeInfo}>
{#if activeInfo === 'Networking'}
<NetworkingTab on:connect/>
{:else if activeInfo === 'CPU'}
<CpuTab/>
{:else}
<p>{activeInfo}</p>
{/if}