Browse Source

feat(openiddict): 增加授权路由.

pull/1056/head
colin 1 year ago
parent
commit
d3a8a1c95f
  1. 3
      apps/vben5/apps/app-antd/src/locales/langs/en-US/abp.json
  2. 3
      apps/vben5/apps/app-antd/src/locales/langs/zh-CN/abp.json
  3. 10
      apps/vben5/apps/app-antd/src/router/routes/modules/abp.ts
  4. 15
      apps/vben5/apps/app-antd/src/views/openiddict/authorizations/index.vue
  5. 1
      apps/vben5/packages/@abp/openiddict/src/components/index.ts

3
apps/vben5/apps/app-antd/src/locales/langs/en-US/abp.json

@ -14,6 +14,7 @@
},
"openiddict": {
"title": "OpenIddict",
"applications": "Applications"
"applications": "Applications",
"authorizations": "Authorizations"
}
}

3
apps/vben5/apps/app-antd/src/locales/langs/zh-CN/abp.json

@ -14,6 +14,7 @@
},
"openiddict": {
"title": "OpenIddict",
"applications": "应用管理"
"applications": "应用管理",
"authorizations": "授权管理"
}
}

10
apps/vben5/apps/app-antd/src/router/routes/modules/abp.ts

@ -110,6 +110,16 @@ const routes: RouteRecordRaw[] = [
component: () =>
import('#/views/openiddict/applications/index.vue'),
},
{
meta: {
title: $t('abp.openiddict.authorizations'),
icon: 'arcticons:ente-authenticator',
},
name: 'OpenIddictAuthorizations',
path: '/openiddict/authorizations',
component: () =>
import('#/views/openiddict/authorizations/index.vue'),
},
],
},
],

15
apps/vben5/apps/app-antd/src/views/openiddict/authorizations/index.vue

@ -0,0 +1,15 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui';
import { AuthorizationTable } from '@abp/openiddict';
defineOptions({
name: 'OpenIddictAuthorizations',
});
</script>
<template>
<Page>
<AuthorizationTable />
</Page>
</template>

1
apps/vben5/packages/@abp/openiddict/src/components/index.ts

@ -1 +1,2 @@
export { default as ApplicationTable } from './applications/ApplicationTable.vue';
export { default as AuthorizationTable } from './authorizations/AuthorizationTable.vue';

Loading…
Cancel
Save