diff --git a/src/GZCTF/ClientApp/package.json b/src/GZCTF/ClientApp/package.json index aad8861c2..ddbd47e9f 100644 --- a/src/GZCTF/ClientApp/package.json +++ b/src/GZCTF/ClientApp/package.json @@ -61,12 +61,12 @@ "form-data": "~4.0.0", "lodash": "^4.17.21", "prettier": "~2.8.8", - "rollup": "^3.23.0", + "rollup": "^3.23.1", "swagger-typescript-api": "^12.0.4", "tslib": "^2.5.3", "typescript": "5.1.3", "vite": "^4.3.9", - "vite-plugin-pages": "^0.30.1", + "vite-plugin-pages": "^0.31.0", "vite-plugin-prismjs": "^0.0.8", "vite-plugin-webfont-dl": "^3.7.4" } diff --git a/src/GZCTF/ClientApp/pnpm-lock.yaml b/src/GZCTF/ClientApp/pnpm-lock.yaml index 96f72db12..b1f81a96d 100644 --- a/src/GZCTF/ClientApp/pnpm-lock.yaml +++ b/src/GZCTF/ClientApp/pnpm-lock.yaml @@ -155,8 +155,8 @@ devDependencies: specifier: ~2.8.8 version: 2.8.8 rollup: - specifier: ^3.23.0 - version: 3.23.0 + specifier: ^3.23.1 + version: 3.23.1 swagger-typescript-api: specifier: ^12.0.4 version: 12.0.4 @@ -170,8 +170,8 @@ devDependencies: specifier: ^4.3.9 version: 4.3.9(@types/node@20.2.5) vite-plugin-pages: - specifier: ^0.30.1 - version: 0.30.1(vite@4.3.9) + specifier: ^0.31.0 + version: 0.31.0(vite@4.3.9) vite-plugin-prismjs: specifier: ^0.0.8 version: 0.0.8(prismjs@1.29.0) @@ -3381,8 +3381,8 @@ packages: dependencies: glob: 7.2.3 - /rollup@3.23.0: - resolution: {integrity: sha512-h31UlwEi7FHihLe1zbk+3Q7z1k/84rb9BSwmBSr/XjOCEaBJ2YyedQDuM0t/kfOS0IxM+vk1/zI9XxYj9V+NJQ==} + /rollup@3.23.1: + resolution: {integrity: sha512-ybRdFVHOoljGEFILHLd2g/qateqUdjE6YS41WXq4p3C/WwD3xtWxV4FYWETA1u9TeXQc5K8L8zHE5d/scOvrOQ==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: @@ -3850,8 +3850,8 @@ packages: dev: false optional: true - /vite-plugin-pages@0.30.1(vite@4.3.9): - resolution: {integrity: sha512-PHneaWBKA4MaUn0/KTBG+dGT+5V5VhTnOnMCE+HJmixxEkFj7PrgSVGFJjWvgHUflrRE7p2O67iC5cIWLzPDyQ==} + /vite-plugin-pages@0.31.0(vite@4.3.9): + resolution: {integrity: sha512-fw3onBfVTXQI7rOzAbSZhmfwvk50+3qNnGZpERjmD93c8nEjrGLyd53eFXYMxcJV4KA1vzi4qIHt2+6tS4dEMw==} peerDependencies: '@vue/compiler-sfc': ^2.7.0 || ^3.0.0 vite: ^2.0.0 || ^3.0.0-0 || ^4.0.0 @@ -3868,7 +3868,7 @@ packages: local-pkg: 0.4.3 picocolors: 1.0.0 vite: 4.3.9(@types/node@20.2.5) - yaml: 2.2.2 + yaml: 2.3.1 transitivePeerDependencies: - supports-color dev: true @@ -3943,7 +3943,7 @@ packages: '@types/node': 20.2.5 esbuild: 0.17.19 postcss: 8.4.24 - rollup: 3.23.0 + rollup: 3.23.1 optionalDependencies: fsevents: 2.3.2 @@ -4051,8 +4051,8 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} - /yaml@2.2.2: - resolution: {integrity: sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==} + /yaml@2.3.1: + resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==} engines: {node: '>= 14'} dev: true diff --git a/src/GZCTF/ClientApp/src/components/admin/BloodBonusModel.tsx b/src/GZCTF/ClientApp/src/components/admin/BloodBonusModel.tsx index 21eed612e..27469ff57 100644 --- a/src/GZCTF/ClientApp/src/components/admin/BloodBonusModel.tsx +++ b/src/GZCTF/ClientApp/src/components/admin/BloodBonusModel.tsx @@ -59,7 +59,7 @@ const BloodBonusModel: FC = (props) => { max={100} disabled={disabled} value={firstBloodBonus / 10} - onChange={(value) => value && setFirstBloodBonus(Math.floor(value * 10))} + onChange={(value) => typeof value === "number" && setFirstBloodBonus(Math.floor(value * 10))} /> = (props) => { max={100} disabled={disabled} value={secondBloodBonus / 10} - onChange={(value) => value && setSecondBloodBonus(Math.floor(value * 10))} + onChange={(value) => typeof value === "number" && setSecondBloodBonus(Math.floor(value * 10))} /> = (props) => { max={100} disabled={disabled} value={thirdBloodBonus / 10} - onChange={(value) => value && setThirdBloodBonus(Math.floor(value * 10))} + onChange={(value) => typeof value === "number" && setThirdBloodBonus(Math.floor(value * 10))} />