diff --git a/front/src/App.tsx b/front/src/App.tsx
index efb8056..39f3e9c 100644
--- a/front/src/App.tsx
+++ b/front/src/App.tsx
@@ -26,6 +26,7 @@ import { USERS, USERS_COLLECTION } from '@/service/session';
import { hashLocalData } from '@/utils/sso';
import { Toaster } from './components/ui/toaster';
import { systemTheme } from './theme/theme';
+import { CloseButton } from './components/ui/close-button';
const AppEnvHint = () => {
const dialog = useDisclosure();
@@ -88,11 +89,6 @@ const AppEnvHint = () => {
Outils développeurs
-
-
-
User
@@ -111,7 +107,7 @@ const AppEnvHint = () => {
-
+
diff --git a/front/src/components/AudioPlayer.tsx b/front/src/components/AudioPlayer.tsx
index 404daa7..10ea173 100644
--- a/front/src/components/AudioPlayer.tsx
+++ b/front/src/components/AudioPlayer.tsx
@@ -2,12 +2,8 @@ import { SyntheticEvent, useEffect, useRef, useState } from 'react';
import {
Box,
- Button,
Flex,
IconButton,
- Slider,
- SliderRoot,
- SliderThumb,
SliderTrack,
Text,
} from '@chakra-ui/react';
@@ -35,6 +31,7 @@ import { DataUrlAccess } from '@/utils/data-url-access';
import { useColorModeValue } from '@/components/ui/color-mode';
import { isNullOrUndefined } from '@/utils/validator';
import { Icon } from './Icon';
+import { Slider } from './ui/slider';
export enum PlayMode {
PLAY_ONE,
@@ -44,10 +41,10 @@ export enum PlayMode {
}
const playModeIcon = {
- [PlayMode.PLAY_ONE]: ,
- [PlayMode.PLAY_ALL]: ,
- [PlayMode.PLAY_ONE_LOOP]: ,
- [PlayMode.PLAY_ALL_LOOP]: ,
+ [PlayMode.PLAY_ONE]: ,
+ [PlayMode.PLAY_ALL]: ,
+ [PlayMode.PLAY_ONE_LOOP]: ,
+ [PlayMode.PLAY_ALL_LOOP]: ,
};
export type AudioPlayerProps = {};
@@ -89,9 +86,8 @@ export const AudioPlayer = ({ }: AudioPlayerProps) => {
const backColor = useColorModeValue('back.100', 'back.800');
const configButton = {
borderRadius: 'full',
- backgroundColor: '#00000000',
+ backgroundColor: 'transparent',
_hover: {
- boxShadow: 'outline-over',
bgColor: 'brand.500',
},
width: "50px",
@@ -209,6 +205,14 @@ export const AudioPlayer = ({ }: AudioPlayerProps) => {
const onChangeStateToPause = () => {
setIsPlaying(false);
};
+ const marks = () => {
+ const minutes = Math.floor(duration / 60);
+ const result: number[] = [];
+ for (let i = 1; i <= minutes; i++) {
+ result.push(60 * i);
+ }
+ return result;
+ }
return (
<>
{!isNullOrUndefined(trackOffset) && (
@@ -253,20 +257,21 @@ export const AudioPlayer = ({ }: AudioPlayerProps) => {
{dataGender && ` / ${dataGender.name}`}
- onSeek(e.value)}
variant="outline"
- // focusThumbOnChange={false}
+ colorPalette="brand"
+ marks={marks()}
+ //focusCapture={false}
>
-
- {/* */}
+
-
+
{
{...configButton}
aria-label={'Play'}
onClick={onPlay}
+ variant="ghost"
>
{isPlaying ? (
-
+
) : (
-
+
)}
+ variant="ghost"
+ >
+ variant="ghost"
+ >
+ variant="ghost"
+ >
{playModeIcon[playingMode]}
diff --git a/front/src/components/Icon.tsx b/front/src/components/Icon.tsx
index 8937957..196e654 100644
--- a/front/src/components/Icon.tsx
+++ b/front/src/components/Icon.tsx
@@ -29,6 +29,7 @@ export const Icon = forwardRef(
minWidth="100%"
height="100%"
color={color}
+ asChild
>
{IconEl}
diff --git a/front/src/components/Layout/PageLayoutInfoCenter.tsx b/front/src/components/Layout/PageLayoutInfoCenter.tsx
index 7c5983c..e0f518e 100644
--- a/front/src/components/Layout/PageLayoutInfoCenter.tsx
+++ b/front/src/components/Layout/PageLayoutInfoCenter.tsx
@@ -4,7 +4,7 @@ import { Flex, FlexProps } from '@chakra-ui/react';
import { useLocation } from 'react-router-dom';
import { PageLayout } from '@/components/Layout/PageLayout';
-import { colors } from '@/theme/foundations/colors';
+import { colors } from '@/theme/colors';
import { useColorModeValue } from '@/components/ui/color-mode';
export type LayoutProps = FlexProps & {
diff --git a/front/src/components/TopBar/TopBar.tsx b/front/src/components/TopBar/TopBar.tsx
index 91a392b..ee1f032 100644
--- a/front/src/components/TopBar/TopBar.tsx
+++ b/front/src/components/TopBar/TopBar.tsx
@@ -7,10 +7,14 @@ import {
IconButton,
Text,
useDisclosure,
+ Button,
+ ConditionalValue,
+ Span,
} from '@chakra-ui/react';
import {
LuAlignJustify,
LuArrowBigLeft,
+ LuKeySquare,
LuLogIn,
LuLogOut,
LuMoon,
@@ -21,8 +25,8 @@ import { useNavigate } from 'react-router-dom';
import { useServiceContext } from '@/service/ServiceContext';
import { SessionState } from '@/service/SessionState';
-import { colors } from '@/theme/foundations/colors';
-import { requestSignIn, requestSignOut, requestSignUp } from '@/utils/sso';
+import { colors } from '@/theme/colors';
+import { requestOpenSite, requestSignIn, requestSignOut, requestSignUp } from '@/utils/sso';
import { useSessionService } from '@/service/session';
import { MdHelp, MdHome, MdMore, MdOutlinePlaylistPlay, MdOutlineUploadFile, MdSupervisedUserCircle } from 'react-icons/md';
import { MenuContent, MenuItem, MenuRoot, MenuTrigger } from '@/components/ui/menu';
@@ -33,17 +37,12 @@ import {
DrawerHeader,
DrawerRoot,
} from '@/components/ui/drawer';
-import { Button } from '../ui/themed';
export const TOP_BAR_HEIGHT = '50px';
export const BUTTON_TOP_BAR_PROPERTY = {
- bg: 'back.100',
- color: 'brand.900',
- borderRadius: 0,
- border: 0,
- _hover: { background: 'back.300' },
- _focus: { border: 'none' },
+ variant: "ghost" as ConditionalValue<"ghost" | "outline" | "solid" | "subtle" | "surface" | "plain" | undefined>,
+ //colorPalette: "brand",
fontSize: '20px',
textTransform: 'uppercase',
height: TOP_BAR_HEIGHT,
@@ -77,6 +76,9 @@ export const TopBar = ({ title, children }: TopBarProps) => {
clearToken();
requestSignOut();
};
+ const onKarso = (): void => {
+ requestOpenSite();
+ };
const onSelectAdd = () => {
navigate('/add');
};
@@ -108,10 +110,12 @@ export const TopBar = ({ title, children }: TopBarProps) => {
zIndex={200}
>
{title && (
{
textTransform="uppercase"
marginRight="auto"
userSelect="none"
+ color="brand.500"
>
{title}
@@ -128,7 +133,7 @@ export const TopBar = ({ title, children }: TopBarProps) => {
{session?.state !== SessionState.CONNECTED && (
<>
-