feat(ui): canvas authoring by right-click menu and + insertion points; steps edit in a slide-in panel and show what they do
This commit is contained in:
14 files changed
+716
-379
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { Handle, Position } from "@vue-flow/core";
|
||||
|
||||
import AddStepMenu from "./AddStepMenu.vue";
|
||||
|
||||
defineProps<{ data: { types: string[]; editable: boolean; onInsert: (type: string) => void } }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex w-8 justify-center">
|
||||
<Handle type="target" :position="Position.Top" class="!opacity-0" />
|
||||
<AddStepMenu v-if="data.editable" :types="data.types" label="Add a step at the end" @pick="data.onInsert" />
|
||||
<span v-else class="size-2 rounded-full bg-border" aria-hidden="true" />
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user