@halo-dev/console-shared
Advanced tools
| import type { Component, Raw } from "vue"; | ||
| export interface UserTab { | ||
| id: string; | ||
| label: string; | ||
| component: Raw<Component>; | ||
| permissions?: string[]; | ||
| priority: number; | ||
| } | ||
| export interface UserProfileTab { | ||
| id: string; | ||
| label: string; | ||
| component: Raw<Component>; | ||
| permissions?: string[]; | ||
| priority: number; | ||
| } |
+1
-0
@@ -14,1 +14,2 @@ export * from "./types/plugin"; | ||
| export * from "./states/operation"; | ||
| export * from "./states/user-tab"; |
| import type { Component, Ref } from "vue"; | ||
| import type { RouteRecordRaw, RouteRecordName } from "vue-router"; | ||
| import type { RouteRecordName, RouteRecordRaw } from "vue-router"; | ||
| import type { FunctionalPage } from "../states/pages"; | ||
@@ -14,2 +14,3 @@ import type { AttachmentSelectProvider } from "../states/attachment-selector"; | ||
| import type { Attachment, Backup, ListedPost, Plugin, Theme } from "@halo-dev/api-client"; | ||
| import type { UserProfileTab, UserTab } from '../states/user-tab'; | ||
| export interface RouteRecordAppend { | ||
@@ -36,2 +37,4 @@ parentName: RouteRecordName; | ||
| "theme:list-item:operation:create"?: (theme: Ref<Theme>) => OperationItem<Theme>[] | Promise<OperationItem<Theme>[]>; | ||
| "user:detail:tabs:create"?: () => UserTab[] | Promise<UserTab[]>; | ||
| "uc:user:profile:tabs:create"?: () => UserProfileTab[] | Promise<UserProfileTab[]>; | ||
| } | ||
@@ -38,0 +41,0 @@ export interface PluginModule { |
+2
-2
| { | ||
| "name": "@halo-dev/console-shared", | ||
| "version": "2.14.0", | ||
| "version": "2.15.0", | ||
| "description": "", | ||
@@ -41,3 +41,3 @@ "files": [ | ||
| "dependencies": { | ||
| "@halo-dev/api-client": "2.14.0" | ||
| "@halo-dev/api-client": "2.15.0" | ||
| }, | ||
@@ -44,0 +44,0 @@ "scripts": { |
9510
6.73%20
5.26%202
10.38%+ Added
- Removed
Updated