diff options
author | silverwind <me@silverwind.io> | 2020-05-21 04:00:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 22:00:43 -0400 |
commit | b02d2c37728491caaf8af3384b8d3b25411e4679 (patch) | |
tree | 09dead09d24417c288a16a24a52e772345b2554d /templates | |
parent | 3eb323901c6ec791294db492783e202558c2824f (diff) | |
download | gitea-b02d2c37728491caaf8af3384b8d3b25411e4679.tar.gz gitea-b02d2c37728491caaf8af3384b8d3b25411e4679.zip |
Move tributejs to npm/webpack (#11497)
* Move tributejs to npm/webpack
- Move vendored bundle to npm and webpack
- Rewrote initialization to single function
- Restyled it (made it a bit smaller)
- Fixed it for arc-green
* fix mention
* also include emoji on #content
* Update web_src/less/_tribute.less
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
* rewrite to only use one instance of Tribute
* refactor
* fix copy/paste error
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/footer.tmpl | 4 | ||||
-rw-r--r-- | templates/base/head.tmpl | 4 | ||||
-rw-r--r-- | templates/pwa/serviceworker_js.tmpl | 2 |
3 files changed, 1 insertions, 9 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 07cbba7069..6570a6eaed 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -34,10 +34,6 @@ <script src='{{ URLJoin .RecaptchaURL "api.js"}}' async></script> {{end}} {{end}} -{{if .RequireTribute}} - <script src="{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.min.js"></script> -{{end}} - <script src="{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script> <script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script> {{template "custom/footer" .}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index eae2389238..8e58c07d23 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -119,10 +119,6 @@ {{if .RequireSimpleMDE}} <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css"> {{end}} - -{{if .RequireTribute}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css"> -{{end}} <link rel="stylesheet" href="{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}"> <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> <noscript> diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl index 32975e0fd5..a074879f3e 100644 --- a/templates/pwa/serviceworker_js.tmpl +++ b/templates/pwa/serviceworker_js.tmpl @@ -10,6 +10,7 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/dropzone.js', '{{StaticUrlPrefix}}/js/datetimepicker.js', + '{{StaticUrlPrefix}}/js/tribute.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js', '{{StaticUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js', '{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js', @@ -24,7 +25,6 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css', '{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css', '{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css', - '{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css', {{if .IsSigned }} {{ if ne .SignedUser.Theme "gitea" }} '{{StaticUrlPrefix}}/css/theme-{{.SignedUser.Theme}}.css?v={{MD5 AppVer}}', |