diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-21 13:17:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 13:17:58 +0800 |
commit | 5cf241b3123a6096076a9cb582d28fb8919969e0 (patch) | |
tree | b89ebb827c7feb81a63a605c4d641a9886db0e04 /templates | |
parent | e7322a1138ec0285091abbfc51e3ac1d47ae0fb2 (diff) | |
download | gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.tar.gz gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.zip |
Use npm to manage fomantic and only build needed components (#9561)
* Use npm to manage fomantic
* Only build needed semantic components
* Fix make
* Don't import fonts from google sites since we have loaded
* [misc] devendor fomantic-ui and rebuild upon src or config changes only
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Change sort alphabetically of semantic components
* Fix trailing slash
* fix makefile
* Remove dependency to gulp from package.json
* Fix something
* Simplife the makefile
* add missed fomantic compnent
Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/footer.tmpl | 2 | ||||
-rw-r--r-- | templates/base/head.tmpl | 2 | ||||
-rw-r--r-- | templates/pwa/serviceworker_js.tmpl | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index de736dcc6c..94122e4b23 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -117,7 +117,7 @@ <script src="{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js"></script> <!-- JavaScript --> - <script src="{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script> + <script src="{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script> <script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script> {{if .EnableHeatmap}} <script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 6c3d8e8ec8..523d83dd41 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -100,7 +100,7 @@ {{end}} <!-- Stylesheet --> - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.css?v={{MD5 AppVer}}"> + <link rel="stylesheet" href="{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}"> <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> <noscript> <style> diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl index 9595d8f267..04b4f451c4 100644 --- a/templates/pwa/serviceworker_js.tmpl +++ b/templates/pwa/serviceworker_js.tmpl @@ -4,7 +4,7 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js', '{{StaticUrlPrefix}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1', '{{StaticUrlPrefix}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1', - '{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.js?v={{MD5 AppVer}}', + '{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/js/gitgraph.js?v={{MD5 AppVer}}', @@ -26,7 +26,7 @@ var urlsToCache = [ '{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css', '{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css', '{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css', - '{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.css?v={{MD5 AppVer}}', + '{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}', '{{StaticUrlPrefix}}/vendor/plugins/highlight/github.css', '{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css', |