【新增】infra:相关文档的链接

pull/42/head
YunaiV 2024-05-04 19:46:17 +08:00
parent 6c0bfb2862
commit 00041eeb60
40 changed files with 155 additions and 21 deletions

View File

@ -8,6 +8,7 @@ import { IconEnum } from '@/enums/appEnum'
import type { ApiAccessLogExportReqVO } from '@/api/infra/apiAccessLog'
import { exportApiAccessLog, getApiAccessLogPage } from '@/api/infra/apiAccessLog'
import { useModal } from '@/components/Modal'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraApiErrorLog' })
@ -49,6 +50,8 @@ async function handleExport() {
<template>
<div>
<DocAlert title="系统日志" url="https://doc.iocoder.cn/system-log/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:api-access-log:export']" :pre-icon="IconEnum.EXPORT" @click="handleExport">

View File

@ -9,6 +9,7 @@ import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { ApiErrorLogExportReqVO } from '@/api/infra/apiErrorLog'
import { exportApiErrorLog, getApiErrorLogPage, updateApiErrorLogProcess } from '@/api/infra/apiErrorLog'
import { useModal } from '@/components/Modal'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraApiErrorLog' })
@ -62,6 +63,8 @@ async function handleExport() {
<template>
<div>
<DocAlert title="系统日志" url="https://doc.iocoder.cn/system-log/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:api-error-log:export']" :pre-icon="IconEnum.EXPORT" @click="handleExport">

View File

@ -9,6 +9,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteCodegenTable, downloadCodegen, getCodegenTablePage, syncCodegenFromDB } from '@/api/infra/codegen'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraCodegen' })
@ -64,6 +65,11 @@ async function handleDelete(record: Recordable) {
<template>
<div>
<DocAlert title="代码生成(单表)" url="https://doc.iocoder.cn/new-feature/" />
<DocAlert title="代码生成(树表)" url="https://doc.iocoder.cn/new-feature/tree/" />
<DocAlert title="代码生成(主子表)" url="https://doc.iocoder.cn/new-feature/master-sub/" />
<DocAlert title="单元测试" url="https://doc.iocoder.cn/unit-test/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:codegen:create']" type="primary" :pre-icon="IconEnum.IMPORT" @click="openImportTableModal(true)">

View File

@ -8,6 +8,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { ConfigExportReqVO } from '@/api/infra/config'
import { deleteConfig, exportConfig, getConfigPage } from '@/api/infra/config'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraConfig' })
@ -60,6 +61,8 @@ async function handleDelete(record: Recordable) {
<template>
<div>
<DocAlert title="配置中心" url="https://doc.iocoder.cn/config-center/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:config:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">

View File

@ -0,0 +1,17 @@
<script lang="ts" setup>
import { DocAlert } from '@/components/DocAlert'
</script>
<template>
<div>
<DocAlert title="代码生成(单表)" url="https://doc.iocoder.cn/new-feature/" />
<a-button danger type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3">
该功能支持 Vue3 + element-plus 版本
</a-button>
<br />
<a-button type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo01/index.vue">
可参考 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo01/index.vue pull request
</a-button>
</div>
</template>

View File

@ -0,0 +1,16 @@
<script setup lang="ts">
import { DocAlert } from '@/components/DocAlert'
</script>
<template>
<div>
<DocAlert title="代码生成(树表)" url="https://doc.iocoder.cn/new-feature/tree/" />
<a-button danger type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3">
该功能支持 Vue3 + element-plus 版本
</a-button>
<br />
<a-button type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo02/index.vue">
可参考 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo02/index.vue pull request
</a-button>
</div>
</template>

View File

@ -0,0 +1,16 @@
<script setup lang="ts">
import { DocAlert } from '@/components/DocAlert'
</script>
<template>
<div>
<DocAlert title="代码生成(主子表)" url="https://doc.iocoder.cn/new-feature/master-sub/" />
<a-button danger type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3">
该功能支持 Vue3 + element-plus 版本
</a-button>
<br />
<a-button type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/erp/index.vue">
可参考 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/erp/index.vue pull request
</a-button>
</div>
</template>

View File

@ -0,0 +1,16 @@
<script setup lang="ts">
import { DocAlert } from '@/components/DocAlert'
</script>
<template>
<div>
<DocAlert title="代码生成(主子表)" url="https://doc.iocoder.cn/new-feature/master-sub/" />
<a-button danger type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3">
该功能支持 Vue3 + element-plus 版本
</a-button>
<br />
<a-button type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/inner/index.vue">
可参考 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/inner/index.vue pull request
</a-button>
</div>
</template>

View File

@ -0,0 +1,16 @@
<script setup lang="ts">
import { DocAlert } from '@/components/DocAlert'
</script>
<template>
<div>
<DocAlert title="代码生成(主子表)" url="https://doc.iocoder.cn/new-feature/master-sub/" />
<a-button danger type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3">
该功能支持 Vue3 + element-plus 版本
</a-button>
<br />
<a-button type="link" target="_blank" href="https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/normal/index.vue">
可参考 https://github.com/yudaocode/yudao-ui-admin-vue3/blob/master/src/views/infra/demo/demo03/normal/index.vue pull request
</a-button>
</div>
</template>

View File

@ -1,12 +1,16 @@
<script setup lang="ts" name="InfraDruid">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { DocAlert } from '@/components/DocAlert'
const src = ref(`${import.meta.env.VITE_GLOB_BASE_URL}/druid/index.html`)
</script>
<template>
<div>
<DocAlert title="数据库 MyBatis" url="https://doc.iocoder.cn/mybatis/" />
<DocAlert title="多数据源(读写分离)" url="https://doc.iocoder.cn/dynamic-datasource/" />
<IFrame :src="src" />
</div>
</template>

View File

@ -10,6 +10,7 @@ import { deleteFile, getFilePage } from '@/api/infra/file'
import { getAccessToken, getTenantId } from '@/utils/auth'
import { copyText } from '@/utils/copyTextToClipboard'
import { uploadApi } from '@/api/base/upload'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraFile' })
@ -54,6 +55,8 @@ async function handleDelete(record: Recordable) {
<template>
<div>
<DocAlert title="上传下载" url="https://doc.iocoder.cn/file/" />
<BasicTable @register="registerTable">
<template #toolbar>
<BasicUpload

View File

@ -7,6 +7,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteFileConfig, getFileConfigPage, testFileConfig, updateFileConfigMaster } from '@/api/infra/fileConfig'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraFileConfig' })
@ -65,6 +66,8 @@ async function handleDelete(record: Recordable) {
<template>
<div>
<DocAlert title="上传下载" url="https://doc.iocoder.cn/file/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:file-config:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">

View File

@ -10,6 +10,7 @@ import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { JobExportReqVO } from '@/api/infra/job'
import { deleteJob, exportJob, getJobPage, runJob, updateJobStatus } from '@/api/infra/job'
import { InfraJobStatusEnum } from '@/enums/systemEnum'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraJob' })
@ -101,6 +102,10 @@ async function handleDelete(record: Recordable) {
<template>
<div>
<DocAlert title="定时任务" url="https://doc.iocoder.cn/job/" />
<DocAlert title="异步任务" url="https://doc.iocoder.cn/async-task/" />
<DocAlert title="消息队列" url="https://doc.iocoder.cn/message-queue/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:job:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">

View File

@ -9,6 +9,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { JobLogExportReqVO } from '@/api/infra/jobLog'
import { exportJobLog, getJobLogPage } from '@/api/infra/jobLog'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraJobLog' })
@ -53,6 +54,10 @@ async function handleExport() {
<template>
<div>
<DocAlert title="定时任务" url="https://doc.iocoder.cn/job/" />
<DocAlert title="异步任务" url="https://doc.iocoder.cn/async-task/" />
<DocAlert title="消息队列" url="https://doc.iocoder.cn/message-queue/" />
<BasicTable @register="registerTable">
<template #toolbar>
<a-button v-auth="['infra:job:export']" :pre-icon="IconEnum.EXPORT" @click="handleExport">

View File

@ -4,6 +4,7 @@ import { baseInfoSchema } from './redis.data'
import { Description } from '@/components/Description'
import { getCache } from '@/api/infra/redis'
import { createAsyncComponent } from '@/utils/factory/createAsyncComponent'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraRedis' })
const CommandStats = createAsyncComponent(() => import('./components/CommandStats.vue'))
@ -31,6 +32,11 @@ onMounted(async () => {
<template>
<div class="p-4">
<div class="-mr-4 -ml-4 mb-4">
<DocAlert title="Redis 缓存" url="https://doc.iocoder.cn/redis-cache/" />
<DocAlert title="本地缓存" url="https://doc.iocoder.cn/local-cache/" />
</div>
<Description
title="基础信息"
:collapse-options="{ canExpand: true, helpMessage: 'Redis 基本信息' }"

View File

@ -2,6 +2,7 @@
import { onMounted, ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { getConfigKey } from '@/api/infra/config'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraAdminServer' })
@ -24,6 +25,8 @@ onMounted(() => {
<template>
<div>
<DocAlert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<IFrame v-if="!loading" :src="src" />
</div>
</template>

View File

@ -1,6 +1,7 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraSkywalking' })
@ -9,6 +10,8 @@ const src = ref('http://skywalking.shop.iocoder.cn')
<template>
<div>
<DocAlert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<IFrame :src="src" />
</div>
</template>

View File

@ -1,6 +1,7 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraSwagger' })
@ -11,6 +12,8 @@ const src = ref(`${import.meta.env.VITE_GLOB_BASE_URL}/swagger-ui`)
<template>
<div>
<DocAlert title="服务监控" url="https://doc.iocoder.cn/server-monitor/" />
<IFrame :src="src" />
</div>
</template>

View File

@ -5,6 +5,7 @@ import { useWebSocket } from '@vueuse/core'
import { PageWrapper } from '@/components/Page'
import { formatToDateTime } from '@/utils/dateUtil'
import { useUserStore } from '@/store/modules/user'
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'InfraWebSocket' })
@ -57,6 +58,8 @@ function toggle() {
<template>
<PageWrapper title="WebSocket 示例">
<DocAlert title="WebSocket 实时通信" url="https://doc.iocoder.cn/websocket/" />
<div class="flex">
<div class="w-1/3 p-4">
<div class="flex items-center">

View File

@ -6,7 +6,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, useTable } from '@/components/Table'
import { getAreaTree } from '@/api/system/area'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemArea' })

View File

@ -5,7 +5,7 @@ import { useMessage } from '@/hooks/web/useMessage'
import { BasicTable, useTable } from '@/components/Table'
import type { LoginLogReqVO } from '@/api/system/loginLog'
import { exportLoginLog, getLoginLogPage } from '@/api/system/loginLog'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemLoginLog' })

View File

@ -7,7 +7,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteMailAccount, getMailAccountPage } from '@/api/system/mail/account'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMailAccount' })

View File

@ -6,7 +6,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { getMailAccountPage } from '@/api/system/mail/log'
import { useModal } from '@/components/Modal'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemOperateLog' })

View File

@ -8,7 +8,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteMailTemplate, getMailTemplatePage } from '@/api/system/mail/template'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMailTemplate' })

View File

@ -9,7 +9,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteMenu, getMenuList } from '@/api/system/menu'
import { usePermission } from '@/hooks/web/usePermission'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMenu' })

View File

@ -6,7 +6,7 @@ import { BasicTable, TableAction, useTable } from '@/components/Table'
import { getNotifyMessagePage } from '@/api/system/notify/message'
import MessageInfoModal from '@/views/system/notify/components/MessageInfoModal.vue'
import { useModal } from '@/components/Modal'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMessage' })

View File

@ -9,7 +9,7 @@ import { getMyNotifyMessagePage, updateAllNotifyMessageRead, updateNotifyMessage
import MessageInfoModal from '@/views/system/notify/components/MessageInfoModal.vue'
import { useModal } from '@/components/Modal'
import { useUserMessageStore } from '@/store/modules/userMessage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMyMessage' })

View File

@ -8,7 +8,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteNotifyTemplate, getNotifyTemplatePage } from '@/api/system/notify/template'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemMessageTemplate' })

View File

@ -7,7 +7,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteOAuth2Client, getOAuth2ClientPage } from '@/api/system/oauth2/client'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemClient' })

View File

@ -5,7 +5,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteAccessToken, getAccessTokenPage } from '@/api/system/oauth2/token'
import { useMessage } from '@/hooks/web/useMessage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemToken' })

View File

@ -8,7 +8,7 @@ import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { OperateLogPageReqVO } from '@/api/system/operatelog'
import { exportOperateLog, getOperateLogPage } from '@/api/system/operatelog'
import { useModal } from '@/components/Modal'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemOperateLog' })

View File

@ -10,7 +10,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { RoleExportReqVO } from '@/api/system/role'
import { deleteRole, exportRole, getRolePage } from '@/api/system/role'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemRole' })

View File

@ -7,7 +7,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteSmsChannel, getSmsChannelPage } from '@/api/system/sms/smsChannel'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemSmsChannel' })

View File

@ -6,7 +6,7 @@ import type { SmsLogExportReqVO } from '@/api/system/sms/smsLog'
import { exportSmsLog, getSmsLogPage } from '@/api/system/sms/smsLog'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemSmsLog' })

View File

@ -9,7 +9,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemSmsTemplate' })

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
</script>
<template>

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
</script>
<template>

View File

@ -8,7 +8,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemTenant' })

View File

@ -7,7 +7,7 @@ import { useModal } from '@/components/Modal'
import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import { deleteTenantPackage, getTenantPackagePage } from '@/api/system/tenantPackage'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemTenantPackage' })

View File

@ -12,7 +12,7 @@ import { IconEnum } from '@/enums/appEnum'
import { BasicTable, TableAction, useTable } from '@/components/Table'
import type { UserExportReqVO } from '@/api/system/user'
import { deleteUser, exportUser, getUserPage } from '@/api/system/user'
import { DocAlert } from '@/components/DocAlert';
import { DocAlert } from '@/components/DocAlert'
defineOptions({ name: 'SystemUser' })