From 3021fe25d3cea723188ef197d7037716804e0f63 Mon Sep 17 00:00:00 2001 From: Dakota Kallas Date: Mon, 18 Nov 2024 10:27:33 -0600 Subject: [PATCH] Updated App Details page --- .../renderer/src/overlays/apps/AppDetails.tsx | 110 ++++++++++++------ DeskThingServer/src/shared/types/app.ts | 1 + 2 files changed, 78 insertions(+), 33 deletions(-) diff --git a/DeskThingServer/src/renderer/src/overlays/apps/AppDetails.tsx b/DeskThingServer/src/renderer/src/overlays/apps/AppDetails.tsx index 7f13a61d..afa22e3d 100644 --- a/DeskThingServer/src/renderer/src/overlays/apps/AppDetails.tsx +++ b/DeskThingServer/src/renderer/src/overlays/apps/AppDetails.tsx @@ -1,40 +1,32 @@ import React from 'react' import { AppSettingProps } from './AppsOverlay' +import deskThingIcon from '../../../../../resources/icon2.png' +import { IconCheck, IconX } from '@renderer/assets/icons' const AppDetails: React.FC = ({ app }: AppSettingProps) => { if (!app.manifest) return null return ( -
-
-
- -
- {app.manifest.requires.map((required, index) => ( -
-

{required}

-
- ))} -
-
- - - - - - - - - -
- {app.manifest.platforms.map((platform, index) => ( -
-

{platform}

-
- ))} -
-
- +
+
+
+ Icon +
+

{app.manifest.label}

+

{app.manifest.author}

+
+
+
{app.manifest.description}
+
+ +
+ {app.manifest.homepage && ( + + )} + {app.manifest.repository && ( + + )} + {app.manifest.platforms?.length > 0 && ( +
+ + {app.manifest.platforms.map((platform, index) => ( +

+ {platform} +

+ ))} +
+ )} +
+
+ + {app.manifest.isWebApp ? ( + + ) : ( + + )} +
+
+ + {app.manifest.isLocalApp ? ( + + ) : ( + + )} +
+
+ + {app.manifest.isScreenSaver ? ( + + ) : ( + + )} +
+
+ + {app.manifest.isAudioSource ? ( + + ) : ( + + )} +
+
+ +
+

Version {app.manifest.version}

+

ID: {app.manifest.id}

diff --git a/DeskThingServer/src/shared/types/app.ts b/DeskThingServer/src/shared/types/app.ts index 571d1dca..91768f87 100644 --- a/DeskThingServer/src/shared/types/app.ts +++ b/DeskThingServer/src/shared/types/app.ts @@ -72,6 +72,7 @@ export interface Manifest { isLocalApp: boolean platforms: Array homepage?: string + iconUrl: string repository?: string }