advence on oneclic playlist

This commit is contained in:
MathieuG-P
2022-12-20 15:57:26 +01:00
parent 58faea04a3
commit 7e10d28d28
13 changed files with 112 additions and 23 deletions
+7 -2
View File
@@ -6,15 +6,20 @@ import Launcher from './windows/Launcher';
import 'tailwindcss/tailwind.css';
import './index.css'
import OneClickDownloadMap from './windows/OneClick/OneClickDownloadMap';
import OneClickDownloadPlaylist from './windows/OneClick/OneClickDownloadPlaylist';
const launcherContainer = document.getElementById('launcher');
const oneclickDownloadMapContainer = document.getElementById('oneclick-download-map');
const oneclickDownloadPlaylistContainer = document.getElementById('oneclick-download-playlist');
if(!!launcherContainer){
createRoot(launcherContainer).render(<Launcher/>)
createRoot(launcherContainer).render(<Launcher/>);
}
else if(!!oneclickDownloadMapContainer){
createRoot(oneclickDownloadMapContainer).render(<OneClickDownloadMap/>)
createRoot(oneclickDownloadMapContainer).render(<OneClickDownloadMap/>);
}
else if(!!oneclickDownloadPlaylistContainer){
createRoot(oneclickDownloadPlaylistContainer).render(<OneClickDownloadPlaylist/>);
}
else{
const root = document.getElementById('root');
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://use.typekit.net/okr8ven.css">
<meta charset="utf-8" />
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline'"
/>
</head>
<body>
<div id="oneclick-download-playlist"></div>
</body>
</html>
@@ -19,7 +19,6 @@ export default function OneClickDownloadMap() {
const mapsDownloader = MapsDownloaderService.getInstance();
const themeService = ThemeService.getInstance();
const progressBar = ProgressBarService.getInstance();
const windows = WindowManagerService.getInstance();
const [mapInfo, setMapInfo] = useState<BsvMapDetail>(null);
@@ -0,0 +1,5 @@
export default function OneClickDownloadPlaylist() {
return (
<div>OneClickDownloadPlaylist</div>
)
}