From 010cb578e35b230759e384bdb68d661f73d5a0fc Mon Sep 17 00:00:00 2001 From: Christopher Bisset Date: Tue, 12 Jul 2022 20:46:56 +1000 Subject: [PATCH] refactor: moved get users to separate library --- src/lib/common/apiFunctions.svelte | 39 +++++++++++++++++++++++++++++ src/lib/devices/CreateDevice.svelte | 19 ++++++++++++-- src/routes/devices.html.svelte | 2 +- 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 src/lib/common/apiFunctions.svelte diff --git a/src/lib/common/apiFunctions.svelte b/src/lib/common/apiFunctions.svelte new file mode 100644 index 0000000..c2d76a4 --- /dev/null +++ b/src/lib/common/apiFunctions.svelte @@ -0,0 +1,39 @@ + diff --git a/src/lib/devices/CreateDevice.svelte b/src/lib/devices/CreateDevice.svelte index 966a331..115c60d 100644 --- a/src/lib/devices/CreateDevice.svelte +++ b/src/lib/devices/CreateDevice.svelte @@ -1,14 +1,23 @@ @@ -31,7 +40,7 @@ {#if activeTab == 0}
-

Install Tailscale with the client pointing to your domain (see headscale client documentation). Log in using the tray icon, and your browser should give you instructions with a key.

+

Install Tailscale with the client pointing to your domain (see headscale client documentation). Log in using the tray icon, and your browser should give you instructions with a key. Copy the key below:

headscale -n NAMESPACE nodes register --key <your device key>
@@ -42,7 +51,13 @@
- + +
+