From 7b6d6f415aca2bdec7290de16527b4eb2116f76b Mon Sep 17 00:00:00 2001 From: Renat Kalimulin Date: Tue, 17 Dec 2024 12:10:31 +0300 Subject: [PATCH] feat: auth page --- .../main/resources/swagger/kafbat-ui-api.yaml | 3 + frontend/src/components/AuthPage/AuthPage.tsx | 6 +- .../AuthPage/Footer/Footer.styled.tsx | 45 --------- .../src/components/AuthPage/Footer/Footer.tsx | 28 ------ .../SignIn/BasicSignIn/BasicSignIn.styled.tsx | 19 ++++ .../SignIn/BasicSignIn/BasicSignIn.tsx | 91 ++++++++++++++----- .../OAuthSignIn/AuthCard/AuthCard.styled.tsx | 3 +- .../SignIn/OAuthSignIn/AuthCard/AuthCard.tsx | 2 +- .../SignIn/OAuthSignIn/OAuthSignIn.tsx | 6 +- .../AuthPage/SignIn/SignIn.styled.tsx | 1 + .../src/components/AuthPage/SignIn/SignIn.tsx | 14 +-- .../components/NavBar/UserInfo/UserInfo.tsx | 2 +- .../src/components/common/Icons/AlertIcon.tsx | 22 +++++ .../contexts/GlobalSettingsContext.tsx | 9 ++ frontend/src/lib/hooks/api/appConfig.ts | 11 ++- frontend/src/theme/theme.ts | 6 ++ frontend/vite.config.ts | 16 ++++ 17 files changed, 172 insertions(+), 112 deletions(-) delete mode 100644 frontend/src/components/AuthPage/Footer/Footer.styled.tsx delete mode 100644 frontend/src/components/AuthPage/Footer/Footer.tsx create mode 100644 frontend/src/components/common/Icons/AlertIcon.tsx diff --git a/contract/src/main/resources/swagger/kafbat-ui-api.yaml b/contract/src/main/resources/swagger/kafbat-ui-api.yaml index da2d1a765..082989d9f 100644 --- a/contract/src/main/resources/swagger/kafbat-ui-api.yaml +++ b/contract/src/main/resources/swagger/kafbat-ui-api.yaml @@ -2256,7 +2256,10 @@ paths: /auth: post: + tags: + - ApplicationConfig summary: Authenticate + operationId: authenticate requestBody: required: true content: diff --git a/frontend/src/components/AuthPage/AuthPage.tsx b/frontend/src/components/AuthPage/AuthPage.tsx index 9adf7f783..ceae3069a 100644 --- a/frontend/src/components/AuthPage/AuthPage.tsx +++ b/frontend/src/components/AuthPage/AuthPage.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { useAuthSettings } from 'lib/hooks/api/appConfig'; -import Footer from './Footer/Footer'; import Header from './Header/Header'; import SignIn from './SignIn/SignIn'; import * as S from './AuthPage.styled'; @@ -12,8 +11,9 @@ function AuthPage() { return (
- {data && } -