Skip to content

Commit 48dbb92

Browse files
committed
Merge branch 'master' into dev-find-file
2 parents a338737 + e31c616 commit 48dbb92

File tree

9,094 files changed

+106507
-2678313
lines changed

Some content is hidden

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

9,094 files changed

+106507
-2678313
lines changed

.drone.yml

Lines changed: 385 additions & 118 deletions
Large diffs are not rendered by default.

.eslintrc

Lines changed: 68 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,24 @@ ignorePatterns:
66

77
parserOptions:
88
sourceType: module
9-
ecmaVersion: 2021
9+
ecmaVersion: latest
1010

1111
plugins:
1212
- eslint-plugin-unicorn
1313
- eslint-plugin-import
1414
- eslint-plugin-vue
1515
- eslint-plugin-html
16-
- eslint-plugin-github
16+
- eslint-plugin-jquery
1717

1818
extends:
1919
- plugin:vue/recommended
2020

2121
env:
22-
es2021: true
22+
es2022: true
2323
node: true
2424

2525
globals:
2626
__webpack_public_path__: true
27-
CodeMirror: false
28-
Dropzone: false
29-
SimpleMDE: false
30-
u2fApi: false
3127

3228
settings:
3329
html/html-extensions: [".tmpl"]
@@ -36,7 +32,6 @@ overrides:
3632
- files: ["web_src/**/*.js", "web_src/**/*.vue", "templates/**/*.tmpl"]
3733
env:
3834
browser: true
39-
jquery: true
4035
node: false
4136
- files: ["templates/**/*.tmpl"]
4237
rules:
@@ -97,23 +92,6 @@ rules:
9792
function-paren-newline: [0]
9893
generator-star-spacing: [0]
9994
getter-return: [2]
100-
github/array-foreach: [2]
101-
github/async-currenttarget: [2]
102-
github/async-preventdefault: [2]
103-
github/authenticity-token: [0]
104-
github/get-attribute: [2]
105-
github/js-class-name: [0]
106-
github/no-blur: [0]
107-
github/no-d-none: [0]
108-
github/no-dataset: [2]
109-
github/no-implicit-buggy-globals: [0]
110-
github/no-inner-html: [0]
111-
github/no-innerText: [2]
112-
github/no-then: [2]
113-
github/no-useless-passive: [2]
114-
github/prefer-observers: [0]
115-
github/require-passive-events: [2]
116-
github/unescaped-html-literal: [0]
11795
grouped-accessor-pairs: [2]
11896
guard-for-in: [0]
11997
id-blacklist: [0]
@@ -163,6 +141,55 @@ rules:
163141
import/unambiguous: [0]
164142
indent: [2, 2, {SwitchCase: 1}]
165143
init-declarations: [0]
144+
jquery/no-ajax-events: [2]
145+
jquery/no-ajax: [0]
146+
jquery/no-animate: [2]
147+
jquery/no-attr: [0]
148+
jquery/no-bind: [2]
149+
jquery/no-class: [0]
150+
jquery/no-clone: [2]
151+
jquery/no-closest: [0]
152+
jquery/no-css: [0]
153+
jquery/no-data: [0]
154+
jquery/no-deferred: [2]
155+
jquery/no-delegate: [2]
156+
jquery/no-each: [0]
157+
jquery/no-extend: [2]
158+
jquery/no-fade: [0]
159+
jquery/no-filter: [0]
160+
jquery/no-find: [0]
161+
jquery/no-global-eval: [2]
162+
jquery/no-grep: [2]
163+
jquery/no-has: [2]
164+
jquery/no-hide: [0]
165+
jquery/no-html: [0]
166+
jquery/no-in-array: [2]
167+
jquery/no-is-array: [2]
168+
jquery/no-is-function: [2]
169+
jquery/no-is: [0]
170+
jquery/no-load: [2]
171+
jquery/no-map: [0]
172+
jquery/no-merge: [2]
173+
jquery/no-param: [2]
174+
jquery/no-parent: [0]
175+
jquery/no-parents: [0]
176+
jquery/no-parse-html: [2]
177+
jquery/no-prop: [0]
178+
jquery/no-proxy: [2]
179+
jquery/no-ready: [0]
180+
jquery/no-serialize: [2]
181+
jquery/no-show: [0]
182+
jquery/no-size: [2]
183+
jquery/no-sizzle: [0]
184+
jquery/no-slide: [0]
185+
jquery/no-submit: [0]
186+
jquery/no-text: [0]
187+
jquery/no-toggle: [0]
188+
jquery/no-trigger: [0]
189+
jquery/no-trim: [2]
190+
jquery/no-val: [0]
191+
jquery/no-when: [2]
192+
jquery/no-wrap: [2]
166193
key-spacing: [2]
167194
keyword-spacing: [2]
168195
line-comment-position: [0]
@@ -197,6 +224,7 @@ rules:
197224
no-confusing-arrow: [0]
198225
no-console: [1, {allow: [info, warn, error]}]
199226
no-const-assign: [2]
227+
no-constant-binary-expression: [2]
200228
no-constant-condition: [0]
201229
no-constructor-return: [2]
202230
no-continue: [0]
@@ -302,7 +330,8 @@ rules:
302330
no-unsafe-negation: [2]
303331
no-unused-expressions: [2]
304332
no-unused-labels: [2]
305-
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, ignoreRestSiblings: false}]
333+
no-unused-private-class-members: [2]
334+
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, destructuredArrayIgnorePattern: ^_, ignoreRestSiblings: false}]
306335
no-use-before-define: [2, nofunc]
307336
no-useless-backreference: [0]
308337
no-useless-call: [2]
@@ -334,6 +363,7 @@ rules:
334363
prefer-exponentiation-operator: [2]
335364
prefer-named-capture-group: [0]
336365
prefer-numeric-literals: [2]
366+
prefer-object-has-own: [0]
337367
prefer-object-spread: [0]
338368
prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
339369
prefer-regex-literals: [2]
@@ -380,10 +410,11 @@ rules:
380410
unicorn/import-style: [0]
381411
unicorn/new-for-builtins: [2]
382412
unicorn/no-abusive-eslint-disable: [0]
383-
unicorn/no-array-for-each: [0]
413+
unicorn/no-array-for-each: [2]
384414
unicorn/no-array-instanceof: [0]
385415
unicorn/no-array-method-this-argument: [2]
386416
unicorn/no-array-push-push: [2]
417+
unicorn/no-await-expression-member: [0]
387418
unicorn/no-console-spaces: [0]
388419
unicorn/no-document-cookie: [2]
389420
unicorn/no-empty-file: [2]
@@ -401,13 +432,17 @@ rules:
401432
unicorn/no-process-exit: [0]
402433
unicorn/no-reduce: [2]
403434
unicorn/no-static-only-class: [2]
435+
unicorn/no-thenable: [2]
404436
unicorn/no-this-assignment: [2]
405437
unicorn/no-unreadable-array-destructuring: [0]
438+
unicorn/no-unreadable-iife: [2]
406439
unicorn/no-unsafe-regex: [0]
407440
unicorn/no-unused-properties: [2]
408441
unicorn/no-useless-fallback-in-spread: [2]
409442
unicorn/no-useless-length-check: [2]
443+
unicorn/no-useless-promise-resolve-reject: [2]
410444
unicorn/no-useless-spread: [2]
445+
unicorn/no-useless-switch-case: [2]
411446
unicorn/no-useless-undefined: [0]
412447
unicorn/no-zero-fractions: [2]
413448
unicorn/number-literal-case: [0]
@@ -419,15 +454,19 @@ rules:
419454
unicorn/prefer-array-index-of: [2]
420455
unicorn/prefer-array-some: [2]
421456
unicorn/prefer-at: [0]
457+
unicorn/prefer-code-point: [2]
422458
unicorn/prefer-dataset: [2]
423459
unicorn/prefer-date-now: [2]
424460
unicorn/prefer-default-parameters: [0]
425461
unicorn/prefer-event-key: [2]
426462
unicorn/prefer-export-from: [2]
427463
unicorn/prefer-includes: [2]
464+
unicorn/prefer-json-parse-buffer: [0]
428465
unicorn/prefer-math-trunc: [2]
429466
unicorn/prefer-modern-dom-apis: [0]
467+
unicorn/prefer-modern-math-apis: [2]
430468
unicorn/prefer-module: [2]
469+
unicorn/prefer-native-coercion-functions: [2]
431470
unicorn/prefer-negative-index: [2]
432471
unicorn/prefer-node-append: [0]
433472
unicorn/prefer-node-protocol: [0]
@@ -452,11 +491,13 @@ rules:
452491
unicorn/prefer-trim-start-end: [2]
453492
unicorn/prefer-type-error: [0]
454493
unicorn/prevent-abbreviations: [0]
494+
unicorn/relative-url-style: [2]
455495
unicorn/require-array-join-separator: [2]
456496
unicorn/require-number-to-fixed-digits-argument: [2]
457497
unicorn/require-post-message-target-origin: [0]
458498
unicorn/string-content: [0]
459499
unicorn/template-indent: [2]
500+
unicorn/text-encoding-identifier-case: [0]
460501
unicorn/throw-new-error: [2]
461502
use-isnan: [2]
462503
valid-typeof: [2, {requireStringLiterals: true}]

.gitattributes

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
* text=auto eol=lf
2-
/vendor/** -text -eol linguist-vendored
3-
/public/vendor/** -text -eol linguist-vendored
4-
/templates/**/*.tmpl linguist-language=Handlebars
2+
*.tmpl linguist-language=Handlebars
53
/.eslintrc linguist-language=YAML
64
/.stylelintrc linguist-language=YAML
5+
/public/vendor/** -text -eol linguist-vendored
6+
/vendor/** -text -eol linguist-vendored
77
/web_src/fomantic/build/** linguist-generated
8+
/web_src/js/vendor/** -text -eol linguist-vendored
9+
Dockerfile.* linguist-language=Dockerfile

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Bug Report
2-
description: Found something you weren't expecting? Report it here!
2+
description: Found something you weren't expecting? Report it here!
3+
labels: kind/bug
34
body:
45
- type: markdown
56
attributes:
@@ -11,17 +12,56 @@ body:
1112
1. Please speak English, this is the language all maintainers can speak and write.
1213
2. Please ask questions or configuration/deploy problems on our Discord
1314
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
14-
3. Please take a moment to check that your issue doesn't already exist.
15+
3. Make sure you are using the latest release and
16+
take a moment to check that your issue hasn't been reported before.
1517
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
1618
5. Please give all relevant information below for bug reports, because
1719
incomplete details will be handled as an invalid report.
20+
6. In particular it's really important to provide pertinent logs. You must give us DEBUG level logs.
21+
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
22+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
23+
- type: textarea
24+
id: description
25+
attributes:
26+
label: Description
27+
description: |
28+
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below)
29+
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
1830
- type: input
1931
id: gitea-ver
2032
attributes:
2133
label: Gitea Version
22-
description: Gitea version (or commit reference) your instance is running
34+
description: Gitea version (or commit reference) of your instance
2335
validations:
2436
required: true
37+
- type: dropdown
38+
id: can-reproduce
39+
attributes:
40+
label: Can you reproduce the bug on the Gitea demo site?
41+
description: |
42+
If so, please provide a URL in the Description field
43+
URL of Gitea demo: https://try.gitea.io
44+
options:
45+
- "Yes"
46+
- "No"
47+
validations:
48+
required: true
49+
- type: markdown
50+
attributes:
51+
value: |
52+
It's really important to provide pertinent logs
53+
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
54+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
55+
- type: input
56+
id: logs
57+
attributes:
58+
label: Log Gist
59+
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
60+
- type: textarea
61+
id: screenshots
62+
attributes:
63+
label: Screenshots
64+
description: If this issue involves the Web Interface, please provide one or more screenshots
2565
- type: input
2666
id: git-ver
2767
attributes:
@@ -37,8 +77,8 @@ body:
3777
attributes:
3878
label: How are you running Gitea?
3979
description: |
40-
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
41-
Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc.
80+
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
81+
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
4282
If you are using a package or systemd tell us what distribution you are using
4383
validations:
4484
required: true
@@ -52,38 +92,3 @@ body:
5292
- MySQL
5393
- MSSQL
5494
- SQLite
55-
- type: dropdown
56-
id: can-reproduce
57-
attributes:
58-
label: Can you reproduce the bug on the Gitea demo site?
59-
description: |
60-
If so, please provide a URL in the Description field
61-
URL of Gitea demo: https://try.gitea.io
62-
options:
63-
- "Yes"
64-
- "No"
65-
validations:
66-
required: true
67-
- type: markdown
68-
attributes:
69-
value: |
70-
It really is important to provide pertinent logs
71-
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
72-
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
73-
- type: input
74-
id: logs
75-
attributes:
76-
label: Log Gist
77-
description: Please provide a gist URL of your logs, with any sensitive information (e.g. API keys) removed/hidden
78-
- type: textarea
79-
id: description
80-
attributes:
81-
label: Description
82-
description: |
83-
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see above)
84-
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
85-
- type: textarea
86-
id: screenshots
87-
attributes:
88-
label: Screenshots
89-
description: If this issue involves the Web Interface, please provide a screenshot or multiple screenshots

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: false
22
contact_links:
33
- name: Security Concern
44
url: https://tinyurl.com/security-gitea

.github/ISSUE_TEMPLATE/feature-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Feature Request
22
description: Got an idea for a feature that Gitea doesn't have currently? Submit your idea here!
3+
labels: ["kind/feature", "kind/proposal"]
34
body:
45
- type: markdown
56
attributes:

0 commit comments

Comments
 (0)