From ad8cbddd91222bfd4c655046b6e1143822fb070c Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 16 Aug 2023 18:41:40 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20chore(frontend):=20add=20moment?= =?UTF-8?q?=20package=20as=20a=20dependency=20to=20handle=20date=20and=20t?= =?UTF-8?q?ime=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 fix(headerComponent): add onClick event handler to navigate to "/account/api-keys" when button is clicked 🐛 fix(API): add missing API functions for getting, creating, and deleting API keys 🐛 fix(SecretKeyModal): add functionality to create a new API key and set the value in the input field 🔧 fix(ApiKeysPage): remove unused imports and refactor code to improve readability and performance ✨ feat(ApiKeysPage): add support for fetching and displaying API keys for the logged-in user 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables 🔧 fix(ApiKeysPage): refactor code to improve readability and remove unnecessary functions and variables --- src/frontend/package-lock.json | 9 + src/frontend/package.json | 1 + .../src/components/headerComponent/index.tsx | 6 +- src/frontend/src/controllers/API/index.ts | 38 +++ .../src/modals/SecretKeyModal/index.tsx | 16 +- src/frontend/src/pages/ApiKeysPage/index.tsx | 223 +++++------------- src/frontend/src/types/components/index.ts | 2 - 7 files changed, 120 insertions(+), 175 deletions(-) diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json index d28f74b68..f8a799722 100644 --- a/src/frontend/package-lock.json +++ b/src/frontend/package-lock.json @@ -45,6 +45,7 @@ "esbuild": "^0.17.18", "lodash": "^4.17.21", "lucide-react": "^0.233.0", + "moment": "^2.29.4", "react": "^18.2.0", "react-ace": "^10.1.0", "react-cookie": "^4.1.1", @@ -7726,6 +7727,14 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "engines": { + "node": "*" + } + }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", diff --git a/src/frontend/package.json b/src/frontend/package.json index b4afc7999..ae5eb38de 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -40,6 +40,7 @@ "esbuild": "^0.17.18", "lodash": "^4.17.21", "lucide-react": "^0.233.0", + "moment": "^2.29.4", "react": "^18.2.0", "react-ace": "^10.1.0", "react-cookie": "^4.1.1", diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 274b4bdc3..33e3a56d8 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -146,7 +146,11 @@ export default function Header() { /> -