1
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-07-04 15:07:42 +00:00

fix: update npm dependencies, fix misc issues (#38257)

Update all npm dependencies and fix discovered issues.

Co-authored-by: bircni <bircni@icloud.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-06-29 03:59:14 -07:00
committed by GitHub
parent e68ee61879
commit 07b18467c0
10 changed files with 1306 additions and 1806 deletions
+4 -3
View File
@@ -127,6 +127,7 @@ BINDATA_DEST_WILDCARD := modules/migration/bindata.* modules/public/bindata.* mo
GENERATED_GO_DEST := modules/charset/invisible_gen.go modules/charset/ambiguous_gen.go
SVG_DEST_DIR := public/assets/img/svg
SVG_DEST_DIRS := $(SVG_DEST_DIR) options/fileicon
AIR_TMP_DIR := .air
@@ -633,10 +634,10 @@ svg: node_modules ## build svg files
.PHONY: svg-check
svg-check: svg
@git add $(SVG_DEST_DIR)
@diff=$$(git diff --color=always --cached $(SVG_DEST_DIR)); \
@git add $(SVG_DEST_DIRS)
@diff=$$(git diff --color=always --cached $(SVG_DEST_DIRS)); \
if [ -n "$$diff" ]; then \
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIRS)' and commit the result:"; \
printf "%s" "$${diff}"; \
exit 1; \
fi
+372 -202
View File
@@ -5,6 +5,11 @@
"_rust": "folder-rust",
"-rust": "folder-rust",
"__rust__": "folder-rust",
"cargo": "folder-rust",
".cargo": "folder-rust",
"_cargo": "folder-rust",
"-cargo": "folder-rust",
"__cargo__": "folder-rust",
"bot": "folder-robot",
".bot": "folder-robot",
"_bot": "folder-robot",
@@ -350,6 +355,11 @@
"_scripting": "folder-scripts",
"-scripting": "folder-scripts",
"__scripting__": "folder-scripts",
"xtask": "folder-scripts",
".xtask": "folder-scripts",
"_xtask": "folder-scripts",
"-xtask": "folder-scripts",
"__xtask__": "folder-scripts",
"node": "folder-node",
".node": "folder-node",
"_node": "folder-node",
@@ -1020,6 +1030,11 @@
"_externals": "folder-lib",
"-externals": "folder-lib",
"__externals__": "folder-lib",
"crates": "folder-lib",
".crates": "folder-lib",
"_crates": "folder-lib",
"-crates": "folder-lib",
"__crates__": "folder-lib",
"themes": "folder-theme",
".themes": "folder-theme",
"_themes": "folder-theme",
@@ -4414,22 +4429,18 @@
"_organism": "folder-organism",
"-organism": "folder-organism",
"__organism__": "folder-organism",
"claude": "folder-claude",
".claude": "folder-claude",
"..claude": "folder-claude",
"_.claude": "folder-claude",
"-.claude": "folder-claude",
"__.claude__": "folder-claude",
"_claude": "folder-claude",
"-claude": "folder-claude",
"__claude__": "folder-claude",
"cursor": "folder-cursor",
".cursor": "folder-cursor",
"..cursor": "folder-cursor",
"_.cursor": "folder-cursor",
"-.cursor": "folder-cursor",
"__.cursor__": "folder-cursor",
".gemini": "folder-gemini-ai",
"..gemini": "folder-gemini-ai",
"_.gemini": "folder-gemini-ai",
"-.gemini": "folder-gemini-ai",
"__.gemini__": "folder-gemini-ai",
"_cursor": "folder-cursor",
"-cursor": "folder-cursor",
"__cursor__": "folder-cursor",
"gemini": "folder-gemini-ai",
".gemini": "folder-gemini-ai",
"_gemini": "folder-gemini-ai",
"-gemini": "folder-gemini-ai",
"__gemini__": "folder-gemini-ai",
@@ -4443,6 +4454,11 @@
"_geminiai": "folder-gemini-ai",
"-geminiai": "folder-gemini-ai",
"__geminiai__": "folder-gemini-ai",
"opencode": "folder-opencode",
".opencode": "folder-opencode",
"_opencode": "folder-opencode",
"-opencode": "folder-opencode",
"__opencode__": "folder-opencode",
"input": "folder-input",
".input": "folder-input",
"_input": "folder-input",
@@ -4583,6 +4599,11 @@
"_instructions": "folder-instructions",
"-instructions": "folder-instructions",
"__instructions__": "folder-instructions",
"zed": "folder-zed",
".zed": "folder-zed",
"_zed": "folder-zed",
"-zed": "folder-zed",
"__zed__": "folder-zed",
"appwrite": "folder-appwrite",
".appwrite": "folder-appwrite",
"_appwrite": "folder-appwrite",
@@ -4617,7 +4638,22 @@
".kotlin": "folder-kotlin",
"_kotlin": "folder-kotlin",
"-kotlin": "folder-kotlin",
"__kotlin__": "folder-kotlin"
"__kotlin__": "folder-kotlin",
"redis": "folder-redis",
".redis": "folder-redis",
"_redis": "folder-redis",
"-redis": "folder-redis",
"__redis__": "folder-redis",
"redis-db": "folder-redis",
".redis-db": "folder-redis",
"_redis-db": "folder-redis",
"-redis-db": "folder-redis",
"__redis-db__": "folder-redis",
"redislabs": "folder-redis",
".redislabs": "folder-redis",
"_redislabs": "folder-redis",
"-redislabs": "folder-redis",
"__redislabs__": "folder-redis"
},
"folderNamesExpanded": {
"rust": "folder-rust-open",
@@ -4625,6 +4661,11 @@
"_rust": "folder-rust-open",
"-rust": "folder-rust-open",
"__rust__": "folder-rust-open",
"cargo": "folder-rust-open",
".cargo": "folder-rust-open",
"_cargo": "folder-rust-open",
"-cargo": "folder-rust-open",
"__cargo__": "folder-rust-open",
"bot": "folder-robot-open",
".bot": "folder-robot-open",
"_bot": "folder-robot-open",
@@ -4970,6 +5011,11 @@
"_scripting": "folder-scripts-open",
"-scripting": "folder-scripts-open",
"__scripting__": "folder-scripts-open",
"xtask": "folder-scripts-open",
".xtask": "folder-scripts-open",
"_xtask": "folder-scripts-open",
"-xtask": "folder-scripts-open",
"__xtask__": "folder-scripts-open",
"node": "folder-node-open",
".node": "folder-node-open",
"_node": "folder-node-open",
@@ -5640,6 +5686,11 @@
"_externals": "folder-lib-open",
"-externals": "folder-lib-open",
"__externals__": "folder-lib-open",
"crates": "folder-lib-open",
".crates": "folder-lib-open",
"_crates": "folder-lib-open",
"-crates": "folder-lib-open",
"__crates__": "folder-lib-open",
"themes": "folder-theme-open",
".themes": "folder-theme-open",
"_themes": "folder-theme-open",
@@ -9034,22 +9085,18 @@
"_organism": "folder-organism-open",
"-organism": "folder-organism-open",
"__organism__": "folder-organism-open",
"claude": "folder-claude-open",
".claude": "folder-claude-open",
"..claude": "folder-claude-open",
"_.claude": "folder-claude-open",
"-.claude": "folder-claude-open",
"__.claude__": "folder-claude-open",
"_claude": "folder-claude-open",
"-claude": "folder-claude-open",
"__claude__": "folder-claude-open",
"cursor": "folder-cursor-open",
".cursor": "folder-cursor-open",
"..cursor": "folder-cursor-open",
"_.cursor": "folder-cursor-open",
"-.cursor": "folder-cursor-open",
"__.cursor__": "folder-cursor-open",
".gemini": "folder-gemini-ai-open",
"..gemini": "folder-gemini-ai-open",
"_.gemini": "folder-gemini-ai-open",
"-.gemini": "folder-gemini-ai-open",
"__.gemini__": "folder-gemini-ai-open",
"_cursor": "folder-cursor-open",
"-cursor": "folder-cursor-open",
"__cursor__": "folder-cursor-open",
"gemini": "folder-gemini-ai-open",
".gemini": "folder-gemini-ai-open",
"_gemini": "folder-gemini-ai-open",
"-gemini": "folder-gemini-ai-open",
"__gemini__": "folder-gemini-ai-open",
@@ -9063,6 +9110,11 @@
"_geminiai": "folder-gemini-ai-open",
"-geminiai": "folder-gemini-ai-open",
"__geminiai__": "folder-gemini-ai-open",
"opencode": "folder-opencode-open",
".opencode": "folder-opencode-open",
"_opencode": "folder-opencode-open",
"-opencode": "folder-opencode-open",
"__opencode__": "folder-opencode-open",
"input": "folder-input-open",
".input": "folder-input-open",
"_input": "folder-input-open",
@@ -9203,6 +9255,11 @@
"_instructions": "folder-instructions-open",
"-instructions": "folder-instructions-open",
"__instructions__": "folder-instructions-open",
"zed": "folder-zed-open",
".zed": "folder-zed-open",
"_zed": "folder-zed-open",
"-zed": "folder-zed-open",
"__zed__": "folder-zed-open",
"appwrite": "folder-appwrite-open",
".appwrite": "folder-appwrite-open",
"_appwrite": "folder-appwrite-open",
@@ -9237,7 +9294,22 @@
".kotlin": "folder-kotlin-open",
"_kotlin": "folder-kotlin-open",
"-kotlin": "folder-kotlin-open",
"__kotlin__": "folder-kotlin-open"
"__kotlin__": "folder-kotlin-open",
"redis": "folder-redis-open",
".redis": "folder-redis-open",
"_redis": "folder-redis-open",
"-redis": "folder-redis-open",
"__redis__": "folder-redis-open",
"redis-db": "folder-redis-open",
".redis-db": "folder-redis-open",
"_redis-db": "folder-redis-open",
"-redis-db": "folder-redis-open",
"__redis-db__": "folder-redis-open",
"redislabs": "folder-redis-open",
".redislabs": "folder-redis-open",
"_redislabs": "folder-redis-open",
"-redislabs": "folder-redis-open",
"__redislabs__": "folder-redis-open"
},
"rootFolderNames": {},
"rootFolderNamesExpanded": {},
@@ -9247,11 +9319,29 @@
"xhtml": "html",
"html_vm": "html",
"asp": "html",
"html": "html",
"aspx": "html",
"jshtm": "html",
"rhtml": "html",
"shtml": "html",
"volt": "html",
"xht": "html",
"jade": "pug",
"pug": "pug",
"md": "markdown",
"markdown": "markdown",
"rst": "markdown",
"copilotmd": "markdown",
"litcoffee": "markdown",
"markdn": "markdown",
"mdown": "markdown",
"mdtext": "markdown",
"mdtxt": "markdown",
"mdwn": "markdown",
"mkd": "markdown",
"mkdn": "markdown",
"ronn": "markdown",
"workbook": "markdown",
"blink": "blink",
"css": "css",
"scss": "sass",
@@ -9263,6 +9353,11 @@
"json5": "json",
"jsonl": "json",
"ndjson": "json",
"geojson": "json",
"har": "json",
"jsonld": "json",
"webmanifest": "json",
"ts.map": "json",
"schema.json": "json_schema",
"hjson": "hjson",
"jinja": "jinja",
@@ -9281,6 +9376,14 @@
"yml.dist": "yaml",
"yaml.dist": "yaml",
"yaml-tmlanguage": "yaml",
"yaml": "yaml",
"yml": "yaml",
"cff": "yaml",
"eyaml": "yaml",
"eyml": "yaml",
"winget": "yaml",
"yaml-tmpreferences": "yaml",
"yaml-tmtheme": "yaml",
"xml": "xml",
"plist": "xml",
"xsd": "xml",
@@ -9298,6 +9401,48 @@
"dmn": "xml",
"jrxml": "xml",
"xmp": "xml",
"ascx": "xml",
"atom": "xml",
"axaml": "xml",
"axml": "xml",
"bpmn": "xml",
"csl": "xml",
"csproj.user": "xml",
"dita": "xml",
"ditamap": "xml",
"dtml": "xml",
"ent": "xml",
"fxml": "xml",
"isml": "xml",
"jmx": "xml",
"launch": "xml",
"menu": "xml",
"opml": "xml",
"owl": "xml",
"proj": "xml",
"publishsettings": "xml",
"pubxml": "xml",
"pubxml.user": "xml",
"rdf": "xml",
"rng": "xml",
"rss": "xml",
"shproj": "xml",
"storyboard": "xml",
"targets": "xml",
"tld": "xml",
"tmx": "xml",
"vbproj": "xml",
"vbproj.user": "xml",
"wsdl": "xml",
"wxi": "xml",
"wxl": "xml",
"wxs": "xml",
"xbl": "xml",
"xib": "xml",
"xliff": "xml",
"xoml": "xml",
"xpdl": "xml",
"xul": "xml",
"toml": "toml",
"toon": "toon",
"png": "image",
@@ -9322,6 +9467,7 @@
"jbig2": "image",
"jb2": "image",
"jng": "image",
"jxl": "image",
"jxr": "image",
"pgf": "image",
"pic": "image",
@@ -9397,6 +9543,10 @@
"act": "palette",
"esx": "javascript",
"mjs": "javascript",
"js": "javascript",
"cjs": "javascript",
"es6": "javascript",
"pac": "javascript",
"jsx": "react",
"tsx": "react_ts",
"routing.ts": "routing",
@@ -9426,6 +9576,13 @@
"cfg": "settings",
"cnf": "settings",
"tool-versions": "settings",
"directory": "settings",
"mak": "settings",
"npmrc": "settings",
"repo": "settings",
"ts": "typescript",
"cts": "typescript",
"mts": "typescript",
"d.ts": "typescript-def",
"d.cts": "typescript-def",
"d.mts": "typescript-def",
@@ -9463,6 +9620,9 @@
"vcxproj": "visualstudio",
"vcxproj.filters": "visualstudio",
"wixproj": "visualstudio",
"bas": "visualstudio",
"brs": "visualstudio",
"vba": "visualstudio",
"vcl": "varnish",
"pdb": "database",
"sql": "database",
@@ -9502,6 +9662,7 @@
"ldf": "database",
"frm": "database",
"kdbx": "database",
"dsql": "database",
"kql": "kusto",
"cs": "csharp",
"csx": "csharp",
@@ -9565,6 +9726,7 @@
"hex": "hex",
"java": "java",
"jsp": "java",
"jav": "java",
"jar": "jar",
"class": "javaclass",
"c3": "c3",
@@ -9572,6 +9734,7 @@
"i": "c",
"mi": "c",
"h": "h",
"hip": "hip",
"cc": "cpp",
"cpp": "cpp",
"cxx": "cpp",
@@ -9580,6 +9743,15 @@
"mii": "cpp",
"ii": "cpp",
"cppm": "cpp",
"c++m": "cpp",
"ccm": "cpp",
"cxxm": "cpp",
"h.in": "cpp",
"hpp.in": "cpp",
"ipp": "cpp",
"ixx": "cpp",
"tpp": "cpp",
"txx": "cpp",
"hh": "hpp",
"hpp": "hpp",
"hxx": "hpp",
@@ -9587,9 +9759,19 @@
"hp": "hpp",
"tcc": "hpp",
"inl": "hpp",
"m": "objective-c",
"mm": "objective-cpp",
"rc": "rc",
"go": "go",
"py": "python",
"cpy": "python",
"gyp": "python",
"gypi": "python",
"ipy": "python",
"pyi": "python",
"pyt": "python",
"pyw": "python",
"rpy": "python",
"pyc": "python-misc",
"whl": "python-misc",
"egg": "python-misc",
@@ -9607,12 +9789,34 @@
"exp": "console",
"nu": "console",
"xsh": "console",
"bash_aliases": "console",
"bash_login": "console",
"bash_logout": "console",
"bash_profile": "console",
"bashrc": "console",
"cshrc": "console",
"ebuild": "console",
"eclass": "console",
"profile": "console",
"tcshrc": "console",
"xprofile": "console",
"xsession": "console",
"xsessionrc": "console",
"yash_profile": "console",
"yashrc": "console",
"zlogin": "console",
"zlogout": "console",
"zprofile": "console",
"zsh-theme": "console",
"zshenv": "console",
"zshrc": "console",
"ps1": "powershell",
"psm1": "powershell",
"psd1": "powershell",
"ps1xml": "powershell",
"psc1": "powershell",
"pssc": "powershell",
"psrc": "powershell",
"excalidraw": "excalidraw",
"excalidraw.json": "excalidraw",
"excalidraw.svg": "excalidraw",
@@ -9654,6 +9858,9 @@
"lib": "lib",
"a": "lib",
"bib": "bibliography",
"bbl": "bibliography",
"bcf": "bibliography",
"blg": "bibliography",
"bst": "bibtex-style",
"dll": "dll",
"ilk": "dll",
@@ -9661,10 +9868,18 @@
"rb": "ruby",
"erb": "ruby",
"rbs": "ruby",
"gemspec": "ruby",
"podspec": "ruby",
"rake": "ruby",
"rbi": "ruby",
"rbx": "ruby",
"rjs": "ruby",
"ru": "ruby",
"fs": "fsharp",
"fsx": "fsharp",
"fsi": "fsharp",
"fsproj": "fsharp",
"fsscript": "fsharp",
"swift": "swift",
"xcplayground": "swift",
"swiftdeps": "swift",
@@ -9680,6 +9895,15 @@
"containerfile": "docker",
"compose.yaml": "docker",
"compose.yml": "docker",
"tex": "tex",
"ltx": "tex",
"cls": "tex",
"clo": "tex",
"latex": "tex",
"aux": "tex",
"tikz": "tex",
"synctex": "tex",
"synctex.gz": "tex",
"sty": "sty",
"ctx": "context",
"dtx": "dtx",
@@ -9820,13 +10044,23 @@
"mist.tsx": "mist",
"otne": "otne",
"patch": "git",
"diff": "diff",
"rej": "diff",
"lua": "lua",
"clj": "clojure",
"cljs": "clojure",
"cljc": "clojure",
"cljx": "clojure",
"clojure": "clojure",
"edn": "clojure",
"groovy": "groovy",
"gvy": "groovy",
"nf": "groovy",
"r": "r",
"rmd": "r",
"rhistory": "r",
"rprofile": "r",
"rt": "r",
"dart": "dart",
"freezed.dart": "dart_generated",
"g.dart": "dart_generated",
@@ -9862,8 +10096,13 @@
"lock": "lock",
"hbs": "handlebars",
"mustache": "handlebars",
"handlebars": "handlebars",
"hjs": "handlebars",
"pm": "perl",
"raku": "perl",
"pod": "perl",
"psgi": "perl",
"t": "perl",
"hx": "haxe",
"spec.ts": "test-ts",
"spec.cts": "test-ts",
@@ -10074,6 +10313,7 @@
"prisma": "prisma",
"cshtml": "razor",
"vbhtml": "razor",
"razor": "razor",
"abc": "abc",
"ad": "asciidoc",
"adoc": "asciidoc",
@@ -10088,16 +10328,37 @@
"stl": "3d",
"stp": "3d",
"step": "3d",
"ste": "3d",
"obj": "3d",
"o": "3d",
"ac": "3d",
"dwg": "3d",
"dxf": "3d",
"fbx": "3d",
"mesh": "3d",
"3dm": "3d",
"3mf": "3d",
"catpart": "3d",
"catproduct": "3d",
"f3d": "3d",
"iam": "3d",
"ige": "3d",
"iges": "3d",
"igs": "3d",
"ipt": "3d",
"jt": "3d",
"mqo": "3d",
"pmd": "3d",
"pmx": "3d",
"prt": "3d",
"sab": "3d",
"sat": "3d",
"skp": "3d",
"sldasm": "3d",
"slddrw": "3d",
"sldprt": "3d",
"smb": "3d",
"smt": "3d",
"vac": "3d",
"vdp": "3d",
"vox": "3d",
@@ -10109,6 +10370,10 @@
"wrl": "3d",
"usd": "3d",
"usdz": "3d",
"wire": "3d",
"x_b": "3d",
"x_t": "3d",
"123dx": "3d",
"svg": "svg",
"ai": "adobe-illustrator",
"ait": "adobe-illustrator",
@@ -10230,6 +10495,11 @@
"fen": "chess",
"gmi": "gemini",
"gemini": "gemini",
"php": "php",
"php4": "php",
"php5": "php",
"phtml": "php",
"ctp": "php",
"tsconfig.json": "tsconfig",
"tauri": "tauri",
"jsconfig.json": "jsconfig",
@@ -10297,6 +10567,13 @@
"wgsl": "shader",
"spv": "shader",
"slang": "shader",
"cginc": "shader",
"compute": "shader",
"fx": "shader",
"fxh": "shader",
"hlsli": "shader",
"psh": "shader",
"vsh": "shader",
"sy": "siyuan",
"ndst.yml": "ndst",
"ndst.yaml": "ndst",
@@ -10409,65 +10686,22 @@
"lean": "lean",
"sls": "salt",
"m2": "macaulay2",
"ua": "uiua",
"skill.md": "skill",
"skills.md": "skill",
"instructions.md": "instructions",
"instruction.md": "instructions",
"cljx": "clojure",
"clojure": "clojure",
"edn": "clojure",
"ccm": "cpp",
"cxxm": "cpp",
"c++m": "cpp",
"ipp": "cpp",
"ixx": "cpp",
"tpp": "cpp",
"txx": "cpp",
"hpp.in": "cpp",
"h.in": "cpp",
"diff": "diff",
"rej": "diff",
"fsscript": "fsharp",
"mrpack": "mrpack",
"gitignore_global": "ignore",
"gitignore": "ignore",
"git-blame-ignore-revs": "ignore",
"gvy": "groovy",
"nf": "groovy",
"handlebars": "handlebars",
"hjs": "handlebars",
"hlsli": "hlsl",
"fx": "hlsl",
"fxh": "hlsl",
"vsh": "hlsl",
"psh": "hlsl",
"cginc": "hlsl",
"compute": "hlsl",
"html": "html",
"shtml": "html",
"xht": "html",
"aspx": "html",
"jshtm": "html",
"volt": "html",
"rhtml": "html",
"directory": "properties",
"gitattributes": "properties",
"gitconfig": "properties",
"gitmodules": "properties",
"editorconfig": "properties",
"repo": "properties",
"jav": "java",
"js": "javascript",
"es6": "javascript",
"cjs": "javascript",
"pac": "javascript",
"bowerrc": "json",
"jscsrc": "json",
"webmanifest": "json",
"ts.map": "json",
"har": "json",
"jslintrc": "json",
"jsonld": "json",
"geojson": "json",
"vuerc": "json",
"eslintrc": "jsonc",
"eslintrc.json": "jsonc",
@@ -10476,134 +10710,14 @@
"hintrc": "jsonc",
"babelrc": "jsonc",
"jmd": "juliamarkdown",
"cls": "tex",
"tex": "latex",
"ltx": "latex",
"mak": "makefile",
"mkd": "markdown",
"mdwn": "markdown",
"mdown": "markdown",
"markdn": "markdown",
"mdtxt": "markdown",
"mdtext": "markdown",
"workbook": "markdown",
"npmignore": "ignore",
"npmrc": "properties",
"m": "objective-c",
"mm": "objective-cpp",
"pod": "perl",
"t": "perl",
"psgi": "perl",
"rakumod": "raku",
"rakutest": "raku",
"rakudoc": "raku",
"nqp": "raku",
"p6": "raku",
"pl6": "raku",
"pm6": "raku",
"php": "php",
"php4": "php",
"php5": "php",
"phtml": "php",
"ctp": "php",
"psrc": "powershell",
"rpy": "python",
"pyw": "python",
"cpy": "python",
"gyp": "python",
"gypi": "python",
"pyi": "python",
"ipy": "python",
"pyt": "python",
"rhistory": "r",
"rprofile": "r",
"rt": "r",
"razor": "razor",
"rbx": "ruby",
"rjs": "ruby",
"gemspec": "ruby",
"rake": "ruby",
"ru": "ruby",
"podspec": "ruby",
"rbi": "ruby",
"bashrc": "shellscript",
"bash_aliases": "shellscript",
"bash_profile": "shellscript",
"bash_login": "shellscript",
"ebuild": "shellscript",
"eclass": "shellscript",
"profile": "shellscript",
"bash_logout": "shellscript",
"xprofile": "shellscript",
"xsession": "shellscript",
"xsessionrc": "shellscript",
"zshrc": "shellscript",
"zprofile": "shellscript",
"zlogin": "shellscript",
"zlogout": "shellscript",
"zshenv": "shellscript",
"zsh-theme": "shellscript",
"cshrc": "shellscript",
"tcshrc": "shellscript",
"yashrc": "shellscript",
"yash_profile": "shellscript",
"dsql": "sql",
"ts": "typescript",
"cts": "typescript",
"mts": "typescript",
"brs": "vb",
"bas": "vb",
"vba": "vb",
"ascx": "xml",
"atom": "xml",
"axml": "xml",
"axaml": "xml",
"bpmn": "xml",
"csl": "xml",
"csproj.user": "xml",
"dita": "xml",
"ditamap": "xml",
"ent": "xml",
"dtml": "xml",
"fxml": "xml",
"isml": "xml",
"jmx": "xml",
"launch": "xml",
"menu": "xml",
"opml": "xml",
"owl": "xml",
"proj": "xml",
"publishsettings": "xml",
"pubxml": "xml",
"pubxml.user": "xml",
"rdf": "xml",
"rng": "xml",
"rss": "xml",
"shproj": "xml",
"storyboard": "xml",
"targets": "xml",
"tld": "xml",
"tmx": "xml",
"vbproj": "xml",
"vbproj.user": "xml",
"wsdl": "xml",
"wxi": "xml",
"wxl": "xml",
"wxs": "xml",
"xbl": "xml",
"xib": "xml",
"xliff": "xml",
"xpdl": "xml",
"xul": "xml",
"xoml": "xml",
"yaml": "yaml",
"yml": "yaml",
"eyaml": "yaml",
"eyml": "yaml",
"cff": "yaml",
"yaml-tmpreferences": "yaml",
"yaml-tmtheme": "yaml",
"winget": "yaml"
"pm6": "raku"
},
"fileNames": {
".pug-lintrc": "pug",
@@ -10637,6 +10751,7 @@
"playwright-ct.config.cts": "playwright",
"playwright-ct.config.mts": "playwright",
".htaccess": "xml",
"jakefile": "javascript",
".release-it.json": "rocket",
".release-it.ts": "rocket",
".release-it.js": "rocket",
@@ -10713,6 +10828,17 @@
"pre-commit": "console",
"pre-push": "console",
"post-merge": "console",
".envrc": "console",
".hushlogin": "console",
"apkbuild": "console",
"pkgbuild": "console",
"bashrc_apple_terminal": "console",
"zlogin": "console",
"zlogout": "console",
"zprofile": "console",
"zshenv": "console",
"zshrc": "console",
"zshrc_apple_terminal": "console",
"excalidraw": "excalidraw",
"excalidraw.json": "excalidraw",
"excalidraw.svg": "excalidraw",
@@ -10759,6 +10885,25 @@
"keystatic.config.jsx": "keystatic",
"keystatic.config.js": "keystatic",
".ruby-version": "ruby",
"appraisals": "ruby",
"berksfile": "ruby",
"berksfile.lock": "ruby",
"brewfile": "ruby",
"capfile": "ruby",
"cheffile": "ruby",
"dangerfile": "ruby",
"deliverfile": "ruby",
"guardfile": "ruby",
"gymfile": "ruby",
"hobofile": "ruby",
"matchfile": "ruby",
"podfile": "ruby",
"puppetfile": "ruby",
"rakefile": "ruby",
"rantfile": "ruby",
"scanfile": "ruby",
"snapfile": "ruby",
"thorfile": "ruby",
"gemfile": "gemfile",
".rubocop.yml": "rubocop",
".rubocop-todo.yml": "rubocop",
@@ -10927,6 +11072,9 @@
".git-blame-ignore-revs": "git",
".git-for-windows-updater": "git",
"git-history": "git",
"commit_editmsg": "git",
"merge_msg": "git",
"git-rebase-todo": "git",
".luacheckrc": "lua",
".rhistory": "r",
".pubignore": "dart",
@@ -10936,10 +11084,13 @@
"semgrep.yml": "semgrep",
".semgrepignore": "semgrep",
"vue.config.js": "vue-config",
"vue.config.cjs": "vue-config",
"vue.config.mjs": "vue-config",
"vue.config.ts": "vue-config",
"vetur.config.js": "vue-config",
"vetur.config.ts": "vue-config",
"volar.config.js": "vue-config",
".vuerc": "vue-config",
"nuxt.config.js": "nuxt",
"nuxt.config.ts": "nuxt",
".nuxtignore": "nuxt",
@@ -10955,6 +11106,7 @@
"ng-package.json": "angular",
".mjmlconfig": "mjml",
"vercel.json": "vercel",
"vercel.ts": "vercel",
".vercelignore": "vercel",
"now.json": "vercel",
".nowignore": "vercel",
@@ -11715,6 +11867,8 @@
".browserslistrc": "browserlist",
".snyk": "snyk",
".drone.yml": "drone",
"opencode.json": "opencode",
"opencode.jsonc": "opencode",
".sequelizerc": "sequelize",
"gatsby-config.js": "gatsby",
"gatsby-config.mjs": "gatsby",
@@ -12585,6 +12739,7 @@
"zeabur.yml": "zeabur",
"zeabur.toml": "zeabur",
"copilot-instructions.md": "copilot",
".copilotignore": "copilot",
".pre-commit-config.yaml": "pre-commit",
".pre-commit-hooks.yaml": "pre-commit",
".lintstagedrc": "lintstaged",
@@ -12666,6 +12821,9 @@
"metro.config.cjs": "metro",
"metro.config.mjs": "metro",
"metro.config.json": "metro",
"metro.config.ts": "metro",
"metro.config.cts": "metro",
"metro.config.mts": "metro",
"src/bashly.yaml": "bashly",
"src/bashly.yml": "bashly",
"bashly-settings.yaml": "bashly-settings",
@@ -12680,6 +12838,14 @@
"skill.md": "skill",
"instructions.md": "instructions",
"instruction.md": "instructions",
"tsdown.config.ts": "tsdown",
"tsdown.config.mts": "tsdown",
"tsdown.config.cts": "tsdown",
"tsdown.config.js": "tsdown",
"tsdown.config.mjs": "tsdown",
"tsdown.config.cjs": "tsdown",
"tsdown.config.json": "tsdown",
"tsdown.config": "tsdown",
"appwrite.json": "appwrite",
"appwrite.js": "appwrite",
"appwrite.ts": "appwrite",
@@ -12934,6 +13100,7 @@
".rubocop-todo.yml": "rubocop_light",
".rubocop_todo.yml": "rubocop_light",
"vercel.json": "vercel_light",
"vercel.ts": "vercel_light",
".vercelignore": "vercel_light",
"now.json": "vercel_light",
".nowignore": "vercel_light",
@@ -13001,6 +13168,8 @@
"browserslist": "browserlist_light",
".browserslistrc": "browserlist_light",
".drone.yml": "drone_light",
"opencode.json": "opencode_light",
"opencode.jsonc": "opencode_light",
".wakatime-project": "wakatime_light",
"circle.yml": "circleci_light",
".releaserc": "semantic-release_light",
@@ -13086,6 +13255,7 @@
"zeabur.yml": "zeabur_light",
"zeabur.toml": "zeabur_light",
"copilot-instructions.md": "copilot_light",
".copilotignore": "copilot_light",
"hosts": "hosts_light",
".cursorignore": "cursor_light",
".cursorindexingignore": "cursor_light",
@@ -13129,11 +13299,11 @@
"_idea": "folder-intellij_light",
"-idea": "folder-intellij_light",
"__idea__": "folder-intellij_light",
"cursor": "folder-cursor_light",
".cursor": "folder-cursor_light",
"..cursor": "folder-cursor_light",
"_.cursor": "folder-cursor_light",
"-.cursor": "folder-cursor_light",
"__.cursor__": "folder-cursor_light"
"_cursor": "folder-cursor_light",
"-cursor": "folder-cursor_light",
"__cursor__": "folder-cursor_light"
},
"folderNamesExpanded": {
"jinja": "folder-jinja-open_light",
@@ -13156,11 +13326,11 @@
"_idea": "folder-intellij-open_light",
"-idea": "folder-intellij-open_light",
"__idea__": "folder-intellij-open_light",
"cursor": "folder-cursor-open_light",
".cursor": "folder-cursor-open_light",
"..cursor": "folder-cursor-open_light",
"_.cursor": "folder-cursor-open_light",
"-.cursor": "folder-cursor-open_light",
"__.cursor__": "folder-cursor-open_light"
"_cursor": "folder-cursor-open_light",
"-cursor": "folder-cursor-open_light",
"__cursor__": "folder-cursor-open_light"
},
"rootFolderNames": {},
"rootFolderNamesExpanded": {}
+566 -554
View File
File diff suppressed because it is too large Load Diff
+13 -13
View File
@@ -1,6 +1,6 @@
{
"type": "module",
"packageManager": "pnpm@11.8.0",
"packageManager": "pnpm@11.9.0",
"engines": {
"node": ">= 22.18.0",
"pnpm": ">= 11.0.0"
@@ -11,7 +11,7 @@
"@citation-js/plugin-csl": "0.7.22",
"@citation-js/plugin-software-formats": "0.6.2",
"@codemirror/autocomplete": "6.20.3",
"@codemirror/commands": "6.10.3",
"@codemirror/commands": "6.10.4",
"@codemirror/lang-json": "6.0.2",
"@codemirror/lang-markdown": "6.5.0",
"@codemirror/language": "6.12.3",
@@ -19,8 +19,8 @@
"@codemirror/legacy-modes": "6.5.3",
"@codemirror/lint": "6.9.7",
"@codemirror/search": "6.7.1",
"@codemirror/state": "6.6.0",
"@codemirror/view": "6.43.1",
"@codemirror/state": "6.7.0",
"@codemirror/view": "6.43.2",
"@deltablot/dropzone": "7.4.3",
"@github/markdown-toolbar-element": "2.2.3",
"@github/paste-markdown": "1.5.3",
@@ -59,7 +59,7 @@
"postcss": "8.5.15",
"rolldown-license-plugin": "3.0.9",
"sortablejs": "1.15.7",
"swagger-ui-dist": "5.32.6",
"swagger-ui-dist": "5.32.8",
"tailwindcss": "3.4.19",
"throttle-debounce": "5.0.2",
"tippy.js": "6.3.7",
@@ -67,7 +67,7 @@
"tributejs": "5.1.3",
"uint8-to-base64": "0.2.1",
"vanilla-colorful": "0.7.2",
"vite": "8.0.16",
"vite": "8.1.0",
"vite-string-plugin": "2.0.4",
"vue": "3.5.38",
"vue-bar-graph": "2.2.0",
@@ -76,27 +76,27 @@
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
"@eslint/json": "2.0.0",
"@playwright/test": "1.61.0",
"@playwright/test": "1.61.1",
"@stylistic/eslint-plugin": "5.10.0",
"@stylistic/stylelint-plugin": "5.2.0",
"@types/codemirror": "5.60.17",
"@types/jquery": "4.0.1",
"@types/js-yaml": "4.0.9",
"@types/katex": "0.16.8",
"@types/node": "25.9.3",
"@types/node": "25.9.4",
"@types/pdfobject": "2.2.5",
"@types/sortablejs": "1.15.9",
"@types/swagger-ui-dist": "3.30.6",
"@types/throttle-debounce": "5.0.2",
"@types/toastify-js": "1.12.4",
"@typescript-eslint/parser": "8.61.1",
"@typescript-eslint/parser": "8.62.0",
"@vitejs/plugin-vue": "6.0.7",
"@vitest/eslint-plugin": "1.6.20",
"eslint": "10.5.0",
"eslint-import-resolver-typescript": "4.4.5",
"eslint-plugin-array-func": "5.1.1",
"eslint-plugin-de-morgan": "2.1.2",
"eslint-plugin-import-x": "4.16.2",
"eslint-plugin-import-x": "4.17.0",
"eslint-plugin-playwright": "2.10.4",
"eslint-plugin-regexp": "3.1.0",
"eslint-plugin-sonarjs": "4.1.0",
@@ -104,11 +104,11 @@
"eslint-plugin-vue": "10.9.2",
"eslint-plugin-vue-scoped-css": "3.1.1",
"eslint-plugin-wc": "3.1.0",
"globals": "17.6.0",
"globals": "17.7.0",
"happy-dom": "20.10.6",
"jiti": "2.7.0",
"markdownlint-cli": "0.49.0",
"material-icon-theme": "5.35.0",
"material-icon-theme": "5.36.1",
"postcss-html": "1.8.1",
"spectral-cli-bundle": "1.0.8",
"stylelint": "17.13.0",
@@ -118,7 +118,7 @@
"stylelint-value-no-unknown-custom-properties": "6.1.1",
"svgo": "4.0.1",
"typescript": "6.0.3",
"typescript-eslint": "8.61.1",
"typescript-eslint": "8.62.0",
"updates": "17.18.0",
"vitest": "4.1.9",
"vue-tsc": "3.3.5"
+341 -1015
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -96,7 +96,7 @@
"postUpdateOptions": ["pnpmDedupe"],
"postUpgradeTasks": {
"commands": ["make svg"],
"fileFilters": ["package.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "public/assets/img/svg/**"],
"fileFilters": ["package.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "public/assets/img/svg/**", "options/fileicon/**"],
"executionMode": "branch",
},
},
+1 -1
View File
@@ -45,7 +45,7 @@ function failOnWarningsPlugin(): Rolldown.Plugin {
onLog(level) {
if (level === 'warn') warningCount++;
},
buildEnd() {
closeBundle() {
if (!warningCount) return;
throw new Error(`${warningCount} warnings present`);
},
+5 -10
View File
@@ -1,15 +1,10 @@
import {trN} from './i18n.ts';
import {getCurrentLocale} from '../utils.ts';
vi.mock('../utils.ts', () => ({getCurrentLocale: vi.fn()}));
test('trN', () => {
vi.mocked(getCurrentLocale).mockReturnValue('en-US');
expect(trN(0, '%d job', '%d jobs')).toEqual('0 jobs');
expect(trN(1, '%d job', '%d jobs')).toEqual('1 job');
expect(trN(2, '%d job', '%d jobs')).toEqual('2 jobs');
expect(trN(1000, '%d job', '%d jobs')).toEqual('1000 jobs');
expect(trN(0, '%d job', '%d jobs', {lang: 'en-US'})).toEqual('0 jobs');
expect(trN(1, '%d job', '%d jobs', {lang: 'en-US'})).toEqual('1 job');
expect(trN(2, '%d job', '%d jobs', {lang: 'en-US'})).toEqual('2 jobs');
expect(trN(1000, '%d job', '%d jobs', {lang: 'en-US'})).toEqual('1000 jobs');
// languages without a distinct singular always use the plural form
vi.mocked(getCurrentLocale).mockReturnValue('zh-CN');
expect(trN(1, '%d job', '%d jobs')).toEqual('1 jobs');
expect(trN(1, '%d job', '%d jobs', {lang: 'zh-CN'})).toEqual('1 jobs');
});
+2 -2
View File
@@ -1,7 +1,7 @@
import {getCurrentLocale} from '../utils.ts';
/** frontend `Locale.TrN`: pick the `_1` or `_n` form for `count` and interpolate `%d` */
export function trN(count: number, form1: string, formN: string): string {
const form = new Intl.PluralRules(getCurrentLocale()).select(count) === 'one' ? form1 : formN;
export function trN(count: number, form1: string, formN: string, {lang = getCurrentLocale()}: {lang?: string} = {}): string {
const form = new Intl.PluralRules(lang).select(count) === 'one' ? form1 : formN;
return form.replace('%d', String(count));
}
@@ -1,15 +1,11 @@
import type {FrontendRenderFunc} from '../plugin.ts';
import {initSwaggerUI} from '../swagger.ts';
// HINT: SWAGGER-CSS-IMPORT: this import is also necessary when swagger is used as a frontend external render
// But it can't share the same CSS file with the standalone page: it triggers our Vite manifest parser's bug
// Although single top-level "await import(css)" can work, it requires es2022.
// Otherwise, single function-level "await import(css)" can't work due to Vite's dependency analysis and bundling.
// HINT: SWAGGER-CSS-IMPORT: these styles are for the render only.
import '../../../css/swagger-render.css';
export const frontendRender: FrontendRenderFunc = async (opts): Promise<boolean> => {
try {
await import('../../../css/swagger-render.css');
await initSwaggerUI(opts.container, {specText: opts.contentString()});
return true;
} catch (error) {