-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
- Loading branch information
1 parent
066155b
commit 9f329c8
Showing
10 changed files
with
157 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script lang="ts" setup> | ||
const examples = [ | ||
{ | ||
path: '/', | ||
label: 'Introduction', | ||
}, | ||
] | ||
</script> | ||
<template> | ||
<aside> | ||
<div class="flex flex-col text-left items-start"> | ||
<router-link v-for="(e, i) of examples" :key="`docs-link-${i}`" class="docs-link" :to="`/docs${e.path}`"> | ||
{{ e.label }} | ||
</router-link> | ||
</div> | ||
</aside> | ||
</template> | ||
<style scoped> | ||
.docs-link { | ||
@apply w-full text-lg text-white hover:text-yellow-500 px-3 py-2; | ||
} | ||
.router-link-active { | ||
@apply rounded-lg bg-white font-semibold text-yellow-500; | ||
} | ||
aside { | ||
@apply w-[280px] px-[10px] py-[15px]; | ||
background: rgba(0, 0, 0, 0.25) !important; | ||
overflow-x: hidden; /* Disable horizontal scroll */ | ||
} | ||
</style> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<ExamplesSidebar /> | ||
<div id="vue-flow-examples" class="flex-1"> | ||
<slot /> | ||
</div> | ||
</template> |
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,8 @@ | ||
<template> | ||
<DocsSidebar /> | ||
<div id="vue-flow-docs" class="flex-1 flex flex-col items-center justify-center"> | ||
<div class="p-6 text-left gap-2 w-1/2"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script> | ||
export default { | ||
layout: 'docs', | ||
} | ||
</script> | ||
<template> | ||
<h1>Getting started</h1> | ||
<p> | ||
Vue Flow, just like React Flow, is a library for building node-based applications. These can be simple static diagrams or | ||
complex node-based editors. You can implement custom node types and edge types and it comes with components like a mini-map | ||
and graph controls. Feel free to check out the <router-link to="/examples">examples</router-link>. | ||
</p> | ||
</template> |
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,49 @@ | ||
<script> | ||
export default { | ||
layout: 'docs', | ||
} | ||
</script> | ||
<template> | ||
<div class="p-4 bg-yellow-200 rounded-xl mb-4"> | ||
<p class="italic font-bold"> | ||
Vue Flow is not ready for production use yet. If you want to contribute getting the library ready, feel free to do so! | ||
Improvements need to be made on perfomance, documentation and testing. | ||
</p> | ||
</div> | ||
|
||
<h1>Introduction</h1> | ||
<p> | ||
Vue Flow, just like React Flow, is a library for building node-based applications. These can be simple static diagrams or | ||
complex node-based editors. You can implement custom node types and edge types and it comes with components like a mini-map | ||
and graph controls. Feel free to check out the <router-link to="/examples">examples</router-link>. | ||
</p> | ||
|
||
<h1>Key Features</h1> | ||
<ul> | ||
<li> | ||
<span class="font-semibold">👶 Easy to use</span>: Seamless zooming & panning behaviour and single and multi-selections of | ||
elements | ||
</li> | ||
<li> | ||
<span class="font-semibold">🎨 Customizable</span>: Different <router-link to="/docs/api/node-types">node</router-link> and | ||
<router-link to="/docs/api/edge-types">edge types</router-link> and support for custom nodes with multiple handles and | ||
custom edges | ||
</li> | ||
<li> | ||
<span class="font-semibold">(🚧 Kinda, it's a work in progress) Fast rendering</span>: Only nodes that have changed are | ||
re-rendered and only those that are in the viewport are displayed (optionally) | ||
</li> | ||
<li> | ||
<span class="font-semibold">🧲 Utils</span>: Snap-to-grid and graph | ||
<router-link to="/docs/api/helper-functions">helper functions</router-link> | ||
</li> | ||
<li> | ||
<span class="font-semibold">📦 Components</span>: <router-link to="/docs/api/background">Background</router-link>, | ||
<router-link to="/docs/api/minimap">Minimap</router-link> and <router-link to="/docs/api/controls">Controls</router-link> | ||
</li> | ||
<li> | ||
<span class="font-semibold">🦾 Reliable</span>: Written in <a href="https://www.typescriptlang.org/">TypeScript</a>(🚧 and | ||
not yet tested with <a href="https://cypress.io">Cypress</a>) | ||
</li> | ||
</ul> | ||
</template> |
9f329c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: