Skip to content

Commit f648caf

Browse files
authored
Merge branch 'main' into config
2 parents b36a08e + fdaf1cc commit f648caf

File tree

15 files changed

+32
-80
lines changed

15 files changed

+32
-80
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ COMMA := ,
2626
XGO_VERSION := go-1.24.x
2727

2828
AIR_PACKAGE ?= github.com/air-verse/air@v1
29-
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3.1.2
29+
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3.2.1
3030
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
31-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].5
31+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].7
3232
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3333
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/[email protected]
3434
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]

options/locale/locale_pt-PT.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ copy_type_unsupported=Este tipo de ficheiro não pode ser copiado
113113
write=Escrever
114114
preview=Pré-visualizar
115115
loading=Carregando…
116+
files=Ficheiros
116117

117118
error=Erro
118119
error404=A página que pretende aceder <strong>não existe</strong> ou <strong>não tem autorização</strong> para a ver.

options/locale/locale_zh-CN.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ edit=编辑
9696
view=查看
9797
test=测试
9898

99-
enabled=启用
100-
disabled=禁用
99+
enabled=已启用
100+
disabled=已禁用
101101
locked=已锁定
102102

103103
copy=复制
@@ -148,7 +148,7 @@ name=名称
148148
value=值
149149
readme=自述文档
150150

151-
filter=过滤
151+
filter=筛选
152152
filter.clear=清除筛选器
153153
filter.is_archived=已归档
154154
filter.not_archived=非存档
@@ -159,7 +159,7 @@ filter.not_mirror=非镜像
159159
filter.is_template=模板
160160
filter.not_template=非模板
161161
filter.public=公开
162-
filter.private=私有库
162+
filter.private=私有
163163

164164
no_results_found=未找到结果
165165
internal_error_skipped=发生内部错误,但已被跳过: %s
@@ -245,6 +245,7 @@ license_desc=所有的代码都开源在 <a target="_blank" rel="noopener norefe
245245

246246
[install]
247247
install=安装页面
248+
installing_desc=正在安装,请稍候...
248249
title=初始配置
249250
docker_helper=如果您正在使用 Docker 容器运行 Gitea,请务必先仔细阅读 <a target="_blank" rel="noopener noreferrer" href="%s">官方文档</a> 后再对本页面进行填写。
250251
require_db_desc=Gitea 需要使用 MySQL、PostgreSQL、MSSQL、SQLite3 或 TiDB (MySQL协议) 等数据库
@@ -2870,7 +2871,7 @@ authentication=认证源
28702871
emails=用户邮件
28712872
config=应用配置
28722873
config_summary=摘要
2873-
config_settings=组织设置
2874+
config_settings=设置
28742875
notices=系统提示
28752876
monitor=监控面板
28762877
first_page=首页
@@ -3349,6 +3350,7 @@ monitor.previous=上次执行时间
33493350
monitor.execute_times=执行次数
33503351
monitor.process=运行中进程
33513352
monitor.stacktrace=调用栈踪迹
3353+
monitor.performance_logs=性能日志
33523354
monitor.processes_count=%d 个进程
33533355
monitor.download_diagnosis_report=下载诊断报告
33543356
monitor.desc=进程描述
@@ -3529,12 +3531,12 @@ alpine.registry.info=从下面的列表中选择 $branch 和 $repository。
35293531
alpine.install=要安装包,请运行以下命令:
35303532
alpine.repository=仓库信息
35313533
alpine.repository.branches=分支
3532-
alpine.repository.repositories=仓库管理
3534+
alpine.repository.repositories=仓库
35333535
alpine.repository.architectures=架构
35343536
arch.registry=添加具有相关仓库和架构的服务器到 <code>/etc/pacman.conf</code> 中:
35353537
arch.install=使用 pacman 同步软件包:
35363538
arch.repository=仓库信息
3537-
arch.repository.repositories=仓库管理
3539+
arch.repository.repositories=仓库
35383540
arch.repository.architectures=架构
35393541
cargo.registry=在 Cargo 配置文件中设置此注册中心(例如:<code>~/.cargo/config.toml</code>):
35403542
cargo.install=要使用 Cargo 安装软件包,请运行以下命令:
@@ -3552,6 +3554,7 @@ conda.install=要使用 Conda 安装软件包,请运行以下命令:
35523554
container.details.type=镜像类型
35533555
container.details.platform=平台
35543556
container.pull=从命令行拉取镜像:
3557+
container.images=镜像
35553558
container.multi_arch=OS / Arch
35563559
container.layers=镜像层
35573560
container.labels=标签

templates/package/content/container.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<tbody>
8383
{{range $key, $value := .PackageDescriptor.Metadata.Labels}}
8484
<tr>
85-
<td class="top aligned">{{$key}}</td>
85+
<td class="tw-align-top">{{$key}}</td>
8686
<td class="tw-break-anywhere">{{$value}}</td>
8787
</tr>
8888
{{end}}

templates/repo/issue/labels/label_list.tmpl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@
6363

6464
{{if and (not .PageIsOrgSettingsLabels) (.OrgLabels)}}
6565
<li class="item">
66-
<div class="ui grid middle aligned">
67-
<div class="ten wide column">
68-
{{ctx.Locale.Tr "repo.org_labels_desc"}}
69-
{{if .IsOrganizationOwner}}
70-
<a href="{{.OrganizationLink}}/settings/labels">({{ctx.Locale.Tr "repo.org_labels_desc_manage"}})</a>:
71-
{{end}}
72-
</div>
66+
<div>{{/* parent is flex, so use block here to keep sentence spaces */}}
67+
{{ctx.Locale.Tr "repo.org_labels_desc"}}
68+
{{if .IsOrganizationOwner}}
69+
<a href="{{.OrganizationLink}}/settings/labels">({{ctx.Locale.Tr "repo.org_labels_desc_manage"}})</a>:
70+
{{end}}
7371
</div>
7472
</li>
7573

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<div class="divider"></div>
2-
<div class="ui equal width compact grid">
3-
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
4-
<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
5-
<span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
6-
<button class="ui two wide button column tw-p-2" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
7-
</div>
2+
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
3+
<div class="flex-text-block" data-tooltip-content="{{$issueReferenceLink}}">
4+
<span class="tw-flex-1 gt-ellipsis">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
5+
<button class="ui compact tiny icon button" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
86
</div>

templates/repo/view_file_tree.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="flex-text-block tw-mb-2">
2-
<button class="ui compact tiny icon button"
1+
<div class="flex-text-block repo-button-row">
2+
<button class="ui compact basic icon button"
33
data-global-click="onRepoViewFileTreeToggle" data-toggle-action="hide"
44
data-tooltip-content="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
55
{{svg "octicon-sidebar-expand"}}

templates/user/auth/captcha.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<div class="inline field tw-text-center required">
1111
<div id="captcha" data-captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
1212
</div>
13-
<script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
13+
<script defer src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
1414
{{else if eq .CaptchaType "hcaptcha"}}
1515
<div class="inline field tw-text-center required">
1616
<div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
1717
</div>
18-
<script src='https://hcaptcha.com/1/api.js'></script>
18+
<script defer src='https://hcaptcha.com/1/api.js'></script>
1919
{{else if eq .CaptchaType "mcaptcha"}}
2020
<div class="inline field tw-text-center">
2121
<div class="m-captcha-style" id="mcaptcha__widget-container"></div>
@@ -25,5 +25,5 @@
2525
<div class="inline field tw-text-center">
2626
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
2727
</div>
28-
<script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
28+
<script defer src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
2929
{{end}}{{end}}

templates/user/settings/repos.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{{end}}
8282
{{else}}
8383
{{if .Repos}}
84-
<div class="ui middle aligned divided list">
84+
<div class="ui list">
8585
{{range .Repos}}
8686
<div class="item">
8787
<div class="content flex-text-block">

web_src/css/markup/content.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@
285285
.markup table {
286286
display: block;
287287
width: 100%;
288-
width: max-content;
289288
max-width: 100%;
290289
overflow: auto;
291290
}

0 commit comments

Comments
 (0)