+
+
+ About
+
+
+ Waggle is open-source software under the MIT License, with a few files under the Apache License 2.0. The open-source components it ships keep their own licenses.
+
+
+ {(Object.keys(DOCUMENTS) as LegalDocument[]).map((document) => (
+ show(document)} className={buttonClass}>
+
+ {DOCUMENTS[document].label}
+
+ ))}
+
+
+
{ if (!open) setOpenDocument(null); }}>
+
+ {openDocument && (
+ <>
+
+ {DOCUMENTS[openDocument].label}
+ {DOCUMENTS[openDocument].description}
+
+ {state?.status === 'ready' ? (
+
+ {state.text}
+
+ ) : state?.status === 'error' ? (
+
+ Could not load this document from the Waggle server. Check that the server is running, then try again.
+
+ ) : (
+
+
+ Loading...
+
+ )}
+ >
+ )}
+
+
+
+ );
+}
diff --git a/apps/web/src/lib/adapter.ts b/apps/web/src/lib/adapter.ts
index 449930c..3d3e79c 100644
--- a/apps/web/src/lib/adapter.ts
+++ b/apps/web/src/lib/adapter.ts
@@ -2712,6 +2712,13 @@ class LocalAdapter {
return this.healthProbe();
}
+ // --- Legal ---
+ /** The license or the third-party notices that ship with this installation (UF-059). */
+ async getLegalDocument(document: 'license' | 'third-party-notices'): Promise