From 92efe421d0bc66d62b15cadcccc80cb6c4432290 Mon Sep 17 00:00:00 2001 From: Laurent Lepinay Date: Tue, 7 Jul 2015 14:55:04 +0200 Subject: [PATCH] fixes --- dist/css/print.css | 8 + dist/css/screen.css | 8 + dist/fonts/droid-sans-v6-latin-700.svg | 822 +++---- dist/fonts/droid-sans-v6-latin-regular.svg | 806 +++---- dist/images/explorer_icons.png | Bin 5763 -> 5762 bytes dist/images/favicon-16x16.png | Bin 645 -> 644 bytes dist/images/favicon-32x32.png | Bin 1654 -> 1653 bytes dist/images/logo_small.png | Bin 770 -> 769 bytes dist/images/pet_store_api.png | Bin 824 -> 823 bytes dist/images/wordnik_api.png | Bin 980 -> 979 bytes dist/lib/backbone-min.js | 28 +- dist/lib/handlebars-2.0.0.js | 54 +- dist/lib/jquery.ba-bbq.min.js | 34 +- dist/lib/jquery.slideto.min.js | 2 +- dist/lib/jquery.wiggle.min.js | 14 +- dist/lib/jsoneditor.min.js | 19 +- dist/lib/marked.js | 2542 ++++++++++---------- dist/lib/underscore-min.js | 10 +- dist/swagger-ui.js | 776 +++--- dist/swagger-ui.min.js | 17 +- lib/jsoneditor.min.js | 10 +- 21 files changed, 2583 insertions(+), 2567 deletions(-) diff --git a/dist/css/print.css b/dist/css/print.css index b4fc1803..8ccb6746 100644 --- a/dist/css/print.css +++ b/dist/css/print.css @@ -126,6 +126,7 @@ max-width: 960px; margin-left: auto; margin-right: auto; + /* JSONEditor specific styling */ } .swagger-section .swagger-ui-wrap b, .swagger-section .swagger-ui-wrap strong { @@ -444,6 +445,13 @@ .swagger-section .swagger-ui-wrap .required { font-weight: bold; } +.swagger-section .swagger-ui-wrap .editor_holder label { + font-weight: normal!important; + /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */ +} +.swagger-section .swagger-ui-wrap .editor_holder label.required { + font-weight: bold!important; +} .swagger-section .swagger-ui-wrap input.parameter { width: 300px; border: 1px solid #aaa; diff --git a/dist/css/screen.css b/dist/css/screen.css index 7bec5505..6e5d47f8 100644 --- a/dist/css/screen.css +++ b/dist/css/screen.css @@ -126,6 +126,7 @@ max-width: 960px; margin-left: auto; margin-right: auto; + /* JSONEditor specific styling */ } .swagger-section .swagger-ui-wrap b, .swagger-section .swagger-ui-wrap strong { @@ -444,6 +445,13 @@ .swagger-section .swagger-ui-wrap .required { font-weight: bold; } +.swagger-section .swagger-ui-wrap .editor_holder label { + font-weight: normal!important; + /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */ +} +.swagger-section .swagger-ui-wrap .editor_holder label.required { + font-weight: bold!important; +} .swagger-section .swagger-ui-wrap input.parameter { width: 300px; border: 1px solid #aaa; diff --git a/dist/fonts/droid-sans-v6-latin-700.svg b/dist/fonts/droid-sans-v6-latin-700.svg index a54bbbbf..a7f2a66e 100644 --- a/dist/fonts/droid-sans-v6-latin-700.svg +++ b/dist/fonts/droid-sans-v6-latin-700.svg @@ -1,411 +1,411 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dist/fonts/droid-sans-v6-latin-regular.svg b/dist/fonts/droid-sans-v6-latin-regular.svg index d9f2a214..456ceb6f 100644 --- a/dist/fonts/droid-sans-v6-latin-regular.svg +++ b/dist/fonts/droid-sans-v6-latin-regular.svg @@ -1,403 +1,403 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dist/images/explorer_icons.png b/dist/images/explorer_icons.png index ed9d2fffb64a2e6e282b90e489d83fc4ddfac3cd..91549877df4250e0ecc8db9145768a5dfefb8df2 100644 GIT binary patch delta 13 UcmZqHZPI1w4DfT`$XX``03F~28~^|S delta 14 VcmZqDZPsP&4DfU3-N;fW1^^)V1StRj diff --git a/dist/images/favicon-16x16.png b/dist/images/favicon-16x16.png index 66b1a5bfb9eadbaefcca94b53b3ab435712fbccb..b8b453f50aec9ddc1803c04744357590ad7bc2e6 100755 GIT binary patch delta 13 UcmZo=ZDD2U4DfT`$lAaJ02+`3z5oCK delta 14 VcmZo+ZDnQc4DfU3-N@3w1OOde1Iqva diff --git a/dist/images/favicon-32x32.png b/dist/images/favicon-32x32.png index 32f319f89bd07e691de2ccaf21632bb9793a9cd9..6fd2bfbeb0cb99a67c8a7a516fc6a2bf04346d4a 100755 GIT binary patch delta 13 Ucmeyy^Oc9CGr-S%BWocW041mdqW}N^ delta 14 Vcmey$^NokKGr-TCcOy$78vrR}1h4=A diff --git a/dist/images/logo_small.png b/dist/images/logo_small.png index 5496a65579ae903d4008f9d268fac422ef9d3679..3e73cdee40583fcc906e2a38e01fd1c25217a9bb 100644 GIT binary patch delta 13 UcmZo-Yh+{T4DfT`$oiKF02^2YHvj+t delta 14 VcmZo>1-1VjJ; diff --git a/dist/images/pet_store_api.png b/dist/images/pet_store_api.png index f9f9cd4aeb35a108c4b2f1dddb59977d56c595d8..0d51abceb742c9cc6c794b6a4b5040c2bbfd2636 100644 GIT binary patch delta 13 UcmdnNww;ZoGr-S%Bdakp03Ou?+5i9m delta 14 Vcmdnawu6neGr-TCcO#22GXNq91Lpt$ diff --git a/dist/images/wordnik_api.png b/dist/images/wordnik_api.png index dca4f1455ac45e9cdc3659d77d6a47370048eb1c..5c15755c541ac08e3459c5cf04cf49dacafdc417 100644 GIT binary patch delta 13 Ucmcb@ewm%6Gr-S%BkOr)03yQ#umAu6 delta 14 Vcmcc2eubU2Gr-TCcO%PrW&kEJ1ib(N diff --git a/dist/lib/backbone-min.js b/dist/lib/backbone-min.js index a3f544be..5b5b0fef 100644 --- a/dist/lib/backbone-min.js +++ b/dist/lib/backbone-min.js @@ -1,15 +1,15 @@ -// Backbone.js 1.1.2 - -(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('