agent: adds ui to app installed preview

This commit is contained in:
Aaron Greenspan
2021-01-11 12:39:02 -07:00
committed by Aiden McClelland
parent 3a63dab586
commit 0962a20852
3 changed files with 9 additions and 1 deletions

View File

@@ -64,6 +64,9 @@ data AppManifest (n :: Nat) where
, appManifestV0Dependencies :: HM.HashMap AppId VersionRange
} -> AppManifest 0
hasUi :: forall n. AppManifest n -> Bool
hasUi AppManifestV0 {..} = isJust $ HM.lookup 80 appManifestV0PortMapping
instance FromJSON (Some1 AppManifest) where
parseJSON = withObject "App Manifest" $ \o -> do
o .: "compat" >>= \case