Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore: remove verified dead code
rmyndharisd70308dcb85d
diff --git a/dashboard/src/components/Skeleton.css b/dashboard/src/components/Skeleton.cssdeleted file mode 100644index 2f7c8bbe9..000000000--- a/dashboard/src/components/Skeleton.css+++ /dev/null@@ -1,37 +0,0 @@-.skeleton {- background: linear-gradient(90deg, var(--border) 25%, rgba(0, 0, 0, 0.05) 50%, var(--border) 75%);- background-size: 200% 100%;- animation: shimmer 1.5s infinite;- border-radius: 6px;-}--.skeleton-text {- border-radius: 4px;-}--.skeleton-circle {- border-radius: 50%;-}--.skeleton-card {- pointer-events: none;-}--.skeleton-row td {- padding: 1rem 0.75rem;-}--@keyframes shimmer {- 0% {- background-position: 200% 0;- }- 100% {- background-position: -200% 0;- }-}--/* Dark mode adjustments */-[data-theme='dark'] .skeleton {- background: linear-gradient(90deg, var(--border) 25%, rgba(255, 255, 255, 0.05) 50%, var(--border) 75%);- background-size: 200% 100%;-}diff --git a/dashboard/src/components/Skeleton.tsx b/dashboard/src/components/Skeleton.tsxdeleted file mode 100644index c85a4893a..000000000--- a/dashboard/src/components/Skeleton.tsx+++ /dev/null@@ -1,53 +0,0 @@-import './Skeleton.css';--interface SkeletonProps {- width?: string | number;- height?: string | number;- variant?: 'text' | 'rect' | 'circle';- className?: string;-}--export function Skeleton({ width = '100%', height = '1rem', variant = 'rect', className = '' }: SkeletonProps) {- const style = {- width: typeof width === 'number' ? `${width}px` : width,- height: typeof height === 'number' ? `${height}px` : height,- };-- return <div className={`skeleton skeleton-${variant} ${className}`} style={style} aria-hidden="true" />;-}--export function SessionCardSkeleton() {- return (- <div className="session-card skeleton-card">- <div className="session-header">- <Skeleton width={120} height={20} />- <Skeleton width={80} height={24} variant="rect" />- </div>- <div className="session-details">- <Skeleton width="60%" height={14} />- <Skeleton width="40%" height={14} />- </div>- <div className="session-meta">- <Skeleton width={100} height={12} />- <Skeleton width={80} height={12} />- </div>- <div className="session-actions">- <Skeleton width={60} height={32} variant="rect" />- <Skeleton width={60} height={32} variant="rect" />- <Skeleton width={60} height={32} variant="rect" />- </div>- </div>- );-}--export function TableRowSkeleton({ columns = 5 }: { columns?: number }) {- return (- <tr className="skeleton-row">- {Array.from({ length: columns }).map((_, i) => (- <td key={i}>- <Skeleton width={`${60 + Math.random() * 40}%`} height={16} />- </td>- ))}- </tr>- );-}diff --git a/dashboard/src/hooks/queries.ts b/dashboard/src/hooks/queries.tsindex d0851214e..407526776 100644--- a/dashboard/src/hooks/queries.ts+++ b/dashboard/src/hooks/queries.ts@@ -56,47 +56,6 @@ export function useSessionGroupsQuery(sessionId: string, enabled: boolean) {});}-export function useSessionChatsQuery(sessionId: string, enabled: boolean) {- return useQuery({- queryKey: queryKeys.sessionChats(sessionId),- queryFn: () => sessionApi.getChats(sessionId),- enabled: enabled && !!sessionId,- staleTime: 10_000,- });-}--export function useCreateSessionMutation() {- const queryClient = useQueryClient();- return useMutation({- mutationFn: (name: string) => sessionApi.create(name),- onSuccess: () => {- void queryClient.invalidateQueries({ queryKey: queryKeys.sessions });- void queryClient.invalidateQueries({ queryKey: queryKeys.sessionStats });- },- });-}--export function useDeleteSessionMutation() {- const queryClient = useQueryClient();- return useMutation({- mutationFn: (id: string) => sessionApi.delete(id),- onSuccess: () => {- void queryClient.invalidateQueries({ queryKey: queryKeys.sessions });- void queryClient.invalidateQueries({ queryKey: queryKeys.sessionStats });- },- });-}--export function useStartSessionMutation() {- const queryClient = useQueryClient();- return useMutation({- mutationFn: (id: string) => sessionApi.start(id),- onSuccess: () => {- void queryClient.invalidateQueries({ queryKey: queryKeys.sessions });- },- });-}-export function useStopSessionMutation() {const queryClient = useQueryClient();return useMutation({diff --git a/src/engine/interfaces/whatsapp-engine.interface.ts b/src/engine/interfaces/whatsapp-engine.interface.tsindex 607c4c356..ffd2cde94 100644--- a/src/engine/interfaces/whatsapp-engine.interface.ts+++ b/src/engine/interfaces/whatsapp-engine.interface.ts@@ -12,7 +12,6 @@ export enum EngineStatus {export interface MessageResult {id: string;timestamp: number;- ack?: number;}export interface MediaInput {diff --git a/src/modules/queue/queue-names.ts b/src/modules/queue/queue-names.tsindex 05e7fd9d9..734b518d9 100644--- a/src/modules/queue/queue-names.ts+++ b/src/modules/queue/queue-names.ts@@ -1,6 +1,5 @@// Queue names used across the application// Extracted to separate file to avoid circular dependency with processorsexport const QUEUE_NAMES = {- MESSAGE: 'message-queue',WEBHOOK: 'webhook-queue',} as const;diff --git a/src/plugins/engines/whatsapp-web-js/index.ts b/src/plugins/engines/whatsapp-web-js/index.tsindex ce147b7d1..b8f35bcfb 100644--- a/src/plugins/engines/whatsapp-web-js/index.ts+++ b/src/plugins/engines/whatsapp-web-js/index.ts@@ -7,13 +7,6 @@ import { PluginContext, PluginType, IEnginePlugin } from '../../../core/plugins'import { IWhatsAppEngine } from '../../../engine/interfaces/whatsapp-engine.interface';import { WhatsAppWebJsAdapter } from '../../../engine/adapters/whatsapp-web-js.adapter';-export interface WhatsAppWebJsConfig {- sessionDataPath?: string;- headless?: boolean;- puppeteerArgs?: string[];- executablePath?: string;-}-export class WhatsAppWebJsPlugin implements IEnginePlugin {type = PluginType.ENGINE as const;private context?: PluginContext;