feat: 插件骨架(里程碑 1)
- Gradle 工程:devtools 0.8.0 + 平台 BOM 2.26.0,JDK 21 toolchain - plugin.yaml:operation-audit,requires >=2.26.0 - OperationAuditPlugin 入口(@Component) - ui 子项目:Vue 3 + Vite 6 + @halo-dev/components 2.26.0,占位页 + 菜单注册,npm 构建(legacy-peer-deps 对齐 pnpm 行为) - ./gradlew build 通过,jar 内含 plugin.yaml / console 前端产物 / 组件索引
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { definePlugin } from '@halo-dev/console-shared'
|
||||
import { markRaw } from 'vue'
|
||||
import { IconEye } from '@halo-dev/components'
|
||||
import HomeView from '@/views/HomeView.vue'
|
||||
|
||||
export default definePlugin({
|
||||
components: {},
|
||||
routes: [
|
||||
{
|
||||
path: '/operation-audit',
|
||||
name: 'OperationAudit',
|
||||
component: HomeView,
|
||||
meta: {
|
||||
title: '操作审计',
|
||||
searchable: true,
|
||||
menu: {
|
||||
name: '操作审计',
|
||||
group: 'plugin',
|
||||
icon: markRaw(IconEye),
|
||||
priority: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
extensionPoints: {},
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { VAlert } from '@halo-dev/components'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VAlert
|
||||
type="info"
|
||||
title="操作审计"
|
||||
:closable="false"
|
||||
>
|
||||
插件骨架已就绪,审计日志查看页将在后续里程碑实现。
|
||||
</VAlert>
|
||||
</template>
|
||||
Reference in New Issue
Block a user