mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +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:
1 parent
76ba2c0a89
commit
e1b1daac98
14 files changed
+7
-320
No files matched your search
@@ -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 ?? "");
|
||||
|
||||
Reference in new issue
Block a user