updates to upload, move mock eventsource server into middleware

This commit is contained in:
proddy
2024-08-15 09:59:08 +02:00
parent 5a058746bb
commit 4e640a0abe
8 changed files with 89 additions and 754 deletions

View File

@@ -14,9 +14,7 @@
"build-hosted": "typesafe-i18n --no-watch && vite build --mode hosted",
"preview-standalone": "typesafe-i18n --no-watch && vite build && concurrently -c \"auto\" \"npm:mock-rest\" \"vite preview\"",
"mock-rest": "bun --watch ../mock-api/rest_server.ts",
"mock-es": "bun --watch ../mock-api/es_server.ts",
"mock-upload": "bun --watch ../mock-api/upload_server.ts",
"standalone": "concurrently -c \"auto\" \"typesafe-i18n\" \"npm:mock-rest\" \"npm:mock-es\" \"npm:mock-upload\" \"vite\"",
"standalone": "concurrently -c \"auto\" \"typesafe-i18n\" \"npm:mock-rest\" \"vite\"",
"typesafe-i18n": "typesafe-i18n --no-watch",
"webUI": "node progmem-generator.js",
"format": "prettier -l -w '**/*.{ts,tsx,js,css,json,md}'",
@@ -29,7 +27,7 @@
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@table-library/react-table-library": "4.1.7",
"alova": "3.0.8",
"alova": "3.0.9",
"async-validator": "^4.2.5",
"jwt-decode": "^4.0.0",
"mime-types": "^2.1.35",

View File

@@ -37,8 +37,6 @@ const SingleUpload = () => {
const { LL } = useI18nContext();
console.log(progress); // TODO remove
const handleUploadClick = () => {
inputRef.current?.click();
};
@@ -96,6 +94,7 @@ const SingleUpload = () => {
</Box>
<Button
sx={{ ml: 2 }}
startIcon={<CancelIcon />}
variant="outlined"
color="secondary"

View File

@@ -20,11 +20,6 @@ export default defineConfig(({ command, mode }) => {
changeOrigin: true,
secure: false
},
'/es': {
target: 'http://localhost:3081',
changeOrigin: true,
secure: false
},
'/rest': 'http://localhost:3080'
}
}

View File

@@ -1681,7 +1681,7 @@ __metadata:
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
"@types/react-router-dom": "npm:^5.3.3"
alova: "npm:3.0.8"
alova: "npm:3.0.9"
async-validator: "npm:^4.2.5"
concurrently: "npm:^8.2.2"
eslint: "npm:^9.9.0"
@@ -1763,13 +1763,13 @@ __metadata:
languageName: node
linkType: hard
"alova@npm:3.0.8":
version: 3.0.8
resolution: "alova@npm:3.0.8"
"alova@npm:3.0.9":
version: 3.0.9
resolution: "alova@npm:3.0.9"
dependencies:
"@alova/shared": "npm:^1.0.4"
rate-limiter-flexible: "npm:^5.0.3"
checksum: 10c0/7244b0e611153a01ae36a3076a54df2165c9f7a7e44b83378e1d60cd079879b5786f5abfd213cb4ebb9c7a1cc7d763de193d49e21465c2cec9c9cb9912dec9f9
checksum: 10c0/df4cf0e513e10cf12d0af37c3b4f04bd81c5f1681073335c23d8d6d32f7d08aaba88822c7ff99f862ef55a959f336c9f26d14bb7dde051b2add813cc9a6ffdad
languageName: node
linkType: hard