@@ -8,54 +8,57 @@ class App extends Component {
88 super ( ) ; 
99
1010 this . state  =  { frameworks : 
11-  [ { 
12-  name :'TensorFlow' , 
13-  details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
14-  img : "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Tensorflow_logo.svg/115px-Tensorflow_logo.svg.png" , 
15-  image : "acmuiuc/tensorflow" 
16-  } , 
17-  { 
18-  name :'Caffe2' , 
19-  details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
20-  img : "https://caffe2.ai/static/logo.svg" , 
21-  image : "registry.gitlab.com/acm-uiuc/gpu-cluster-images:caffe2" 
22-  } , 
23-  { 
24-  name :'PyTorch' , 
25-  details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
26-  img : "http://pytorch.org/static/img/pytorch-logo-dark.svg" , 
27-  image : "acmuiuc/pytorch" 
28-  } , 
29-  { 
30-  name :'Keras' , 
31-  details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
32-  img : "https://upload.wikimedia.org/wikipedia/commons/c/c9/Keras_Logo.jpg" , 
33-  image : "acmuiuc/keras" 
34-  } , 
35-  { 
36-  name :'NVIDIA Digits' , 
37-  details : "Ubuntu 16.04 - In Browser GUI" , 
38-  img : "https://www.scan.co.uk/images/3xs/infopages/nvidia-digits.png" , 
39-  image : "nvidia/digits" 
40-  } , 
41-  { 
42-  name :'Caffe' , 
43-  details : "Ubuntu 16.04 - C++ - SSH" , 
44-  img : "http://antmicro.com/images/logos/products-tk-caffe.svg" , 
45-  image : "nvidia/caffe" 
46-  } , 
47-  { 
48-  name :'Dockerfile' , 
49-  details : null , 
50-  img : "https://cdn.worldvectorlogo.com/logos/docker.svg" , 
51-  image : null 
52-  } ] 
53-  } ; 
11+ 		 [ { 
12+ 			 name :'TensorFlow' , 
13+ 			 details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
14+ 			 img : "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Tensorflow_logo.svg/115px-Tensorflow_logo.svg.png" , 
15+ 			 image : "acmuiuc/tensorflow" 
16+ 		 } , 
17+ 		 { 
18+ 			 name :'Caffe2' , 
19+ 			 details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
20+ 			 img : "https://caffe2.ai/static/logo.svg" , 
21+ 			 image : "registry.gitlab.com/acm-uiuc/gpu-cluster-images:caffe2" 
22+ 		 } , 
23+ 		 { 
24+ 			 name :'PyTorch' , 
25+ 			 details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
26+ 			 img : "http://pytorch.org/static/img/pytorch-logo-dark.svg" , 
27+ 			 image : "acmuiuc/pytorch" 
28+ 		 } , 
29+ 		 { 
30+ 			 name :'Keras' , 
31+ 			 details : "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook" , 
32+ 			 img : "https://upload.wikimedia.org/wikipedia/commons/c/c9/Keras_Logo.jpg" , 
33+ 			 image : "acmuiuc/keras" 
34+ 		 } , 
35+ 		 { 
36+ 			 name :'NVIDIA Digits' , 
37+ 			 details : "Ubuntu 16.04 - In Browser GUI" , 
38+ 			 img : "https://www.scan.co.uk/images/3xs/infopages/nvidia-digits.png" , 
39+ 			 image : "nvidia/digits" 
40+ 		 } , 
41+ 		 { 
42+ 			 name :'Caffe' , 
43+ 			 details : "Ubuntu 16.04 - C++ - SSH" , 
44+ 			 img : "http://antmicro.com/images/logos/products-tk-caffe.svg" , 
45+ 			 image : "nvidia/caffe" 
46+ 		 } , 
47+ 		 { 
48+ 			 name :'Dockerfile' , 
49+ 			 details : null , 
50+ 			 img : "https://cdn.worldvectorlogo.com/logos/docker.svg" , 
51+ 			 image : null 
52+ 		 } ] , 
53+ 		 disableButton : false 
54+ 		 } ; 
55+ 5456 this . click  =  this . click . bind ( this ) ; 
5557 } 
5658
5759
5860 click ( f )  { 
61+ 	this . setState ( { framework :this . state . framework ,  disableButton :true } ) 
5962	fetch ( 'http://vault.acm.illinois.edu:5656/create_container' ,  { 
6063	 method : 'POST' , 
6164	 headers : { 
@@ -70,10 +73,11 @@ class App extends Component {
7073 } 
7174
7275 render ( )  { 
73-  return  ( 
76+ 	console . log ( this . state . disableButton ) ; 
77+ 	return  ( 
7478 < div  className = "GPU-CLUSTER-FRONTEND" > 
7579 < Nav />  
76-  < Frameworks  frameworks = { this . state . frameworks }  handler = { this . click } /> 
80+  < Frameworks  disabled = { this . state . disableButton } frameworks = { this . state . frameworks }  handler = { this . click } /> 
7781 </ div > 
7882 ) ; 
7983 } 
0 commit comments