1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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
This commit is contained in:
silverwind
2021-03-22 05:04:19 +01:00
committed by GitHub
parent a587a28434
commit 1a03fa7a4f
273 changed files with 1858 additions and 1656 deletions

View File

@@ -114,7 +114,7 @@
<div class="ui small basic delete modal">
<div class="ui icon header">
{{svg "octicon-trashcan"}}
{{svg "octicon-trash"}}
{{.i18n.Tr "repo.settings.collaborator_deletion"}}
</div>
<div class="content">

View File

@@ -82,7 +82,7 @@
<div class="ui small basic delete modal">
<div class="ui icon header">
{{svg "octicon-trashcan"}}
{{svg "octicon-trash"}}
{{.i18n.Tr "repo.settings.deploy_key_deletion"}}
</div>
<div class="content">

View File

@@ -27,7 +27,7 @@
<td class="right aligned">
<a class="ui primary show-panel button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{$.i18n.Tr "repo.settings.lfs_findcommits"}}</a>
<button class="ui basic show-modal icon button" data-modal="#delete-{{.Oid}}">
<span class="btn-octicon btn-octicon-danger poping up" data-content="{{$.i18n.Tr "repo.editor.delete_this_file"}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-trashcan"}}</span>
<span class="btn-octicon btn-octicon-danger poping up" data-content="{{$.i18n.Tr "repo.editor.delete_this_file"}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-trash"}}</span>
</button>
</td>
</tr>

View File

@@ -52,7 +52,7 @@
<a class="dont-break-out" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
<div class="ui right">
<span class="text blue px-2"><a href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span>
<span class="text red px-2"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trashcan"}}</a></span>
<span class="text red px-2"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a></span>
</div>
</div>
{{end}}

View File

@@ -1,6 +1,6 @@
<div class="ui small basic delete modal">
<div class="ui icon header">
{{svg "octicon-trashcan"}}
{{svg "octicon-trash"}}
{{.i18n.Tr "repo.settings.webhook_deletion"}}
</div>
<div class="content">