-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add apps in whiteboard (#994)
* feat(web): add app Countdown - feat(renderer-app): add app Countdown * feat(web): add app GeoGebra - feat(renderer-app): add app GeoGebra * feat(web): add app IframeBridge * style(style): padding app buttons
- Loading branch information
Showing
10 changed files
with
116 additions
and
8 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
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
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,15 +1,36 @@ | ||
import { WindowManager } from "@netless/window-manager"; | ||
|
||
const registerApps = async (): Promise<void> => { | ||
await WindowManager.register({ | ||
const registerApps = (): void => { | ||
void WindowManager.register({ | ||
kind: "Monaco", | ||
src: async () => { | ||
const app = await import("@netless/app-monaco"); | ||
return app.default ?? app; | ||
}, | ||
}); | ||
void WindowManager.register({ | ||
kind: "Countdown", | ||
src: async () => { | ||
const app = await import("@netless/app-countdown"); | ||
return app.default ?? app; | ||
}, | ||
}); | ||
void WindowManager.register({ | ||
kind: "GeoGebra", | ||
src: async () => { | ||
const app = await import("@netless/app-geogebra"); | ||
return app.default ?? app; | ||
}, | ||
}); | ||
void WindowManager.register({ | ||
kind: "IframeBridge", | ||
src: async () => { | ||
const app = await import("@netless/app-iframe-bridge"); | ||
return app.default ?? app; | ||
}, | ||
}); | ||
}; | ||
|
||
export const initRegisterApps = async (): Promise<void> => { | ||
await registerApps(); | ||
export const initRegisterApps = (): void => { | ||
registerApps(); | ||
}; |
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