feat(apps): lots of work making apps easier to develop, module paths are handled automatically

This commit is contained in:
Torkel Ödegaard
2016-02-09 22:10:36 +01:00
parent fe2e6b8a80
commit baff9b0267
6 changed files with 41 additions and 18 deletions

View File

@ -41,7 +41,17 @@ func Init() error {
scan(path.Join(setting.StaticRootPath, "app/plugins"))
scan(setting.PluginsPath)
checkPluginPaths()
// checkDependencies()
for _, panel := range Panels {
panel.initFrontendPlugin()
}
for _, panel := range DataSources {
panel.initFrontendPlugin()
}
for _, app := range Apps {
app.initApp()
}
return nil
}