forked from openshift-assisted/assisted-installer-ui
-
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.
MGMT-15159: Extract the assisted-service types into a package (opensh…
…ift-assisted#2246) * Adds @openshift-assisted/types The package provides general type definitions. Including: - assisted-installer-service - accounts-management-service (non-comprehensive) * Cleans up the scripts used to update the API types inside ui-lib * Removes env-cmd * Adds type definitions for the locales package * Removes the file extensions from the import statements * Adds eslint settings for the locales package * Read the version from package.json in non-standalone deployments * Produces a CommonJS build of the ui-lib * Migrates the entire code-base to @openshift-assisted/types - The commit adds a basic client for AMS, used to retrieve the pull-secret. - CI workflow adjusted in order to pick up automatically the workspaces that are meant to be published to NPM. - Release docs updated as well * Docs updates * Introduces the tools workspace The tools workspace is meant to hold packages that are used for the internal maintenance of the monorepo * Introduces `watch` and `start` as top-level scripts The projects has 2 modes of development, watch-mode and through the stand-alone UI. The commit simplifies starting the main workflows. Scripts prefixed with _* are internal. All the rest can be used for something useful within our workflows. Additionally, the types for the Assisted Installer service can be updated by running `yarn update:assisted-installer-service`. * Separates the declarations from the JSON files in the locales library +tidy up the ESLint configuration file * Adds no-debugger to ESLint rules. * Do not build:all in cy:dev:open script * Fixes the ocm-client not being initialized correctly It was being initialized when the `HostsClusterDetailsTabMock` was first rendered instead of being rendered when the module was evaluated for the first time (as a transitive import) * Removes the getOcmClient function from axiosClient.ts * Simplifies the AMS (mini) client * Adds a top-level test:open:dev script * Allows the integration tests code to control when the `setAuthInterceptor` should be called. * Fixes duplicated identifiers after rebasing * More docs updates and adds check_types scripts for locales and types
- Loading branch information
Showing
307 changed files
with
1,359 additions
and
8,258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
.idea | ||
apps/*/build | ||
libs/*/build | ||
libs/*/@types | ||
tools/*/build | ||
libs/ui-lib-tests/cypress/fixtures/*/files |
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,13 +1,15 @@ | ||
<h1 align="center"> | ||
The Assisted Installer User Interface | ||
Assisted Installer User Interface | ||
</h1> | ||
|
||
## Documentation | ||
|
||
- [How to contribute](docs/CONTRIBUTING.md) | ||
- [Contributing](docs/CONTRIBUTING.md) | ||
- [Development](docs/DEVELOPMENT.md) | ||
- [I18N documentation](docs/I18N.md) | ||
- [Release process](docs/RELEASE_WORKFLOW.md) | ||
|
||
## License | ||
|
||
This project is [Apache 2.0](LICENSE) licensed and accepts contributions via GitHub pull requests. | ||
This project is Apache-2.0 licensed, please read the [contributing](docs/CONTRIBUTING.md) section | ||
for more details. |
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,7 @@ | ||
declare module 'global-augmentations' { | ||
global { | ||
interface Window { | ||
__app__: { OCM: typeof import('@openshift-assisted/ui-lib/ocm') }; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.