Skip to main content
Glama
PropsAsTree.vue594 B
<template> <ol class="ml-xs cursor-pointer" @click.stop="() => (open = !open)"> {{ tree.prop.name }} <template v-if="open"> <li v-for="child in tree.children" :key="child.id" class="ml-xs"> <PropsAsTree :tree="child" /> </li> </template> </ol> </template> <script setup lang="ts"> import { ref } from "vue"; import { Prop } from "@/workers/types/entity_kind_types"; const open = ref(true); export interface PropsAsTree { id: string; children: PropsAsTree[]; prop: Prop; parent?: string; } defineProps<{ tree: PropsAsTree }>(); </script>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server