mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-23 00:21:28 +00:00
chore: remove dead code and unused dependencies
Cleans up stale implementation artifacts: - Delete legacy `src/webhook.ts` (dead code per AGENTS.md) - Delete admin composables `useMe.ts` and `useRoutes.ts` - Remove unused dependencies `jose` and `yaml` - Remove stale `Me` interface, `FILTER_LABELS`, `invalidateConfigCache`, and formatter re-exports
This commit is contained in:
parent
76ba2c0a89
commit
e1b1daac98
14 changed files with 7 additions and 320 deletions
|
|
@ -33,13 +33,6 @@ export interface Group {
|
|||
emoji?: boolean;
|
||||
}
|
||||
|
||||
export interface Me {
|
||||
login: string;
|
||||
userId: string;
|
||||
isSuper: boolean;
|
||||
groups: Group[];
|
||||
}
|
||||
|
||||
export interface RouteTemplate {
|
||||
id: string;
|
||||
nameKey: string;
|
||||
|
|
@ -125,15 +118,6 @@ export const ROUTE_TEMPLATES: RouteTemplate[] = [
|
|||
|
||||
export const FILTER_TYPES = ["event", "repo", "actor", "action", "branch", "keyword"] as const;
|
||||
|
||||
export const FILTER_LABELS: Record<string, string> = {
|
||||
event: "Event",
|
||||
repo: "Repo",
|
||||
actor: "Actor",
|
||||
action: "Action",
|
||||
branch: "Branch",
|
||||
keyword: "Keyword",
|
||||
};
|
||||
|
||||
export function fmtMatch(match: string | string[]): string {
|
||||
if (Array.isArray(match)) return match.join(", ");
|
||||
return String(match ?? "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue