diff --git a/packages/frontend/src/pages/Configuration.tsx b/packages/frontend/src/pages/Configuration.tsx index 51df143..46cef30 100644 --- a/packages/frontend/src/pages/Configuration.tsx +++ b/packages/frontend/src/pages/Configuration.tsx @@ -1,9 +1,35 @@ -import { Box, Heading, VStack, Text, Button, OrderedList, ListItem, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalBody, ModalFooter, useToast, IconButton, Flex } from "@chakra-ui/react"; +import { + Box, + Heading, + VStack, + Text, + Button, + OrderedList, + ListItem, + useDisclosure, + Modal, + ModalOverlay, + ModalContent, + ModalHeader, + ModalBody, + ModalFooter, + useToast, + IconButton, + Flex, + Tabs, + TabList, + TabPanels, + Tab, + TabPanel, + Icon, + HStack, +} from "@chakra-ui/react"; import { ChevronLeftIcon } from "@chakra-ui/icons"; +import { FiDatabase, FiSettings } from 'react-icons/fi'; import { useNavigate } from "react-router-dom"; import { useXmlParser } from "../hooks/useXmlParser"; - import { StyledFileInput } from "../components/StyledFileInput"; +import { S3Configuration } from "./S3Configuration"; import { api } from "../services/api"; export function Configuration() { @@ -57,7 +83,7 @@ export function Configuration() { }, }} > - + } @@ -70,51 +96,74 @@ export function Configuration() { Configuration - - Library Management - - - - - To get started with Rekordbox Reader, you'll need to export your library from Rekordbox and import it here. - - - - - Open Rekordbox and go to File → Export Collection in xml format - - - Choose a location to save your XML file - - - Click the button below to import your Rekordbox XML file - - - + + + + + + Library Management + + + + + + S3 Configuration + + + - - Import Library - - - + + {/* Library Management Tab */} + + + + + To get started with Rekordbox Reader, you'll need to export your library from Rekordbox and import it here. + + + + + Open Rekordbox and go to File → Export Collection in xml format + + + Choose a location to save your XML file + + + Click the button below to import your Rekordbox XML file + + + + + Import Library + + - - Reset Database - - Clear all songs and playlists from the database. This action cannot be undone. - - - - - + + Reset Database + + Clear all songs and playlists from the database. This action cannot be undone. + + + + + + + {/* S3 Configuration Tab */} + + + + + + + {/* Reset Database Confirmation Modal */} diff --git a/packages/frontend/src/pages/MusicStorage.tsx b/packages/frontend/src/pages/MusicStorage.tsx index 8eedb49..32c22b3 100644 --- a/packages/frontend/src/pages/MusicStorage.tsx +++ b/packages/frontend/src/pages/MusicStorage.tsx @@ -25,7 +25,6 @@ import { import { FiPlay, FiTrash2, FiMusic, FiRefreshCw } from 'react-icons/fi'; import { MusicUpload } from '../components/MusicUpload'; import { SongMatching } from '../components/SongMatching'; -import { S3Configuration } from './S3Configuration'; import { useMusicPlayer } from '../contexts/MusicPlayerContext'; import type { Song } from '../types/interfaces'; @@ -241,9 +240,6 @@ export const MusicStorage: React.FC = () => { Song Matching - - S3 Configuration - @@ -382,11 +378,6 @@ export const MusicStorage: React.FC = () => { - - {/* S3 Configuration Tab */} - - -