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) {
17
17
18
18
const openTutorial = ( ) => {
19
19
const tutorial = new BrowserWindow ( {
20
- width : 800 ,
20
+ width : 1126 ,
21
21
height : 900 ,
22
22
minWidth : 661 ,
23
23
title : 'Tutorial' ,
@@ -31,10 +31,9 @@ var MenuBuilder = function(mainWindow, appName) {
31
31
devTools : false
32
32
}
33
33
} ) ;
34
- console . log ( process . env . NODE_ENV ) ;
35
34
if ( process . env . NODE_ENV === 'development' ) {
36
35
tutorial . loadURL ( `http://localhost:8080/#/tutorial` ) ; }
37
- else {
36
+ else if ( process . env . NODE_ENV === 'production' ) {
38
37
tutorial . loadURL ( `${ Protocol . scheme } ://rse/index-prod.html#/tutorial` ) ;
39
38
}
40
39
tutorial . show ( ) ;
Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ const reducer = (state: State, action: Action) => {
457
457
case 'DELETE PAGE' : {
458
458
const id : number = state . canvasFocus . componentId ;
459
459
const name : string = state . components [ id - 1 ] . name ;
460
+
460
461
const components : Component [ ] = deleteById ( id , name ) ;
461
462
462
463
// rebuild rootComponents with correct page IDs
@@ -467,6 +468,7 @@ const reducer = (state: State, action: Action) => {
467
468
case 'DELETE REUSABLE COMPONENT' : {
468
469
const id : number = state . canvasFocus . componentId ;
469
470
const name : string = state . components [ id - 1 ] . name ;
471
+
470
472
// updated list of components after deleting a component
471
473
const components : Component [ ] = deleteById ( id , name ) ;
472
474
const rootComponents : number [ ] = updateRoots ( components ) ;
@@ -605,7 +607,6 @@ const reducer = (state: State, action: Action) => {
605
607
state . HTMLTypes
606
608
) ;
607
609
} )
608
-
609
610
return {
610
611
...state ,
611
612
HTMLTypes,
Original file line number Diff line number Diff line change 32
32
"postinstall" : " ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true electron-builder install-app-deps" ,
33
33
"dev-server" : " cross-env NODE_ENV=development webpack-dev-server --config ./webpack.development.js" ,
34
34
"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" ,
35
36
"prod-build" : " cross-env NODE_ENV=production npx webpack --mode=production --config ./webpack.production.js" ,
36
37
"prod" : " npm run prod-build && electron ." ,
37
38
"pack" : " electron-builder --dir" ,
You can’t perform that action at this time.
0 commit comments