-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated sync from source branch v92 (#83)
Update to v92 GA build --------- Co-authored-by: imx-sync-bot <imx-sync-bot@oneidentity> Co-authored-by: Hanno Bunjes <[email protected]>
- Loading branch information
1 parent
573dc5c
commit 2a760ab
Showing
100 changed files
with
1,073 additions
and
472 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
f441fc015e629f5e8987c3163af6a85af6293484 | ||
d0e5493b4e0f1ce5d3d1a9a84202243999a67791 |
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 +1,41 @@ | ||
Run "npm run build" to compile the SASS file to a CSS file. | ||
# Theming the application | ||
|
||
The HTML5 applications support the integration of **custom themes**. Before proceeding, we recommend that you read the [Angular Material Theming](https://material.angular.io/guide/theming) guide. | ||
|
||
## Compiling a custom theme | ||
|
||
- Change the variables in the file [custom-theme.scss](./custom-theme.scss) as required: | ||
- `$font-family` | ||
- `$primary` | ||
- `$accent` | ||
- `$warn` | ||
- Rename the `.custom-theme` class to your theme's name. (e.g. `.space-theme`) | ||
- In a terminal, change to the `imxweb/custom-theme` folder and run the `npm run build` command | ||
- Take the `custom-theme.css` file and create a .zip file. The naming convention is to use `Html_<ThemeName>.zip` (for example `Html_space-theme.zip`). | ||
- Copy the .zip file to the `imxweb` folder. | ||
- Create a folder inside the `imxweb` folder with the name of your .zip file (e.g. `Html_space-theme`). | ||
- Create a `imx-theme-config.json` file inside in this folder. Use this text as a content template, filling in the correct values for your theme. | ||
- `Name`: a unique name and identifier of the theme | ||
- `DisplayName`: a user friendly name for display purposes | ||
- `Class`: the CSS class identifier which is used for theming (e.g. `eui-light-theme` in default) | ||
- `Urls`: a list of all relevant files for this theme (also pictures, icons or other resources which are referenced if required) | ||
|
||
``` json | ||
{ | ||
"Themes": [ | ||
{ | ||
"Name": "space-theme", | ||
"Display Name": "Space Theme", | ||
"Class": "space-theme", | ||
"Urls": [ | ||
"../space-theme/custom-theme.css" | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
- Upload the .zip file and the `imx-theme-config.json` file with Software Loader like you would with an Angular plugin. | ||
- Restart your API server. | ||
- Login to Web Portal > Click on your username > Select "User Interface Settings" > Change the application's theme to your custom theme. | ||
|
||
*Note*: Multiple theme definition files are possible. Multiple themes can also be declared inside one theme `imx-theme-config.json` file, however every theme needs to be provided as single .zip file. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
2 changes: 1 addition & 1 deletion
2
imxweb/projects/cpl/src/lib/dashboard-plugin/dashboard-plugin.component.html
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,5 +1,5 @@ | ||
<imx-badge-tile data-imx-identifier="cpl-dashboard--plugin-badge-tile-violations-approvals" | ||
[caption]="'#LDS#Heading Pending Rule Violations' | translate" *ngIf="0 < pendingItems?.OpenNonCompliance" | ||
[caption]="'#LDS#Heading Pending Rule Violations' | translate" *ngIf="isExceptionAdmin && 0 < pendingItems?.OpenNonCompliance" | ||
[value]="pendingItems?.OpenNonCompliance" [identifier]="'cpl-rule-violation-approvals'" | ||
(actionClick)="router.navigate(['compliance', 'rulesviolations', 'approve'])"> | ||
</imx-badge-tile> |
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
51 changes: 51 additions & 0 deletions
51
imxweb/projects/cpl/src/lib/guards/rule-violations-guard.service.ts
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,51 @@ | ||
/* | ||
* ONE IDENTITY LLC. PROPRIETARY INFORMATION | ||
* | ||
* This software is confidential. One Identity, LLC. or one of its affiliates or | ||
* subsidiaries, has supplied this software to you under terms of a | ||
* license agreement, nondisclosure agreement or both. | ||
* | ||
* You may not copy, disclose, or use this software except in accordance with | ||
* those terms. | ||
* | ||
* | ||
* Copyright 2023 One Identity LLC. | ||
* ALL RIGHTS RESERVED. | ||
* | ||
* ONE IDENTITY LLC. MAKES NO REPRESENTATIONS OR | ||
* WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, | ||
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE, OR | ||
* NON-INFRINGEMENT. ONE IDENTITY LLC. SHALL NOT BE | ||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE | ||
* AS A RESULT OF USING, MODIFYING OR DISTRIBUTING | ||
* THIS SOFTWARE OR ITS DERIVATIVES. | ||
* | ||
*/ | ||
|
||
import { Injectable } from '@angular/core'; | ||
import { CanActivate, Router } from '@angular/router'; | ||
|
||
import { AppConfigService } from 'qbm'; | ||
import { CplPermissionsService } from '../rules/admin/cpl-permissions.service'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class RuleViolationsGuardService implements CanActivate { | ||
constructor( | ||
private readonly permissionService: CplPermissionsService, | ||
private readonly appConfig: AppConfigService, | ||
private readonly router: Router | ||
) { } | ||
|
||
public async canActivate(): Promise<boolean> { | ||
const isExceptionAdmin = await this.permissionService.isExceptionAdmin(); | ||
if (!isExceptionAdmin) { | ||
this.router.navigate([this.appConfig.Config.routeConfig.start], { queryParams: {} }); | ||
return false; | ||
} | ||
return isExceptionAdmin; | ||
} | ||
} |
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.