Skip to content

Commit 6f62b00

Browse files
authored
Merge branch 'main' into fix-editor-images
2 parents d556ac1 + 397930d commit 6f62b00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+450
-348
lines changed

.eslintrc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ rules:
324324
jquery/no-sizzle: [2]
325325
jquery/no-slide: [2]
326326
jquery/no-submit: [2]
327-
jquery/no-text: [0]
327+
jquery/no-text: [2]
328328
jquery/no-toggle: [2]
329329
jquery/no-trigger: [0]
330330
jquery/no-trim: [2]
@@ -477,7 +477,7 @@ rules:
477477
no-jquery/no-slide: [2]
478478
no-jquery/no-sub: [2]
479479
no-jquery/no-support: [2]
480-
no-jquery/no-text: [0]
480+
no-jquery/no-text: [2]
481481
no-jquery/no-trigger: [0]
482482
no-jquery/no-trim: [2]
483483
no-jquery/no-type: [2]
@@ -798,7 +798,7 @@ rules:
798798
unicorn/prefer-object-has-own: [0]
799799
unicorn/prefer-optional-catch-binding: [2]
800800
unicorn/prefer-prototype-methods: [0]
801-
unicorn/prefer-query-selector: [0]
801+
unicorn/prefer-query-selector: [2]
802802
unicorn/prefer-reflect-apply: [0]
803803
unicorn/prefer-regexp-test: [2]
804804
unicorn/prefer-set-has: [0]

modules/web/middleware/cookie.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func GetSiteCookie(req *http.Request, name string) string {
3535

3636
// SetSiteCookie returns given cookie value from request header.
3737
func SetSiteCookie(resp http.ResponseWriter, name, value string, maxAge int) {
38+
// Previous versions would use a cookie path with a trailing /.
39+
// These are more specific than cookies without a trailing /, so
40+
// we need to delete these if they exist.
41+
deleteLegacySiteCookie(resp, name)
3842
cookie := &http.Cookie{
3943
Name: name,
4044
Value: url.QueryEscape(value),
@@ -46,10 +50,6 @@ func SetSiteCookie(resp http.ResponseWriter, name, value string, maxAge int) {
4650
SameSite: setting.SessionConfig.SameSite,
4751
}
4852
resp.Header().Add("Set-Cookie", cookie.String())
49-
// Previous versions would use a cookie path with a trailing /.
50-
// These are more specific than cookies without a trailing /, so
51-
// we need to delete these if they exist.
52-
deleteLegacySiteCookie(resp, name)
5353
}
5454

5555
// deleteLegacySiteCookie deletes the cookie with the given name at the cookie

options/locale/locale_fr-FR.ini

Lines changed: 116 additions & 6 deletions
Large diffs are not rendered by default.

options/locale/locale_ja-JP.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,7 @@ commitstatus.success=成功
13781378
ext_issues=外部イシューへのアクセス
13791379
ext_issues.desc=外部のイシュートラッカーへのリンク。
13801380

1381+
projects.desc=プロジェクトでイシューとプルリクエストを管理します。
13811382
projects.description=説明 (オプション)
13821383
projects.description_placeholder=説明
13831384
projects.create=プロジェクトを作成
@@ -1552,7 +1553,9 @@ issues.no_content=説明はありません。
15521553
issues.close=イシューをクローズ
15531554
issues.comment_pull_merged_at=がコミット %[1]s を %[2]s にマージ %[3]s
15541555
issues.comment_manually_pull_merged_at=がコミット %[1]s を %[2]s に手動マージ %[3]s
1556+
issues.close_comment_issue=コメントしてクローズ
15551557
issues.reopen_issue=再オープンする
1558+
issues.reopen_comment_issue=コメントして再オープン
15561559
issues.create_comment=コメントする
15571560
issues.comment.blocked_user=投稿者またはリポジトリのオーナーがあなたをブロックしているため、コメントの作成や編集はできません。
15581561
issues.closed_at=`がイシューをクローズ <a id="%[1]s" href="#%[1]s">%[2]s</a>`
@@ -3412,6 +3415,7 @@ error.unit_not_allowed=このセクションへのアクセスが許可されて
34123415
title=パッケージ
34133416
desc=リポジトリ パッケージを管理します。
34143417
empty=パッケージはまだありません。
3418+
no_metadata=メタデータがありません。
34153419
empty.documentation=パッケージレジストリの詳細については、 <a target="_blank" rel="noopener noreferrer" href="%s">ドキュメント</a> を参照してください。
34163420
empty.repo=パッケージはアップロード済みで、ここに表示されていないですか? <a href="%[1]s">パッケージ設定</a>を開いて、パッケージをこのリポジトリにリンクしてください。
34173421
registry.documentation=%sレジストリの詳細については、 <a target="_blank" rel="noopener noreferrer" href="%s">ドキュメント</a> を参照してください。
@@ -3634,6 +3638,7 @@ runs.pushed_by=pushed by
36343638
runs.invalid_workflow_helper=ワークフロー設定ファイルは無効です。あなたの設定ファイルを確認してください: %s
36353639
runs.no_matching_online_runner_helper=ラベルに一致するオンラインのランナーが見つかりません: %s
36363640
runs.no_job_without_needs=ワークフローには依存関係のないジョブが少なくとも1つ含まれている必要があります。
3641+
runs.no_job=ワークフローには少なくとも1つのジョブが含まれている必要があります
36373642
runs.actor=アクター
36383643
runs.status=ステータス
36393644
runs.actors_no_select=すべてのアクター

templates/repo/editor/commit_form.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="quick-pull-choice js-quick-pull-choice">
2424
<div class="field">
2525
<div class="ui radio checkbox {{if not .CanCommitToBranch.CanCommitToBranch}}disabled{{end}}">
26-
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="direct" button_text="{{ctx.Locale.Tr "repo.editor.commit_changes"}}" {{if eq .commit_choice "direct"}}checked{{end}}>
26+
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="direct" data-button-text="{{ctx.Locale.Tr "repo.editor.commit_changes"}}" {{if eq .commit_choice "direct"}}checked{{end}}>
2727
<label>
2828
{{svg "octicon-git-commit"}}
2929
{{ctx.Locale.Tr "repo.editor.commit_directly_to_this_branch" .BranchName}}
@@ -43,9 +43,9 @@
4343
<div class="field">
4444
<div class="ui radio checkbox">
4545
{{if .CanCreatePullRequest}}
46-
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="commit-to-new-branch" button_text="{{ctx.Locale.Tr "repo.editor.propose_file_change"}}" {{if eq .commit_choice "commit-to-new-branch"}}checked{{end}}>
46+
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="commit-to-new-branch" data-button-text="{{ctx.Locale.Tr "repo.editor.propose_file_change"}}" {{if eq .commit_choice "commit-to-new-branch"}}checked{{end}}>
4747
{{else}}
48-
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="commit-to-new-branch" button_text="{{ctx.Locale.Tr "repo.editor.commit_changes"}}" {{if eq .commit_choice "commit-to-new-branch"}}checked{{end}}>
48+
<input type="radio" class="js-quick-pull-choice-option" name="commit_choice" value="commit-to-new-branch" data-button-text="{{ctx.Locale.Tr "repo.editor.commit_changes"}}" {{if eq .commit_choice "commit-to-new-branch"}}checked{{end}}>
4949
{{end}}
5050
<label>
5151
{{svg "octicon-git-pull-request"}}

templates/repo/settings/collaboration.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
<div class="flex-item-trailing">
2020
<div class="flex-text-block">
2121
{{svg "octicon-shield-lock"}}
22-
<div class="ui inline dropdown access-mode" data-url="{{$.Link}}/access_mode" data-uid="{{.ID}}" data-last-value="{{printf "%d" .Collaboration.Mode}}">
22+
<div class="ui dropdown custom access-mode" data-url="{{$.Link}}/access_mode" data-uid="{{.ID}}" data-last-value="{{.Collaboration.Mode}}">
2323
<div class="text">{{if eq .Collaboration.Mode 1}}{{ctx.Locale.Tr "repo.settings.collaboration.read"}}{{else if eq .Collaboration.Mode 2}}{{ctx.Locale.Tr "repo.settings.collaboration.write"}}{{else if eq .Collaboration.Mode 3}}{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}{{else}}{{ctx.Locale.Tr "repo.settings.collaboration.undefined"}}{{end}}</div>
2424
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
2525
<div class="menu">
26-
<div class="item" data-text="{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}" data-value="3">{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}</div>
27-
<div class="item" data-text="{{ctx.Locale.Tr "repo.settings.collaboration.write"}}" data-value="2">{{ctx.Locale.Tr "repo.settings.collaboration.write"}}</div>
28-
<div class="item" data-text="{{ctx.Locale.Tr "repo.settings.collaboration.read"}}" data-value="1">{{ctx.Locale.Tr "repo.settings.collaboration.read"}}</div>
26+
<div class="item" data-value="3">{{ctx.Locale.Tr "repo.settings.collaboration.admin"}}</div>
27+
<div class="item" data-value="2">{{ctx.Locale.Tr "repo.settings.collaboration.write"}}</div>
28+
<div class="item" data-value="1">{{ctx.Locale.Tr "repo.settings.collaboration.read"}}</div>
2929
</div>
3030
</div>
3131
</div>

web_src/css/base.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,6 @@ overflow-menu .ui.label {
10011001
padding: 0 8px;
10021002
text-align: right !important;
10031003
color: var(--color-text-light-2);
1004-
width: 1%;
1005-
font-family: var(--fonts-monospace);
10061004
}
10071005

10081006
.lines-num span.bottom-line::after {

web_src/js/components/DashboardRepoList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const sfc = {
101101
},
102102
103103
mounted() {
104-
const el = document.getElementById('dashboard-repo-list');
104+
const el = document.querySelector('#dashboard-repo-list');
105105
this.changeReposFilter(this.reposFilter);
106106
$(el).find('.dropdown').dropdown();
107107
nextTick(() => {
@@ -330,7 +330,7 @@ const sfc = {
330330
};
331331
332332
export function initDashboardRepoList() {
333-
const el = document.getElementById('dashboard-repo-list');
333+
const el = document.querySelector('#dashboard-repo-list');
334334
if (el) {
335335
createApp(sfc).mount(el);
336336
}

web_src/js/components/DiffCommitSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {GET} from '../modules/fetch.js';
55
export default {
66
components: {SvgIcon},
77
data: () => {
8-
const el = document.getElementById('diff-commit-select');
8+
const el = document.querySelector('#diff-commit-select');
99
return {
1010
menuVisible: false,
1111
isLoading: false,

web_src/js/components/DiffFileList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export default {
77
return {store: diffTreeStore()};
88
},
99
mounted() {
10-
document.getElementById('show-file-list-btn').addEventListener('click', this.toggleFileList);
10+
document.querySelector('#show-file-list-btn').addEventListener('click', this.toggleFileList);
1111
},
1212
unmounted() {
13-
document.getElementById('show-file-list-btn').removeEventListener('click', this.toggleFileList);
13+
document.querySelector('#show-file-list-btn').removeEventListener('click', this.toggleFileList);
1414
},
1515
methods: {
1616
toggleFileList() {

0 commit comments

Comments
 (0)