From f88f568f7e7c82f2b5ec2b02585bc636e1b3bb5e Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Sun, 13 Oct 2024 22:30:57 +0200 Subject: [PATCH] Svelte: Extract NetworkingTab button into a reusable component --- src/lib/NetworkingTab.svelte | 3 ++- src/lib/PanelButton.svelte | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/lib/PanelButton.svelte diff --git a/src/lib/NetworkingTab.svelte b/src/lib/NetworkingTab.svelte index e431695..c8051c3 100644 --- a/src/lib/NetworkingTab.svelte +++ b/src/lib/NetworkingTab.svelte @@ -1,6 +1,7 @@

Networking

-

{getButtonText($connectionState)}

+

WebVM can connect to the Internet via Tailscale

Using Tailscale is required since browser do not support TCP/UDP sockets (yet!)

diff --git a/src/lib/PanelButton.svelte b/src/lib/PanelButton.svelte new file mode 100644 index 0000000..0c8a1e8 --- /dev/null +++ b/src/lib/PanelButton.svelte @@ -0,0 +1,10 @@ + + +

{buttonText}