Skip to content

Commit 6c06d04

Browse files
author
zjj
committed
Merge branch 'main' of https://github.com/go-gitea/gitea
* 'main' of https://github.com/go-gitea/gitea: Fix typos in docs/content (go-gitea#18215) [skip ci] Updated licenses and gitignores In the Organization member page, 2fa column is too narrow for Simplified Chinese and Chinese Traditional. (go-gitea#18213) Fix new team (go-gitea#18212)
2 parents eeef0f3 + 79791ba commit 6c06d04

File tree

11 files changed

+26
-35
lines changed

11 files changed

+26
-35
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
313313
- `PORT_TO_REDIRECT`: **80**: Port for the http redirection service to listen on. Used when `REDIRECT_OTHER_PORT` is true.
314314
- `SSL_MIN_VERSION`: **TLSv1.2**: Set the minimum version of ssl support.
315315
- `SSL_MAX_VERSION`: **\<empty\>**: Set the maximum version of ssl support.
316-
- `SSL_CURVE_PREFERENCES`: **X25519,P256**: Set the prefered curves,
316+
- `SSL_CURVE_PREFERENCES`: **X25519,P256**: Set the preferred curves,
317317
- `SSL_CIPHER_SUITES`: **ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305**: Set the preferred cipher suites.
318318
- If there is not hardware support for AES suites by default the cha cha suites will be preferred over the AES suites
319319
- supported suites as of go 1.17 are:

docs/content/doc/developers/guidelines-backend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ To maintain understandable code and avoid circular dependencies it is important
4343
- `modules/git`: Package to interactive with `Git` command line or Gogit package.
4444
- `public`: Compiled frontend files (javascript, images, css, etc.)
4545
- `routers`: Handling of server requests. As it uses other Gitea packages to serve the request, other packages (models, modules or services) shall not depend on routers.
46-
- `routers/api` Conatins routers for `/api/v1` aims to handle RESTful API requests.
47-
- `routers/install` Could only reponse when system is INSTALL mode.
46+
- `routers/api` Contains routers for `/api/v1` aims to handle RESTful API requests.
47+
- `routers/install` Could only respond when system is in INSTALL mode (INSTALL_LOCK=false).
4848
- `routers/private` will only be invoked by internal sub commands, especially `serv` and `hooks`.
4949
- `routers/web` will handle HTTP requests from web browsers or Git SMART HTTP protocols.
5050
- `services`: Support functions for common routing operations or command executions. Uses `models` and `modules` to handle the requests.
@@ -103,7 +103,7 @@ i.e. `servcies/user`, `models/repository`.
103103

104104
### Import Alias
105105

106-
Since there are many package levels and sub packages, so you will find `modules/user`, `models/user`, `services/user`. When these packages are import into one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So we recommand to always use import alias. To differ from package variables which are commonly use camelCase, just use **snake_case** as import package alias.
106+
Since there are some packages which use the same package name, it is possible that you find packages like `modules/user`, `models/user`, and `services/user`. When these packages are imported in one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So, we always recommend to use import aliases. To differ from package variables which are commonly in camelCase, just use **snake_case** for import aliases.
107107
i.e. `import user_service "code.gitea.io/gitea/services/user"`
108108

109109
### Future Tasks

docs/content/doc/installation/with-docker.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ In the next step a file named `/app/gitea/gitea` (with executable permissions) n
337337
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
338338
```
339339

340-
Here you should also make sure that you've set the permisson of `/app/gitea/gitea` correctly:
340+
Here you should also make sure that you've set the permission of `/app/gitea/gitea` correctly:
341341

342342
```bash
343343
sudo chmod +x /app/gitea/gitea

docs/content/doc/upgrade/from-gogs.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Upgrade to [`gitea 1.6.4`](https://dl.gitea.io/gitea/1.6.4/) first. Download the
8181
the destination platform from the [downloads page](https://dl.gitea.io/gitea/1.6.4/) and replace the binary.
8282
Run Gitea at least once and check that everything works as expected.
8383

84-
Then repeat the procedure, but this time using the [lastest release](https://dl.gitea.io/gitea/{{< version >}}/).
84+
Then repeat the procedure, but this time using the [latest release](https://dl.gitea.io/gitea/{{< version >}}/).
8585

8686
## Upgrading from a more recent version of Gogs
8787

docs/content/doc/usage/command-line.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Admin operations:
130130
- `--custom-email-url`: Use a custom Email URL (option for GitHub).
131131
- `--icon-url`: Custom icon URL for OAuth2 login source.
132132
- `--override-local-2fa`: Allow source to override local 2FA. (Optional)
133-
- `--scopes`: Addtional scopes to request for this OAuth2 source. (Optional)
133+
- `--scopes`: Additional scopes to request for this OAuth2 source. (Optional)
134134
- `--required-claim-name`: Claim name that has to be set to allow users to login with this source. (Optional)
135135
- `--required-claim-value`: Claim value that has to be set to allow users to login with this source. (Optional)
136136
- `--group-claim-name`: Claim name providing group names for this source. (Optional)
@@ -153,7 +153,7 @@ Admin operations:
153153
- `--custom-email-url`: Use a custom Email URL (option for GitHub).
154154
- `--icon-url`: Custom icon URL for OAuth2 login source.
155155
- `--override-local-2fa`: Allow source to override local 2FA. (Optional)
156-
- `--scopes`: Addtional scopes to request for this OAuth2 source.
156+
- `--scopes`: Additional scopes to request for this OAuth2 source.
157157
- `--required-claim-name`: Claim name that has to be set to allow users to login with this source. (Optional)
158158
- `--required-claim-value`: Claim value that has to be set to allow users to login with this source. (Optional)
159159
- `--group-claim-name`: Claim name providing group names for this source. (Optional)

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ backend gitea
312312
server localhost:3000 check
313313
```
314314

315-
If you redirect the http content to https, the configuration work the same way, just remember that the connexion between HAProxy and Gitea will be done via http so you do not have to enable https in Gitea's configuration.
315+
If you redirect the http content to https, the configuration work the same way, just remember that the connection between HAProxy and Gitea will be done via http so you do not have to enable https in Gitea's configuration.
316316

317317
## HAProxy with a sub-path
318318

models/unit/unit.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ func (u Unit) IsLessThan(unit Unit) bool {
193193
return u.Idx < unit.Idx
194194
}
195195

196+
// MaxPerm returns the max perms of this unit
197+
func (u Unit) MaxPerm() perm.AccessMode {
198+
if u.Type == TypeExternalTracker || u.Type == TypeExternalWiki {
199+
return perm.AccessModeRead
200+
}
201+
return perm.AccessModeAdmin
202+
}
203+
196204
// Enumerate all the units
197205
var (
198206
UnitCode = Unit{

options/gitignore/Node

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ dist
104104
.temp
105105
.cache
106106

107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
107110
# Serverless directories
108111
.serverless/
109112

options/gitignore/Xcode

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
1-
# Xcode
2-
#
3-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4-
51
## User settings
62
xcuserdata/
73

8-
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
4+
## Xcode 8 and earlier
95
*.xcscmblueprint
106
*.xccheckout
11-
12-
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13-
build/
14-
DerivedData/
15-
*.moved-aside
16-
*.pbxuser
17-
!default.pbxuser
18-
*.mode1v3
19-
!default.mode1v3
20-
*.mode2v3
21-
!default.mode2v3
22-
*.perspectivev3
23-
!default.perspectivev3
24-
25-
## Gcc Patch
26-
/*.gcno

templates/org/member/members.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<strong>{{if index $.MembersIsUserOrgOwner .ID}}{{svg "octicon-shield-lock"}} {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}</strong>
3838
</div>
3939
</div>
40-
<div class="ui one wide column center">
40+
<div class="ui two wide column center">
4141
<div class="meta">
4242
{{$.i18n.Tr "admin.users.2fa"}}
4343
</div>
@@ -51,7 +51,7 @@
5151
</strong>
5252
</div>
5353
</div>
54-
<div class="ui four wide column">
54+
<div class="ui three wide column">
5555
<div class="text right">
5656
{{if eq $.SignedUser.ID .ID}}
5757
<form>

0 commit comments

Comments
 (0)