diff --git a/src/App.vue b/src/App.vue index ed4ae07..cef9175 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,21 +1,7 @@ diff --git a/src/components/Editor.vue b/src/components/Editor.vue new file mode 100644 index 0000000..95a3978 --- /dev/null +++ b/src/components/Editor.vue @@ -0,0 +1,294 @@ + + + diff --git a/src/main.ts b/src/main.ts index 8a1724e..5dc2a0b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,10 @@ +import { createPinia } from "pinia" import { createApp } from "vue" +// Vue Flow styles first so our Tailwind utilities can override them. +import "@vue-flow/core/dist/style.css" +import "@vue-flow/core/dist/theme-default.css" +import "@vue-flow/controls/dist/style.css" import "./style.css" import App from "./App.vue" -createApp(App).mount("#app") +createApp(App).use(createPinia()).mount("#app") diff --git a/src/style.css b/src/style.css index e0b39ea..de95d33 100644 --- a/src/style.css +++ b/src/style.css @@ -15,3 +15,15 @@ @theme { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; } + +/* Larger, easier-to-grab connection handles (Vue Flow defaults to 6px). The + Flow valve is small, so its handles get extra size. Loaded after Vue Flow's + own CSS (see main.ts) so these win. */ +.vue-flow__handle { + width: 11px; + height: 11px; +} +.vue-flow__node-flow .vue-flow__handle { + width: 14px; + height: 14px; +}