forked from Mirrors/gomuks
web: update react-spinners and stop using --legacy-peer-deps
This commit is contained in:
parent
803505385a
commit
92c5e86689
6 changed files with 11 additions and 12 deletions
2
.github/workflows/js.yml
vendored
2
.github/workflows/js.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --include=dev --legacy-peer-deps
|
run: npm ci --include=dev
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
|
@ -20,7 +20,7 @@ frontend:
|
||||||
- web/node_modules
|
- web/node_modules
|
||||||
script:
|
script:
|
||||||
- cd web
|
- cd web
|
||||||
- npm install --legacy-peer-deps --include=dev
|
- npm install --include=dev
|
||||||
- npm run build
|
- npm run build
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -370,8 +370,7 @@ tasks:
|
||||||
- sh: npm version
|
- sh: npm version
|
||||||
msg: "Looks like npm isn't installed. Npm is part of the Node installer: https://nodejs.org/en/download/"
|
msg: "Looks like npm isn't installed. Npm is part of the Node installer: https://nodejs.org/en/download/"
|
||||||
cmds:
|
cmds:
|
||||||
# - npm install --silent --no-progress
|
- npm install --silent --no-progress
|
||||||
- npm install --legacy-peer-deps
|
|
||||||
|
|
||||||
build:frontend:
|
build:frontend:
|
||||||
summary: Build the frontend project
|
summary: Build the frontend project
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"embed"
|
"embed"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate npm install --legacy-peer-deps
|
//go:generate npm install
|
||||||
//go:generate npm run build
|
//go:generate npm run build
|
||||||
//go:embed dist
|
//go:embed dist
|
||||||
var Frontend embed.FS
|
var Frontend embed.FS
|
||||||
|
|
12
web/package-lock.json
generated
12
web/package-lock.json
generated
|
@ -17,7 +17,7 @@
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-blurhash": "^0.3.0",
|
"react-blurhash": "^0.3.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"react-spinners": "^0.14.1",
|
"react-spinners": "^0.15.0",
|
||||||
"unhomoglyph": "^1.0.6"
|
"unhomoglyph": "^1.0.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -4722,13 +4722,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-spinners": {
|
"node_modules/react-spinners": {
|
||||||
"version": "0.14.1",
|
"version": "0.15.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-spinners/-/react-spinners-0.14.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-spinners/-/react-spinners-0.15.0.tgz",
|
||||||
"integrity": "sha512-2Izq+qgQ08HTofCVEdcAQCXFEYfqTDdfeDQJeo/HHQiQJD4imOicNLhkfN2eh1NYEWVOX4D9ok2lhuDB0z3Aag==",
|
"integrity": "sha512-ZO3/fNB9Qc+kgpG3SfdlMnvTX6LtLmTnOogb3W6sXIaU/kZ1ydEViPfZ06kSOaEsor58C/tzXw2wROGQu3X2pA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/reflect.getprototypeof": {
|
"node_modules/reflect.getprototypeof": {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-blurhash": "^0.3.0",
|
"react-blurhash": "^0.3.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"react-spinners": "^0.14.1",
|
"react-spinners": "^0.15.0",
|
||||||
"unhomoglyph": "^1.0.6"
|
"unhomoglyph": "^1.0.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue