Skip to content

Commit 44c57a5

Browse files
authored
Merge pull request colinin#164 from colinin/4.0
Deal with some problems
2 parents 2827cbe + 582b04e commit 44c57a5

File tree

7 files changed

+32
-11
lines changed

7 files changed

+32
-11
lines changed

aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Localization/ApplicationContracts/zh-Hans.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"Permission:Layout": "布局管理",
2323
"Permission:Menu": "菜单管理",
2424
"Permission:Create": "新增",
25-
"Permission:Update": "新增",
26-
"Permission:Delete": "新增",
25+
"Permission:Update": "编辑",
26+
"Permission:Delete": "删除",
2727
"Permission:ManageItems": "管理项目",
2828
"Permission:ManageRoleMenus": "管理角色菜单",
2929
"Permission:ManageUserMenus": "管理用户菜单"

aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private async Task SeedIdentityServerMenuAsync(Layout layout, Data data)
415415
{ "title", "identity-server" },
416416
{ "icon", "identity-server" },
417417
{ "alwaysShow", true },
418-
{ "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources" } }
418+
{ "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources", "AbpIdentityServer.ApiScopes" } }
419419
},
420420
new string[] { "admin" });
421421

@@ -434,7 +434,7 @@ await SeedMenuAsync(
434434
new Dictionary<string, object>()
435435
{
436436
{ "title", "clients" },
437-
{ "icon", "clients" },
437+
{ "icon", "client" },
438438
{ "roles", new string[]{ "AbpIdentityServer.Clients" } }
439439
},
440440
new string[] { "admin" });
@@ -462,7 +462,7 @@ await SeedMenuAsync(
462462
data,
463463
"identity-resources",
464464
"identity-resources",
465-
CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(2)),
465+
CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(3)),
466466
"views/admin/identityServer/identity-resources/index.vue",
467467
"Manage Identity Resources",
468468
"",
@@ -476,6 +476,25 @@ await SeedMenuAsync(
476476
{ "roles", new string[]{ "AbpIdentityServer.IdentityResources" } }
477477
},
478478
new string[] { "admin" });
479+
await SeedMenuAsync(
480+
layout,
481+
data,
482+
"api-scopes",
483+
"api-scopes",
484+
CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(4)),
485+
"views/admin/identityServer/api-scopes/index.vue",
486+
"Manage Api Scopes",
487+
"",
488+
"Manage Api Scopes",
489+
identityServerMenu.Id,
490+
layout.TenantId,
491+
new Dictionary<string, object>()
492+
{
493+
{ "title", "api-scopes" },
494+
{ "icon", "api-scopes" },
495+
{ "roles", new string[]{ "AbpIdentityServer.ApiScopes" } }
496+
},
497+
new string[] { "admin" });
479498
}
480499

481500
private async Task SeedAuditingMenuAsync(Layout layout, Data data)

vueJs/debug.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
[1221/155401.113:ERROR:directory_reader_win.cc(43)] FindFirstFile: ϵͳ�Ҳ���ָ����·���� (0x3)
77
[1222/155401.133:ERROR:directory_reader_win.cc(43)] FindFirstFile: ϵͳ�Ҳ���ָ����·���� (0x3)
88
[1223/145638.708:ERROR:filesystem_win.cc(148)] DeleteFile C:\Users\iVarKey\AppData\Local\Google\Chrome\User Data\Crashpad\reports\0106539b-a680-4c00-8e38-5a7a621345b9.dmp: ��һ����������ʹ�ô��ļ��������޷����ʡ� (0x20)
9+
[1225/102752.308:ERROR:directory_reader_win.cc(43)] FindFirstFile: ϵͳ�Ҳ���ָ����·���� (0x3)

vueJs/src/api/api-resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class ApiResourceCreateOrUpdate {
9595
allowedAccessTokenSigningAlgorithms?: string = ''
9696
userClaims = new Array<ApiResourceClaim>()
9797
scopes = new Array<ApiResourceScope>()
98-
secrets = new Array<ApiResourceSecretCreate>()
98+
secrets = new Array<ApiResourceSecret>()
9999
properties = new Array<ApiResourceProperty>()
100100
}
101101

vueJs/src/api/clients.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class ClientUpdate extends ClientCreateOrUpdate {
258258
this.postLogoutRedirectUris = client.postLogoutRedirectUris
259259
this.identityProviderRestrictions = client.identityProviderRestrictions
260260
this.allowedScopes = client.allowedScopes
261-
this.secrets = client.clientSecrets
261+
this.clientSecrets = client.clientSecrets
262262
this.claims = client.claims
263263
this.properties = client.properties
264264
}

vueJs/src/api/identity-server4.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ApiService from './serviceBase'
2+
import { getOrDefault } from '@/utils/localStorage'
23

34
const openIdConfigurationUrl = '/.well-known/openid-configuration'
45

vueJs/src/views/container/menus/components/CreateOrUpdateMenuDialog.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ export default class CreateOrUpdateMenuDialog extends Vue {
278278
if (layout) {
279279
if (!this.isEdit) {
280280
this.menu.meta = {}
281-
}
282-
if (!this.parentId) {
283-
// 对于根菜单,自动设置组件路径为布局路径
284-
this.menu.component = layout.path
281+
if (!this.parentId) {
282+
// 对于根菜单,自动设置组件路径为布局路径
283+
this.menu.component = layout.path
284+
}
285285
}
286286
DataService
287287
.get(layout.dataId)

0 commit comments

Comments
 (0)