diff --git a/src/components/document/ApiList.vue b/src/components/document/ApiList.vue new file mode 100644 index 00000000..5845b8ec --- /dev/null +++ b/src/components/document/ApiList.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/components/document/ApiListItem.vue b/src/components/document/ApiListItem.vue new file mode 100644 index 00000000..2ef18f6a --- /dev/null +++ b/src/components/document/ApiListItem.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/components/document/ApiUsage.vue b/src/components/document/ApiUsage.vue new file mode 100644 index 00000000..2ef18f6a --- /dev/null +++ b/src/components/document/ApiUsage.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/layouts/Document.vue b/src/layouts/Document.vue new file mode 100644 index 00000000..73c0b830 --- /dev/null +++ b/src/layouts/Document.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/operators/api/models.ts b/src/operators/api/models.ts index 6bdfeb57..8a2962d8 100644 --- a/src/operators/api/models.ts +++ b/src/operators/api/models.ts @@ -6,6 +6,7 @@ export interface IApi { tags?: string[]; endpoint?: string; isFree?: boolean; + requestMethod?: boolean; swaggerConfiguration?: string; service?: string; createdAt?: string; diff --git a/src/pages/document/Detail.vue b/src/pages/document/Detail.vue new file mode 100644 index 00000000..8aee71da --- /dev/null +++ b/src/pages/document/Detail.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/router/document.ts b/src/router/document.ts new file mode 100644 index 00000000..a29b2063 --- /dev/null +++ b/src/router/document.ts @@ -0,0 +1,15 @@ +export default { + path: '/documents', + name: 'documents', + meta: { + auth: true + }, + component: () => import('@/layouts/Document.vue'), + children: [ + { + path: ':id', + name: 'document-detail', + component: () => import('@/pages/document/Detail.vue') + } + ] +}; diff --git a/src/router/index.ts b/src/router/index.ts index 617c4cb7..54d42c21 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -2,6 +2,7 @@ import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router import service from './service'; import auth from './auth'; import console from './console'; +import document from './document'; import store from '@/store'; const routes = [ @@ -12,7 +13,8 @@ const routes = [ }, service, auth, - console + console, + document ]; const router = createRouter({