File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 15
15
"start:ee" : " REACT_APP_EDITION=enterprise yarn workspace lowcoder start" ,
16
16
"translate" : " node --loader ts-node/esm ./scripts/translate.js" ,
17
17
"build" : " yarn node ./scripts/build.js" ,
18
+ "build:view" : " REACT_APP_VIEW_MODE=view yarn workspace lowcoder build" ,
18
19
"test" : " jest && yarn workspace lowcoder-comps test" ,
19
20
"prepare" : " yarn workspace lowcoder prepare" ,
20
21
"build:core" : " yarn workspace lowcoder-core build" ,
Original file line number Diff line number Diff line change 29
29
},
30
30
"scripts" : {
31
31
"build" : " NODE_OPTIONS=--max_old_space_size=6442 vite build" ,
32
- "start" : " NODE_OPTIONS=--max_old_space_size=2048 vite"
32
+ "start" : " NODE_OPTIONS=--max_old_space_size=2048 vite" ,
33
+ "build:view" : " REACT_APP_VIEW_MODE=view yarn build"
33
34
},
34
35
"devDependencies" : {
35
36
"@rollup/plugin-commonjs" : " ^22.0.2" ,
Original file line number Diff line number Diff line change 1
1
export const viewMode = ( ) => REACT_APP_VIEW_MODE ;
2
- export const viewModeTriple = ( ) => window . location . href . includes ( "view" ) ? "view" : window . location . href . includes ( "edit" ) ? "edit" : "admin" ;
2
+ export const viewModeTriple = ( ) => viewMode ( ) === "view" ? "view" : window . location . href . includes ( "edit" ) ? "edit" : "admin" ;
3
3
export const getLanguage = ( ) : string => {
4
4
return localStorage . getItem ( 'lowcoder_uiLanguage' ) || 'en' ;
5
5
}
You can’t perform that action at this time.
0 commit comments