mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
changed all extensions from js to jsx added proxies in vite config set up chunk for smaller distribution size remove setupProxy remove reportWebVitals
62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
|
|
|
|
import './css/library/libraries.css';
|
|
|
|
|
|
|
|
|
|
// import LibraryOverView from './components/libraryOverview';
|
|
// import HomeStatisticCards from './components/HomeStatisticCards';
|
|
// import Sessions from './components/sessions/sessions';
|
|
import LibrarySelector from './library_selector';
|
|
|
|
|
|
|
|
function Testing() {
|
|
|
|
|
|
|
|
|
|
// async function getToken(username,password) {
|
|
// const response = await fetch('http://localhost:3003/login', {
|
|
// method: 'POST',
|
|
// headers: {
|
|
// 'Content-Type': 'application/json',
|
|
// },
|
|
// body: JSON.stringify({
|
|
// username: username,
|
|
// password: password,
|
|
// }),
|
|
// });
|
|
|
|
// const data = await response.json();
|
|
// return data.token;
|
|
// }
|
|
|
|
// // Make a GET request with JWT authentication
|
|
// async function getDataWithAuth() {
|
|
// try {
|
|
// const token = await getToken('test','pass'); // a function to get the JWT token
|
|
// // console.log(token);
|
|
// localStorage.setItem('token', token);
|
|
// } catch (error) {
|
|
// console.error(error);
|
|
// }
|
|
// }
|
|
// getDataWithAuth();
|
|
|
|
|
|
|
|
return (
|
|
<div className='Activity'>
|
|
|
|
<LibrarySelector/>
|
|
|
|
</div>
|
|
|
|
);
|
|
}
|
|
|
|
export default Testing;
|