diff --git a/debugger/package-lock.json b/debugger/package-lock.json index 5cec748e..f5c825ec 100644 --- a/debugger/package-lock.json +++ b/debugger/package-lock.json @@ -10994,6 +10994,11 @@ } } }, + "vue-router": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.2.tgz", + "integrity": "sha512-WssQEHSEvIS1/CI4CO2T8LJdoK4Q9Ngox28K7FDNMTfzNTk2WS5D0dDlqYCaPG+AG4Z8wJkn1KrBc7AhspZJUQ==" + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npm.taobao.org/vue-style-loader/download/vue-style-loader-4.1.2.tgz", diff --git a/debugger/package.json b/debugger/package.json index 6cf4863f..d9b2e2c8 100644 --- a/debugger/package.json +++ b/debugger/package.json @@ -10,7 +10,8 @@ "dependencies": { "axios": "^0.19.0", "core-js": "^2.6.5", - "vue": "^2.6.10" + "vue": "^2.6.10", + "vue-router": "^3.1.2" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.10.0", diff --git a/debugger/src/App.vue b/debugger/src/App.vue index ce2c8d13..1d13abee 100644 --- a/debugger/src/App.vue +++ b/debugger/src/App.vue @@ -1,21 +1,12 @@ - - - + diff --git a/debugger/src/components/Context.vue b/debugger/src/components/Context.vue new file mode 100644 index 00000000..efb8537c --- /dev/null +++ b/debugger/src/components/Context.vue @@ -0,0 +1,35 @@ + + + Context + + Dev tools for doric. + + Doric. + + Running Contexts + + + + + + + diff --git a/debugger/src/components/HelloWorld.vue b/debugger/src/components/HelloWorld.vue deleted file mode 100644 index 879051a2..00000000 --- a/debugger/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - {{ msg }} - - For a guide and recipes on how to configure / customize this project, - check out the - vue-cli documentation. - - Installed CLI Plugins - - babel - eslint - - Essential Links - - Core Docs - Forum - Community Chat - Twitter - News - - Ecosystem - - vue-router - vuex - vue-devtools - vue-loader - awesome-vue - - - - - - - - diff --git a/debugger/src/components/Debug.vue b/debugger/src/components/Home.vue similarity index 75% rename from debugger/src/components/Debug.vue rename to debugger/src/components/Home.vue index 956b2b1a..744709c8 100644 --- a/debugger/src/components/Debug.vue +++ b/debugger/src/components/Home.vue @@ -1,5 +1,6 @@ + {{ title }} Dev tools for doric. @@ -9,7 +10,8 @@ Running Contexts - source: {{item.source}} id: {{item.id}} + + {{item.source}} @@ -25,7 +27,7 @@ export default { }, data: () => { return { - runningContexts: [{ source: "xxxx", id: "xxx" }] + runningContexts: [{ source: "contextSource", id: "contexId" }] }; }, methods: { diff --git a/debugger/src/main.js b/debugger/src/main.js index 08b9b3b1..9f220c09 100644 --- a/debugger/src/main.js +++ b/debugger/src/main.js @@ -1,9 +1,12 @@ import Vue from 'vue' import App from './App.vue' +import VueRouter from 'vue-router' +import routes from './routes' -Vue.config.productionTip = false - -var vm = new Vue({ +Vue.use(VueRouter) +new Vue({ + router: new VueRouter({ + routes + }), render: h => h(App), -}) -vm.$mount('#app') +}).$mount('#app') diff --git a/debugger/src/routes.js b/debugger/src/routes.js new file mode 100644 index 00000000..951b1ec2 --- /dev/null +++ b/debugger/src/routes.js @@ -0,0 +1,7 @@ +import Home from './components/Home.vue' +import Context from './components/Context.vue' + +export default [ + { path: '/', component: Home }, + { path: '/context/:id', component: Context } +] \ No newline at end of file
+ Dev tools for doric. + + Doric. +
- For a guide and recipes on how to configure / customize this project, - check out the - vue-cli documentation. -
Dev tools for doric. @@ -9,7 +10,8 @@