har 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +4 -3
- data/LICENSE +1 -1
- data/README.mdown +5 -1
- data/har.gemspec +1 -1
- data/lib/har/version.rb +1 -1
- data/lib/har/viewer/css/domTab.css +1 -1
- data/lib/har/viewer/css/domTree.css +1 -1
- data/lib/har/viewer/css/dragdrop.css +1 -0
- data/lib/har/viewer/css/harPreview.css +1 -1
- data/lib/har/viewer/css/harView.css +1 -1
- data/lib/har/viewer/css/harViewer.css +1 -1
- data/lib/har/viewer/css/images/menu/previewMenuHandle.png +0 -0
- data/lib/har/viewer/css/images/splitterh.png +0 -0
- data/lib/har/viewer/css/images/twisty-sprites.png +0 -0
- data/lib/har/viewer/css/infoTip.css +1 -1
- data/lib/har/viewer/css/pageList.css +1 -1
- data/lib/har/viewer/css/previewMenu.css +1 -0
- data/lib/har/viewer/css/previewTab.css +1 -1
- data/lib/har/viewer/css/requestBody.css +1 -1
- data/lib/har/viewer/css/requestList.css +1 -1
- data/lib/har/viewer/css/search.css +1 -0
- data/lib/har/viewer/css/tableView.css +1 -0
- data/lib/har/viewer/css/toolbar.css +1 -1
- data/lib/har/viewer/css/validationError.css +1 -0
- data/lib/har/viewer/css/xhrSpy.css +1 -1
- data/lib/har/viewer/examples/browser-blocking-time.har +2567 -0
- data/lib/har/viewer/examples/google.com.har +612 -0
- data/lib/har/viewer/examples/inline-scripts-block.har +1066 -0
- data/lib/har/viewer/examples/inline-scripts-block.harp +1065 -0
- data/lib/har/viewer/examples/softwareishard.com.har +5323 -0
- data/lib/har/viewer/examples/www.coupons.com-analytics-log.har +18253 -0
- data/lib/har/viewer/har.js +1 -0
- data/lib/har/viewer/index.html +5 -4
- data/lib/har/viewer/license.txt +30 -0
- data/lib/har/viewer/scripts/app.build.js +1 -0
- data/lib/har/viewer/scripts/core/cookies.js +1 -2
- data/lib/har/viewer/scripts/core/dragdrop.js +1 -0
- data/lib/har/viewer/scripts/core/lib.js +1 -23
- data/lib/har/viewer/scripts/core/trace.js +26 -26
- data/lib/har/viewer/scripts/domplate/domTree.js +1 -5
- data/lib/har/viewer/scripts/domplate/domplate.js +3 -1
- data/lib/har/viewer/scripts/domplate/infoTip.js +1 -4
- data/lib/har/viewer/scripts/domplate/popupMenu.js +1 -14
- data/lib/har/viewer/scripts/domplate/tabView.js +1 -6
- data/lib/har/viewer/scripts/domplate/tableView.js +1 -0
- data/lib/har/viewer/scripts/domplate/toolTip.js +1 -3
- data/lib/har/viewer/scripts/domplate/toolbar.js +1 -3
- data/lib/har/viewer/scripts/downloadify/js/downloadify.min.js +1 -6
- data/lib/har/viewer/scripts/downloadify/js/swfobject.js +1 -18
- data/lib/har/viewer/scripts/downloadify/src/downloadify.js +1 -6
- data/lib/har/viewer/scripts/excanvas/excanvas.js +1 -21
- data/lib/har/viewer/scripts/harPreview.js +1 -149
- data/lib/har/viewer/scripts/harViewer.js +1 -244
- data/lib/har/viewer/scripts/i18n.js +1 -0
- data/lib/har/viewer/scripts/jquery-plugins/jquery.json.js +1 -6
- data/lib/har/viewer/scripts/jquery.js +1 -0
- data/lib/har/viewer/scripts/json-query/JSONQuery.js +1 -0
- data/lib/har/viewer/scripts/nls/domTab.js +1 -0
- data/lib/har/viewer/scripts/nls/harModel.js +1 -0
- data/lib/har/viewer/scripts/nls/harViewer.js +1 -1
- data/lib/har/viewer/scripts/nls/homeTab.js +1 -1
- data/lib/har/viewer/scripts/nls/pageList.js +1 -0
- data/lib/har/viewer/scripts/nls/pageStats.js +1 -2
- data/lib/har/viewer/scripts/nls/pageTimeline.js +1 -1
- data/lib/har/viewer/scripts/nls/previewTab.js +1 -1
- data/lib/har/viewer/scripts/nls/requestBody.js +1 -1
- data/lib/har/viewer/scripts/nls/requestList.js +1 -2
- data/lib/har/viewer/scripts/nls/search.js +1 -0
- data/lib/har/viewer/scripts/nls/tableView.js +1 -0
- data/lib/har/viewer/scripts/preview/harModel.js +1 -7
- data/lib/har/viewer/scripts/preview/harSchema.js +9 -9
- data/lib/har/viewer/scripts/preview/jsonSchema.js +1 -7
- data/lib/har/viewer/scripts/preview/menu.js +1 -0
- data/lib/har/viewer/scripts/preview/pageList.js +1 -4
- data/lib/har/viewer/scripts/preview/ref.js +1 -5
- data/lib/har/viewer/scripts/preview/requestBody.js +1 -11
- data/lib/har/viewer/scripts/preview/requestList.js +1 -27
- data/lib/har/viewer/scripts/preview/validationError.js +1 -0
- data/lib/har/viewer/scripts/require.js +1 -0
- data/lib/har/viewer/scripts/syntax-highlighter/README.txt +9 -9
- data/lib/har/viewer/scripts/syntax-highlighter/shCore.js +1 -20
- data/lib/har/viewer/scripts/tabs/aboutTab.html +89 -93
- data/lib/har/viewer/scripts/tabs/aboutTab.js +1 -2
- data/lib/har/viewer/scripts/tabs/domTab.js +1 -1
- data/lib/har/viewer/scripts/tabs/homeTab.html +41 -34
- data/lib/har/viewer/scripts/tabs/homeTab.js +1 -5
- data/lib/har/viewer/scripts/tabs/pageStats.js +1 -14
- data/lib/har/viewer/scripts/tabs/pageTimeline.js +1 -10
- data/lib/har/viewer/scripts/tabs/previewTab.js +1 -6
- data/lib/har/viewer/scripts/tabs/schemaTab.js +1 -2
- data/lib/har/viewer/scripts/tabs/search.js +1 -0
- data/lib/har/viewer/scripts/text.js +1 -0
- data/spec/spec_helper.rb +2 -7
- metadata +55 -49
- data/lib/har/viewer/css/images/menu/Thumbs.db +0 -0
- data/lib/har/viewer/css/images/twistyClosed.png +0 -0
- data/lib/har/viewer/css/images/twistyOpen.png +0 -0
- data/lib/har/viewer/scripts/requireplugins-jquery-1.4.2.js +0 -204
- data/lib/har/viewer/scripts/xhr-spy/spy.js +0 -2
- data/lib/har/viewer/scripts/xhr-spy/spy.php +0 -13
- data/lib/har/viewer/scripts/xhr-spy/xhr.js +0 -6
- data/lib/har/viewer/scripts/xhr-spy/xhrSpyBookmarklet.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require.def("xhr-spy/spy",["preview/requestList","preview/harModel","domplate/domplate","core/lib","xhr-spy/xhr","core/trace"],function(e,h,f,c,g){with(f){var d=domplate({tag:DIV({"class":"xhrSpyFrame"},DIV({"class":"content"})),xhr:DIV({"class":"xhrSpyRow"},SPAN("$spy.url")),render:function(a){this.element=this.tag.append({},a,this);this.requestList=new e(b);this.requestList.render(this.element)},append:function(a){b.log.entries.push(a);a.pageref=b.log.pages[0].id;this.requestList.render(c.getElementByClass(this.element,
|
|
2
|
-
"content"),b.log.pages[0])}}),b={log:{version:"1.2",creator:{name:"XHRSpy Bookmarklet",version:"2.0"},browser:{name:"Firefox",version:"xxx"},pages:[{startedDateTime:"",id:"page1",title:"Google",pageTimings:{}}],entries:[]}};d.render(c.getBody(document));g.prototype.log=function(){return d.append(this)}}});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<head>
|
|
4
|
-
<title>XHR Spy @VERSION@</title>
|
|
5
|
-
</head>
|
|
6
|
-
<body class="harBody">
|
|
7
|
-
<div id="content" version="@VERSION@"></div>
|
|
8
|
-
<script src="../requireplugins-jquery-1.4.2.js"></script>
|
|
9
|
-
<script>require(["xhr-spy/spy"]);</script>
|
|
10
|
-
<link rel="stylesheet" href="../../css/xhrSpy.css" type="text/css"/>
|
|
11
|
-
<?php include("../../ga.php") ?>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
require.def("xhr-spy/xhr",["core/lib"],function(i){function n(){this.requestHeaders=[];this.responseHeaders=[]}var t=function(a){function k(){for(var b in a)try{var c=a[b];i.isFunction(c)||(f[b]=c)}catch(e){}}function o(){for(var b in f)try{var c=f[b];a[b]||(a[b]=c)}catch(e){}}function u(){d.logRow=d.log();i.setClass(d.logRow,"loading")}function p(){d.response.status=a.status;d.response.statusText=a.statusText;(new Date).getTime();var b=a.status==200;v(a,d);setTimeout(function(){var c=a.responseText;
|
|
2
|
-
d.response.content.text=c;d.response.content.size=c;d.response.bodySize=c?c.length:0;i.removeClass(d.logRow,"loading");b||i.setClass(d.logRow,"error")},200);d.loaded=true;k()}function v(b,c){b=(b=b.getAllResponseHeaders())?b.split(/[\n\r]/):[];for(var e=/^(\S+):\s*(.*)/,g=0,l=b.length;g<l;g++){var j=b[g].match(e);if(j){var q=j[1];j=j[2];if(q=="Content-Type")c.response.mimeType=j;c.response.headers.push({name:[q],value:[j]})}}}function r(){f.readyState=a.readyState;if(a.readyState==4){p();a.onreadystatechange=
|
|
3
|
-
function(){}}f.onreadystatechange()}a=a;var d=new n,f=this;this.readyState=0;this.onreadystatechange=function(){};this.open=function(b,c,e,g,l){k();d.request.method=b;d.request.url=c;d.async=e;d.request.queryString=i.parseURLParams(c);if(!$.browser.msie&&e)a.onreadystatechange=r;typeof a.open.apply!="undefined"?a.open.apply(a,arguments):a.open(b,c,e,g,l);if($.browser.msie&&e)a.onreadystatechange=r};this.send=function(b){d.request.postData.text=b;d.timings.send=(new Date).getTime();o();try{a.send(b)}catch(c){throw c;
|
|
4
|
-
}finally{u();if(!d.async){f.readyState=a.readyState;p()}}};this.setRequestHeader=function(b,c){d.requestHeaders.push({name:[b],value:[c]});return a.setRequestHeader(b,c)};this.getResponseHeader=function(b){return a.getResponseHeader(b)};this.getAllResponseHeaders=function(){return a.getAllResponseHeaders()};this.abort=function(){return a.abort()};var w=a.open&&typeof a.open.apply!="undefined";for(var h in a)if(h!="onreadystatechange")try{var s=a[h];if(i.isFunction(s)){if(typeof f[h]=="undefined")this[h]=
|
|
5
|
-
w?function(){return a[h].apply(a,arguments)}:function(b,c,e,g,l){return a[h](b,c,e,g,l)}}else this[h]=s}catch(y){}return this},m=window.parent;if(/msie 6/i.test(navigator.appVersion))m.ActiveXObject=function(a){try{var k=new m._ActiveXObject(a);return" MSXML2.XMLHTTP.5.0 MSXML2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP Microsoft.XMLHTTP ".indexOf(" "+a+" ")!=-1?new t(k):k}catch(o){}};else{var x=m.XMLHttpRequest;m.XMLHttpRequest=function(){return new t(new x)}}n.prototype={async:null,href:null,
|
|
6
|
-
loaded:false,logRow:null,responseText:null,requestHeaders:null,responseHeaders:null,sourceLink:null,response:{headers:[],content:{text:""}},request:{url:"",method:"",bodySize:0,headers:[],postData:{}},timings:{dns:-1,connect:-1,blocked:-1,send:-1,wait:-1,receive:-1,ssl:-1,comment:-1,connect:-1},getURL:function(){return this.href},log:function(){}};return n});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){var c=document.getElementsByTagName("head")[0],b=document.createElement,a=b("script");a.type="text/javascript";a.src="http://legoas/har/viewer/webapp/scripts/requireplugins-jquery-1.4.2.js";c.appendChild(a);a=b("script");a.type="text/javascript";a.src="ttp://legoas/har/viewer/webapp/scripts/xhrSpy.js";document.getElementsByTagName("head")[0].appendChild(a)})();
|