@@ -14,15 +14,13 @@ const modelEditUtils = require('./modelEdit/modelEditUtils');
1414const WktApp = require ( './wktApp' ) ;
1515const osUtils = require ( './osUtils' ) ;
1616const i18n = require ( './i18next.webui.config' ) ;
17- const { compareVersions, getMinorVersionCompatibilityVersionString } = require ( './versionUtils' ) ;
18- const { wlRemoteConsoleFrontendVersion } = require ( '../webui.json' ) ;
17+ const { compareVersions } = require ( './versionUtils' ) ;
1918
2019const wktApp = new WktApp ( ) ;
2120
2221const exeMode = osUtils . getArgv ( '--wktMode' ) ;
2322const language = osUtils . getArgv ( '--lang' ) ;
2423const mainModule = osUtils . getArgv ( '--mainModule' ) ;
25- const wrcFrontendCompatibilityVersion = getMinorVersionCompatibilityVersionString ( wlRemoteConsoleFrontendVersion ) ;
2624
2725i18n . changeLanguage ( language ) . then ( ) ;
2826
@@ -56,7 +54,6 @@ contextBridge.exposeInMainWorld(
5654 'project-created' ,
5755 'project-opened' ,
5856 'project-saved' ,
59- 'set-wrc-backend-port' ,
6057 'start-add-model-file' ,
6158 'start-add-variable-file' ,
6259 'start-add-archive-file' ,
@@ -105,7 +102,6 @@ contextBridge.exposeInMainWorld(
105102 'get-https-proxy-url' ,
106103 'get-bypass-proxy-hosts' ,
107104 'get-divider-locations' ,
108- 'get-show-new-model-editor-tab' ,
109105 'get-navigation-collapsed' ,
110106 'get-additional-image-build-commands-file' ,
111107 'get-additional-image-build-files' ,
@@ -124,7 +120,6 @@ contextBridge.exposeInMainWorld(
124120 'get-latest-wko-version-number' ,
125121 'get-wko-release-versions' ,
126122 'get-archive-entry-types' ,
127- 'wrc-get-archive-entry' ,
128123 'get-network-settings' ,
129124 'choose-archive-file' ,
130125 'choose-archive-entry-file' ,
@@ -215,10 +210,6 @@ contextBridge.exposeInMainWorld(
215210 'openssl-generate-certs' ,
216211 'validate-k8s-namespaces-exist' ,
217212 'validate-wko-domain-exist' ,
218- 'get-wrc-home-directory' ,
219- 'get-wrc-app-image' ,
220- 'wrc-get-home-default-value' ,
221- 'wrc-set-home-and-start' ,
222213 'get-alias-info' , // model edit
223214 'get-model-edit-message-keys' , // model edit
224215 'get-external-tools-staging-directory-location'
@@ -243,10 +234,6 @@ contextBridge.exposeInMainWorld(
243234 joinAndConvertToUnixPath : ( ...paths ) => path . join ( ...paths ) . replaceAll ( '\\' , '/' ) ,
244235 delimiter : path . delimiter ,
245236 isValidFileName : ( fileName ) => fsUtils . isValidFileName ( fileName ) ,
246- // These three functions are used by wrc-jet-pack
247- exists : ( filePath ) => fsUtils . exists ( filePath ) ,
248- isFile : ( filePath ) => fsUtils . isFile ( filePath ) ,
249- isDirectory : ( filePath ) => fsUtils . isDirectory ( filePath )
250237 } ,
251238 'k8s' : {
252239 getDockerFilePath : ( ) => fsUtils . getExecutableFilePath ( 'docker' , exeMode ) ,
@@ -283,8 +270,7 @@ contextBridge.exposeInMainWorld(
283270 generateUuid : ( ) => uuid . v4 ( ) ,
284271 compareVersions : ( version , otherVersion ) => compareVersions ( version , otherVersion ) ,
285272 getErrorMessage : ( err ) => errorUtils . getErrorMessage ( err ) ,
286- mainModule : mainModule ,
287- wrcFrontendCompatibilityVersion : wrcFrontendCompatibilityVersion ,
273+ mainModule : mainModule
288274 }
289275 }
290276) ;
0 commit comments