Skip to main content
Glama
ReviewAttributeItemSourceAndValue.vue2.64 kB
<template> <div :class=" clsx( 'flex flex-row items-center gap-xs font-mono min-h-10 p-xs rounded-sm text-xs', old ? themeClasses('text-neutral-600', 'text-neutral-400') : themeClasses('bg-success-200', 'bg-newhotness-success'), ) " > <div :class=" clsx( 'text-xl flex-none w-sm text-center', !old && themeClasses('text-success-600', 'text-success-500'), ) " > {{ old ? "-" : "+" }} </div> <AttributeValueBox v-if="$source.component" class="min-w-0"> <div :class=" clsx( 'max-w-full flex flex-row items-center px-2xs [&>*]:min-w-0 [&>*]:flex-1 [&>*]:max-w-fit [&>*]:py-2xs', old && 'line-through', ) " > <div :class=" clsx( !old && themeClasses( 'text-newhotness-purplelight', 'text-newhotness-purpledark', ), ) " > {{ $source.componentName }} </div> <div class="flex-none">/</div> <div :class="themeClasses('text-neutral-600', 'text-neutral-400')"> <template v-if="$secret"> {{ $secret.name }} </template> <template v-else-if="$value !== undefined"> {{ $value }} </template> <template v-else> &lt;{{ $source.path }}&gt; </template> </div> </div> </AttributeValueBox> <div v-else :class=" clsx('py-2xs min-w-0 break-words', { 'line-through': !!old && !!($secret || $value), italic: !($secret || $value), }) " > <template v-if="$secret"> <!-- TODO(Wendy) - Ideally we would put the secret's name here --> Secret {{ old ? "Removed" : "Added" }} </template> <template v-else> {{ $value ?? "No value on HEAD" }} </template> </div> </div> </template> <script setup lang="ts"> import { themeClasses } from "@si/vue-lib/design-system"; import clsx from "clsx"; import { computed } from "vue"; import { AttributeSourceAndValue } from "@/workers/types/entity_kind_types"; import AttributeValueBox from "./layout_components/AttributeValueBox.vue"; const props = defineProps<{ sourceAndValue: AttributeSourceAndValue; old?: boolean; secret?: boolean; }>(); const $source = computed(() => props.sourceAndValue.$source); const $value = computed(() => props.sourceAndValue.$value); const $secret = computed(() => props.sourceAndValue.$secret); </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