File tree Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,18 @@ const NavBar = (props) => {
173
173
>
174
174
ReacType
175
175
</ Typography >
176
+ < Link to = "/tutorial" style = { { textDecoration : 'none' } } >
177
+ < Button
178
+ variant = "contained"
179
+ color = "secondary"
180
+ style = { { minWidth : '137.69px' } }
181
+ onClick = { clearWorkspace }
182
+ className = "navbarButton"
183
+ id = "navbarButton"
184
+ >
185
+ Tutorial
186
+ </ Button >
187
+ </ Link >
176
188
{ /* ==================================Dashboard Button================================================== */ }
177
189
{ state . isLoggedIn ? (
178
190
< Link to = "/dashboard" style = { { textDecoration : 'none' } } >
Original file line number Diff line number Diff line change 14
14
margin : 0 ;
15
15
padding : 0 ;
16
16
font-family : 'Roboto' , 'Raleway' , sans-serif;
17
- font-size : 0.8 em;
17
+ font-size : 0.9 em;
18
18
font-weight : 400 ;
19
19
overflow : hidden;
20
20
}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { makeStyles } from '@material-ui/core/styles' ;
3
3
import Card from '@material-ui/core/Card' ;
4
+ import CardContent from '@mui/material/CardContent' ;
4
5
import CardActions from '@material-ui/core/CardActions' ;
5
6
import Typography from '@material-ui/core/Typography' ;
6
7
import Container from '@material-ui/core/Container' ;
Original file line number Diff line number Diff line change 162
162
"js-cookie" : " ^3.0.1" ,
163
163
"localforage" : " ^1.10.0" ,
164
164
"lodash" : " ^4.17.21" ,
165
+ "mongoose" : " ^5.9.22" ,
165
166
"node-fetch" : " ^2.6.1" ,
166
167
"passport" : " ^0.6.0" ,
167
168
"passport-github2" : " ^0.1.12" ,
228
229
"jest-environment-jsdom" : " ^28.1.3" ,
229
230
"mini-css-extract-plugin" : " ^0.9.0" ,
230
231
"mongodb" : " ^3.5.9" ,
231
- "mongoose" : " ^5.9.22 " ,
232
+
232
233
"node-sass" : " ^7.0.1" ,
233
234
"nodemon" : " ^2.0.19" ,
234
235
"react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change @@ -188,6 +188,17 @@ app.delete(
188
188
( req , res ) => res . status ( 200 ) . json ( res . locals . deleted )
189
189
) ;
190
190
191
+
192
+ //if in production mode, statically serve everything in the build folder on the route '/dist'
193
+ if ( process . env . NODE_ENV == 'production' ) {
194
+ app . use ( '/dist' , express . static ( path . join ( __dirname , '../dist' ) ) ) ;
195
+
196
+ // serve index.html on the route '/'
197
+ app . get ( '/' , ( req , res ) => {
198
+ return res . status ( 200 ) . sendFile ( path . join ( __dirname , '../index.html' ) ) ;
199
+ } ) ;
200
+ }
201
+
191
202
app . get ( '/' , function ( req , res ) {
192
203
res . send ( 'Houston, Caret is in orbit!' ) ;
193
204
} ) ;
You can’t perform that action at this time.
0 commit comments