Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 3404a31

Browse files
committed
a
1 parent 4432ca6 commit 3404a31

8 files changed

Lines changed: 3655 additions & 19 deletions

File tree

build/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $adminui = (Get-Item -Path ($src + "/Frontend/Jp.AdminUI") -Verbose).FullName
77

88
$paramsSSO= "/c cd " + $sso + " && dotnet run";
99
$paramsAPI= "/c cd " + $api + " && dotnet run";
10-
$paramsUI= "/c cd " + $ui + " && ng serve";
11-
$paramsAdminUI= "/c cd " + $adminui + " && ng serve";
10+
$paramsUI= "/c cd " + $ui + " && npm start";
11+
$paramsAdminUI= "/c cd " + $adminui + " && npm start";
1212

1313
Write-Information Restore deps
1414
dotnet restore $sso

src/Frontend/Jp.AdminUI/src/app/core/menu/menu.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,7 @@ const ApiResource = {
5656
const PersistedGrants = {
5757
text: "Persisted Grants",
5858
link: "/persisted-grants",
59-
icon: "fas fa-key",
60-
submenu: [
61-
{
62-
text: "List",
63-
link: "/persisted-grants/list"
64-
},
65-
{
66-
text: "Add",
67-
link: "/persisted-grants/add"
68-
}
69-
]
59+
icon: "fas fa-key"
7060
};
7161

7262
const headingMain = {

src/Frontend/Jp.AdminUI/src/app/panel/persisted-grants/list/persisted-grants-list.component.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<tbody>
2727
<tr *ngFor="let grant of persistedGrants">
2828
<th>
29-
<a [routerLink]="['/persisted-grants/edit', grant.name]" class="btn btn-primary btn-xs"
30-
placement="top" [tooltip]="'general.edit' | translate"><i class="fa fa-edit"></i></a>
29+
<button class="btn btn-primary btn-xs" (click)="details(grant.key)" placement="top" [tooltip]="'general.details' | translate"><i class="fa fa-info"></i></button>
3130
&nbsp;
3231
</th>
3332
<td>{{grant.clientId}}</td>
@@ -43,6 +42,16 @@
4342
</div>
4443
</div>
4544
</div>
45+
<div class="col-xl-12 col-md-12 col-lg-12" *ngIf="grantDetail">
46+
<div class="card">
47+
48+
<div class="card-body">
49+
<div class="table-responsive">
50+
<pre>{{grantDetail | json}}</pre>
51+
</div>
52+
</div>
53+
</div>
54+
</div>
4655

4756

4857
</div>

src/Frontend/Jp.AdminUI/src/app/panel/persisted-grants/list/persisted-grants-list.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const swal = require('sweetalert');
1414
export class PersistedGrantListComponent implements OnInit {
1515

1616
public persistedGrants: PersistedGrant[];
17+
grantDetail: PersistedGrant;
1718

1819
constructor(
1920
public translator: TranslatorService,
@@ -60,7 +61,9 @@ export class PersistedGrantListComponent implements OnInit {
6061
}
6162
});
6263
});
64+
}
6365

64-
66+
public details(id: string) {
67+
this.grantDetail = this.persistedGrants.find(f => f.key == id);
6568
}
6669
}

src/Frontend/Jp.AdminUI/src/assets/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
"api-resource": "Protected Resources",
293293
"persisted-grants": "Persisted Grants",
294294
"users": "Users",
295-
"roles": "Roles"
295+
"roles": "Roles",
296+
"details":"Details"
296297
}
297298
}

src/Frontend/Jp.UI.SSO/jpProject_sso_log.txt

Lines changed: 3633 additions & 0 deletions
Large diffs are not rendered by default.

src/Frontend/Jp.UserManagement/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Frontend/Jp.UserManagement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "MIT",
1414
"scripts": {
1515
"ng": "ng",
16-
"start": "ng serve",
16+
"start": "ng serve --port 4200",
1717
"build": "ng build --prod",
1818
"test": "ng test",
1919
"lint": "ng lint",

0 commit comments

Comments
 (0)