mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
agent: adds ui to app installed preview
This commit is contained in:
committed by
Aiden McClelland
parent
3a63dab586
commit
0962a20852
3
agent/src/Lib/External/AppManifest.hs
vendored
3
agent/src/Lib/External/AppManifest.hs
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user