@@ -26,7 +26,7 @@ function setIntervalXTimes(
2626 callback ,
2727 notSuccessful ,
2828 delay ,
29- repetitions
29+ repetitions ,
3030) {
3131 var x = 0 ;
3232 var intervalID = window . setInterval ( async function ( ) {
@@ -88,7 +88,7 @@ function InstallStep({ children = <></>, thisStep, title, activeStep }) {
8888
8989function InstallStepper ( { setServer } ) {
9090 const [ activeStep , setActiveStep ] = useState (
91- Steps . indexOf ( 'CHECK_IF_INSTALLED' )
91+ Steps . indexOf ( 'CHECK_IF_INSTALLED' ) ,
9292 ) ; // 0, 1, 2
9393
9494 const [ userRequestedInstall , setUserRequestedInstall ] = useState ( false ) ;
@@ -155,7 +155,7 @@ function InstallStepper({ setServer }) {
155155 throw new Error ( setupMessage ) ;
156156 }
157157 return window . electron . ipcRenderer . invoke (
158- 'server:checkIfInstalledLocally'
158+ 'server:checkIfInstalledLocally' ,
159159 ) ;
160160 } )
161161 . then ( ( serverIsInstalled ) => {
@@ -185,15 +185,15 @@ function InstallStepper({ setServer }) {
185185 logStep ( activeStep ) ;
186186 ( async ( ) => {
187187 const ver = await window . electron . ipcRenderer . invoke (
188- 'server:checkLocalVersion'
188+ 'server:checkLocalVersion' ,
189189 ) ;
190190 setVersion ( ver ) ;
191191
192192 let json = { } ;
193193
194194 try {
195195 const rel = await fetch (
196- 'https://api.github.com/repos/transformerlab/transformerlab-api/releases/latest'
196+ 'https://api.github.com/repos/transformerlab/transformerlab-api/releases/latest' ,
197197 ) ;
198198 json = await rel . json ( ) ;
199199 } catch {
@@ -225,7 +225,7 @@ function InstallStepper({ setServer }) {
225225
226226 ( async ( ) => {
227227 const condaExists = await window . electron . ipcRenderer . invoke (
228- 'server:checkIfCondaExists'
228+ 'server:checkIfCondaExists' ,
229229 ) ;
230230 if ( condaExists ) {
231231 setInstallStatus ( 'success' ) ;
@@ -250,7 +250,7 @@ function InstallStepper({ setServer }) {
250250 ( async ( ) => {
251251 setInstallStatus ( 'pending' ) ;
252252 const condaExists = await window . electron . ipcRenderer . invoke (
253- 'server:checkIfCondaEnvironmentExists'
253+ 'server:checkIfCondaEnvironmentExists' ,
254254 ) ;
255255 console . log ( JSON . stringify ( condaExists ) ) ;
256256 if ( condaExists ?. status == 'success' ) {
@@ -276,13 +276,13 @@ function InstallStepper({ setServer }) {
276276
277277 ( async ( ) => {
278278 const ipcResponse = await window . electron . ipcRenderer . invoke (
279- 'server:checkDependencies'
279+ 'server:checkDependencies' ,
280280 ) ;
281281
282282 if ( ipcResponse ?. status == 'success' && ipcResponse ?. data ?. length == 0 ) {
283283 setInstallStatus ( 'success' ) ;
284284 setActiveStep (
285- Steps . indexOf ( 'CHECK_IF_PYTHON_DEPENDENCIES_INSTALLED' ) + 1
285+ Steps . indexOf ( 'CHECK_IF_PYTHON_DEPENDENCIES_INSTALLED' ) + 1 ,
286286 ) ;
287287 } else {
288288 setInstallStatus ( 'notstarted' ) ;
@@ -314,7 +314,7 @@ function InstallStepper({ setServer }) {
314314
315315 ( async ( ) => {
316316 const p = await fetch (
317- 'http://localhost:8338/plugins/list_missing_plugins_for_current_platform'
317+ 'http://localhost:8338/plugins/list_missing_plugins_for_current_platform' ,
318318 ) ;
319319 const json = await p . json ( ) ;
320320 setMissingPlugins ( json ) ;
@@ -352,7 +352,7 @@ function InstallStepper({ setServer }) {
352352
353353 console . log ( 'Starting Server' ) ;
354354 const start_process = await window . electron . ipcRenderer . invoke (
355- 'server:startLocalServer'
355+ 'server:startLocalServer' ,
356356 ) ;
357357
358358 if ( start_process ?. status == 'error' ) {
@@ -375,7 +375,7 @@ function InstallStepper({ setServer }) {
375375 'API is Installed' ,
376376 async ( ) => {
377377 const serverIsInstalled = await window . electron . ipcRenderer . invoke (
378- 'server:checkIfInstalledLocally'
378+ 'server:checkIfInstalledLocally' ,
379379 ) ;
380380 if ( serverIsInstalled ) {
381381 setInstallStatus ( 'success' ) ;
@@ -394,7 +394,7 @@ function InstallStepper({ setServer }) {
394394 setInstallStatus ( 'error' ) ;
395395 } ,
396396 2000 ,
397- 8
397+ 8 ,
398398 ) ;
399399 }
400400
@@ -405,13 +405,13 @@ function InstallStepper({ setServer }) {
405405 'Server Version is Updated' ,
406406 async ( ) => {
407407 const ver = await window . electron . ipcRenderer . invoke (
408- 'server:checkLocalVersion'
408+ 'server:checkLocalVersion' ,
409409 ) ;
410410
411411 let json = { } ;
412412 try {
413413 const rel = await fetch (
414- 'https://api.github.com/repos/transformerlab/transformerlab-api/releases/latest'
414+ 'https://api.github.com/repos/transformerlab/transformerlab-api/releases/latest' ,
415415 ) ;
416416 json = await rel . json ( ) ;
417417 } catch {
@@ -436,27 +436,27 @@ function InstallStepper({ setServer }) {
436436 setInstallStatus ( 'error' ) ;
437437 } ,
438438 2000 ,
439- 8
439+ 8 ,
440440 ) ;
441441 }
442442
443443 async function checkIfCondaIsInstalled ( ) {
444444 setInstallStatus ( 'pending' ) ;
445445 const installConda = await window . electron . ipcRenderer . invoke (
446- 'server:install_conda'
446+ 'server:install_conda' ,
447447 ) ;
448448 if ( installConda ?. error ) {
449449 setInstallStatus ( 'error' ) ;
450450 setErrorMessage ( installConda ?. stderr ) ;
451451 alert (
452- 'Conda could not be installed. Try running "~/.transformerlab/src/install.sh install_conda" in your terminal. This can sometimes be caused by a file permission error where the ~/.conda directory on your machine is not accessible to your user account.'
452+ 'Conda could not be installed. Try running "~/.transformerlab/src/install.sh install_conda" in your terminal. This can sometimes be caused by a file permission error where the ~/.conda directory on your machine is not accessible to your user account.' ,
453453 ) ;
454454 setThinking ( false ) ;
455455 setActiveStep ( Steps . indexOf ( 'CHECK_IF_INSTALLED' ) ) ;
456456 setUserRequestedInstall ( false ) ;
457457 }
458458 const condaExists = await window . electron . ipcRenderer . invoke (
459- 'server:checkIfCondaExists'
459+ 'server:checkIfCondaExists' ,
460460 ) ;
461461 if ( condaExists ) {
462462 setInstallStatus ( 'success' ) ;
@@ -467,7 +467,7 @@ function InstallStepper({ setServer }) {
467467 'Conda is Installed' ,
468468 async ( ) => {
469469 const condaExists = await window . electron . ipcRenderer . invoke (
470- 'server:checkIfCondaExists'
470+ 'server:checkIfCondaExists' ,
471471 ) ;
472472 if ( condaExists ) {
473473 setInstallStatus ( 'success' ) ;
@@ -480,17 +480,17 @@ function InstallStepper({ setServer }) {
480480 setInstallStatus ( 'error' ) ;
481481 } ,
482482 2000 ,
483- 8
483+ 8 ,
484484 ) ;
485485 }
486486
487487 async function checkIfCondaEnvironmentExists ( ) {
488488 setInstallStatus ( 'pending' ) ;
489489 const installConda = await window . electron . ipcRenderer . invoke (
490- 'server:install_create-conda-environment'
490+ 'server:install_create-conda-environment' ,
491491 ) ;
492492 const condaExists = await window . electron . ipcRenderer . invoke (
493- 'server:checkIfCondaEnvironmentExists'
493+ 'server:checkIfCondaEnvironmentExists' ,
494494 ) ;
495495 if ( condaExists ?. status == 'success' ) {
496496 setInstallStatus ( 'success' ) ;
@@ -513,17 +513,17 @@ function InstallStepper({ setServer }) {
513513 setInstallStatus ( 'pending' ) ;
514514 setDependenciesErrorMessage ( null ) ;
515515 await window . electron . ipcRenderer . invoke (
516- 'server:install_install-dependencies'
516+ 'server:install_install-dependencies' ,
517517 ) ;
518518
519519 const ipcResponse = await window . electron . ipcRenderer . invoke (
520- 'server:checkDependencies'
520+ 'server:checkDependencies' ,
521521 ) ;
522522
523523 if ( ipcResponse ?. status == 'success' && ipcResponse ?. data ?. length == 0 ) {
524524 setInstallStatus ( 'success' ) ;
525525 setActiveStep (
526- Steps . indexOf ( 'CHECK_IF_PYTHON_DEPENDENCIES_INSTALLED' ) + 1
526+ Steps . indexOf ( 'CHECK_IF_PYTHON_DEPENDENCIES_INSTALLED' ) + 1 ,
527527 ) ;
528528 return ;
529529 }
@@ -541,7 +541,7 @@ function InstallStepper({ setServer }) {
541541 async function checkForPlugins ( ) {
542542 setInstallingPlugins ( true ) ;
543543 await fetch (
544- 'http://localhost:8338/plugins/install_missing_plugins_for_current_platform'
544+ 'http://localhost:8338/plugins/install_missing_plugins_for_current_platform' ,
545545 ) ;
546546 setInstallingPlugins ( false ) ;
547547 setMissingPlugins ( [ ] ) ;
@@ -728,7 +728,8 @@ function InstallStepper({ setServer }) {
728728 thisStep = { Steps . indexOf ( 'CHECK_IF_CONDA_INSTALLED' ) }
729729 title = {
730730 < >
731- Check if Conda is Installed at ~/.transformerlab/miniconda3/{ ' ' }
731+ Check if Conda is Installed at
732+ ~/.transformerlab/miniforge3/{ ' ' }
732733 </ >
733734 }
734735 activeStep = { activeStep }
0 commit comments