Skip to content

Commit

Permalink
Merge remote-tracking branch 'giteaofficial/main'
Browse files Browse the repository at this point in the history
* giteaofficial/main:
  Display total blob size of a package version. (go-gitea#20927)
  Display all files. (go-gitea#20917)
  Enhance package date display (go-gitea#20928)
  [skip ci] Updated translations via Crowdin
  Forbid HTML string tooltips (go-gitea#20935)
  Set no-tags in git fetch on compare (go-gitea#20893)
  Update comparison.en-us.md: link subgroups issue (go-gitea#20905)
  Enable contenthash in filename for dynamic assets (go-gitea#20813)
  refactor webhook *EditPost (go-gitea#20780)
  • Loading branch information
zjjhot committed Aug 24, 2022
2 parents 550dc02 + 9e0c437 commit f0e7544
Show file tree
Hide file tree
Showing 23 changed files with 1,369 additions and 1,350 deletions.
36 changes: 18 additions & 18 deletions docs/content/doc/features/comparison.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@ _Symbols used in table:_

| Feature | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
| ----------------------------------- | ---------------------------------------------------| ---- | --------- | --------- | --------- | -------------- | ------------ |
| Open source and free ||||||||
| Low resource usage (RAM/CPU) ||||||||
| Multiple database support ||||||||
| Multiple OS support ||||||||
| Easy upgrade process ||||||||
| Markdown support ||||||||
| Orgmode support ||||||| ? |
| CSV support ||||||| ? |
| Third-party render tool support ||||||| ? |
| Static Git-powered pages | [](https://github.com/go-gitea/gitea/issues/302) |||||||
| Integrated Git-powered wiki |||||| ✓ (cloud only) ||
| Deploy Tokens ||||||||
| Repository Tokens with write rights ||||||||
| Built-in Package/Container Registry ||||||||
| External git mirroring ||||||||
| WebAuthn (2FA) ||||||| ? |
| Built-in CI/CD ||||||||
| Subgroups: groups within groups | |||||||
| Open source and free | |||||||
| Low resource usage (RAM/CPU) | |||||||
| Multiple database support | |||||||
| Multiple OS support | |||||||
| Easy upgrade process | |||||||
| Markdown support | |||||||
| Orgmode support | |||||| ? |
| CSV support | |||||| ? |
| Third-party render tool support | |||||| ? |
| Static Git-powered pages | [](https://github.com/go-gitea/gitea/issues/302) |||||||
| Integrated Git-powered wiki | ||||| ✓ (cloud only) ||
| Deploy Tokens | |||||||
| Repository Tokens with write rights | |||||||
| Built-in Package/Container Registry | |||||||
| External git mirroring | |||||||
| WebAuthn (2FA) | |||||| ? |
| Built-in CI/CD | |||||||
| Subgroups: groups within groups | [](https://github.com/go-gitea/gitea/issues/1872) |||||||

## Code management

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
rootDir: 'web_src',
setupFilesAfterEnv: ['jest-extended/all'],
testEnvironment: '@happy-dom/jest-environment',
testEnvironment: 'jest-environment-jsdom',
testMatch: ['<rootDir>/**/*.test.js'],
testTimeout: 20000,
transform: {
Expand Down
2 changes: 1 addition & 1 deletion modules/git/repo_compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (repo *Repository) GetMergeBase(tmpRemote, base, head string) (string, stri
if tmpRemote != "origin" {
tmpBaseName := RemotePrefix + tmpRemote + "/tmp_" + base
// Fetch commit into a temporary branch in order to be able to handle commits and tags
_, _, err := NewCommand(repo.Ctx, "fetch", tmpRemote, base+":"+tmpBaseName).RunStdString(&RunOpts{Dir: repo.Path})
_, _, err := NewCommand(repo.Ctx, "fetch", "--no-tags", tmpRemote, "--", base+":"+tmpBaseName).RunStdString(&RunOpts{Dir: repo.Path})
if err == nil {
base = tmpBaseName
}
Expand Down
3 changes: 3 additions & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ var (
// LocalURL is the url for locally running applications to contact Gitea. It always has a '/' suffix
// It maps to ini:"LOCAL_ROOT_URL"
LocalURL string
// AssetVersion holds a opaque value that is used for cache-busting assets
AssetVersion string

// Server settings
Protocol Scheme
Expand Down Expand Up @@ -759,6 +761,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) {
}

AbsoluteAssetURL = MakeAbsoluteAssetURL(AppURL, StaticURLPrefix)
AssetVersion = strings.ReplaceAll(AppVer, "+", "~") // make sure the version string is clear (no real escaping is needed)

manifestBytes := MakeManifestData(AppName, AppURL, AbsoluteAssetURL)
ManifestData = `application/json;base64,` + base64.StdEncoding.EncodeToString(manifestBytes)
Expand Down
4 changes: 3 additions & 1 deletion modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func NewFuncMap() []template.FuncMap {
"AppDomain": func() string {
return setting.Domain
},
"AssetVersion": func() string {
return setting.AssetVersion
},
"DisableGravatar": func() bool {
return setting.DisableGravatar
},
Expand Down Expand Up @@ -150,7 +153,6 @@ func NewFuncMap() []template.FuncMap {
"DiffTypeToStr": DiffTypeToStr,
"DiffLineTypeToStr": DiffLineTypeToStr,
"ShortSha": base.ShortSha,
"MD5": base.EncodeMD5,
"ActionContent2Commits": ActionContent2Commits,
"PathEscape": url.PathEscape,
"PathEscapeSegments": util.PathEscapeSegments,
Expand Down
4 changes: 3 additions & 1 deletion options/locale/locale_fr-FR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ issues.filter_milestone=Jalon
issues.filter_milestone_no_select=Tous les jalons
issues.filter_assignee=Assigné
issues.filter_assginee_no_select=Toutes les affectations
issues.filter_poster=Auteur
issues.filter_poster_no_select=Tous les auteurs
issues.filter_type=Type
issues.filter_type.all_issues=Tous les tickets
issues.filter_type.assigned_to_you=Qui vous sont assignés
Expand Down Expand Up @@ -1267,7 +1269,7 @@ issues.ref_reopening_from=`<a href="%[3]s">a référencé une pull request %[4]s
issues.ref_closed_from=`<a href="%[3]s">a fermé ce ticket %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
issues.ref_reopened_from=`<a href="%[3]s">a réouvert ce ticket %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
issues.ref_from=`de %[1]s`
issues.poster=Publier
issues.poster=Éditeur
issues.collaborator=Collaborateur
issues.owner=Propriétaire
issues.re_request_review=Redemander la revue
Expand Down
Loading

0 comments on commit f0e7544

Please sign in to comment.