feat: dashboard

This commit is contained in:
2026-06-05 01:25:16 +02:00
parent 147858de2f
commit 2f6c52e73c
73 changed files with 3490 additions and 1061 deletions

View File

@@ -15,6 +15,8 @@ import { handleDeleteStaleJoinRequests } from './commands/handlers/deleteStaleJo
import { handleGetUserByUsername } from './queries/handlers/getUserByUsername';
import { handleGetUserById } from './queries/handlers/getUserById';
import { handleGetAllPublicServers } from './queries/handlers/getAllPublicServers';
import { handleGetFeaturedServers } from './queries/handlers/getFeaturedServers';
import { handleGetTrendingServers } from './queries/handlers/getTrendingServers';
import { handleGetServerById } from './queries/handlers/getServerById';
import { handleGetJoinRequestById } from './queries/handlers/getJoinRequestById';
import { handleGetPendingRequestsForServer } from './queries/handlers/getPendingRequestsForServer';
@@ -46,6 +48,12 @@ export const getUserById = (userId: string) =>
export const getAllPublicServers = () =>
handleGetAllPublicServers(getDataSource());
export const getFeaturedServers = (limit?: number) =>
handleGetFeaturedServers(getDataSource(), limit);
export const getTrendingServers = (limit?: number) =>
handleGetTrendingServers(getDataSource(), limit);
export const getServerById = (serverId: string) =>
handleGetServerById({ type: QueryType.GetServerById, payload: { serverId } }, getDataSource());