Skip to content

Commit c36d353

Browse files
committed
Merge remote-tracking branch 'origin/main' into coloris
* origin/main: Remove jQuery `.attr` from the Fomantic modal cancel buttons (go-gitea#30113) Remove jQuery `.attr` from the code comments (go-gitea#30112) Remove jQuery calls that have no effect on `showElem` and `hideElem` (go-gitea#30110) Remove jQuery `.attr` from the common issue page functions (go-gitea#30083) Restore aligned grid column CSS (go-gitea#30106) Fix possible data race on tests (go-gitea#30093) Add svg linter and fix incorrect svgs (go-gitea#30086) Fix duplicate migrated milestones (go-gitea#30102) Update JS any PY dependencies, remove workarounds (go-gitea#30085) Fix gitea doctor will remove repo-avatar files when execute command `storage-archives` (go-gitea#30094) Fix alignment in actions right view (go-gitea#29979) Remove repetitive words (go-gitea#30091) Fix table header text-align (go-gitea#30084) Fix panic for `fixBrokenRepoUnits16961` (go-gitea#30068)
2 parents 22f7b91 + f47e00d commit c36d353

File tree

27 files changed

+470
-407
lines changed

27 files changed

+470
-407
lines changed

.github/workflows/files-changed.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
- "Makefile"
7474
7575
templates:
76+
- "tools/lint-templates-*.js"
7677
- "templates/**/*.tmpl"
7778
- "pyproject.toml"
7879
- "poetry.lock"

.github/workflows/pull-compliance.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ jobs:
3535
- uses: actions/setup-python@v5
3636
with:
3737
python-version: "3.12"
38+
- uses: actions/setup-node@v4
39+
with:
40+
node-version: 20
3841
- run: pip install poetry
3942
- run: make deps-py
43+
- run: make deps-frontend
4044
- run: make lint-templates
4145

4246
lint-yaml:

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ lint-actions:
434434
$(GO) run $(ACTIONLINT_PACKAGE)
435435

436436
.PHONY: lint-templates
437-
lint-templates: .venv
437+
lint-templates: .venv node_modules
438+
@node tools/lint-templates-svg.js
438439
@poetry run djlint $(shell find templates -type f -iname '*.tmpl')
439440

440441
.PHONY: lint-yaml

package-lock.json

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

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"@github/text-expander-element": "2.6.1",
1414
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
1515
"@melloware/coloris": "0.23.0",
16-
"@primer/octicons": "19.8.0",
16+
"@primer/octicons": "19.9.0",
1717
"add-asset-webpack-plugin": "2.0.1",
1818
"ansi_up": "6.0.2",
19-
"asciinema-player": "3.7.0",
19+
"asciinema-player": "3.7.1",
2020
"chart.js": "4.4.2",
2121
"chartjs-adapter-dayjs-4": "1.0.4",
2222
"chartjs-plugin-zoom": "2.0.1",
@@ -31,15 +31,15 @@
3131
"htmx.org": "1.9.11",
3232
"idiomorph": "0.3.0",
3333
"jquery": "3.7.1",
34-
"katex": "0.16.9",
34+
"katex": "0.16.10",
3535
"license-checker-webpack-plugin": "0.2.1",
3636
"mermaid": "10.9.0",
3737
"mini-css-extract-plugin": "2.8.1",
3838
"minimatch": "9.0.3",
3939
"monaco-editor": "0.47.0",
4040
"monaco-editor-webpack-plugin": "7.1.0",
4141
"pdfobject": "2.3.0",
42-
"postcss": "8.4.35",
42+
"postcss": "8.4.38",
4343
"postcss-loader": "8.1.1",
4444
"postcss-nesting": "12.1.0",
4545
"pretty-ms": "9.0.0",
@@ -58,7 +58,7 @@
5858
"vue-chartjs": "5.3.0",
5959
"vue-loader": "17.4.2",
6060
"vue3-calendar-heatmap": "2.0.5",
61-
"webpack": "5.90.3",
61+
"webpack": "5.91.0",
6262
"webpack-cli": "5.1.4",
6363
"wrap-ansi": "9.0.0"
6464
},
@@ -76,24 +76,24 @@
7676
"eslint-plugin-jquery": "1.5.1",
7777
"eslint-plugin-no-jquery": "2.7.0",
7878
"eslint-plugin-no-use-extend-native": "0.5.0",
79-
"eslint-plugin-regexp": "2.3.0",
79+
"eslint-plugin-regexp": "2.4.0",
8080
"eslint-plugin-sonarjs": "0.24.0",
8181
"eslint-plugin-unicorn": "51.0.1",
82-
"eslint-plugin-vitest": "0.3.26",
83-
"eslint-plugin-vitest-globals": "1.4.0",
84-
"eslint-plugin-vue": "9.23.0",
85-
"eslint-plugin-vue-scoped-css": "2.7.2",
82+
"eslint-plugin-vitest": "0.4.0",
83+
"eslint-plugin-vitest-globals": "1.5.0",
84+
"eslint-plugin-vue": "9.24.0",
85+
"eslint-plugin-vue-scoped-css": "2.8.0",
8686
"eslint-plugin-wc": "2.0.4",
87-
"happy-dom": "14.2.0",
87+
"happy-dom": "14.3.7",
8888
"markdownlint-cli": "0.39.0",
8989
"postcss-html": "1.6.0",
90-
"stylelint": "16.2.1",
90+
"stylelint": "16.3.0",
9191
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
9292
"stylelint-declaration-strict-value": "1.10.4",
9393
"svgo": "3.2.0",
94-
"updates": "15.3.1",
94+
"updates": "16.0.0",
9595
"vite-string-plugin": "1.1.5",
96-
"vitest": "1.3.1"
96+
"vitest": "1.4.0"
9797
},
9898
"browserslist": [
9999
"defaults"

poetry.lock

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

routers/api/v1/repo/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func GetRawFileOrLFS(ctx *context.APIContext) {
145145
return
146146
}
147147

148-
// OK, now the blob is known to have at most 1024 bytes we can simply read this in in one go (This saves reading it twice)
148+
// OK, now the blob is known to have at most 1024 bytes we can simply read this in one go (This saves reading it twice)
149149
dataRc, err := blob.DataAsync()
150150
if err != nil {
151151
ctx.ServerError("DataAsync", err)

routers/web/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ func ViewIssue(ctx *context.Context) {
16011601
}
16021602
marked[issue.PosterID] = issue.ShowRole
16031603

1604-
// Render comments and and fetch participants.
1604+
// Render comments and fetch participants.
16051605
participants[0] = issue.Poster
16061606

16071607
if err := issue.Comments.LoadAttachmentsByIssue(ctx); err != nil {

services/doctor/fix16961.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ func fixBrokenRepoUnit16961(repoUnit *repo_model.RepoUnit, bs []byte) (fixed boo
216216
return false, nil
217217
}
218218

219+
var cfg any
220+
err = json.UnmarshalHandleDoubleEncode(bs, &cfg)
221+
if err == nil {
222+
return false, nil
223+
}
224+
219225
switch repoUnit.Type {
220226
case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects:
221227
cfg := &repo_model.UnitConfig{}

services/doctor/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func checkStorage(opts *checkStorageOptions) func(ctx context.Context, logger lo
162162
if opts.RepoArchives || opts.All {
163163
if err := commonCheckStorage(ctx, logger, autofix,
164164
&commonStorageCheckOptions{
165-
storer: storage.RepoAvatars,
165+
storer: storage.RepoArchives,
166166
isOrphaned: func(path string, obj storage.Object, stat fs.FileInfo) (bool, error) {
167167
exists, err := repo.ExistsRepoArchiverWithStoragePath(ctx, path)
168168
if err == nil || errors.Is(err, util.ErrInvalidArgument) {

0 commit comments

Comments
 (0)