Skip to content

Commit 6af641f

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pubsub
2 parents 1328b2b + a5a9885 commit 6af641f

File tree

1,424 files changed

+43464
-40895
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,424 files changed

+43464
-40895
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _test
1414

1515
# MS VSCode
1616
.vscode
17-
__debug_bin
17+
__debug_bin*
1818

1919
# Architecture specific extensions/prefixes
2020
*.[568vq]
@@ -78,7 +78,6 @@ cpu.out
7878
/public/assets/css
7979
/public/assets/fonts
8080
/public/assets/img/avatar
81-
/public/assets/img/webpack
8281
/vendor
8382
/web_src/fomantic/node_modules
8483
/web_src/fomantic/build/*
@@ -96,6 +95,9 @@ cpu.out
9695
/.air
9796
/.go-licenses
9897

98+
# Files and folders that were previously generated
99+
/public/assets/img/webpack
100+
99101
# Snapcraft
100102
snap/.snapcraft/
101103
parts/

.eslintrc.yaml

Lines changed: 24 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ reportUnusedDisableDirectives: true
33

44
ignorePatterns:
55
- /web_src/js/vendor
6+
- /web_src/fomantic
7+
- /public/assets/js
68

79
parserOptions:
810
sourceType: module
@@ -14,7 +16,6 @@ plugins:
1416
- eslint-plugin-array-func
1517
- eslint-plugin-github
1618
- eslint-plugin-i
17-
- eslint-plugin-jquery
1819
- eslint-plugin-no-jquery
1920
- eslint-plugin-no-use-extend-native
2021
- eslint-plugin-regexp
@@ -32,6 +33,7 @@ overrides:
3233
- files: ["web_src/**/*"]
3334
globals:
3435
__webpack_public_path__: true
36+
htmx: true
3537
process: false # https://github.com/webpack/webpack/issues/15833
3638
- files: ["web_src/**/*", "docs/**/*"]
3739
env:
@@ -119,25 +121,27 @@ rules:
119121
"@stylistic/js/arrow-spacing": [2, {before: true, after: true}]
120122
"@stylistic/js/block-spacing": [0]
121123
"@stylistic/js/brace-style": [2, 1tbs, {allowSingleLine: true}]
122-
"@stylistic/js/comma-dangle": [2, only-multiline]
124+
"@stylistic/js/comma-dangle": [2, always-multiline]
123125
"@stylistic/js/comma-spacing": [2, {before: false, after: true}]
124126
"@stylistic/js/comma-style": [2, last]
125127
"@stylistic/js/computed-property-spacing": [2, never]
126128
"@stylistic/js/dot-location": [2, property]
127129
"@stylistic/js/eol-last": [2]
128-
"@stylistic/js/function-call-spacing": [2, never]
129130
"@stylistic/js/function-call-argument-newline": [0]
131+
"@stylistic/js/function-call-spacing": [2, never]
130132
"@stylistic/js/function-paren-newline": [0]
131133
"@stylistic/js/generator-star-spacing": [0]
132134
"@stylistic/js/implicit-arrow-linebreak": [0]
133135
"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
134136
"@stylistic/js/key-spacing": [2]
135137
"@stylistic/js/keyword-spacing": [2]
138+
"@stylistic/js/line-comment-position": [0]
136139
"@stylistic/js/linebreak-style": [2, unix]
137140
"@stylistic/js/lines-around-comment": [0]
138141
"@stylistic/js/lines-between-class-members": [0]
139142
"@stylistic/js/max-len": [0]
140143
"@stylistic/js/max-statements-per-line": [0]
144+
"@stylistic/js/multiline-comment-style": [0]
141145
"@stylistic/js/multiline-ternary": [0]
142146
"@stylistic/js/new-parens": [2]
143147
"@stylistic/js/newline-per-chained-call": [0]
@@ -167,7 +171,7 @@ rules:
167171
"@stylistic/js/semi-spacing": [2, {before: false, after: true}]
168172
"@stylistic/js/semi-style": [2, last]
169173
"@stylistic/js/space-before-blocks": [2, always]
170-
"@stylistic/js/space-before-function-paren": [0]
174+
"@stylistic/js/space-before-function-paren": [2, {anonymous: ignore, named: never, asyncArrow: always}]
171175
"@stylistic/js/space-in-parens": [2, never]
172176
"@stylistic/js/space-infix-ops": [2]
173177
"@stylistic/js/space-unary-ops": [2]
@@ -278,55 +282,6 @@ rules:
278282
i/prefer-default-export: [0]
279283
i/unambiguous: [0]
280284
init-declarations: [0]
281-
jquery/no-ajax-events: [2]
282-
jquery/no-ajax: [2]
283-
jquery/no-animate: [2]
284-
jquery/no-attr: [0]
285-
jquery/no-bind: [2]
286-
jquery/no-class: [0]
287-
jquery/no-clone: [2]
288-
jquery/no-closest: [0]
289-
jquery/no-css: [2]
290-
jquery/no-data: [0]
291-
jquery/no-deferred: [2]
292-
jquery/no-delegate: [2]
293-
jquery/no-each: [0]
294-
jquery/no-extend: [2]
295-
jquery/no-fade: [2]
296-
jquery/no-filter: [0]
297-
jquery/no-find: [0]
298-
jquery/no-global-eval: [2]
299-
jquery/no-grep: [2]
300-
jquery/no-has: [2]
301-
jquery/no-hide: [2]
302-
jquery/no-html: [0]
303-
jquery/no-in-array: [2]
304-
jquery/no-is-array: [2]
305-
jquery/no-is-function: [2]
306-
jquery/no-is: [0]
307-
jquery/no-load: [2]
308-
jquery/no-map: [2]
309-
jquery/no-merge: [2]
310-
jquery/no-param: [2]
311-
jquery/no-parent: [0]
312-
jquery/no-parents: [0]
313-
jquery/no-parse-html: [2]
314-
jquery/no-prop: [2]
315-
jquery/no-proxy: [2]
316-
jquery/no-ready: [2]
317-
jquery/no-serialize: [2]
318-
jquery/no-show: [2]
319-
jquery/no-size: [2]
320-
jquery/no-sizzle: [0]
321-
jquery/no-slide: [0]
322-
jquery/no-submit: [0]
323-
jquery/no-text: [0]
324-
jquery/no-toggle: [2]
325-
jquery/no-trigger: [0]
326-
jquery/no-trim: [2]
327-
jquery/no-val: [0]
328-
jquery/no-when: [2]
329-
jquery/no-wrap: [2]
330285
line-comment-position: [0]
331286
logical-assignment-operators: [0]
332287
max-classes-per-file: [0]
@@ -397,7 +352,7 @@ rules:
397352
no-jquery/no-animate-toggle: [2]
398353
no-jquery/no-animate: [2]
399354
no-jquery/no-append-html: [2]
400-
no-jquery/no-attr: [0]
355+
no-jquery/no-attr: [2]
401356
no-jquery/no-bind: [2]
402357
no-jquery/no-box-model: [2]
403358
no-jquery/no-browser: [2]
@@ -440,7 +395,7 @@ rules:
440395
no-jquery/no-is-numeric: [2]
441396
no-jquery/no-is-plain-object: [2]
442397
no-jquery/no-is-window: [2]
443-
no-jquery/no-is: [0]
398+
no-jquery/no-is: [2]
444399
no-jquery/no-jquery-constructor: [0]
445400
no-jquery/no-live: [2]
446401
no-jquery/no-load-shorthand: [2]
@@ -457,7 +412,7 @@ rules:
457412
no-jquery/no-other-utils: [2]
458413
no-jquery/no-param: [2]
459414
no-jquery/no-parent: [0]
460-
no-jquery/no-parents: [0]
415+
no-jquery/no-parents: [2]
461416
no-jquery/no-parse-html-literal: [0]
462417
no-jquery/no-parse-html: [2]
463418
no-jquery/no-parse-json: [2]
@@ -469,11 +424,11 @@ rules:
469424
no-jquery/no-selector-prop: [2]
470425
no-jquery/no-serialize: [2]
471426
no-jquery/no-size: [2]
472-
no-jquery/no-sizzle: [0]
427+
no-jquery/no-sizzle: [2]
473428
no-jquery/no-slide: [2]
474429
no-jquery/no-sub: [2]
475430
no-jquery/no-support: [2]
476-
no-jquery/no-text: [0]
431+
no-jquery/no-text: [2]
477432
no-jquery/no-trigger: [0]
478433
no-jquery/no-trim: [2]
479434
no-jquery/no-type: [2]
@@ -536,7 +491,7 @@ rules:
536491
no-underscore-dangle: [0]
537492
no-unexpected-multiline: [2]
538493
no-unmodified-loop-condition: [2]
539-
no-unneeded-ternary: [0]
494+
no-unneeded-ternary: [2]
540495
no-unreachable-loop: [2]
541496
no-unreachable: [2]
542497
no-unsafe-finally: [2]
@@ -703,6 +658,7 @@ rules:
703658
unicorn/better-regex: [0]
704659
unicorn/catch-error-name: [0]
705660
unicorn/consistent-destructuring: [2]
661+
unicorn/consistent-empty-array-spread: [2]
706662
unicorn/consistent-function-scoping: [2]
707663
unicorn/custom-error-definition: [0]
708664
unicorn/empty-brace-spaces: [2]
@@ -715,28 +671,34 @@ rules:
715671
unicorn/import-style: [0]
716672
unicorn/new-for-builtins: [2]
717673
unicorn/no-abusive-eslint-disable: [0]
674+
unicorn/no-anonymous-default-export: [0]
718675
unicorn/no-array-callback-reference: [0]
719676
unicorn/no-array-for-each: [2]
720677
unicorn/no-array-method-this-argument: [2]
721678
unicorn/no-array-push-push: [2]
722679
unicorn/no-array-reduce: [2]
723680
unicorn/no-await-expression-member: [0]
681+
unicorn/no-await-in-promise-methods: [2]
724682
unicorn/no-console-spaces: [0]
725683
unicorn/no-document-cookie: [2]
726684
unicorn/no-empty-file: [2]
727685
unicorn/no-for-loop: [0]
728686
unicorn/no-hex-escape: [0]
729687
unicorn/no-instanceof-array: [0]
688+
unicorn/no-invalid-fetch-options: [2]
730689
unicorn/no-invalid-remove-event-listener: [2]
731690
unicorn/no-keyword-prefix: [0]
732691
unicorn/no-lonely-if: [2]
692+
unicorn/no-magic-array-flat-depth: [0]
733693
unicorn/no-negated-condition: [0]
694+
unicorn/no-negation-in-equality-check: [2]
734695
unicorn/no-nested-ternary: [0]
735696
unicorn/no-new-array: [0]
736697
unicorn/no-new-buffer: [0]
737698
unicorn/no-null: [0]
738699
unicorn/no-object-as-default-parameter: [0]
739700
unicorn/no-process-exit: [0]
701+
unicorn/no-single-promise-in-promise-methods: [2]
740702
unicorn/no-static-only-class: [2]
741703
unicorn/no-thenable: [2]
742704
unicorn/no-this-assignment: [2]
@@ -788,16 +750,18 @@ rules:
788750
unicorn/prefer-object-has-own: [0]
789751
unicorn/prefer-optional-catch-binding: [2]
790752
unicorn/prefer-prototype-methods: [0]
791-
unicorn/prefer-query-selector: [0]
753+
unicorn/prefer-query-selector: [2]
792754
unicorn/prefer-reflect-apply: [0]
793755
unicorn/prefer-regexp-test: [2]
794756
unicorn/prefer-set-has: [0]
795757
unicorn/prefer-set-size: [2]
796758
unicorn/prefer-spread: [0]
759+
unicorn/prefer-string-raw: [0]
797760
unicorn/prefer-string-replace-all: [0]
798761
unicorn/prefer-string-slice: [0]
799762
unicorn/prefer-string-starts-ends-with: [2]
800763
unicorn/prefer-string-trim-start-end: [2]
764+
unicorn/prefer-structured-clone: [2]
801765
unicorn/prefer-switch: [0]
802766
unicorn/prefer-ternary: [0]
803767
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/labeler.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ modifies/docs:
44
- "**/*.md"
55
- "docs/**"
66

7-
modifies/frontend:
8-
- changed-files:
9-
- any-glob-to-any-file:
10-
- "web_src/**"
11-
- "tailwind.config.js"
12-
- "webpack.config.js"
13-
147
modifies/templates:
158
- changed-files:
169
- all-globs-to-any-file:
@@ -53,7 +46,7 @@ modifies/internal:
5346
- ".gitpod.yml"
5447
- ".markdownlint.yaml"
5548
- ".spectral.yaml"
56-
- ".stylelintrc.yaml"
49+
- "stylelint.config.js"
5750
- ".yamllint.yaml"
5851
- ".github/**"
5952
- ".gitea/"

.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 -->

0 commit comments

Comments
 (0)