Skip to content

Commit f83d6fe

Browse files
committed
Merge remote-tracking branch 'upstream/main' into issue-updates
2 parents 602a42a + a5a9885 commit f83d6fe

File tree

1,171 files changed

+31762
-27414
lines changed

Some content is hidden

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

1,171 files changed

+31762
-27414
lines changed

.air.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ root = "."
22
tmp_dir = ".air"
33

44
[build]
5+
pre_cmd = ["killall -9 gitea 2>/dev/null || true"] # kill off potential zombie processes from previous runs
56
cmd = "make --no-print-directory backend"
67
bin = "gitea"
7-
delay = 1000
8+
delay = 2000
89
include_ext = ["go", "tmpl"]
910
include_file = ["main.go"]
1011
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
@@ -20,3 +21,6 @@ exclude_dir = [
2021
]
2122
exclude_regex = ["_test.go$", "_gen.go$"]
2223
stop_on_error = true
24+
25+
[log]
26+
main_only = true

.devcontainer/devcontainer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
1111
"ghcr.io/devcontainers/features/python:1": {
1212
"version": "3.12"
13-
}
13+
},
14+
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
1415
},
1516
"customizations": {
1617
"vscode": {
@@ -25,8 +26,9 @@
2526
"Vue.volar",
2627
"ms-azuretools.vscode-docker",
2728
"vitest.explorer",
28-
"qwtel.sqlite-viewer",
29-
"GitHub.vscode-pull-request-github"
29+
"cweijan.vscode-database-client2",
30+
"GitHub.vscode-pull-request-github",
31+
"Azurite.azurite"
3032
]
3133
}
3234
},

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ cpu.out
9595
/.air
9696
/.go-licenses
9797

98+
# Files and folders that were previously generated
99+
/public/assets/img/webpack
100+
98101
# Snapcraft
99102
snap/.snapcraft/
100103
parts/

.eslintrc.yaml

Lines changed: 15 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ reportUnusedDisableDirectives: true
44
ignorePatterns:
55
- /web_src/js/vendor
66
- /web_src/fomantic
7+
- /public/assets/js
78

89
parserOptions:
910
sourceType: module
@@ -15,7 +16,6 @@ plugins:
1516
- eslint-plugin-array-func
1617
- eslint-plugin-github
1718
- eslint-plugin-i
18-
- eslint-plugin-jquery
1919
- eslint-plugin-no-jquery
2020
- eslint-plugin-no-use-extend-native
2121
- eslint-plugin-regexp
@@ -33,6 +33,7 @@ overrides:
3333
- files: ["web_src/**/*"]
3434
globals:
3535
__webpack_public_path__: true
36+
htmx: true
3637
process: false # https://github.com/webpack/webpack/issues/15833
3738
- files: ["web_src/**/*", "docs/**/*"]
3839
env:
@@ -126,19 +127,21 @@ rules:
126127
"@stylistic/js/computed-property-spacing": [2, never]
127128
"@stylistic/js/dot-location": [2, property]
128129
"@stylistic/js/eol-last": [2]
129-
"@stylistic/js/function-call-spacing": [2, never]
130130
"@stylistic/js/function-call-argument-newline": [0]
131+
"@stylistic/js/function-call-spacing": [2, never]
131132
"@stylistic/js/function-paren-newline": [0]
132133
"@stylistic/js/generator-star-spacing": [0]
133134
"@stylistic/js/implicit-arrow-linebreak": [0]
134135
"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
135136
"@stylistic/js/key-spacing": [2]
136137
"@stylistic/js/keyword-spacing": [2]
138+
"@stylistic/js/line-comment-position": [0]
137139
"@stylistic/js/linebreak-style": [2, unix]
138140
"@stylistic/js/lines-around-comment": [0]
139141
"@stylistic/js/lines-between-class-members": [0]
140142
"@stylistic/js/max-len": [0]
141143
"@stylistic/js/max-statements-per-line": [0]
144+
"@stylistic/js/multiline-comment-style": [0]
142145
"@stylistic/js/multiline-ternary": [0]
143146
"@stylistic/js/new-parens": [2]
144147
"@stylistic/js/newline-per-chained-call": [0]
@@ -279,55 +282,6 @@ rules:
279282
i/prefer-default-export: [0]
280283
i/unambiguous: [0]
281284
init-declarations: [0]
282-
jquery/no-ajax-events: [2]
283-
jquery/no-ajax: [2]
284-
jquery/no-animate: [2]
285-
jquery/no-attr: [2]
286-
jquery/no-bind: [2]
287-
jquery/no-class: [0]
288-
jquery/no-clone: [2]
289-
jquery/no-closest: [0]
290-
jquery/no-css: [2]
291-
jquery/no-data: [0]
292-
jquery/no-deferred: [2]
293-
jquery/no-delegate: [2]
294-
jquery/no-each: [0]
295-
jquery/no-extend: [2]
296-
jquery/no-fade: [2]
297-
jquery/no-filter: [0]
298-
jquery/no-find: [0]
299-
jquery/no-global-eval: [2]
300-
jquery/no-grep: [2]
301-
jquery/no-has: [2]
302-
jquery/no-hide: [2]
303-
jquery/no-html: [0]
304-
jquery/no-in-array: [2]
305-
jquery/no-is-array: [2]
306-
jquery/no-is-function: [2]
307-
jquery/no-is: [2]
308-
jquery/no-load: [2]
309-
jquery/no-map: [2]
310-
jquery/no-merge: [2]
311-
jquery/no-param: [2]
312-
jquery/no-parent: [0]
313-
jquery/no-parents: [0]
314-
jquery/no-parse-html: [2]
315-
jquery/no-prop: [2]
316-
jquery/no-proxy: [2]
317-
jquery/no-ready: [2]
318-
jquery/no-serialize: [2]
319-
jquery/no-show: [2]
320-
jquery/no-size: [2]
321-
jquery/no-sizzle: [0]
322-
jquery/no-slide: [0]
323-
jquery/no-submit: [0]
324-
jquery/no-text: [0]
325-
jquery/no-toggle: [2]
326-
jquery/no-trigger: [0]
327-
jquery/no-trim: [2]
328-
jquery/no-val: [0]
329-
jquery/no-when: [2]
330-
jquery/no-wrap: [2]
331285
line-comment-position: [0]
332286
logical-assignment-operators: [0]
333287
max-classes-per-file: [0]
@@ -458,7 +412,7 @@ rules:
458412
no-jquery/no-other-utils: [2]
459413
no-jquery/no-param: [2]
460414
no-jquery/no-parent: [0]
461-
no-jquery/no-parents: [0]
415+
no-jquery/no-parents: [2]
462416
no-jquery/no-parse-html-literal: [0]
463417
no-jquery/no-parse-html: [2]
464418
no-jquery/no-parse-json: [2]
@@ -470,11 +424,11 @@ rules:
470424
no-jquery/no-selector-prop: [2]
471425
no-jquery/no-serialize: [2]
472426
no-jquery/no-size: [2]
473-
no-jquery/no-sizzle: [0]
427+
no-jquery/no-sizzle: [2]
474428
no-jquery/no-slide: [2]
475429
no-jquery/no-sub: [2]
476430
no-jquery/no-support: [2]
477-
no-jquery/no-text: [0]
431+
no-jquery/no-text: [2]
478432
no-jquery/no-trigger: [0]
479433
no-jquery/no-trim: [2]
480434
no-jquery/no-type: [2]
@@ -704,6 +658,7 @@ rules:
704658
unicorn/better-regex: [0]
705659
unicorn/catch-error-name: [0]
706660
unicorn/consistent-destructuring: [2]
661+
unicorn/consistent-empty-array-spread: [2]
707662
unicorn/consistent-function-scoping: [2]
708663
unicorn/custom-error-definition: [0]
709664
unicorn/empty-brace-spaces: [2]
@@ -730,10 +685,13 @@ rules:
730685
unicorn/no-for-loop: [0]
731686
unicorn/no-hex-escape: [0]
732687
unicorn/no-instanceof-array: [0]
688+
unicorn/no-invalid-fetch-options: [2]
733689
unicorn/no-invalid-remove-event-listener: [2]
734690
unicorn/no-keyword-prefix: [0]
735691
unicorn/no-lonely-if: [2]
692+
unicorn/no-magic-array-flat-depth: [0]
736693
unicorn/no-negated-condition: [0]
694+
unicorn/no-negation-in-equality-check: [2]
737695
unicorn/no-nested-ternary: [0]
738696
unicorn/no-new-array: [0]
739697
unicorn/no-new-buffer: [0]
@@ -792,16 +750,18 @@ rules:
792750
unicorn/prefer-object-has-own: [0]
793751
unicorn/prefer-optional-catch-binding: [2]
794752
unicorn/prefer-prototype-methods: [0]
795-
unicorn/prefer-query-selector: [0]
753+
unicorn/prefer-query-selector: [2]
796754
unicorn/prefer-reflect-apply: [0]
797755
unicorn/prefer-regexp-test: [2]
798756
unicorn/prefer-set-has: [0]
799757
unicorn/prefer-set-size: [2]
800758
unicorn/prefer-spread: [0]
759+
unicorn/prefer-string-raw: [0]
801760
unicorn/prefer-string-replace-all: [0]
802761
unicorn/prefer-string-slice: [0]
803762
unicorn/prefer-string-starts-ends-with: [2]
804763
unicorn/prefer-string-trim-start-end: [2]
764+
unicorn/prefer-structured-clone: [2]
805765
unicorn/prefer-switch: [0]
806766
unicorn/prefer-ternary: [0]
807767
unicorn/prefer-text-content: [2]

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
* text=auto eol=lf
22
*.tmpl linguist-language=Handlebars
3+
*.pb.go linguist-generated
34
/assets/*.json linguist-generated
45
/public/assets/img/svg/*.svg linguist-generated
56
/templates/swagger/v1_json.tmpl linguist-generated

.gitea/issue_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--
44
1. Please speak English, this is the language all maintainers can speak and write.
55
2. Please ask questions or configuration/deploy problems on our Discord
6-
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
6+
server (https://discord.gg/gitea) or forum (https://forum.gitea.com).
77
3. Please take a moment to check that your issue doesn't already exist.
88
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq)
99
5. Please give all relevant information below for bug reports, because
@@ -21,7 +21,7 @@
2121
- [ ] MySQL
2222
- [ ] MSSQL
2323
- [ ] SQLite
24-
- Can you reproduce the bug at https://try.gitea.io:
24+
- Can you reproduce the bug at https://demo.gitea.com:
2525
- [ ] Yes (provide example URL)
2626
- [ ] No
2727
- Log gist:

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body:
3737
label: Can you reproduce the bug on the Gitea demo site?
3838
description: |
3939
If so, please provide a URL in the Description field
40-
URL of Gitea demo: https://try.gitea.io
40+
URL of Gitea demo: https://demo.gitea.com
4141
options:
4242
- "Yes"
4343
- "No"
@@ -74,7 +74,7 @@ body:
7474
attributes:
7575
label: How are you running Gitea?
7676
description: |
77-
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
77+
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://demo.gitea.com or are using some other package
7878
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
7979
If you are using a package or systemd tell us what distribution you are using
8080
validations:

.github/ISSUE_TEMPLATE/ui.bug-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body:
4646
label: Can you reproduce the bug on the Gitea demo site?
4747
description: |
4848
If so, please provide a URL in the Description field
49-
URL of Gitea demo: https://try.gitea.io
49+
URL of Gitea demo: https://demo.gitea.com
5050
options:
5151
- "Yes"
5252
- "No"

.github/pull_request_template.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<!-- start tips -->
1+
<!-- start tips -->
22
Please check the following:
33
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
44
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
5-
3. Describe what your pull request does and which issue you're targeting (if any).
6-
4. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
7-
5. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
8-
6. Delete all these tips before posting.
5+
3. For documentations contribution, please go to https://gitea.com/gitea/docs
6+
4. Describe what your pull request does and which issue you're targeting (if any).
7+
5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
8+
6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
9+
7. Delete all these tips before posting.
910
<!-- end tips -->

.github/workflows/disk-clean.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)