Browse Source

feat(openiddict): 增加范围管理路由.

pull/1056/head
colin 1 year ago
parent
commit
c9badb4c7e
  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. 9
      apps/vben5/apps/app-antd/src/router/routes/modules/abp.ts
  4. 15
      apps/vben5/apps/app-antd/src/views/openiddict/scopes/index.vue
  5. 1
      apps/vben5/packages/@abp/openiddict/src/components/index.ts
  6. 7
      apps/vben5/packages/@abp/openiddict/src/components/scopes/ScopeModal.vue
  7. 7
      apps/vben5/packages/@abp/openiddict/src/components/scopes/ScopeTable.vue

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

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

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

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

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

@ -120,6 +120,15 @@ const routes: RouteRecordRaw[] = [
component: () =>
import('#/views/openiddict/authorizations/index.vue'),
},
{
meta: {
title: $t('abp.openiddict.scopes'),
icon: 'et:scope',
},
name: 'OpenIddictScopes',
path: '/openiddict/scopes',
component: () => import('#/views/openiddict/scopes/index.vue'),
},
],
},
],

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

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

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

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

7
apps/vben5/packages/@abp/openiddict/src/components/scopes/ScopeModal.vue

@ -0,0 +1,7 @@
<script setup lang="ts"></script>
<template>
<div></div>
</template>
<style scoped></style>

7
apps/vben5/packages/@abp/openiddict/src/components/scopes/ScopeTable.vue

@ -0,0 +1,7 @@
<script setup lang="ts"></script>
<template>
<div></div>
</template>
<style scoped></style>
Loading…
Cancel
Save