-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement attributes view for component debug screen
- Loading branch information
1 parent
8856b75
commit 0cb9e87
Showing
26 changed files
with
1,206 additions
and
759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<div class="overflow-hidden my-xs p-xs border-opacity-10 border-l-2"> | ||
<dl class="flex flex-col gap-xs"> | ||
<DebugViewItem title="Attribute Value Id" :data="data.attributeValueId" /> | ||
<DebugViewItem :data="data.kind ?? 'any'" title="Type" /> | ||
<DebugViewItem | ||
:data="`${data.funcName} ${data.funcId}`" | ||
title="Set By Function" | ||
/> | ||
<DebugViewItem title="Input" :data="data.funcArgs ?? 'NULL'" /> | ||
<DebugViewItem title="Input sources"> | ||
<template #data> | ||
<ul v-if="data.argSources && Object.keys(data.argSources).length"> | ||
<li v-for="[k, v] in Object.entries(data.argSources)" :key="k"> | ||
<strong>{{ k }}</strong> | ||
: {{ v ?? "?" }} | ||
</li> | ||
</ul> | ||
<p v-else>No input sources</p> | ||
</template> | ||
</DebugViewItem> | ||
<DebugViewItem title="Value" :data="data.value ?? 'NULL'" /> | ||
<DebugViewItem title="Prototype Id" :data="data.prototypeId" /> | ||
<DebugViewItem title="Socket Id" :data="data.socketId" /> | ||
<DebugViewItem title="Connection Annotations"> | ||
<template #data> | ||
<ul | ||
v-if=" | ||
data.connectionAnnotations && data.connectionAnnotations.length | ||
" | ||
> | ||
<li | ||
v-for="connection in data.connectionAnnotations" | ||
:key="connection" | ||
:data="connection" | ||
> | ||
{{ connection }} | ||
</li> | ||
</ul> | ||
<p v-else>No input sources</p> | ||
</template> | ||
</DebugViewItem> | ||
<DebugViewItem | ||
title="Materialized View" | ||
:data="data.materializedView ?? 'NULL'" | ||
/> | ||
</dl> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { SocketDebugView } from "@/store/components.store"; | ||
import DebugViewItem from "./DebugViewItem.vue"; | ||
defineProps<{ data: SocketDebugView }>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.