diff options
author | silverwind <me@silverwind.io> | 2021-03-22 05:04:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 05:04:19 +0100 |
commit | 1a03fa7a4f353eb2f965cdcac39f630c281eca1e (patch) | |
tree | 042e54d01f25afff9f78c38cdc3d1c2da062118f /templates/admin | |
parent | a587a284349e7c27d1bec39ef0dedb3972ef68c5 (diff) | |
download | gitea-1a03fa7a4f353eb2f965cdcac39f630c281eca1e.tar.gz gitea-1a03fa7a4f353eb2f965cdcac39f630c281eca1e.zip |
Update JS dependencies (#15033)
* Update JS dependencies
- Update all JS dependencies
- For octicons, rename trashcan to trash
- For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same
- For stylelint, update config, fix custom property duplicates
- For monaco, drop legacy Edge support
- For eslint, enable new rules, fix new issues
- For less-loader, remove deprecated import syntax
* update svgo usage in generate-images and rebuild logo.svg with it
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/monitor.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/queue.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/list.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/repo/unadopted.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 6b24858395..da1ea42a74 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -337,7 +337,7 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> - {{svg "octicon-trashcan"}} + {{svg "octicon-trash"}} {{.i18n.Tr "admin.auths.delete_auth_title"}} </div> <div class="content"> diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index a8431cbd77..16c4d88002 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -86,7 +86,7 @@ <td>{{.Description}}</td> <td>{{DateFmtLong .Start}}</td> <td>{{TimeSince .Start $.Lang}}</td> - <td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}">{{svg "octicon-trashcan" 16 "text-red"}}</a></td> + <td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}">{{svg "octicon-trash" 16 "text-red"}}</a></td> </tr> {{end}} </tbody> diff --git a/templates/admin/queue.tmpl b/templates/admin/queue.tmpl index 278b246502..3d9cc95592 100644 --- a/templates/admin/queue.tmpl +++ b/templates/admin/queue.tmpl @@ -130,7 +130,7 @@ <td>{{DateFmtLong .Start}}</td> <td>{{if .HasTimeout}}{{DateFmtLong .Timeout}}{{else}}-{{end}}</td> <td> - <a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Workers}}"><span class="text red" title="{{$.i18n.Tr "remove"}}">{{svg "octicon-trashcan"}}</span></a> + <a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Workers}}"><span class="text red" title="{{$.i18n.Tr "remove"}}">{{svg "octicon-trash"}}</span></a> </td> </tr> {{else}} diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 17a6871b3a..aff30ab510 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -62,7 +62,7 @@ <td>{{.NumIssues}}</td> <td>{{SizeFmt .Size}}</td> <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td> - <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trashcan"}}</a></td> + <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trash"}}</a></td> </tr> {{end}} </tbody> @@ -75,7 +75,7 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> - {{svg "octicon-trashcan"}} + {{svg "octicon-trash"}} {{.i18n.Tr "repo.settings.delete"}} </div> <div class="content"> diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index bd47dd0262..481d77dfd2 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -45,7 +45,7 @@ <input type="hidden" name="page" value="{{$.CurrentPage}}"> <div class="actions"> <div class="ui red basic inverted cancel button"> - {{svg "octicon-trashcan" 16 "mr-2"}} + {{svg "octicon-trash" 16 "mr-2"}} {{$.i18n.Tr "modal.no"}} </div> <button class="ui green basic inverted ok button"> @@ -72,7 +72,7 @@ <input type="hidden" name="page" value="{{$.CurrentPage}}"> <div class="actions"> <div class="ui red basic inverted cancel button"> - {{svg "octicon-trashcan" 16 "mr-2"}} + {{svg "octicon-trash" 16 "mr-2"}} {{$.i18n.Tr "modal.no"}} </div> <button class="ui green basic inverted ok button"> diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index a07f3a1054..af01489c0a 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -133,7 +133,7 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> - {{svg "octicon-trashcan"}} + {{svg "octicon-trash"}} {{.i18n.Tr "settings.delete_account_title"}} </div> <div class="content"> |