Skip to content

Commit 84f3626

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: [skip ci] Updated translations via Crowdin Fix commit status color on dashboard repolist (go-gitea#25993) Improve profile readme rendering (go-gitea#25988) avoid hard-coding height in language dropdown menu (go-gitea#25986) parseScope with owner/repo always sets owner to zero (go-gitea#25987) Bump github.com/golang-jwt/jwt to v5 (go-gitea#25975) Update path related documents (go-gitea#25417) Update djlint, enable H026 and T027 (go-gitea#25980) [skip ci] Updated translations via Crowdin Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (go-gitea#25947) Refactor "Content" for file uploading (go-gitea#25851) Fix SSPI auth panic (go-gitea#25955) Make pending commit status yellow again (go-gitea#25935) Move public asset files to the proper directory (go-gitea#25907) Disallow dangerous url schemes (go-gitea#25960) Avoid creating directories when loading config (go-gitea#25944)
2 parents 1880269 + cf46711 commit 84f3626

File tree

469 files changed

+663
-443
lines changed

Some content is hidden

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

469 files changed

+663
-443
lines changed

.dockerignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ cpu.out
7575
/yarn.lock
7676
/yarn-error.log
7777
/npm-debug.log*
78-
/public/js
79-
/public/css
80-
/public/fonts
81-
/public/img/webpack
78+
/public/assets/js
79+
/public/assets/css
80+
/public/assets/fonts
81+
/public/assets/img/webpack
8282
/vendor
8383
/web_src/fomantic/node_modules
8484
/web_src/fomantic/build/*

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
* text=auto eol=lf
22
*.tmpl linguist-language=Handlebars
33
/assets/*.json linguist-generated
4-
/public/img/svg/*.svg linguist-generated
4+
/public/assets/img/svg/*.svg linguist-generated
55
/templates/swagger/v1_json.tmpl linguist-generated
66
/vendor/** -text -eol linguist-vendored
77
/web_src/fomantic/build/** linguist-generated

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ cpu.out
7272
/yarn.lock
7373
/yarn-error.log
7474
/npm-debug.log*
75-
/public/js
76-
/public/css
77-
/public/fonts
78-
/public/img/webpack
75+
/public/assets/js
76+
/public/assets/css
77+
/public/assets/fonts
78+
/public/assets/img/webpack
7979
/vendor
8080
/web_src/fomantic/node_modules
8181
/web_src/fomantic/build/*

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ FOMANTIC_WORK_DIR := web_src/fomantic
116116

117117
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
118118
WEBPACK_CONFIGS := webpack.config.js
119-
WEBPACK_DEST := public/js/index.js public/css/index.css
120-
WEBPACK_DEST_ENTRIES := public/js public/css public/fonts public/img/webpack
119+
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
120+
WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts public/assets/img/webpack
121121

122122
BINDATA_DEST := modules/public/bindata.go modules/options/bindata.go modules/templates/bindata.go
123123
BINDATA_HASH := $(addsuffix .hash,$(BINDATA_DEST))
124124

125125
GENERATED_GO_DEST := modules/charset/invisible_gen.go modules/charset/ambiguous_gen.go
126126

127-
SVG_DEST_DIR := public/img/svg
127+
SVG_DEST_DIR := public/assets/img/svg
128128

129129
AIR_TMP_DIR := .air
130130

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://gitea.io/">
3-
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/img/gitea.svg" width="220"/>
3+
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/assets/img/gitea.svg" width="220"/>
44
</a>
55
</p>
66
<h1 align="center">Gitea - Git with a cup of tea</h1>

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://gitea.io/">
3-
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/img/gitea.svg" width="220"/>
3+
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/assets/img/gitea.svg" width="220"/>
44
</a>
55
</p>
66
<h1 align="center">Gitea - Git with a cup of tea</h1>

assets/go-licenses.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generate-images.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ async function main() {
6969
const faviconSvg = await readFile(new URL('../assets/favicon.svg', import.meta.url), 'utf8');
7070

7171
await Promise.all([
72-
generate(logoSvg, '../public/img/logo.svg', {size: 32}),
73-
generate(logoSvg, '../public/img/logo.png', {size: 512}),
74-
generate(faviconSvg, '../public/img/favicon.svg', {size: 32}),
75-
generate(faviconSvg, '../public/img/favicon.png', {size: 180}),
76-
generate(logoSvg, '../public/img/avatar_default.png', {size: 200}),
77-
generate(logoSvg, '../public/img/apple-touch-icon.png', {size: 180, bg: true}),
78-
gitea && generate(logoSvg, '../public/img/gitea.svg', {size: 32}),
72+
generate(logoSvg, '../public/assets/img/logo.svg', {size: 32}),
73+
generate(logoSvg, '../public/assets/img/logo.png', {size: 512}),
74+
generate(faviconSvg, '../public/assets/img/favicon.svg', {size: 32}),
75+
generate(faviconSvg, '../public/assets/img/favicon.png', {size: 180}),
76+
generate(logoSvg, '../public/assets/img/avatar_default.png', {size: 200}),
77+
generate(logoSvg, '../public/assets/img/apple-touch-icon.png', {size: 180, bg: true}),
78+
gitea && generate(logoSvg, '../public/assets/img/gitea.svg', {size: 32}),
7979
]);
8080
}
8181

build/generate-svg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function processFile(file, {prefix, fullName} = {}) {
4444
],
4545
});
4646

47-
await writeFile(fileURLToPath(new URL(`../public/img/svg/${name}.svg`, import.meta.url)), data);
47+
await writeFile(fileURLToPath(new URL(`../public/assets/img/svg/${name}.svg`, import.meta.url)), data);
4848
}
4949

5050
function processFiles(pattern, opts) {
@@ -53,13 +53,13 @@ function processFiles(pattern, opts) {
5353

5454
async function main() {
5555
try {
56-
await mkdir(fileURLToPath(new URL('../public/img/svg', import.meta.url)), {recursive: true});
56+
await mkdir(fileURLToPath(new URL('../public/assets/img/svg', import.meta.url)), {recursive: true});
5757
} catch {}
5858

5959
await Promise.all([
6060
...processFiles('node_modules/@primer/octicons/build/svg/*-16.svg', {prefix: 'octicon'}),
6161
...processFiles('web_src/svg/*.svg'),
62-
...processFiles('public/img/gitea.svg', {fullName: 'gitea-gitea'}),
62+
...processFiles('public/assets/img/gitea.svg', {fullName: 'gitea-gitea'}),
6363
]);
6464
}
6565

cmd/serv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"code.gitea.io/gitea/modules/setting"
3131
"code.gitea.io/gitea/services/lfs"
3232

33-
"github.com/golang-jwt/jwt/v4"
33+
"github.com/golang-jwt/jwt/v5"
3434
"github.com/kballard/go-shellquote"
3535
"github.com/urfave/cli"
3636
)

0 commit comments

Comments
 (0)