réarganisation du back en services, mise de depot downloader dans les assets

This commit is contained in:
MathieuG-P
2022-05-15 15:14:02 +02:00
parent 62bc1c0926
commit 16ab71df55
26 changed files with 534 additions and 92 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
import { createRoot } from 'react-dom/client';
import { InitDownloadInfoInterface } from 'main/ipcs/bs-download-ipcs';
import { InitDownloadInfoInterface } from '../main/ipcs/bs-download-ipcs';
import App from './App';
import 'tailwindcss/tailwind.css';
import './index.css'
@@ -8,8 +8,14 @@ const container = document.getElementById('root')!;
const root = createRoot(container);
root.render(<App />);
// setTimeout(() => {
// window.electron.ipcRenderer.sendMessage('bs-download.start', {app: '620980', depot: '620981', manifest: '6222769774084748916', stay: true, username: 'lekilleur618', folder: 'test2', cwd: 'C:\\test'} as InitDownloadInfoInterface);
// }, 5000);
// window.electron.ipcRenderer.on('bs-download.ask-password', () => console.log('omg popup password'));
setTimeout(() => {
window.electron.ipcRenderer.sendMessage('bs-download.start', {app: '620980', depot: '620981', manifest: '6222769774084748916', stay: true, username: 'lekilleur618', folder: 'test2', cwd: 'C:\\test'} as InitDownloadInfoInterface);
window.electron.ipcRenderer.sendMessage('test-launch', null);
}, 5000);
window.electron.ipcRenderer.on('bs-download.ask-password', () => console.log('omg popup password'));