-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add router to merge connected and standalone test apps (#964)
* Add @tanstack/react-router * Add layouts * Render README.md in index page * Render tile for eah bim file * Ability to open snapshot. * Add WidgetApi frontstage. * Remove translation string. * Add breadcrumb button * Add blank route * Fix widget-state tests * Fix more tests. * WIP register old stuff * Fix Custom Content frontstage. * Fix tests * Fix MyCustomViewOverlay * Sync frontstageId search param * Update snaps * Do not modify auto-generated routeTree.gen.ts * Reload AppUI routes on enter only. * Add a separate briefcase route for electron * Setup checkpoint route. * Move test-app and providers to test-apps dir * Rename standalone to test-app * Remove connected test app * Rename test-appps to apps * Rename appui-test-providers to test-providers * Handle path changes * Remove variants * Rename env vars * rush change * Fix tests * Fix strict mode * Fix conditional strict mode. * Extract SignInPage * Remove unused getUrlParam * Update CONTRIBUTING.md Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update apps/test-app/.env.template Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update apps/test-app/.env.template Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update README.md * Update README.md * Update apps/test-app/README.md Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update apps/test-app/README.md Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update apps/test-app/README.md Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Update apps/test-providers/README.md Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com> * Fix path * Add back synchronized viewport frontstage. * Add back popout windows frontstage. * Register element stacking frontsage once. * Use web env in npm start * Fix ConditionalStrictMode * rush update * Update backstage snaps * Fix docs. * Fix e2e test * Remove backported change from NextVersion * Use v4 of upload-artifact --------- Co-authored-by: Ignas Kasinskas <138560995+ignas-k@users.noreply.github.com>
- Loading branch information
Showing
261 changed files
with
4,564 additions
and
23,334 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# test-app environment variables | ||
|
||
#------------------------------------- | ||
# Recommended | ||
#------------------------------------- | ||
# Set to directory containing your local `.bim` files. | ||
IMJS_BIM_DIR= | ||
# Application client ID used by the authorization client. Find at developer.bentley.com. | ||
IMJS_APP_CLIENT_ID= | ||
# Application redirect URI used by the authorization client. Find at developer.bentley.com. | ||
IMJS_APP_REDIRECT_URI= | ||
# Application scopes used by the authorization client. Find at developer.bentley.com. | ||
IMJS_APP_SCOPE= | ||
# Access token for the `MapboxImagery` used in the map layer options. | ||
IMJS_MAPBOX_KEY= | ||
# Key for the `BingMaps`used in the map layer options. | ||
IMJS_BING_MAPS_KEY= | ||
# The API key supplying access to Cesium ION assets. Used by the `IModelApp.tileAdmin`. | ||
IMJS_CESIUM_ION_KEY= | ||
|
||
#------------------------------------- | ||
# Optional | ||
#------------------------------------- | ||
# ID (in form "0x1a8") of the view to display. If not specified a default view ID is located and used. | ||
IMJS_IMODEL_VIEWID= | ||
# If defined, do not open the electron dev tools on startup. | ||
IMJS_ELECTRON_NO_DEV_TOOLS= | ||
# Used to toggle the environments. | ||
IMJS_URL_PREFIX= |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# AppUI Test App | ||
|
||
## About this Application | ||
|
||
The application contained within this directory provides a test environment for developers working on a react based AppUI functionality of iTwin.js and allow to access both local `.bim` files and remote iModels from the iTwin Hub. It is **not** intended to serve as an example or template for the design of "real" iTwin.js applications. | ||
|
||
## Getting Started | ||
|
||
The application may be run as an Electron app or within a browser. The following steps outline the procedure for successfully building the application as part of a larger monorepo, and then starting the application via npm scripts. | ||
|
||
1. To get started, follow the instructions to setup the entire repository, located [here](../../README.md#build-instructions). | ||
2. Optionally, set other environment variables to configure the application prior to startup. The full list of supported variables is [below](#environment-variables). | ||
3. There are two ways to start the application: | ||
|
||
- In a browser: | ||
|
||
```cmd | ||
cd apps/test-app | ||
npm start | ||
``` | ||
|
||
- In Electron: | ||
|
||
```cmd | ||
cd apps/test-app | ||
npm run electron | ||
``` | ||
|
||
## Environment Variables | ||
|
||
You can set environment variables to alter the default behavior of various aspects of the application. To set the environment variables create a `.env` file in the `apps/test-app` directory. For a full list of variables see the [.env.template](.env.template) file. | ||
|
||
### URL parameters | ||
|
||
_Optionally_ used to load an application in a specific configuration: | ||
|
||
- `strict` - allows disabling of `React.StrictMode` if `0` is specified, i.e. <http://localhost:3000/?strict=0>. | ||
- `menu` - allows disabling the rendering of menus if `0` is specified, i.e. <http://localhost:3000/?menu=0>. | ||
- `frontstageId` - opens a frontstage by specified frontstage id, uses a blank connection, i.e. <http://localhost:3000/blank?frontstageId=widget-api>. | ||
|
||
Preview features: | ||
|
||
- `reparentPopoutWidgets` - overrides if the preview feature is enabled: `0` | `1`, i.e. <http://localhost:3000/?reparentPopoutWidgets=1>. |
File renamed without changes.
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.