File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var MenuBuilder = function(mainWindow, appName) {
1717
1818 const openTutorial = ( ) => {
1919 const tutorial = new BrowserWindow ( {
20- width : 800 ,
20+ width : 1126 ,
2121 height : 900 ,
2222 minWidth : 661 ,
2323 title : 'Tutorial' ,
@@ -31,10 +31,9 @@ var MenuBuilder = function(mainWindow, appName) {
3131 devTools : false
3232 }
3333 } ) ;
34- console . log ( process . env . NODE_ENV ) ;
3534 if ( process . env . NODE_ENV === 'development' ) {
3635 tutorial . loadURL ( `http://localhost:8080/#/tutorial` ) ; }
37- else {
36+ else if ( process . env . NODE_ENV === 'production' ) {
3837 tutorial . loadURL ( `${ Protocol . scheme } ://rse/index-prod.html#/tutorial` ) ;
3938 }
4039 tutorial . show ( ) ;
Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ const reducer = (state: State, action: Action) => {
457457 case 'DELETE PAGE' : {
458458 const id : number = state . canvasFocus . componentId ;
459459 const name : string = state . components [ id - 1 ] . name ;
460+
460461 const components : Component [ ] = deleteById ( id , name ) ;
461462
462463 // rebuild rootComponents with correct page IDs
@@ -467,6 +468,7 @@ const reducer = (state: State, action: Action) => {
467468 case 'DELETE REUSABLE COMPONENT' : {
468469 const id : number = state . canvasFocus . componentId ;
469470 const name : string = state . components [ id - 1 ] . name ;
471+
470472 // updated list of components after deleting a component
471473 const components : Component [ ] = deleteById ( id , name ) ;
472474 const rootComponents : number [ ] = updateRoots ( components ) ;
@@ -605,7 +607,6 @@ const reducer = (state: State, action: Action) => {
605607 state . HTMLTypes
606608 ) ;
607609 } )
608-
609610 return {
610611 ...state ,
611612 HTMLTypes,
Original file line number Diff line number Diff line change 3232 "postinstall" : " ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true electron-builder install-app-deps" ,
3333 "dev-server" : " cross-env NODE_ENV=development webpack-dev-server --config ./webpack.development.js" ,
3434 "dev" : " concurrently --success first \" npm run dev-server\" \" cross-env NODE_ENV=development electron .\" \" cross-env NODE_ENV=development npm run server\" -k" ,
35+ "p" : " concurrently --success first \" npm run dev-server\" \" cross-env NODE_ENV=production electron .\" \" cross-env NODE_ENV=production npm run server\" -k" ,
3536 "prod-build" : " cross-env NODE_ENV=production npx webpack --mode=production --config ./webpack.production.js" ,
3637 "prod" : " npm run prod-build && electron ." ,
3738 "pack" : " electron-builder --dir" ,
You can’t perform that action at this time.
0 commit comments