From a17a5f1583f6027d852be6601b51fc73f32640f3 Mon Sep 17 00:00:00 2001 From: kaisernarkotic Date: Sun, 17 Nov 2024 01:01:34 -0500 Subject: [PATCH 1/3] mapped download button over selectedData.mcap_files --- .env | 2 +- package-lock.json | 9 +++++---- package.json | 2 +- src/components/PreviewCard.tsx | 11 +++++++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.env b/.env index beafddf..01746eb 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_URL=https://api-url:port \ No newline at end of file +VITE_API_URL=https://data.hytechracing.wiki \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ec0dc22..67fa4ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,7 @@ "storybook": "^8.3.4", "typescript": "^5.5.3", "typescript-eslint": "^8.0.1", - "vite": "^5.4.10" + "vite": "^5.4.11" } }, "node_modules/@adobe/css-tools": { @@ -8704,10 +8704,11 @@ } }, "node_modules/vite": { - "version": "5.4.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.10.tgz", - "integrity": "sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==", + "version": "5.4.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz", + "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==", "dev": true, + "license": "MIT", "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", diff --git a/package.json b/package.json index 2655353..62e8e21 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "storybook": "^8.3.4", "typescript": "^5.5.3", "typescript-eslint": "^8.0.1", - "vite": "^5.4.10" + "vite": "^5.4.11" }, "lint-staged": { "*.{ts,tsx,js,jsx}": [ diff --git a/src/components/PreviewCard.tsx b/src/components/PreviewCard.tsx index 0ca59c1..71a9496 100644 --- a/src/components/PreviewCard.tsx +++ b/src/components/PreviewCard.tsx @@ -104,12 +104,19 @@ function PreviewCard({ selectedData }: PreviewCardProps) { gap: "10px", }} > - ( + + ))} + {/* + />*/} Date: Mon, 18 Nov 2024 00:06:32 -0500 Subject: [PATCH 2/3] mapped over mat files and reverted .env file --- .env | 2 +- src/components/PreviewCard.tsx | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.env b/.env index 01746eb..e43d662 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_URL=https://data.hytechracing.wiki \ No newline at end of file +VITE_API_URL=api-url:port \ No newline at end of file diff --git a/src/components/PreviewCard.tsx b/src/components/PreviewCard.tsx index 71a9496..a17756b 100644 --- a/src/components/PreviewCard.tsx +++ b/src/components/PreviewCard.tsx @@ -111,17 +111,13 @@ function PreviewCard({ selectedData }: PreviewCardProps) { signedUrl={item.signed_url ?? null} /> ))} - {/**/} - + {selectedData.mat_files.map((item) => ( + + ))} ) : ( From 4ac2edd44b756925f5269adfdaaa3f86962de0d3 Mon Sep 17 00:00:00 2001 From: kaisernarkotic Date: Mon, 18 Nov 2024 00:20:21 -0500 Subject: [PATCH 3/3] added to gitignore for future commits --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4a9b1e4..79d67c1 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,8 @@ dist-ssr *.ntvs* *.njsproj *.sln -*.sw? \ No newline at end of file +*.sw? + +.env +.env.local +.env.* \ No newline at end of file