diff --git a/src/views/system/plugins/PluginDetail.vue b/src/views/system/plugins/PluginDetail.vue index 3211e0490..c39608fc8 100644 --- a/src/views/system/plugins/PluginDetail.vue +++ b/src/views/system/plugins/PluginDetail.vue @@ -6,6 +6,7 @@ import { useRoute } from "vue-router"; import { plugins } from "./plugins-mock"; import { VTag } from "@/components/base/tag"; import { VInput } from "@/components/base/input"; +import { VSpace } from "@/components/base/space"; import { VCard } from "@/components/base/card"; import { ref } from "vue"; @@ -116,8 +117,134 @@ console.log(plugin); class="bg-white px-4 py-5 hover:bg-gray-50 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6" >
模型定义
+
+ + +
+ +
+
权限定义
- 无 +
+
+
+ Discussions Management +
+
+
    +
  • +
    + +
    + + Discussions Management + + + 依赖于 Discussions View + +
    +
    +
  • +
  • +
    + +
    + + Discussions View + +
    +
    +
  • +
+
+
+ +
+
+ Posts Management +
+
+
    +
  • +
    + +
    + + Posts Management + + + 依赖于 Posts View + +
    +
    +
  • +
  • +
    + +
    + + Posts View + +
    +
    +
  • +
+
+
+
diff --git a/src/views/system/plugins/plugins-mock.ts b/src/views/system/plugins/plugins-mock.ts index d06514708..f92df03a7 100644 --- a/src/views/system/plugins/plugins-mock.ts +++ b/src/views/system/plugins/plugins-mock.ts @@ -170,6 +170,18 @@ export const plugins = [ description: "提供一个社区/论坛应有的所有模块", license: "GPL V3", }, + extensions: [ + { + name: "posts", + displayName: "帖子", + fields: ["id", "title", "content", "author", "createdAt"], + }, + { + name: "discussions", + displayName: "评论", + fields: ["id", "content", "author", "createdAt"], + }, + ], }, { apiVersion: "v1", diff --git a/src/views/system/roles/RoleDetail.vue b/src/views/system/roles/RoleDetail.vue index 018f93ac0..9d408d46b 100644 --- a/src/views/system/roles/RoleDetail.vue +++ b/src/views/system/roles/RoleDetail.vue @@ -341,6 +341,53 @@ const handleRouteToUser = (username: string) => { +
+
+ Discussions Management + 由社区插件提供 +
+
+ +
+
保存