From d35eb96c1f1d95e2ba04a27fdaff96374b176f3e Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 11 Apr 2022 15:07:56 +0200 Subject: [PATCH] docs: update examples wordings # What's changed? * Change example pages wordings * Add Acknowledgement banner --- docs/components/home/Acknowledgement.vue | 23 +++++++++++++++++++++ docs/components/home/flows/Intro.vue | 4 ++-- docs/src/.vuepress/components.d.ts | 1 + docs/src/examples/connectionline.md | 17 ++++++++++++++-- docs/src/examples/custom-node.md | 4 ++-- docs/src/examples/dnd.md | 8 +++++--- docs/src/examples/edges.md | 4 ++-- docs/src/examples/empty.md | 3 ++- docs/src/examples/floating-edges.md | 4 +++- docs/src/examples/hidden.md | 4 ++-- docs/src/examples/index.md | 7 ++++--- docs/src/examples/interaction.md | 5 ++++- docs/src/examples/nesting.md | 2 +- docs/src/examples/save.md | 5 +++-- docs/src/examples/stress.md | 4 +++- docs/src/examples/updatable-edge.md | 5 ++++- docs/src/examples/update-node.md | 8 +++++++- docs/src/examples/validation.md | 26 ++++++++++++++++++++++-- docs/src/index.md | 2 ++ 19 files changed, 109 insertions(+), 27 deletions(-) create mode 100644 docs/components/home/Acknowledgement.vue diff --git a/docs/components/home/Acknowledgement.vue b/docs/components/home/Acknowledgement.vue new file mode 100644 index 00000000..6bdc6ba6 --- /dev/null +++ b/docs/components/home/Acknowledgement.vue @@ -0,0 +1,23 @@ + diff --git a/docs/components/home/flows/Intro.vue b/docs/components/home/flows/Intro.vue index 87eaf82f..85b53afa 100644 --- a/docs/components/home/flows/Intro.vue +++ b/docs/components/home/flows/Intro.vue @@ -131,8 +131,8 @@ onPaneReady(({ fitView }) => {
-

Visualize your ideas with Vue Flow

-

+

Vue Flow

+

A customizable Vue.js library for building node-based editors and diagrams.

diff --git a/docs/src/.vuepress/components.d.ts b/docs/src/.vuepress/components.d.ts index 03720f33..d783008c 100644 --- a/docs/src/.vuepress/components.d.ts +++ b/docs/src/.vuepress/components.d.ts @@ -4,6 +4,7 @@ declare module 'vue' { export interface GlobalComponents { + Acknowledgement: typeof import('./../../components/home/Acknowledgement.vue')['default'] Additional: typeof import('./../../components/home/Additional.vue')['default'] Banner: typeof import('./../../components/home/Banner.vue')['default'] Basic: typeof import('./../../components/home/Basic.vue')['default'] diff --git a/docs/src/examples/connectionline.md b/docs/src/examples/connectionline.md index 66adea80..dba5893f 100644 --- a/docs/src/examples/connectionline.md +++ b/docs/src/examples/connectionline.md @@ -5,9 +5,22 @@ pageClass: examples # Custom Connection Line -This example shows how you can implement a custom connection line. +If the default connection lines aren't to your liking, or you want to expand on the existing +functionality you can pass a custom connection line component to Vue Flow. -Pass the connection line component into the template slot of the `VueFlow` component. +Simply pass a component in the designated template slot, and you're good to go. + +```vue:no-line-numbers + +``` + +You can see a working example in the sandbox.