forked from Cumulocity-IoT/cumulocity-node-red
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to angular 17 and websdk 1020 (Cumulocity-IoT#203)
* feat: upgrade to angular 17 and websdk 1020 * upgrade sub packages to 1020 * fix dependencies
- Loading branch information
Showing
8 changed files
with
2,221 additions
and
1,944 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { applyOptions, loadOptions, loginOptions } from '@c8y/bootstrap'; | ||
import { applyOptions, loadOptions } from '@c8y/bootstrap'; | ||
|
||
const barHolder: HTMLElement = document.querySelector('body > .init-load'); | ||
export const removeProgress = () => barHolder && barHolder.parentNode.removeChild(barHolder); | ||
const barHolder: HTMLElement | null = document.querySelector('body > .init-load'); | ||
export const removeProgress = () => barHolder && barHolder.parentNode?.removeChild(barHolder); | ||
|
||
applicationSetup(); | ||
|
||
async function applicationSetup() { | ||
const options = await applyOptions({ | ||
...(await loadOptions()), | ||
...((await loginOptions()) as object) | ||
...(await loadOptions()) | ||
}); | ||
|
||
const mod = await import('./bootstrap'); | ||
const bootstrapApp = mod.bootstrap || (window as any).bootstrap || (() => null); | ||
|
||
return Promise.resolve(bootstrapApp(options)).then(removeProgress); | ||
return Promise.resolve(bootstrapApp()).then(removeProgress); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.