@@ -45,7 +45,7 @@ const generateMockWorkspace = (
45
45
} ;
46
46
} ;
47
47
} ;
48
- activity : { last_activity : number ; last_update : number } ;
48
+ activity : { lastActivity : number ; lastUpdate : number } ;
49
49
services : { httpService : { displayName : string ; httpPath : string } } [ ] ;
50
50
} => {
51
51
const currentTime = Date . now ( ) ;
@@ -109,8 +109,8 @@ const generateMockWorkspace = (
109
109
} ,
110
110
} ,
111
111
activity : {
112
- last_activity : lastActivityTime ,
113
- last_update : lastUpdateTime ,
112
+ lastActivity : lastActivityTime ,
113
+ lastUpdate : lastUpdateTime ,
114
114
} ,
115
115
services : [
116
116
{
@@ -126,14 +126,14 @@ const generateMockWorkspace = (
126
126
const generateMockWorkspaces = ( numWorkspaces : number , byNamespace = false ) => {
127
127
const mockWorkspaces = [ ] ;
128
128
const podConfigs = [
129
- { id : 'small-cpu' , display_name : 'Small CPU' } ,
130
- { id : 'medium-cpu' , display_name : 'Medium CPU' } ,
131
- { id : 'large-cpu' , display_name : 'Large CPU' } ,
129
+ { id : 'small-cpu' , displayName : 'Small CPU' } ,
130
+ { id : 'medium-cpu' , displayName : 'Medium CPU' } ,
131
+ { id : 'large-cpu' , displayName : 'Large CPU' } ,
132
132
] ;
133
133
const imageConfigs = [
134
- { id : 'jupyterlab_scipy_180' , display_name : 'JupyterLab SciPy 1.8.0' } ,
135
- { id : 'jupyterlab_tensorflow_230' , display_name : 'JupyterLab TensorFlow 2.3.0' } ,
136
- { id : 'jupyterlab_pytorch_120' , display_name : 'JupyterLab PyTorch 1.2.0' } ,
134
+ { id : 'jupyterlab_scipy_180' , displayName : 'JupyterLab SciPy 1.8.0' } ,
135
+ { id : 'jupyterlab_tensorflow_230' , displayName : 'JupyterLab TensorFlow 2.3.0' } ,
136
+ { id : 'jupyterlab_pytorch_120' , displayName : 'JupyterLab PyTorch 1.2.0' } ,
137
137
] ;
138
138
const namespaces = byNamespace ? [ 'kubeflow' ] : [ 'kubeflow' , 'system' , 'user-example' , 'default' ] ;
139
139
@@ -159,9 +159,9 @@ const generateMockWorkspaces = (numWorkspaces: number, byNamespace = false) => {
159
159
state ,
160
160
paused ,
161
161
imageConfig . id ,
162
- imageConfig . display_name ,
162
+ imageConfig . displayName ,
163
163
podConfig . id ,
164
- podConfig . display_name ,
164
+ podConfig . displayName ,
165
165
pvcName ,
166
166
) ,
167
167
) ;
0 commit comments