Skip to content

Commit 86c4773

Browse files
authored
Merge branch 'main' into docs/fix-typo
2 parents 8319f1f + 1e86b7d commit 86c4773

File tree

17 files changed

+86
-67
lines changed

17 files changed

+86
-67
lines changed

.github/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,13 @@ docs-update-needed:
8181
- changed-files:
8282
- any-glob-to-any-file:
8383
- "custom/conf/app.example.ini"
84+
85+
topic/code-linting:
86+
- changed-files:
87+
- any-glob-to-any-file:
88+
- ".eslintrc.cjs"
89+
- ".golangci.yml"
90+
- ".markdownlint.yaml"
91+
- ".spectral.yaml"
92+
- ".yamllint.yaml"
93+
- "stylelint.config.js"

modules/setting/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
275275
HTTPAddr = filepath.Join(AppWorkPath, HTTPAddr)
276276
}
277277
default:
278-
log.Fatal("Invalid PROTOCOL %q", Protocol)
278+
log.Fatal("Invalid PROTOCOL %q", protocolCfg)
279279
}
280280
UseProxyProtocol = sec.Key("USE_PROXY_PROTOCOL").MustBool(false)
281281
ProxyProtocolTLSBridging = sec.Key("PROXY_PROTOCOL_TLS_BRIDGING").MustBool(false)

routers/api/v1/swagger/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ type swaggerResponseActionWorkflow struct {
4444
// swagger:response ActionWorkflowList
4545
type swaggerResponseActionWorkflowList struct {
4646
// in:body
47-
Body []api.ActionWorkflow `json:"body"`
47+
Body api.ActionWorkflowResponse `json:"body"`
4848
}

templates/repo/diff/comments.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{end}}
1010
<div class="content comment-container">
1111
<div class="comment-header">
12-
<div class="comment-header-left tw-flex tw-items-center">
12+
<div class="comment-header-left">
1313
{{if .OriginalAuthor}}
1414
<span class="text black tw-font-semibold tw-mr-1">
1515
{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
@@ -30,7 +30,7 @@
3030
</span>
3131
{{end}}
3232
</div>
33-
<div class="comment-header-right actions tw-flex tw-items-center">
33+
<div class="comment-header-right">
3434
{{if .Invalidated}}
3535
{{$referenceUrl := printf "%s#%s" $.root.Issue.Link .HashTag}}
3636
<a href="{{$referenceUrl}}" class="ui label basic small" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}">

templates/repo/issue/view_content.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{end}}
1515
<div class="content comment-container">
1616
<div class="comment-header" role="heading" aria-level="3">
17-
<div class="comment-header-left tw-flex tw-items-center">
17+
<div class="comment-header-left">
1818
{{if .Issue.OriginalAuthor}}
1919
<span class="text black tw-font-semibold">
2020
{{svg (MigrationIcon .Repository.GetOriginalURLHostname)}}
@@ -36,7 +36,7 @@
3636
</span>
3737
{{end}}
3838
</div>
39-
<div class="comment-header-right actions tw-flex tw-items-center">
39+
<div class="comment-header-right">
4040
{{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}}
4141
{{if not $.Repository.IsArchived}}
4242
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}}

templates/repo/issue/view_content/comments.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{{end}}
2828
<div class="content comment-container">
2929
<div class="comment-header" role="heading" aria-level="3">
30-
<div class="comment-header-left tw-flex tw-items-center">
30+
<div class="comment-header-left">
3131
{{if .OriginalAuthor}}
3232
<span class="text black tw-font-semibold tw-mr-1">
3333
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}}
@@ -51,7 +51,7 @@
5151
</span>
5252
{{end}}
5353
</div>
54-
<div class="comment-header-right actions tw-flex tw-items-center">
54+
<div class="comment-header-right">
5555
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
5656
{{if not $.Repository.IsArchived}}
5757
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
@@ -395,7 +395,7 @@
395395
<div class="timeline-item comment">
396396
<div class="content comment-container">
397397
<div class="comment-header">
398-
<div class="comment-header-left tw-flex tw-items-center">
398+
<div class="comment-header-left">
399399
{{if gt .Poster.ID 0}}
400400
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
401401
{{ctx.AvatarUtils.Avatar .Poster 24}}
@@ -416,7 +416,7 @@
416416
{{ctx.Locale.Tr "repo.issues.review.left_comment"}}
417417
</span>
418418
</div>
419-
<div class="comment-header-right actions tw-flex tw-items-center">
419+
<div class="comment-header-right">
420420
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
421421
{{if not $.Repository.IsArchived}}
422422
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}

templates/repo/issue/view_content/conversation.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div class="comment code-comment" id="{{.HashTag}}">
5959
<div class="content comment-container">
6060
<div class="comment-header">
61-
<div class="comment-header-left tw-flex tw-items-center">
61+
<div class="comment-header-left">
6262
{{if not .OriginalAuthor}}
6363
<a class="avatar">
6464
{{ctx.AvatarUtils.Avatar .Poster 20}}
@@ -79,7 +79,7 @@
7979
{{ctx.Locale.Tr "repo.issues.commented_at" .HashTag $createdSubStr}}
8080
</span>
8181
</div>
82-
<div class="comment-header-right actions tw-flex tw-items-center">
82+
<div class="comment-header-right">
8383
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
8484
{{if not $.Repository.IsArchived}}
8585
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}

templates/swagger/v1_json.tmpl

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

web_src/css/base.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ details summary {
185185
cursor: pointer;
186186
}
187187

188-
details summary > * {
189-
display: inline;
190-
}
191-
192188
progress {
193189
background: var(--color-secondary-dark-1);
194190
border-radius: var(--border-radius);
@@ -474,15 +470,6 @@ a.label,
474470
color: var(--color-text-light-2);
475471
}
476472

477-
.ui.comments .comment .actions a {
478-
color: var(--color-text-light);
479-
}
480-
481-
.ui.comments .comment .actions a.active,
482-
.ui.comments .comment .actions a:hover {
483-
color: var(--color-primary);
484-
}
485-
486473
img.ui.avatar,
487474
.ui.avatar img,
488475
.ui.avatar svg {

web_src/css/modules/label.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ a.ui.label:hover {
9393
background: var(--color-button);
9494
border: 1px solid var(--color-light-border);
9595
color: var(--color-text-light);
96-
padding: calc(0.5833em - 1px) calc(0.833em - 1px);
9796
}
9897
a.ui.basic.label:hover {
9998
text-decoration: none;
@@ -254,6 +253,7 @@ a.ui.ui.ui.basic.grey.label:hover {
254253
color: var(--color-label-hover-bg);
255254
}
256255

256+
/* "horizontal label" is actually "fat label" which has enough padding spaces to be used standalone in headers */
257257
.ui.horizontal.label {
258258
margin: 0 0.5em 0 0;
259259
padding: 0.4em 0.833em;

0 commit comments

Comments
 (0)