diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d391cf78cf7da..1b0255d198b5c 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -10,7 +10,8 @@
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12"
- }
+ },
+ "ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
},
"customizations": {
"vscode": {
@@ -25,8 +26,9 @@
"Vue.volar",
"ms-azuretools.vscode-docker",
"vitest.explorer",
- "qwtel.sqlite-viewer",
- "GitHub.vscode-pull-request-github"
+ "cweijan.vscode-database-client2",
+ "GitHub.vscode-pull-request-github",
+ "Azurite.azurite"
]
}
},
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 0d2f955319509..cbfe0220e8e4d 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -4,6 +4,7 @@ reportUnusedDisableDirectives: true
ignorePatterns:
- /web_src/js/vendor
- /web_src/fomantic
+ - /public/assets/js
parserOptions:
sourceType: module
@@ -126,19 +127,21 @@ rules:
"@stylistic/js/computed-property-spacing": [2, never]
"@stylistic/js/dot-location": [2, property]
"@stylistic/js/eol-last": [2]
- "@stylistic/js/function-call-spacing": [2, never]
"@stylistic/js/function-call-argument-newline": [0]
+ "@stylistic/js/function-call-spacing": [2, never]
"@stylistic/js/function-paren-newline": [0]
"@stylistic/js/generator-star-spacing": [0]
"@stylistic/js/implicit-arrow-linebreak": [0]
"@stylistic/js/indent": [2, 2, {ignoreComments: true, SwitchCase: 1}]
"@stylistic/js/key-spacing": [2]
"@stylistic/js/keyword-spacing": [2]
+ "@stylistic/js/line-comment-position": [0]
"@stylistic/js/linebreak-style": [2, unix]
"@stylistic/js/lines-around-comment": [0]
"@stylistic/js/lines-between-class-members": [0]
"@stylistic/js/max-len": [0]
"@stylistic/js/max-statements-per-line": [0]
+ "@stylistic/js/multiline-comment-style": [0]
"@stylistic/js/multiline-ternary": [0]
"@stylistic/js/new-parens": [2]
"@stylistic/js/newline-per-chained-call": [0]
@@ -704,6 +707,7 @@ rules:
unicorn/better-regex: [0]
unicorn/catch-error-name: [0]
unicorn/consistent-destructuring: [2]
+ unicorn/consistent-empty-array-spread: [2]
unicorn/consistent-function-scoping: [2]
unicorn/custom-error-definition: [0]
unicorn/empty-brace-spaces: [2]
@@ -730,9 +734,11 @@ rules:
unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0]
unicorn/no-instanceof-array: [0]
+ unicorn/no-invalid-fetch-options: [2]
unicorn/no-invalid-remove-event-listener: [2]
unicorn/no-keyword-prefix: [0]
unicorn/no-lonely-if: [2]
+ unicorn/no-magic-array-flat-depth: [0]
unicorn/no-negated-condition: [0]
unicorn/no-nested-ternary: [0]
unicorn/no-new-array: [0]
@@ -798,10 +804,12 @@ rules:
unicorn/prefer-set-has: [0]
unicorn/prefer-set-size: [2]
unicorn/prefer-spread: [0]
+ unicorn/prefer-string-raw: [0]
unicorn/prefer-string-replace-all: [0]
unicorn/prefer-string-slice: [0]
unicorn/prefer-string-starts-ends-with: [2]
unicorn/prefer-string-trim-start-end: [2]
+ unicorn/prefer-structured-clone: [2]
unicorn/prefer-switch: [0]
unicorn/prefer-ternary: [0]
unicorn/prefer-text-content: [2]
diff --git a/.gitea/issue_template.md b/.gitea/issue_template.md
index 9ad186cca7c25..cf173a67cae53 100644
--- a/.gitea/issue_template.md
+++ b/.gitea/issue_template.md
@@ -3,7 +3,7 @@
{{else if .IsSigned}}
- {{if EnableTimetracking}}
-
+ {{if and EnableTimetracking .ActiveStopwatch}}
+
{{svg "octicon-stopwatch"}}
- {{ctx.Locale.Tr "active_stopwatch"}}
-
{{end}}
@@ -202,4 +182,33 @@
{{end}}
+
+ {{if and .IsSigned EnableTimetracking .ActiveStopwatch}}
+
+ {{end}}
diff --git a/templates/devtest/fomantic-dropdown.tmpl b/templates/devtest/fomantic-dropdown.tmpl
new file mode 100644
index 0000000000000..57a7c1313ea63
--- /dev/null
+++ b/templates/devtest/fomantic-dropdown.tmpl
@@ -0,0 +1,109 @@
+{{template "base/head" .}}
+
+
+
+
Dropdown
+
+
+ search-input & flex-item in menu
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+
+ search ...
+
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ {{svg "octicon-x" 14 "remove icon"}}
+
+
+
+
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ {{svg "octicon-x" 14 "remove icon"}}
+
empty multiple dropdown
+
+
+
+
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ {{svg "octicon-x" 14 "remove icon"}}
+
clearable search dropdown
+
+
+
+
+
+
Selection
+
+ {{/* the "selection" class is optional, it will be added by JS automatically */}}
+
+
+
+
Dropdown Button (demo only without menu)
+
+
+ mini dropdown
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+ tiny dropdown
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+ button dropdown
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+
+
+
+ mini compact
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+ tiny compact
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+ button compact
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+
+
+
+
Other button align with ...
+
+ ... Dropdown Button
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+
+
+{{template "base/footer" .}}
diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl
index 3b13c13be8405..ea293fd3b41b4 100644
--- a/templates/devtest/gitea-ui.tmpl
+++ b/templates/devtest/gitea-ui.tmpl
@@ -180,94 +180,6 @@
-
- Dropdown with SVG
-
-
- search-input & flex-item in menu
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
- search ...
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
empty multiple dropdown
-
-
-
-
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
- {{svg "octicon-x" 14 "remove icon"}}
-
clearable search dropdown
-
-
-
-
-
-
-
- mini dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- tiny dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- button dropdown
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
- mini compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- tiny compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
- button compact
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
-
-
-
-
Button align with ...
-
- ... Dropdown Button
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
-
-
diff --git a/templates/install.tmpl b/templates/install.tmpl
index f3117af5476a3..965e57f21372f 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -157,168 +157,171 @@
-
-
-
-
- {{ctx.Locale.Tr "install.email_title"}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ctx.Locale.TrString "install.smtp_from_helper"}}{{/* it contains lt/gt chars*/}}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
+ {{ctx.Locale.TrString "install.smtp_from_helper"}}{{/* it contains lt/gt chars*/}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- {{ctx.Locale.Tr "install.server_service_title"}}
-
-
-
-
-
+
+
+
+ {{ctx.Locale.Tr "install.server_service_title"}}
+
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
- {{ctx.Locale.Tr "install.no_reply_address_helper"}}
-
-
-
-
+
+
{{if .EnvConfigKeys}}
@@ -333,12 +336,11 @@
{{end}}
-
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl
index 7e9a59a6bfb45..5433f01530ff3 100644
--- a/templates/org/team/members.tmpl
+++ b/templates/org/team/members.tmpl
@@ -8,7 +8,7 @@
{{template "org/team/navbar" .}}
{{if .IsOrganizationOwner}}
-
+
{{end}}
-
+
{{range .Team.Members}}
diff --git a/templates/org/team/navbar.tmpl b/templates/org/team/navbar.tmpl
index 8f2571e1f6a9d..9704f63f6fb51 100644
--- a/templates/org/team/navbar.tmpl
+++ b/templates/org/team/navbar.tmpl
@@ -1,4 +1,4 @@
-
{{end}}
-
+
{{range .Team.Repos}}
diff --git a/templates/package/content/container.tmpl b/templates/package/content/container.tmpl
index fe393f4388968..138fedecb3fc3 100644
--- a/templates/package/content/container.tmpl
+++ b/templates/package/content/container.tmpl
@@ -54,7 +54,7 @@
{{end}}
{{if .PackageDescriptor.Metadata.ImageLayers}}
-
+
{{range .PackageDescriptor.Metadata.ImageLayers}}
@@ -80,7 +80,7 @@
{{range $key, $value := .PackageDescriptor.Metadata.Labels}}
{{$key}} |
- {{$value}} |
+ {{$value}} |
{{end}}
diff --git a/templates/package/content/maven.tmpl b/templates/package/content/maven.tmpl
index 3a7de335de88f..f56595a8308ec 100644
--- a/templates/package/content/maven.tmpl
+++ b/templates/package/content/maven.tmpl
@@ -1,4 +1,8 @@
-{{if eq .PackageDescriptor.Package.Type "maven"}}
+{{if and (eq .PackageDescriptor.Package.Type "maven") (not .PackageDescriptor.Metadata)}}
+
+ {{ctx.Locale.Tr "packages.no_metadata"}}
+{{end}}
+{{if and (eq .PackageDescriptor.Package.Type "maven") .PackageDescriptor.Metadata}}
diff --git a/templates/package/content/npm.tmpl b/templates/package/content/npm.tmpl
index a78a07d874673..01298a664c734 100644
--- a/templates/package/content/npm.tmpl
+++ b/templates/package/content/npm.tmpl
@@ -45,6 +45,15 @@
{{end}}
+ {{if .PackageDescriptor.Metadata.BundleDependencies}}
+
+
+ {{range .PackageDescriptor.Metadata.BundleDependencies}}
+ {{.}}
+ {{end}}
+
+ {{end}}
+
{{if .PackageDescriptor.Metadata.Keywords}}
diff --git a/templates/package/metadata/maven.tmpl b/templates/package/metadata/maven.tmpl
index 548be61790fff..36412723d24f8 100644
--- a/templates/package/metadata/maven.tmpl
+++ b/templates/package/metadata/maven.tmpl
@@ -1,4 +1,7 @@
-{{if eq .PackageDescriptor.Package.Type "maven"}}
+{{if and (eq .PackageDescriptor.Package.Type "maven") (not .PackageDescriptor.Metadata)}}
+
{{svg "octicon-note" 16 "tw-mr-2"}} {{ctx.Locale.Tr "packages.no_metadata"}}
+{{end}}
+{{if and (eq .PackageDescriptor.Package.Type "maven") .PackageDescriptor.Metadata}}
{{if .PackageDescriptor.Metadata.Name}}
{{svg "octicon-note" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Name}}
{{end}}
{{if .PackageDescriptor.Metadata.ProjectURL}}
{{end}}
{{range .PackageDescriptor.Metadata.Licenses}}
{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}
{{end}}
diff --git a/templates/package/settings.tmpl b/templates/package/settings.tmpl
index 9424baf4939ef..4b8773477b4af 100644
--- a/templates/package/settings.tmpl
+++ b/templates/package/settings.tmpl
@@ -59,7 +59,7 @@
{{ctx.Locale.Tr "packages.settings.delete"}}
-
+
{{ctx.Locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}