+ {t({
+ en: 'Anyone with the link opens the instrument fullscreen as a preview they can try, with no editor and no ability to make changes.',
+ fr: "Toute personne disposant du lien ouvre l'instrument en plein écran comme un aperçu qu'elle peut essayer, sans éditeur ni possibilité de le modifier."
+ })}
+
+
+
+
+
+
diff --git a/apps/playground/src/pages/IndexPage.tsx b/apps/playground/src/pages/IndexPage.tsx
index 2e61857d2..c8428ea64 100644
--- a/apps/playground/src/pages/IndexPage.tsx
+++ b/apps/playground/src/pages/IndexPage.tsx
@@ -1,13 +1,14 @@
import { useEffect } from 'react';
-import { Separator } from '@douglasneuroinformatics/libui/components';
+import { LanguageToggle, Separator, ThemeToggle } from '@douglasneuroinformatics/libui/components';
import esbuildWasmUrl from 'esbuild-wasm/esbuild.wasm?url';
import { Header } from '@/components/Header';
import { MainContent } from '@/components/MainContent';
+import { Viewer } from '@/components/Viewer';
import type { InstrumentRepository } from '@/models/instrument-repository.model';
import { useAppStore } from '@/store';
-import { decodeShareURL } from '@/utils/encode';
+import { decodeShareURL, isFullscreenShareURL } from '@/utils/encode';
const { initialize } = await import('esbuild-wasm');
await initialize({
@@ -77,6 +78,30 @@ const IndexPage = () => {
};
}, [location.href]);
+ const isFullscreen = isFullscreenShareURL(new URL(location.href));
+
+ if (isFullscreen) {
+ return (
+