mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-10-03 03:17:32 -05:00
ui : resolve bundled icon paths against the app base path
Serve the recommended MCP server favicons and the Hugging Face badge from the app's base path, not the domain root, so they resolve when the app is mounted under a path. Also normalizes the safe HTML config indentation. Assisted-by: pi:GLM-5.3-Flash
This commit is contained in:
committed by
Aleksander Grygier
parent
65d72b1efd
commit
354d543633
@@ -1,3 +1,4 @@
|
||||
import { base } from '$app/paths';
|
||||
import type { RecommendedMCPServer } from '$lib/types';
|
||||
|
||||
// Suggested MCP servers shown as opt-in cards in the "Add New Server" dialog.
|
||||
@@ -7,22 +8,22 @@ import type { RecommendedMCPServer } from '$lib/types';
|
||||
export const RECOMMENDED_MCP_SERVERS: RecommendedMCPServer[] = [
|
||||
{
|
||||
description: 'Search the web and fetch full page content as clean markdown.',
|
||||
iconUrl: '/recommended-mcp/exa.ico',
|
||||
iconUrl: `${base}/recommended-mcp/exa.ico`,
|
||||
id: 'exa',
|
||||
name: 'Exa',
|
||||
url: 'https://mcp.exa.ai/mcp'
|
||||
},
|
||||
{
|
||||
description: 'Search and browse AI models, datasets, spaces, and docs on the Hugging Face Hub.',
|
||||
iconUrl: '/recommended-mcp/huggingface.ico',
|
||||
iconUrl: `${base}/recommended-mcp/huggingface.ico`,
|
||||
id: 'huggingface',
|
||||
name: 'Hugging Face',
|
||||
url: 'https://huggingface.co/mcp'
|
||||
},
|
||||
{
|
||||
description: 'Search repositories, issues, pull requests and interact with code on GitHub.',
|
||||
iconUrlDark: '/recommended-mcp/github-dark.png',
|
||||
iconUrlLight: '/recommended-mcp/github-light.png',
|
||||
iconUrlDark: `${base}/recommended-mcp/github-dark.png`,
|
||||
iconUrlLight: `${base}/recommended-mcp/github-light.png`,
|
||||
id: 'github',
|
||||
name: 'GitHub',
|
||||
needsAuthorization: true,
|
||||
@@ -30,7 +31,7 @@ export const RECOMMENDED_MCP_SERVERS: RecommendedMCPServer[] = [
|
||||
},
|
||||
{
|
||||
description: 'Browse up-to-date documentation and code examples for libraries and frameworks.',
|
||||
iconUrl: '/recommended-mcp/context7.png',
|
||||
iconUrl: `${base}/recommended-mcp/context7.png`,
|
||||
id: 'context7',
|
||||
name: 'Context7',
|
||||
url: 'https://mcp.context7.com/mcp'
|
||||
|
||||
Reference in New Issue
Block a user