Skip to content

Commit 1735381

Browse files
committed
go to vuera
1 parent 655f138 commit 1735381

File tree

5 files changed

+13
-52
lines changed

5 files changed

+13
-52
lines changed

babel.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
presets: [
33
'@vue/cli-plugin-babel/preset'
4-
],
5-
plugins: ["transform-react-jsx"]
4+
]
65
}

package-lock.json

+5-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"lint": "vue-cli-service lint"
1010
},
1111
"dependencies": {
12-
"babel-plugin-transform-react-jsx": "^6.24.1",
1312
"codemirror": "^5.57.0",
1413
"core-js": "^3.6.5",
1514
"plotly.js": "^1.54.6",
@@ -20,9 +19,9 @@
2019
"sqlite-parser": "^1.0.1",
2120
"vue": "^2.6.11",
2221
"vue-codemirror": "^4.0.6",
23-
"vue-react": "^1.2.0",
2422
"vue-router": "^3.2.0",
2523
"vuejs-paginate": "^2.1.0",
24+
"vuera": "^0.2.7",
2625
"vuex": "^3.4.0"
2726
},
2827
"devDependencies": {

src/components/TabContent.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,17 @@ import 'codemirror/addon/hint/show-hint.js'
5757
import 'codemirror/addon/hint/show-hint.css'
5858
import 'codemirror/addon/hint/sql-hint.js'
5959
60+
import PlotlyEditor from 'react-chart-editor'
61+
6062
export default {
6163
name: 'TabContent',
6264
props: ['id', 'initName', 'initQuery', 'initPlotly', 'tabIndex'],
6365
components: {
6466
codemirror,
6567
SqlTable,
6668
Splitpanes,
67-
ViewSwitcher
69+
ViewSwitcher,
70+
PlotlyEditor
6871
},
6972
data () {
7073
return {

src/main.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import Vue from 'vue'
22
import App from './App.vue'
33
import router from './router'
44
import store from './store'
5-
import VueReact from 'vue-react'
6-
import PlotlyEditor from 'react-chart-editor'
5+
import { VuePlugin } from 'vuera'
76

87
import '@/assets/styles/variables.css'
98
import '@/assets/styles/buttons.css'
109
import '@/assets/styles/textFields.css'
1110
import '@/assets/styles/tables.css'
1211

13-
Vue.use(VueReact)
14-
Vue.react('PlotlyEditor', PlotlyEditor)
12+
Vue.use(VuePlugin)
1513

1614
Vue.config.productionTip = false
1715

0 commit comments

Comments
 (0)