Browse Source

feat(openiddict): 增加applications路由.

pull/1056/head
colin 1 year ago
parent
commit
d729a88bd3
  1. 1
      apps/vben5/apps/app-antd/package.json
  2. 4
      apps/vben5/apps/app-antd/src/locales/langs/en-US/abp.json
  3. 4
      apps/vben5/apps/app-antd/src/locales/langs/zh-CN/abp.json
  4. 20
      apps/vben5/apps/app-antd/src/router/routes/modules/abp.ts
  5. 15
      apps/vben5/apps/app-antd/src/views/openiddict/applications/index.vue

1
apps/vben5/apps/app-antd/package.json

@ -30,6 +30,7 @@
"@abp/auditing": "workspace:*",
"@abp/core": "workspace:*",
"@abp/identity": "workspace:*",
"@abp/openiddict": "workspace:*",
"@abp/request": "workspace:*",
"@abp/ui": "workspace:*",
"@vben/access": "workspace:*",

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

@ -11,5 +11,9 @@
"organizationUnits": "Organization Units",
"auditLogs": "Audit Logs"
}
},
"openiddict": {
"title": "OpenIddict",
"applications": "Applications"
}
}

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

@ -11,5 +11,9 @@
"organizationUnits": "组织机构",
"auditLogs": "审计日志"
}
},
"openiddict": {
"title": "OpenIddict",
"applications": "应用管理"
}
}

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

@ -92,6 +92,26 @@ const routes: RouteRecordRaw[] = [
},
],
},
{
meta: {
title: $t('abp.openiddict.title'),
icon: 'mdi:openid',
},
name: 'OpenIddict',
path: '/openiddict',
children: [
{
meta: {
title: $t('abp.openiddict.applications'),
icon: 'carbon:application',
},
name: 'OpenIddictApplications',
path: '/openiddict/applications',
component: () =>
import('#/views/openiddict/applications/index.vue'),
},
],
},
],
},
];

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

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