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 1515 "start:ee" : " REACT_APP_EDITION=enterprise yarn workspace lowcoder start" ,
1616 "translate" : " node --loader ts-node/esm ./scripts/translate.js" ,
1717 "build" : " yarn node ./scripts/build.js" ,
18+ "build:view" : " REACT_APP_VIEW_MODE=view yarn workspace lowcoder build" ,
1819 "test" : " jest && yarn workspace lowcoder-comps test" ,
1920 "prepare" : " yarn workspace lowcoder prepare" ,
2021 "build:core" : " yarn workspace lowcoder-core build" ,
Original file line number Diff line number Diff line change 2929 },
3030 "scripts" : {
3131 "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"
3334 },
3435 "devDependencies" : {
3536 "@rollup/plugin-commonjs" : " ^22.0.2" ,
Original file line number Diff line number Diff line change 11export 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" ;
33export const getLanguage = ( ) : string => {
44 return localStorage . getItem ( 'lowcoder_uiLanguage' ) || 'en' ;
55}
You can’t perform that action at this time.
0 commit comments