mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 11:51:57 +00:00
fix path and temp icon for service
This commit is contained in:
@@ -199,7 +199,10 @@ getServiceR = do
|
|||||||
sendResponseStatus status500 ("Internal Server Error" :: Text)
|
sendResponseStatus status500 ("Internal Server Error" :: Text)
|
||||||
Right (a :: ServiceManifest) -> pure a
|
Right (a :: ServiceManifest) -> pure a
|
||||||
d <- traverse (mapDependencyMetadata appsDir appMgrDir domain) (HM.toList $ serviceManifestDependencies manifest)
|
d <- traverse (mapDependencyMetadata appsDir appMgrDir domain) (HM.toList $ serviceManifestDependencies manifest)
|
||||||
icon <- decodeIcon appMgrDir appsDir appExt
|
let depPath = appsDir </> toS appId </> show version
|
||||||
|
-- @TODO uncomment when sdk icon working
|
||||||
|
-- icon <- decodeIcon appMgrDir depPath appExt
|
||||||
|
let icon = [i|https://#{domain}/icons/#{appId}.png|]
|
||||||
addPackageHeader appMgrDir appDir appExt
|
addPackageHeader appMgrDir appDir appExt
|
||||||
pure $ ServiceRes
|
pure $ ServiceRes
|
||||||
{ serviceResIcon = icon
|
{ serviceResIcon = icon
|
||||||
@@ -221,9 +224,10 @@ mapDependencyMetadata appsDir appmgrPath domain (appId, depInfo) = do
|
|||||||
let depPath = appsDir </> toS appId </> show version
|
let depPath = appsDir </> toS appId </> show version
|
||||||
-- @TODO uncomment when sdk icon working
|
-- @TODO uncomment when sdk icon working
|
||||||
-- icon <- decodeIcon appmgrPath depPath ext
|
-- icon <- decodeIcon appmgrPath depPath ext
|
||||||
|
let icon = [i|https://#{domain}/icons/#{appId}.png|]
|
||||||
pure (appId, DependencyInfo
|
pure (appId, DependencyInfo
|
||||||
{ dependencyInfoTitle = appId
|
{ dependencyInfoTitle = appId
|
||||||
, dependencyInfoIcon = [i|https://#{domain}/icons/#{appId}.png|]
|
, dependencyInfoIcon = icon
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user