chore(docs,examples): replace dagre with dagrejs/dagre
This commit is contained in:
@@ -134,10 +134,10 @@ export const exampleImports = {
|
|||||||
'useLayout.js': useLayout,
|
'useLayout.js': useLayout,
|
||||||
'Icon.vue': LayoutIcon,
|
'Icon.vue': LayoutIcon,
|
||||||
'additionalImports': {
|
'additionalImports': {
|
||||||
'@vueuse/core': 'https://cdn.jsdelivr.net/npm/@vueuse/core@10.7.0/index.mjs',
|
'@vueuse/core': 'https://cdn.jsdelivr.net/npm/@vueuse/core@latest/index.mjs',
|
||||||
'@vueuse/shared': 'https://cdn.jsdelivr.net/npm/@vueuse/shared@10.7.0/index.mjs',
|
'@vueuse/shared': 'https://cdn.jsdelivr.net/npm/@vueuse/shared@latest/index.mjs',
|
||||||
'vue-demi': 'https://cdn.jsdelivr.net/npm/vue-demi@0.13.11/lib/index.mjs',
|
'vue-demi': 'https://cdn.jsdelivr.net/npm/vue-demi@latest/lib/index.mjs',
|
||||||
'dagre': 'https://cdn.skypack.dev/pin/dagre@v0.8.5-NOlknF82nBdUHQKLJWRC/mode=imports,min/optimized/dagre.js',
|
'@dagrejs/dagre': 'https://cdn.jsdelivr.net/npm/@dagrejs/dagre@1.1.2/dist/dagre.min.js',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import dagre from 'dagre'
|
import dagre from '@dagrejs/dagre'
|
||||||
import { Position, useVueFlow } from '@vue-flow/core'
|
import { Position, useVueFlow } from '@vue-flow/core'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"lint": "eslint --ext .js,.ts,.vue ./ && vue-tsc --noEmit"
|
"lint": "eslint --ext .js,.ts,.vue ./ && vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@dagrejs/dagre": "^1.1.2",
|
||||||
"@vue-flow/background": "workspace:*",
|
"@vue-flow/background": "workspace:*",
|
||||||
"@vue-flow/controls": "workspace:*",
|
"@vue-flow/controls": "workspace:*",
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
@@ -18,9 +19,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tooling/eslint-config": "workspace:*",
|
"@tooling/eslint-config": "workspace:*",
|
||||||
"@tooling/tsconfig": "workspace:*",
|
"@tooling/tsconfig": "workspace:*",
|
||||||
"@types/dagre": "^0.7.50",
|
|
||||||
"@vitejs/plugin-vue": "^4.4.0",
|
"@vitejs/plugin-vue": "^4.4.0",
|
||||||
"dagre": "^0.8.5",
|
|
||||||
"unplugin-auto-import": "^0.16.6",
|
"unplugin-auto-import": "^0.16.6",
|
||||||
"vite": "^4.4.11",
|
"vite": "^4.4.11",
|
||||||
"vite-svg-loader": "^4.0.0",
|
"vite-svg-loader": "^4.0.0",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import dagre from 'dagre'
|
import dagre from '@dagrejs/dagre'
|
||||||
import { ConnectionMode, Panel, Position, VueFlow, useVueFlow } from '@vue-flow/core'
|
import { ConnectionMode, Panel, Position, VueFlow, useVueFlow } from '@vue-flow/core'
|
||||||
|
|
||||||
import { initialEdges, initialNodes } from './initial-elements'
|
import { initialEdges, initialNodes } from './initial-elements'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type dagre from 'dagre'
|
import type dagre from '@dagrejs/dagre'
|
||||||
import type { Node } from '@vue-flow/core'
|
import type { Node } from '@vue-flow/core'
|
||||||
import { useVueFlow } from '@vue-flow/core'
|
import { useVueFlow } from '@vue-flow/core'
|
||||||
import type { MaybeRefOrGetter } from 'vue'
|
import type { MaybeRefOrGetter } from 'vue'
|
||||||
|
|||||||
Generated
+9060
-7507
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user