diff --git a/package.json b/package.json
index 7b646563..735eb350 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
- "name": "vconsole",
- "version": "3.0.0-dev",
+ "name": "vConsole",
+ "version": "3.0.0",
"description": "A lightweight, extendable front-end developer tool for mobile web page.",
"homepage": "https://github.com/Tencent/vConsole",
"main": "dist/vconsole.min.js",
diff --git a/src/element/tpl_node_head.html b/src/element/tpl_node_head.html
index f6de9172..52663fba 100644
--- a/src/element/tpl_node_head.html
+++ b/src/element/tpl_node_head.html
@@ -1,6 +1,6 @@
<{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}
- {{for (var i=0; i{{node.attributes[i].value}}"{{else}}
{{node.attributes[i].name}}{{/if}}{{/for}}{{/if}}>
\ No newline at end of file
diff --git a/src/network/item.html b/src/network/item.html
index c2a6f0e5..ac4a194b 100644
--- a/src/network/item.html
+++ b/src/network/item.html
@@ -1,5 +1,5 @@
-
+
- {{url}}
- {{method}}
- {{status}}
diff --git a/src/network/network.js b/src/network/network.js
index f4669f21..ea28497f 100644
--- a/src/network/network.js
+++ b/src/network/network.js
@@ -63,14 +63,14 @@ class VConsoleNetworkTab extends VConsolePlugin {
// expend group item
$.delegate($.one('.vc-log', this.$tabbox), 'click', '.vc-group-preview', function(e) {
- let xhrID = this.dataset.xhrid;
+ let reqID = this.dataset.reqid;
let $group = this.parentNode;
if ($.hasClass($group, 'vc-actived')) {
$.removeClass($group, 'vc-actived');
- that.updateRequest(xhrID, {actived: false});
+ that.updateRequest(reqID, {actived: false});
} else {
$.addClass($group, 'vc-actived');
- that.updateRequest(xhrID, {actived: true});
+ that.updateRequest(reqID, {actived: true});
}
e.preventDefault();
});
diff --git a/src/storage/list.html b/src/storage/list.html
index 0abf02e3..a494b061 100644
--- a/src/storage/list.html
+++ b/src/storage/list.html
@@ -3,7 +3,7 @@
- Name
- Value
- {{for (var i=0; i
- {{list[i].name}}
- {{list[i].value}}
diff --git a/webpack.config.js b/webpack.config.js
index 6a3b32c2..b08d2a20 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -17,7 +17,7 @@ module.exports = {
module: {
loaders: [
{
- test: /\.html$/, loader: 'html'
+ test: /\.html$/, loader: 'html?minimize=false'
},
{
test: /\.js$/, loader: 'babel'
@@ -42,11 +42,11 @@ module.exports = {
'http://opensource.org/licenses/MIT',
'Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.'
].join('\n'))
- // ,new webpack.optimize.UglifyJsPlugin({
- // compress: {
- // warnings: false
- // }
- // })
+ ,new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ }
+ })
// ,new ExtractTextPlugin('[name].min.css') // 将css独立打包
]
};
\ No newline at end of file