Skip to content

Commit

Permalink
Add more debug and remove defaulted appDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
iyannsch committed Aug 28, 2024
1 parent 274e76c commit 22f051a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node/landing-page/public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ window.theiaCloudConfig = {
appName: 'Theia Blueprint',
useKeycloak: false,
serviceUrl: 'http://localhost:8081/service',
appDefinition: 'theia-cloud-demo',
//appDefinition: 'theia-cloud-demo',
useEphemeralStorage: true
// additionalApps: [
// {
Expand Down
22 changes: 17 additions & 5 deletions node/landing-page/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ function App(): JSX.Element {
setError('Invalid default selection value: ' + pathBlueprintSelection);
console.error('Invalid default selection value: ' + pathBlueprintSelection);
}
console.log('App initialization complete');
console.log('Selected app definition: ' + selectedAppDefinition);
console.log('Selected app name: ' + selectedAppName);
console.log('Configured app definition: ' + config.appDefinition);
console.log('Initial app definition: ' + initialAppDefinition);
}
if (config.useKeycloak) {
keycloakConfig = {
Expand Down Expand Up @@ -118,9 +113,26 @@ function App(): JSX.Element {
} else {
console.log('Decided not to auto-start the session');
}
} else {
console.log('App already initialized');
console.log('Selected app definition: ' + selectedAppDefinition);
console.log('Selected app name: ' + selectedAppName);
console.log('Configured app definition: ' + config.appDefinition);
console.log('Initial app definition: ' + initialAppDefinition);
console.log('-----------------------------------');
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
console.log('App init changed');
console.log('Selected app definition: ' + selectedAppDefinition);
console.log('Selected app name: ' + selectedAppName);
console.log('Configured app definition: ' + config.appDefinition);
console.log('Initial app definition: ' + initialAppDefinition);
console.log('-----------------------------------');
}, [initialized]);

/* eslint-enable react-hooks/rules-of-hooks */

document.title = `${selectedAppName} - Theia`;
Expand Down

0 comments on commit 22f051a

Please sign in to comment.