From 4caec9a54a203f3b42f58608f8d6b2beee56c3da Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 23 Mar 2025 14:11:30 +0100 Subject: [PATCH] [FEAT] review the loggin model to be satble and efficient with user interactions Signed-off-by: Edouard DUPIN --- .../src/org/kar/karusic/WebLauncherLocal.java | 1 + front/src/components/AudioPlayer.tsx | 16 +- front/src/components/TopBar/TopBar.tsx | 125 ++++++----- front/src/scene/AppRoutes.tsx | 2 +- front/src/scene/sso/SSOPage.tsx | 130 ++++++----- front/src/service/Album.ts | 6 +- front/src/service/Artist.ts | 4 +- front/src/service/Gender.ts | 4 +- front/src/service/ServiceContext.tsx | 25 ++- front/src/service/SessionState.ts | 7 - front/src/service/Track.ts | 6 +- front/src/service/session.ts | 202 ++++++++++++------ front/src/utils/http.ts | 10 - front/src/utils/sso.ts | 38 ++-- 14 files changed, 357 insertions(+), 219 deletions(-) delete mode 100644 front/src/service/SessionState.ts delete mode 100644 front/src/utils/http.ts diff --git a/back/src/org/kar/karusic/WebLauncherLocal.java b/back/src/org/kar/karusic/WebLauncherLocal.java index 41804e3..ca5ec7f 100755 --- a/back/src/org/kar/karusic/WebLauncherLocal.java +++ b/back/src/org/kar/karusic/WebLauncherLocal.java @@ -35,6 +35,7 @@ public class WebLauncherLocal extends WebLauncher { ConfigBaseVariable.dbPort = "3906"; ConfigBaseVariable.testMode = "true"; } + // Test fail of SSO: ConfigBaseVariable.ssoAdress = null; try { super.migrateDB(); } catch (final Exception e) { diff --git a/front/src/components/AudioPlayer.tsx b/front/src/components/AudioPlayer.tsx index f488b48..0e24af7 100644 --- a/front/src/components/AudioPlayer.tsx +++ b/front/src/components/AudioPlayer.tsx @@ -1,6 +1,13 @@ import { useEffect, useRef, useState } from 'react'; -import { Box, Flex, IconButton, SliderTrack, Text } from '@chakra-ui/react'; +import { + Box, + Flex, + IconButton, + SliderTrack, + Text, + chakra, +} from '@chakra-ui/react'; import { MdFastForward, MdFastRewind, @@ -223,6 +230,7 @@ export const AudioPlayer = ({}: AudioPlayerProps) => { paddingX="10px" marginX="15px" bottom={0} + //top="calc(100% - 150px)" left={0} right={0} zIndex={1000} @@ -318,7 +326,9 @@ export const AudioPlayer = ({}: AudioPlayerProps) => { marginLeft="auto" variant="ghost" > - {' '} + {' '} { )} -