mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
refactored to array of obejcts
This commit is contained in:
1 parent
65f046eefe
commit
195d37ba33
3 files changed
+54
-93
No files matched your search
@@ -24,10 +24,7 @@
|
||||
import DatabaseImgSourceDark from './assets/database-dark.png';
|
||||
import DiscordImgSource from './assets/discord.png';
|
||||
import DiscordImgSourceDark from './assets/discord-dark.png';
|
||||
import CursorIcon from './components/CursorIcon.svelte';
|
||||
import ClaudeIcon from './components/ClaudeIcon.svelte';
|
||||
import VSCodeIcon from './components/VSCodeIcon.svelte';
|
||||
import WindsurfIcon from './components/WindsurfIcon.svelte';
|
||||
import { mcpTools } from '../store';
|
||||
import PlatformIosImgSource from './assets/platform-ios.svg';
|
||||
import PlatformIosImgSourceDark from './assets/platform-ios-dark.svg';
|
||||
import PlatformAndroidImgSource from './assets/platform-android.svg';
|
||||
@@ -562,54 +559,20 @@
|
||||
direction="row"
|
||||
gap="s"
|
||||
wrap="wrap">
|
||||
<Button.Anchor
|
||||
href="https://apwr.dev/docs-mcp-cursor?ref=docs"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon
|
||||
slot="start"
|
||||
icon={CursorIcon}
|
||||
size="xs" />
|
||||
Cursor
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://appwrite.io/docs/tooling/mcp/claude"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon
|
||||
slot="start"
|
||||
icon={ClaudeIcon}
|
||||
size="xs" />
|
||||
Claude Desktop
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://apwr.dev/docs-mcp-vscode?ref=docs"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon
|
||||
slot="start"
|
||||
icon={VSCodeIcon}
|
||||
size="xs" />
|
||||
VS code
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://appwrite.io/docs/tooling/mcp/windsurf"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon
|
||||
slot="start"
|
||||
icon={WindsurfIcon}
|
||||
size="xs" />
|
||||
Windsurf editor
|
||||
</Button.Anchor>
|
||||
{#each mcpTools as tool}
|
||||
<Button.Anchor
|
||||
href={tool.href}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon
|
||||
slot="start"
|
||||
icon={tool.icon}
|
||||
size="xs" />
|
||||
{tool.label}
|
||||
</Button.Anchor>
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
|
||||
+12
-41
@@ -29,11 +29,7 @@
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
import type { ComponentType } from 'svelte';
|
||||
import { Link } from '$lib/elements';
|
||||
import { regionalConsoleVariables } from '../store';
|
||||
import CursorIcon from '../overview/components/CursorIcon.svelte';
|
||||
import ClaudeIcon from '../overview/components/ClaudeIcon.svelte';
|
||||
import VSCodeIcon from '../overview/components/VSCodeIcon.svelte';
|
||||
import WindsurfIcon from '../overview/components/WindsurfIcon.svelte';
|
||||
import { regionalConsoleVariables, mcpTools } from '../store';
|
||||
|
||||
export let total: number;
|
||||
export let limit: number;
|
||||
@@ -217,42 +213,17 @@
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="actions">
|
||||
<Layout.Stack direction="row" gap="s" wrap="wrap" justifyContent="center">
|
||||
<Button.Anchor
|
||||
href="https://apwr.dev/docs-mcp-cursor?ref=docs"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon slot="start" icon={CursorIcon} size="xs" />
|
||||
Cursor
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://appwrite.io/docs/tooling/mcp/claude"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon slot="start" icon={ClaudeIcon} size="xs" />
|
||||
Claude Desktop
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://apwr.dev/docs-mcp-vscode?ref=docs"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon slot="start" icon={VSCodeIcon} size="xs" />
|
||||
VS code
|
||||
</Button.Anchor>
|
||||
<Button.Anchor
|
||||
href="https://appwrite.io/docs/tooling/mcp/windsurf"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon slot="start" icon={WindsurfIcon} size="xs" />
|
||||
Windsurf editor
|
||||
</Button.Anchor>
|
||||
{#each mcpTools as tool}
|
||||
<Button.Anchor
|
||||
href={tool.href}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
size="s"
|
||||
variant="secondary">
|
||||
<Icon slot="start" icon={tool.icon} size="xs" />
|
||||
{tool.label}
|
||||
</Button.Anchor>
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
</svelte:fragment>
|
||||
</Empty>
|
||||
|
||||
@@ -3,6 +3,10 @@ import type { BarSeriesOption } from 'echarts/charts';
|
||||
import { derived, get, writable } from 'svelte/store';
|
||||
import { regions } from '$lib/stores/organization';
|
||||
import { page } from '$app/stores';
|
||||
import CursorIcon from './overview/components/CursorIcon.svelte';
|
||||
import ClaudeIcon from './overview/components/ClaudeIcon.svelte';
|
||||
import VSCodeIcon from './overview/components/VSCodeIcon.svelte';
|
||||
import WindsurfIcon from './overview/components/WindsurfIcon.svelte';
|
||||
|
||||
export const project = derived(page, ($page) => $page.data.project as Models.Project);
|
||||
|
||||
@@ -73,3 +77,26 @@ function createStats() {
|
||||
}
|
||||
|
||||
export const stats = createStats();
|
||||
|
||||
export const mcpTools = [
|
||||
{
|
||||
href: 'https://apwr.dev/docs-mcp-cursor?ref=docs',
|
||||
icon: CursorIcon,
|
||||
label: 'Cursor'
|
||||
},
|
||||
{
|
||||
href: 'https://appwrite.io/docs/tooling/mcp/claude',
|
||||
icon: ClaudeIcon,
|
||||
label: 'Claude Desktop'
|
||||
},
|
||||
{
|
||||
href: 'https://apwr.dev/docs-mcp-vscode?ref=docs',
|
||||
icon: VSCodeIcon,
|
||||
label: 'VS code'
|
||||
},
|
||||
{
|
||||
href: 'https://appwrite.io/docs/tooling/mcp/windsurf',
|
||||
icon: WindsurfIcon,
|
||||
label: 'Windsurf editor'
|
||||
}
|
||||
];
|
||||
Reference in new issue
Block a user