mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 22:22:25 +08:00
add support for screenshots in plugins.
Allow plugin creators to include screenshots of their plugin in action. Primarily for use in Grafana.net info pages.
This commit is contained in:
@ -24,6 +24,9 @@ func (fp *FrontendPluginBase) initFrontendPlugin() {
|
||||
|
||||
fp.Info.Logos.Small = evalRelativePluginUrlPath(fp.Info.Logos.Small, fp.Id)
|
||||
fp.Info.Logos.Large = evalRelativePluginUrlPath(fp.Info.Logos.Large, fp.Id)
|
||||
for i := -0; i < len(fp.Info.Screenshots); i++ {
|
||||
fp.Info.Screenshots[i].Path = evalRelativePluginUrlPath(fp.Info.Screenshots[i].Path, fp.Id)
|
||||
}
|
||||
fp.handleModuleDefaults()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user