diff --git a/packages/hoppscotch-sh-admin/src/components.d.ts b/packages/hoppscotch-sh-admin/src/components.d.ts index 963c86ccd..66d312765 100644 --- a/packages/hoppscotch-sh-admin/src/components.d.ts +++ b/packages/hoppscotch-sh-admin/src/components.d.ts @@ -28,6 +28,21 @@ declare module '@vue/runtime-core' { IconLucideSidebarClose: typeof import('~icons/lucide/sidebar-close')['default'] IconLucideSidebarOpen: typeof import('~icons/lucide/sidebar-open')['default'] IconLucideUser: typeof import('~icons/lucide/user')['default'] + IconLucideBell: typeof import('~icons/lucide/bell')['default'] + IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default'] + IconLucideChevronLeft: typeof import('~icons/lucide/chevron-left')['default'] + IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default'] + IconLucideFolderTree: typeof import('~icons/lucide/folder-tree')['default'] + IconLucideInbox: typeof import('~icons/lucide/inbox')['default'] + IconLucideLayoutDashboard: typeof import('~icons/lucide/layout-dashboard')['default'] + IconLucideLineChart: typeof import('~icons/lucide/line-chart')['default'] + IconLucideMenu: typeof import('~icons/lucide/menu')['default'] + IconLucideMoreHorizontal: typeof import('~icons/lucide/more-horizontal')['default'] + IconLucideSettings: typeof import('~icons/lucide/settings')['default'] + IconLucideSidebarClose: typeof import('~icons/lucide/sidebar-close')['default'] + IconLucideSidebarOpen: typeof import('~icons/lucide/sidebar-open')['default'] + IconLucideUser: typeof import('~icons/lucide/user')['default'] + IconLucideUserCog: typeof import('~icons/lucide/user-cog')['default'] IconLucideUsers: typeof import('~icons/lucide/users')['default'] ProfilePicture: typeof import('./components/profile/Picture.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/Metrics.graphql b/packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/Metrics.graphql new file mode 100644 index 000000000..b75020167 --- /dev/null +++ b/packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/Metrics.graphql @@ -0,0 +1,8 @@ +query Metrics { + admin { + usersCount + teamsCount + teamRequestsCount + teamCollectionsCount + } +} diff --git a/packages/hoppscotch-sh-admin/src/pages/dashboard.vue b/packages/hoppscotch-sh-admin/src/pages/dashboard.vue index fa7b6c548..af9bbba75 100644 --- a/packages/hoppscotch-sh-admin/src/pages/dashboard.vue +++ b/packages/hoppscotch-sh-admin/src/pages/dashboard.vue @@ -2,62 +2,87 @@
No Metrics Found..
+