Skip to content

Commit 64b417a

Browse files
Merge branch 'main' into lunny/update_swagger_fields
2 parents 32e3ed4 + b8f1c9f commit 64b417a

Some content is hidden

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

42 files changed

+117
-99
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ RUN apk --no-cache add \
1818
&& npm install -g pnpm@10 \
1919
&& rm -rf /var/cache/apk/*
2020

21+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
22+
COPY --from=docker.io/node:22-alpine3.22 /usr/local/bin/node /usr/local/bin/node
23+
2124
# Setup repo
2225
COPY . ${GOPATH}/src/code.gitea.io/gitea
2326
WORKDIR ${GOPATH}/src/code.gitea.io/gitea

Dockerfile.rootless

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ RUN apk --no-cache add \
1818
&& npm install -g pnpm@10 \
1919
&& rm -rf /var/cache/apk/*
2020

21+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
22+
COPY --from=docker.io/node:22-alpine3.22 /usr/local/bin/node /usr/local/bin/node
23+
2124
# Setup repo
2225
COPY . ${GOPATH}/src/code.gitea.io/gitea
2326
WORKDIR ${GOPATH}/src/code.gitea.io/gitea

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/m
127127
MIGRATE_TEST_PACKAGES ?= $(shell $(GO) list code.gitea.io/gitea/models/migrations/...)
128128

129129
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
130-
WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
130+
WEBPACK_CONFIGS := webpack.config.ts tailwind.config.ts
131131
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
132132
WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts
133133

@@ -153,9 +153,9 @@ TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(DIST)
153153
GO_DIRS := build cmd models modules routers services tests
154154
WEB_DIRS := web_src/js web_src/css
155155

156-
ESLINT_FILES := web_src/js tools *.js *.ts *.cjs tests/e2e
156+
ESLINT_FILES := web_src/js tools *.ts *.cjs tests/e2e
157157
STYLELINT_FILES := web_src/css web_src/js/components/*.vue
158-
SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) templates options/locale/locale_en-US.ini .github $(filter-out CHANGELOG.md, $(wildcard *.go *.js *.md *.yml *.yaml *.toml)) $(filter-out tools/misspellings.csv, $(wildcard tools/*))
158+
SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) templates options/locale/locale_en-US.ini .github $(filter-out CHANGELOG.md, $(wildcard *.go *.md *.yml *.yaml *.toml)) $(filter-out tools/misspellings.csv, $(wildcard tools/*))
159159
EDITORCONFIG_FILES := templates .github/workflows options/locale/locale_en-US.ini
160160

161161
GO_SOURCES := $(wildcard *.go)
@@ -407,7 +407,7 @@ lint-actions: ## lint action workflow files
407407

408408
.PHONY: lint-templates
409409
lint-templates: .venv node_modules ## lint template files
410-
@node tools/lint-templates-svg.js
410+
@node tools/lint-templates-svg.ts
411411
@uv run --frozen djlint $(shell find templates -type f -iname '*.tmpl')
412412

413413
.PHONY: lint-yaml
@@ -421,7 +421,7 @@ watch: ## watch everything and continuously rebuild
421421
.PHONY: watch-frontend
422422
watch-frontend: node-check node_modules ## watch frontend files and continuously rebuild
423423
@rm -rf $(WEBPACK_DEST_ENTRIES)
424-
NODE_ENV=development pnpm exec webpack --watch --progress
424+
NODE_ENV=development pnpm exec webpack --watch --progress --disable-interpret
425425

426426
.PHONY: watch-backend
427427
watch-backend: go-check ## watch backend files and continuously rebuild
@@ -877,13 +877,13 @@ $(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) pnpm-lock.yaml
877877
@$(MAKE) -s node-check node_modules
878878
@rm -rf $(WEBPACK_DEST_ENTRIES)
879879
@echo "Running webpack..."
880-
@BROWSERSLIST_IGNORE_OLD_DATA=true pnpm exec webpack
880+
@BROWSERSLIST_IGNORE_OLD_DATA=true pnpm exec webpack --disable-interpret
881881
@touch $(WEBPACK_DEST)
882882

883883
.PHONY: svg
884884
svg: node-check | node_modules ## build svg files
885885
rm -rf $(SVG_DEST_DIR)
886-
node tools/generate-svg.js
886+
node tools/generate-svg.ts
887887

888888
.PHONY: svg-check
889889
svg-check: svg
@@ -922,7 +922,7 @@ generate-gitignore: ## update gitignore files
922922

923923
.PHONY: generate-images
924924
generate-images: | node_modules ## generate images
925-
cd tools && node generate-images.js $(TAGS)
925+
cd tools && node generate-images.ts $(TAGS)
926926

927927
.PHONY: generate-manpage
928928
generate-manpage: ## generate manpage

options/locale/locale_cs-CZ.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ repo.transfer.to_you=vám
496496
repo.collaborator.added.subject=%s vás přidal do %s
497497
repo.collaborator.added.text=Byl jste přidán jako spolupracovník repozitáře:
498498

499+
499500
team_invite.subject=%[1]s vás pozval/a, abyste se připojili k organizaci %[2]s
500501
team_invite.text_1=%[1]s vás pozval/a do týmu %[2]s v organizaci %[3]s.
501502
team_invite.text_2=Pro připojení k týmu klikněte na následující odkaz:

options/locale/locale_de-DE.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ repo.transfer.to_you=dir
509509
repo.collaborator.added.subject=%s hat dich zu %s hinzugefügt
510510
repo.collaborator.added.text=Du wurdest als Mitarbeiter für folgendes Repository hinzugefügt:
511511

512+
512513
team_invite.subject=%[1]s hat dich eingeladen, der Organisation %[2]s beizutreten
513514
team_invite.text_1=%[1]s hat dich eingeladen, dem Team %[2]s in der Organisation %[3]s beizutreten.
514515
team_invite.text_2=Bitte klicke auf den folgenden Link, um dem Team beizutreten:

options/locale/locale_el-GR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ repo.transfer.to_you=εσάς
451451
repo.collaborator.added.subject=%s σας πρόσθεσε στο %s
452452
repo.collaborator.added.text=Έχετε προστεθεί ως συνεργάτης του αποθετηρίου:
453453

454+
454455
team_invite.subject=%[1]s σας προσκάλεσε να συμμετέχετε στον οργανισμό %[2]s
455456
team_invite.text_1=%[1]s σας προσκάλεσε να συμμετέχετε στην ομάδα %[2]s στον οργανισμός %[3]s.
456457
team_invite.text_2=Παρακαλώ κάντε κλικ στον παρακάτω σύνδεσμο για να συμμετάσχετε στην ομάδα:

options/locale/locale_es-ES.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ repo.transfer.to_you=usted
448448
repo.collaborator.added.subject=%s le añadió en %s
449449
repo.collaborator.added.text=Has sido añadido como colaborador del repositorio:
450450

451+
451452
team_invite.subject=%[1]s le ha invitado a unirse a la organización de %[2]s
452453
team_invite.text_1=%[1]s le ha invitado a unirse al equipo %[2]s en la organización %[3]s.
453454
team_invite.text_2=Por favor, haz clic en el siguiente enlace para unirte al equipo:

options/locale/locale_fa-IR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ repo.collaborator.added.subject=%s شما را به پروژه %s اضافه ک
363363
repo.collaborator.added.text=شما به عنوان مشارکت‌کننده در این مخزن اضافه شدید:
364364

365365

366+
366367
[modal]
367368
yes=بله
368369
no=خیر

options/locale/locale_fi-FI.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ repo.transfer.to_you=sinä
348348

349349

350350

351+
351352
[modal]
352353
yes=Kyllä
353354
no=Ei

options/locale/locale_fr-FR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ repo.transfer.body=Pour l’accepter ou le rejeter, visitez %s ou ignorez-le.
550550
repo.collaborator.added.subject=%s vous a ajouté à %s
551551
repo.collaborator.added.text=Vous avez été ajouté en tant que collaborateur du dépôt :
552552

553+
553554
team_invite.subject=%[1]s vous a invité à rejoindre l’organisation %[2]s
554555
team_invite.text_1=%[1]s vous a invité à rejoindre l’équipe %[2]s dans l’organisation %[3]s.
555556
team_invite.text_2=Veuillez cliquer sur le lien suivant pour rejoindre l'équipe :

0 commit comments

Comments
 (0)