mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-23 00:21:28 +00:00
feat(admin): groups management UI in the console
Add a super-admin-only Groups tab to create, edit and delete groups (name, admin ids, owner scope). Routes now require a group via a select in the editor, group names are shown on route cards, and the new useMe/useGroups composables back the UI.
This commit is contained in:
parent
537f4cbb84
commit
62985a2f3f
8 changed files with 382 additions and 9 deletions
|
|
@ -14,6 +14,21 @@ export interface Route {
|
|||
threadId?: string;
|
||||
};
|
||||
lang?: string;
|
||||
groupId?: string;
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
id: string;
|
||||
name: string;
|
||||
adminIds: string[];
|
||||
owners?: string[];
|
||||
}
|
||||
|
||||
export interface Me {
|
||||
login: string;
|
||||
userId: string;
|
||||
isSuper: boolean;
|
||||
groups: Group[];
|
||||
}
|
||||
|
||||
export const FILTER_TYPES = ["event", "repo", "actor", "action", "branch", "keyword"] as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue