Skip to content

Commit 4a78930

Browse files
author
Lasim
committed
feat(frontend): implement server search and installation wizard
1 parent bbd9b62 commit 4a78930

File tree

7 files changed

+685
-855
lines changed

7 files changed

+685
-855
lines changed

services/frontend/src/components/mcp-server/McpServerSquareCard.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ const handleInstall = () => {
3434
3535
emit('install', props.server)
3636
37-
router.push({
38-
path: '/mcp-server/install',
39-
query: {
40-
serverId: props.server.id,
41-
step: '2'
42-
}
43-
})
37+
router.push(`/mcp-server/install/${props.server.id}`)
4438
}
4539
4640
const handleServerClick = () => {
@@ -54,17 +48,17 @@ const getServerDescription = (server: McpServer) => {
5448
5549
const getRuntimeBadgeClass = (runtime: string | null | undefined) => {
5650
if (!runtime) return 'bg-gray-100 text-gray-800'
57-
51+
5852
const runtimeLower = runtime.toLowerCase()
59-
53+
6054
if (runtimeLower === 'node') {
6155
return 'bg-green-100 text-green-800'
6256
} else if (runtimeLower === 'python') {
6357
return 'bg-blue-100 text-blue-800'
6458
} else if (runtimeLower === 'http') {
6559
return 'bg-purple-100 text-purple-800'
6660
}
67-
61+
6862
return 'bg-gray-100 text-gray-800'
6963
}
7064

0 commit comments

Comments
 (0)