diff options
Diffstat (limited to 'frontend/src/components/logviewer/index.tsx')
| -rw-r--r-- | frontend/src/components/logviewer/index.tsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/src/components/logviewer/index.tsx b/frontend/src/components/logviewer/index.tsx new file mode 100644 index 00000000..6e9baae0 --- /dev/null +++ b/frontend/src/components/logviewer/index.tsx @@ -0,0 +1,20 @@ +import { DialogBody } from 'decky-frontend-lib'; +import { FC, useEffect, useState } from 'react'; + +import LoggedPlugin from './LoggedPlugin'; + +const LogViewerPage: FC<{}> = () => { + const [plugins, setPlugins] = useState([]); + useEffect(() => { + window.DeckyPluginLoader.callServerMethod('get_plugins_with_logs').then((plugins) => { + setPlugins(plugins.result || []); + }); + }, []); + return ( + <DialogBody> + {plugins.map((plugin) => <LoggedPlugin plugin={plugin} />)} + </DialogBody> + ) +}; + +export default LogViewerPage;
\ No newline at end of file |
