mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-05 14:48:07 +00:00
Update JS dependencies (#37001)
- Update all JS dependencies via `make update-js` - `webpack-cli` 6 to 7: remove `--disable-interpret` from Makefile - Fix lint: remove unnecessary type args, `toThrowError` to `toThrow` - Fix duplicate CSS selector detected by `stylelint` 17.6.0 - Change `updates.config.ts` to use `pin`, needed for `tailwindcss` - Pin `typescript` pending typescript-eslint/typescript-eslint#12123 --------- Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
4
Makefile
4
Makefile
@@ -382,7 +382,7 @@ watch: ## watch everything and continuously rebuild
|
||||
.PHONY: watch-frontend
|
||||
watch-frontend: node_modules ## watch frontend files and continuously rebuild
|
||||
@rm -rf $(WEBPACK_DEST_ENTRIES)
|
||||
NODE_ENV=development $(NODE_VARS) pnpm exec webpack --watch --progress --disable-interpret
|
||||
NODE_ENV=development $(NODE_VARS) pnpm exec webpack --watch --progress
|
||||
|
||||
.PHONY: watch-backend
|
||||
watch-backend: ## watch backend files and continuously rebuild
|
||||
@@ -783,7 +783,7 @@ $(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) pnpm-lock.yaml
|
||||
@$(MAKE) -s node_modules
|
||||
@rm -rf $(WEBPACK_DEST_ENTRIES)
|
||||
@echo "Running webpack..."
|
||||
@BROWSERSLIST_IGNORE_OLD_DATA=true $(NODE_VARS) pnpm exec webpack --disable-interpret
|
||||
@BROWSERSLIST_IGNORE_OLD_DATA=true $(NODE_VARS) pnpm exec webpack
|
||||
@touch $(WEBPACK_DEST)
|
||||
|
||||
.PHONY: svg
|
||||
|
||||
48
package.json
48
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@10.30.3",
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"engines": {
|
||||
"node": ">= 22.6.0",
|
||||
"pnpm": ">= 10.0.0"
|
||||
@@ -14,8 +14,8 @@
|
||||
"@github/paste-markdown": "1.5.3",
|
||||
"@github/text-expander-element": "2.9.4",
|
||||
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
|
||||
"@mermaid-js/layout-elk": "0.2.0",
|
||||
"@primer/octicons": "19.22.0",
|
||||
"@mermaid-js/layout-elk": "0.2.1",
|
||||
"@primer/octicons": "19.23.1",
|
||||
"@resvg/resvg-wasm": "2.6.2",
|
||||
"@silverwind/vue3-calendar-heatmap": "2.1.1",
|
||||
"@techknowlogick/license-checker-webpack-plugin": "0.3.0",
|
||||
@@ -30,7 +30,7 @@
|
||||
"compare-versions": "6.1.1",
|
||||
"cropperjs": "1.6.2",
|
||||
"css-loader": "7.1.4",
|
||||
"dayjs": "1.11.19",
|
||||
"dayjs": "1.11.20",
|
||||
"dropzone": "6.0.0-beta.2",
|
||||
"easymde": "2.20.0",
|
||||
"esbuild-loader": "4.4.2",
|
||||
@@ -38,9 +38,9 @@
|
||||
"idiomorph": "0.7.4",
|
||||
"jquery": "4.0.0",
|
||||
"js-yaml": "4.1.1",
|
||||
"katex": "0.16.37",
|
||||
"mermaid": "11.12.3",
|
||||
"mini-css-extract-plugin": "2.10.0",
|
||||
"katex": "0.16.43",
|
||||
"mermaid": "11.13.0",
|
||||
"mini-css-extract-plugin": "2.10.2",
|
||||
"monaco-editor": "0.55.1",
|
||||
"monaco-editor-webpack-plugin": "7.1.1",
|
||||
"online-3d-viewer": "0.18.0",
|
||||
@@ -49,25 +49,25 @@
|
||||
"postcss": "8.5.8",
|
||||
"postcss-loader": "8.2.1",
|
||||
"sortablejs": "1.15.7",
|
||||
"swagger-ui-dist": "5.32.0",
|
||||
"tailwindcss": "3.4.17",
|
||||
"swagger-ui-dist": "5.32.1",
|
||||
"tailwindcss": "3.4.19",
|
||||
"throttle-debounce": "5.0.2",
|
||||
"tippy.js": "6.3.7",
|
||||
"toastify-js": "1.12.0",
|
||||
"tributejs": "5.1.3",
|
||||
"uint8-to-base64": "0.2.1",
|
||||
"vanilla-colorful": "0.7.2",
|
||||
"vue": "3.5.29",
|
||||
"vue": "3.5.31",
|
||||
"vue-bar-graph": "2.2.0",
|
||||
"vue-chartjs": "5.3.3",
|
||||
"vue-loader": "17.4.2",
|
||||
"webpack": "5.105.4",
|
||||
"webpack-cli": "6.0.1",
|
||||
"webpack-cli": "7.0.2",
|
||||
"wrap-ansi": "10.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
|
||||
"@eslint/json": "1.1.0",
|
||||
"@eslint/json": "1.2.0",
|
||||
"@playwright/test": "1.58.2",
|
||||
"@stylistic/eslint-plugin": "5.10.0",
|
||||
"@stylistic/stylelint-plugin": "5.0.1",
|
||||
@@ -76,16 +76,16 @@
|
||||
"@types/jquery": "4.0.0",
|
||||
"@types/js-yaml": "4.0.9",
|
||||
"@types/katex": "0.16.8",
|
||||
"@types/node": "25.3.5",
|
||||
"@types/node": "25.5.0",
|
||||
"@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.57.1",
|
||||
"@vitejs/plugin-vue": "6.0.4",
|
||||
"@vitest/eslint-plugin": "1.6.12",
|
||||
"eslint": "10.0.3",
|
||||
"@typescript-eslint/parser": "8.57.2",
|
||||
"@vitejs/plugin-vue": "6.0.5",
|
||||
"@vitest/eslint-plugin": "1.6.13",
|
||||
"eslint": "10.1.0",
|
||||
"eslint-import-resolver-typescript": "4.4.4",
|
||||
"eslint-plugin-array-func": "5.1.1",
|
||||
"eslint-plugin-github": "6.0.0",
|
||||
@@ -99,25 +99,25 @@
|
||||
"eslint-plugin-vue-scoped-css": "3.0.0",
|
||||
"eslint-plugin-wc": "3.1.0",
|
||||
"globals": "17.4.0",
|
||||
"happy-dom": "20.8.3",
|
||||
"happy-dom": "20.8.8",
|
||||
"jiti": "2.6.1",
|
||||
"markdownlint-cli": "0.48.0",
|
||||
"material-icon-theme": "5.32.0",
|
||||
"nolyfill": "1.0.44",
|
||||
"postcss-html": "1.8.1",
|
||||
"spectral-cli-bundle": "1.0.7",
|
||||
"stylelint": "17.4.0",
|
||||
"stylelint": "17.6.0",
|
||||
"stylelint-config-recommended": "18.0.0",
|
||||
"stylelint-declaration-block-no-ignored-properties": "3.0.0",
|
||||
"stylelint-declaration-strict-value": "1.11.1",
|
||||
"stylelint-value-no-unknown-custom-properties": "6.1.1",
|
||||
"svgo": "4.0.1",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.57.1",
|
||||
"updates": "17.8.3",
|
||||
"vite-string-plugin": "2.0.1",
|
||||
"vitest": "4.0.18",
|
||||
"vue-tsc": "3.2.5"
|
||||
"typescript-eslint": "8.57.2",
|
||||
"updates": "17.12.0",
|
||||
"vite-string-plugin": "2.0.2",
|
||||
"vitest": "4.1.2",
|
||||
"vue-tsc": "3.2.6"
|
||||
},
|
||||
"pnpm": {
|
||||
"peerDependencyRules": {
|
||||
|
||||
2321
pnpm-lock.yaml
generated
2321
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
1
public/assets/img/svg/octicon-lockup-github.svg
generated
Normal file
1
public/assets/img/svg/octicon-lockup-github.svg
generated
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 16" class="svg octicon-lockup-github" width="16" height="16" aria-hidden="true"><path d="M24.606 2.058c2.796 0 4.485 1.194 5.024 3.204l-2.504.597c-.306-1.092-1.18-1.69-2.52-1.69-1.995 0-3.072 1.311-3.072 3.801s1.048 3.83 3.014 3.83c1.656 0 2.7-.93 2.861-2.534h-3.065V7.17h5.592v1.326c0 3.48-2.024 5.417-5.432 5.417-3.378 0-5.504-2.316-5.504-5.942s2.17-5.912 5.606-5.912m28.554 8.372c0 1.005.45 1.559 1.31 1.559.99 0 1.747-.918 1.747-2.17V5.51h2.316v8.183h-2.316V12.31c-.436.888-1.485 1.529-2.606 1.529-1.791 0-2.767-.99-2.767-2.796V5.509h2.315z"/><path fill-rule="evenodd" d="M62.055 7.01c.471-.99 1.535-1.69 2.607-1.69 2.233 0 3.412 1.544 3.334 4.267.079 2.694-1.145 4.252-3.334 4.252-1.116 0-2.136-.641-2.621-1.558v1.412H59.74V2.277h2.315zm1.791.247c-.955 0-1.713.932-1.79 2.213v.131c.077 1.325.835 2.301 1.79 2.301 1.2 0 1.855-.888 1.777-2.315.078-1.442-.577-2.33-1.777-2.33"/><path d="M33.11 13.693h-2.3V5.51h2.3zm4.636-8.183h1.703v1.922h-1.703v3.713c0 .451.203.626.655.626h1.048v1.922h-1.878c-1.53 0-2.126-.655-2.126-2.039V7.432h-1.456V5.509h1.456V3.88l2.3-.54zm5.15-3.233v4.63h4.34v-4.63h2.475v11.416h-2.476V9.121h-4.34v4.572H40.42V2.277zM31.96 2a1.35 1.35 0 0 1 1.369 1.369 1.35 1.35 0 0 1-1.369 1.369 1.35 1.35 0 0 1-1.369-1.37A1.35 1.35 0 0 1 31.96 2M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"/></svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
2
public/assets/img/svg/octicon-logo-github.svg
generated
2
public/assets/img/svg/octicon-logo-github.svg
generated
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 16" class="svg octicon-logo-github" width="16" height="16" aria-hidden="true"><path d="M10.906 13.298V5.741h2.125v7.557zm6.28 0c-1.412 0-1.963-.605-1.963-1.882v-3.9h-1.345V5.741h1.345V4.235l2.124-.498v2.004h1.574v1.775h-1.574v3.429c0 .417.188.578.605.578h.969v1.775zm14.711.135c-1.654 0-2.555-.915-2.555-2.582v-5.11h2.138v4.545c0 .928.417 1.439 1.211 1.439.914 0 1.613-.847 1.613-2.004v-3.98h2.139v7.557h-2.139v-1.277c-.403.82-1.371 1.412-2.407 1.412m10.126 0c-1.103 0-2.044-.592-2.42-1.439v1.304h-2.125V2.756h2.138v4.37c.363-.915 1.345-1.56 2.407-1.56 1.991 0 3.08 1.425 3.08 3.94 0 2.488-1.13 3.927-3.08 3.927m-.753-1.789c1.036 0 1.641-.82 1.641-2.138 0-1.331-.605-2.151-1.641-2.151-.955 0-1.654.86-1.654 2.044v.121c0 1.223.699 2.124 1.654 2.124M26.075 2.756v4.276h-4.008V2.756h-2.286v10.542h2.286V9.076h4.008v4.222h2.286V2.756zM5.083 13.5C1.963 13.5 0 11.362 0 8.013c0-3.348 2.004-5.459 5.177-5.459 2.582 0 4.142 1.102 4.64 2.958l-2.313.552c-.283-1.009-1.09-1.56-2.327-1.56-1.842 0-2.837 1.21-2.837 3.509s.968 3.537 2.783 3.537c1.668 0 2.663-1.022 2.663-2.757V8.39l.592.82H4.935V7.274h5.164v1.224c0 3.213-1.869 5.002-5.016 5.002m6.885-8.472c.713 0 1.264-.551 1.264-1.264S12.681 2.5 11.968 2.5s-1.264.551-1.264 1.264.551 1.264 1.264 1.264"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 16" class="svg octicon-logo-github" width="16" height="16" aria-hidden="true"><path d="M5.606 2.058c2.796 0 4.485 1.194 5.024 3.204l-2.505.597c-.305-1.092-1.179-1.69-2.519-1.69-1.995 0-3.072 1.311-3.072 3.801s1.048 3.83 3.014 3.83c1.656 0 2.7-.93 2.861-2.534H5.344V7.17h5.592v1.326c0 3.48-2.024 5.417-5.432 5.417C2.126 13.912 0 11.596 0 7.97s2.17-5.912 5.606-5.912m28.554 8.373c0 1.005.45 1.559 1.31 1.559.99 0 1.747-.918 1.747-2.17V5.51h2.316v8.183h-2.316V12.31c-.436.888-1.485 1.529-2.606 1.529-1.791 0-2.767-.99-2.767-2.796V5.509h2.315z"/><path fill-rule="evenodd" d="M43.055 7.01c.471-.99 1.535-1.69 2.607-1.69 2.233 0 3.413 1.544 3.334 4.267.078 2.694-1.145 4.252-3.334 4.252-1.116 0-2.136-.641-2.621-1.558v1.412H40.74V2.277h2.315zm1.791.247c-.955 0-1.713.932-1.79 2.213v.131c.077 1.325.835 2.301 1.79 2.301 1.2 0 1.855-.888 1.777-2.315.078-1.442-.577-2.33-1.777-2.33"/><path d="M14.11 13.693h-2.3V5.51h2.3zm4.636-8.183h1.703v1.922h-1.703v3.713c0 .451.204.626.655.626h1.048v1.922h-1.878c-1.53 0-2.126-.655-2.126-2.039V7.432h-1.456V5.509h1.456V3.88l2.3-.54zm5.15-3.233v4.63h4.34v-4.63h2.475v11.416h-2.476V9.121h-4.34v4.572H21.42V2.277zM12.96 2a1.35 1.35 0 0 1 1.369 1.369 1.35 1.35 0 0 1-1.369 1.369 1.35 1.35 0 0 1-1.369-1.37A1.35 1.35 0 0 1 12.96 2"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
2
public/assets/img/svg/octicon-mark-github.svg
generated
2
public/assets/img/svg/octicon-mark-github.svg
generated
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="svg octicon-mark-github" width="16" height="16" aria-hidden="true"><path d="M6.766 11.695C4.703 11.437 3.25 9.904 3.25 7.92c0-.806.281-1.677.75-2.258-.203-.532-.172-1.662.062-2.129.626-.081 1.469.258 1.969.726.594-.194 1.219-.291 1.985-.291.765 0 1.39.097 1.953.274.484-.451 1.343-.79 1.969-.709.218.435.25 1.564.046 2.113.5.613.766 1.436.766 2.274 0 1.984-1.453 3.485-3.547 3.759.531.355.891 1.129.891 2.016v1.678c0 .484.39.758.859.564C13.781 14.824 16 11.905 16 8.291 16 3.726 12.406 0 7.984 0S0 3.726 0 8.291c0 3.581 2.203 6.55 5.172 7.663A.595.595 0 0 0 6 15.389v-1.291c-.219.097-.5.162-.75.162-1.031 0-1.641-.581-2.078-1.662-.172-.435-.36-.693-.719-.742-.187-.016-.25-.097-.25-.193 0-.194.313-.339.625-.339.453 0 .844.29 1.25.887.313.468.641.678 1.031.678.391 0 .641-.146 1-.516.266-.275.469-.517.657-.678"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="svg octicon-mark-github" width="16" height="16" aria-hidden="true"><path d="M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"/></svg>
|
||||
|
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 873 B |
@@ -1,9 +1,10 @@
|
||||
import type {Config} from 'updates';
|
||||
|
||||
export default {
|
||||
exclude: [
|
||||
'@mcaptcha/vanilla-glue', // breaking changes in rc versions need to be handled
|
||||
'cropperjs', // need to migrate to v2 but v2 is not compatible with v1
|
||||
'tailwindcss', // need to migrate
|
||||
],
|
||||
pin: {
|
||||
'@mcaptcha/vanilla-glue': '^0.1', // breaking changes in rc versions need to be handled
|
||||
'cropperjs': '^1', // need to migrate to v2 but v2 is not compatible with v1
|
||||
'tailwindcss': '^3', // need to migrate
|
||||
'typescript': '^5', // wait on https://github.com/typescript-eslint/typescript-eslint/issues/12123
|
||||
},
|
||||
} satisfies Config;
|
||||
|
||||
@@ -274,6 +274,8 @@ select.ui.dropdown {
|
||||
.ui.selection.active.dropdown {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 6px 18px var(--color-shadow);
|
||||
border-bottom-left-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
}
|
||||
|
||||
.ui.selection.active.dropdown .menu {
|
||||
@@ -311,11 +313,6 @@ select.ui.dropdown {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.ui.active.selection.dropdown {
|
||||
border-bottom-left-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
}
|
||||
|
||||
.ui.active.empty.selection.dropdown {
|
||||
border-radius: 0.28571429rem !important;
|
||||
box-shadow: none !important;
|
||||
|
||||
@@ -129,11 +129,11 @@ function initRepoProjectColumnEdit(writableProjectBoard: Element): void {
|
||||
const textColor = contrastColor(elColumnColor.value);
|
||||
elBoardColumn.style.setProperty('background', elColumnColor.value, 'important');
|
||||
elBoardColumn.style.setProperty('color', textColor, 'important');
|
||||
queryElemChildren<HTMLElement>(elBoardColumn, '.divider', (divider) => divider.style.color = textColor);
|
||||
queryElemChildren(elBoardColumn, '.divider', (divider: HTMLElement) => divider.style.color = textColor);
|
||||
} else {
|
||||
elBoardColumn.style.removeProperty('background');
|
||||
elBoardColumn.style.removeProperty('color');
|
||||
queryElemChildren<HTMLElement>(elBoardColumn, '.divider', (divider) => divider.style.removeProperty('color'));
|
||||
queryElemChildren(elBoardColumn, '.divider', (divider: HTMLElement) => divider.style.removeProperty('color'));
|
||||
}
|
||||
|
||||
fomanticQuery(elModal).modal('hide');
|
||||
|
||||
@@ -114,7 +114,7 @@ test('toAbsoluteUrl', () => {
|
||||
expect(toAbsoluteUrl('')).toEqual('http://localhost:3000');
|
||||
expect(toAbsoluteUrl('/user/repo')).toEqual('http://localhost:3000/user/repo');
|
||||
|
||||
expect(() => toAbsoluteUrl('path')).toThrowError('unsupported');
|
||||
expect(() => toAbsoluteUrl('path')).toThrow('unsupported');
|
||||
});
|
||||
|
||||
test('encodeURLEncodedBase64, decodeURLEncodedBase64', () => {
|
||||
|
||||
@@ -34,7 +34,7 @@ test('querySingleVisibleElem', () => {
|
||||
el = createElementFromHTML('<div><span class="some-class tw-hidden">foo</span><span>bar</span></div>');
|
||||
expect(querySingleVisibleElem(el, 'span')!.textContent).toEqual('bar');
|
||||
el = createElementFromHTML('<div><span>foo</span><span>bar</span></div>');
|
||||
expect(() => querySingleVisibleElem(el, 'span')).toThrowError('Expected exactly one visible element');
|
||||
expect(() => querySingleVisibleElem(el, 'span')).toThrow('Expected exactly one visible element');
|
||||
});
|
||||
|
||||
test('queryElemChildren', () => {
|
||||
|
||||
Reference in New Issue
Block a user