From e9cf8dd42f7c04c592155d7601e52cdaa54fa424 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 9 Jan 2025 17:35:02 -0500 Subject: feat: web content view in plugin test --- src/index.tsx | 56 ++++++++++++-------------------------------------------- 1 file changed, 12 insertions(+), 44 deletions(-) (limited to 'src') diff --git a/src/index.tsx b/src/index.tsx index 16cd6cb..eee47c8 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -29,52 +29,20 @@ const add = callable<[first: number, second: number], number>("add"); const startTimer = callable<[], void>("start_timer"); function Content() { - const [result, setResult] = useState(); - - const onClick = async () => { - const result = await add(Math.random(), Math.random()); - setResult(result); - }; - return ( - - - - {result ?? "Add two numbers via Python"} - - - - startTimer()} - > - {"Start Python timer"} - - - - {/* -
- -
-
*/} - - {/* - { - Navigation.Navigate("/decky-plugin-test"); - Navigation.CloseSideMenus(); - }} - > - Router - - */} -
+
+ +
); -}; +} export default definePlugin(() => { console.log("Template plugin initializing, this is called once on frontend startup") -- cgit v1.2.3