Skip to content

Commit fa506cd

Browse files
authored
Remove font-awesome and fomantic icon module (#24471)
Fixes #10410. This PR removes around 120kB of CSS.
1 parent 3e7101d commit fa506cd

File tree

10 files changed

+6
-8930
lines changed

10 files changed

+6
-8930
lines changed

docs/content/doc/administration/cmd-embedded.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ gitea embedded list [--include-vendored] [patterns...]
4040

4141
The `--include-vendored` flag makes the command include vendored files, which are
4242
normally excluded; that is, files from external libraries that are required for Gitea
43-
(e.g. [font-awesome](https://fontawesome.com/), [octicons](https://octicons.github.com/), etc).
43+
(e.g. [octicons](https://octicons.github.com/), etc).
4444

4545
A list of file search patterns can be provided. Gitea uses [gobwas/glob](https://github.com/gobwas/glob)
4646
for its glob syntax. Here are some examples:

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"esbuild-loader": "3.0.1",
3030
"escape-goat": "4.0.0",
3131
"fast-glob": "3.2.12",
32-
"font-awesome": "4.7.0",
3332
"jquery": "3.6.4",
3433
"jquery.are-you-sure": "1.9.0",
3534
"katex": "0.16.6",

templates/repo/actions/list.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{template "base/head" .}}
22
<div class="page-content repository">
33
{{template "repo/header" .}}
4-
54
<div class="ui container">
65
<div class="ui stackable grid">
76
<div class="four wide column">
@@ -12,7 +11,7 @@
1211
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
1312
{{if .ErrMsg}}
1413
<span data-tooltip-content="{{.ErrMsg}}">
15-
<i class="warning icon red"></i>
14+
{{svg "octicon-alert" 16 "text red"}}
1615
</span>
1716
{{end}}
1817
</a>

templates/repo/issue/labels/edit_delete_label.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
{{.locale.Tr "cancel"}}
5858
</button>
5959
<button class="ui primary small approve button">
60-
<i class="save icon"></i>
60+
{{svg "fontawesome-save"}}
6161
{{.locale.Tr "save"}}
6262
</button>
6363
</div>

templates/repo/issue/view_content/pull.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
{{$.locale.Tr "repo.pulls.require_signed_wont_sign"}}
250250
</div>
251251
<div class="item">
252-
<i class="icon unlock"></i>
252+
<i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
253253
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
254254
</div>
255255
{{end}}
@@ -274,12 +274,12 @@
274274
{{end}}
275275
{{if .WillSign}}
276276
<div class="item">
277-
<i class="icon lock green"></i>
277+
<i class="icon icon-octicon">{{svg "octicon-lock" 16 "text green"}}</i>
278278
{{$.locale.Tr "repo.signing.will_sign" .SigningKey}}
279279
</div>
280280
{{else if .IsSigned}}
281281
<div class="item">
282-
<i class="icon unlock"></i>
282+
<i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
283283
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
284284
</div>
285285
{{end}}

web_src/css/index.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "font-awesome/css/font-awesome.css";
2-
31
@import "./animations.css";
42
@import "./shared/issuelist.css";
53
@import "./shared/repoorg.css";

0 commit comments

Comments
 (0)