From d50d74598b3bf5ac80200e9e0bc382d4852f77e0 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 10 Jul 2021 16:41:17 +0200 Subject: [PATCH] update: no vue-2 compatability (doesn't work with current build) * README.md --- README.md | 9 +-------- rollup.config.js | 4 ++-- src/App.vue | 2 +- src/Basic.tsx | 2 +- src/additional-components/Background/index.tsx | 2 +- src/additional-components/Controls/index.tsx | 2 +- src/additional-components/MiniMap/MiniMapNode.tsx | 2 +- src/additional-components/MiniMap/index.tsx | 2 +- src/components/ConnectionLine/index.tsx | 2 +- src/components/Edges/BezierEdge.tsx | 2 +- src/components/Edges/EdgeAnchor.tsx | 2 +- src/components/Edges/EdgeText.tsx | 2 +- src/components/Edges/SmoothStepEdge.tsx | 2 +- src/components/Edges/StepEdge.tsx | 2 +- src/components/Edges/StraightEdge.tsx | 2 +- src/components/Edges/wrapEdge.tsx | 2 +- src/components/Handle/index.tsx | 2 +- src/components/Nodes/DefaultNode.tsx | 2 +- src/components/Nodes/InputNode.tsx | 2 +- src/components/Nodes/OutputNode.tsx | 2 +- src/components/Nodes/wrapNode.tsx | 2 +- src/components/UserSelection/index.tsx | 2 +- src/container/EdgeRenderer/MarkerDefinitions.tsx | 2 +- src/container/EdgeRenderer/index.tsx | 2 +- src/container/EdgeRenderer/utils.ts | 2 +- src/container/FlowRenderer/index.tsx | 2 +- src/container/GraphView/index.tsx | 2 +- src/container/NodeRenderer/index.tsx | 2 +- src/container/RevueFlow/index.tsx | 2 +- src/container/ZoomPane/index.tsx | 2 +- src/hooks/useGlobalKeyHandler.ts | 2 +- src/hooks/useKeyPress.ts | 2 +- src/main.ts | 2 +- src/types/index.ts | 2 +- 34 files changed, 35 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index b860c8ec..3d98aded 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,7 @@ import '@braks/revue-flow/dist/style.css'; ``` ## Vue2 -With Vue2 make sure you have the composition api installed as a dependency. Same goes for Nuxtjs. -```bash -# install revue flow -$ yarn add @braks/revue-flow @vue/composition-api - -# or -$ npm i --save @braks/revue-flowy @vue/composition-api -``` +This doesn't work with Vue2, sorry. ## Development This project uses Vite for development and Rollup to create type definitions. diff --git a/rollup.config.js b/rollup.config.js index 438491e0..cc9fdf89 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -82,7 +82,7 @@ function createConfig(format, output, plugins = []) { output.sourcemap = !!process.env.SOURCE_MAP; output.banner = banner; output.externalLiveBindings = false; - output.globals = { 'vue-demi': 'VueDemi' }; + output.globals = { 'vue': 'Vue' }; const isProductionBuild = /\.prod\.js$/.test(output.file); const isGlobalBuild = format.startsWith('global'); @@ -111,7 +111,7 @@ function createConfig(format, output, plugins = []) { // during a single build. hasTSChecked = true; - const external = ['vue-demi']; + const external = ['vue']; const nodePlugins = [resolve(), commonjs({ include: 'node_modules/**' })]; diff --git a/src/App.vue b/src/App.vue index 9392ce97..06efe323 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@