initial import of thirdParty route support

This commit is contained in:
Anthony Woods
2015-10-06 17:20:50 +08:00
parent 0bcda4a2eb
commit cf89b565a6
10 changed files with 238 additions and 6 deletions

View File

@@ -13,6 +13,9 @@
[[else]]
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.dark.min.css">
[[end]]
[[ range $css := .ThirdPartyCss ]]
<link rel="stylesheet" href="[[$.AppSubUrl]]/thirdparty[[ $css ]]">
[[ end ]]
<link rel="icon" type="image/png" href="[[.AppSubUrl]]/img/fav32.png">
<base href="[[.AppSubUrl]]/" />
@@ -53,11 +56,17 @@
settings: [[.Settings]],
};
window.thirdParty = {
MainLinks: [[.ThirdPartyMenu]]
};
require(['app/app'], function (app) {
app.boot();
app.boot();
})
</script>
[[ range $js := .ThirdPartyJs]]
<script src="[[$.AppSubUrl]]/thirdparty[[ $js ]]"></script>
[[ end ]]
[[if .GoogleAnalyticsId]]
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){