diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-13 22:52:13 +0800 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-11-13 15:52:13 +0100 |
commit | afe50873a5d6b52177b0cd6bc9d2657faf82f311 (patch) | |
tree | 0d9fb3ef4d4ba5739c52f2fcb38ad96263346f08 /templates/base | |
parent | 71395dffd0db0c53353e4b0cf0d687ece0032597 (diff) | |
download | gitea-afe50873a5d6b52177b0cd6bc9d2657faf82f311.tar.gz gitea-afe50873a5d6b52177b0cd6bc9d2657faf82f311.zip |
Move index.js to web_src and use webpack to pack them (#8598)
* Move index.js to web_src and use webpack
* Fix initHeatMap
* update eslint and move webpack to devDependencies
* update index.js
* add eslint env node
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/footer.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index bed8eea019..770fcf005e 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -129,7 +129,7 @@ <script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script> <script src="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.browser.js" charset="utf-8"></script> <script type="text/javascript"> - initHeatmap('user-heatmap', '{{.HeatmapUser}}'); + window.initHeatmap('user-heatmap', '{{.HeatmapUser}}'); </script> {{end}} {{template "custom/footer" .}} |