From 945fb626d9353cc7f947f8231109b08e823a4729 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 9 Aug 2019 19:57:11 +0800 Subject: [PATCH] debug html --- Android/doric/build.gradle | 5 +++ debugger/package-lock.json | 37 ++++++++++++++++++++ debugger/package.json | 1 + debugger/public/index.html | 34 ++++++++++-------- debugger/src/App.vue | 19 ++++++---- debugger/src/components/Debug.vue | 58 +++++++++++++++++++++++++++++++ debugger/src/main.js | 6 ++-- 7 files changed, 136 insertions(+), 24 deletions(-) create mode 100644 debugger/src/components/Debug.vue diff --git a/Android/doric/build.gradle b/Android/doric/build.gradle index 40d7046a..3bcf8315 100644 --- a/Android/doric/build.gradle +++ b/Android/doric/build.gradle @@ -25,6 +25,7 @@ android { afterEvaluate { buildJSBundle.exec() + buildDebugger.exec() } task buildJSBundle(type: Exec) { @@ -32,6 +33,10 @@ task buildJSBundle(type: Exec) { commandLine 'npm', 'run', 'build' } +task buildDebugger(type: Exec) { + workingDir project.rootDir.getParent() + "/debugger" + commandLine 'npm', 'run', 'build' +} dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) diff --git a/debugger/package-lock.json b/debugger/package-lock.json index 042ad989..5cec748e 100644 --- a/debugger/package-lock.json +++ b/debugger/package-lock.json @@ -1978,6 +1978,43 @@ "integrity": "sha1-8OAD2cqef1nHpQiUXXsu+aBKVC8=", "dev": true }, + "axios": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", + "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "is-buffer": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", + "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz", diff --git a/debugger/package.json b/debugger/package.json index 519cc6b5..6cf4863f 100644 --- a/debugger/package.json +++ b/debugger/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "axios": "^0.19.0", "core-js": "^2.6.5", "vue": "^2.6.10" }, diff --git a/debugger/public/index.html b/debugger/public/index.html index 7d1d97b5..ad9563f5 100644 --- a/debugger/public/index.html +++ b/debugger/public/index.html @@ -1,17 +1,21 @@ - - - - - - debugger - - - -
- - - + + + + + + + Doric Dev Pannel + + + + +
+ + + + \ No newline at end of file diff --git a/debugger/src/App.vue b/debugger/src/App.vue index fcc56627..3f723a8e 100644 --- a/debugger/src/App.vue +++ b/debugger/src/App.vue @@ -1,24 +1,29 @@ diff --git a/debugger/src/main.js b/debugger/src/main.js index 63eb05f7..73ddc5a4 100644 --- a/debugger/src/main.js +++ b/debugger/src/main.js @@ -3,6 +3,8 @@ import App from './App.vue' Vue.config.productionTip = false -new Vue({ +var vm = new Vue({ render: h => h(App), -}).$mount('#app') + allContext: [{ "source": "demo", "id": "1" }], +}) +vm.$mount('#app')