diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..3cd9a2c --- /dev/null +++ b/README.rdoc @@ -0,0 +1,14 @@ += restclient-fx-patched + +Patched version of Firefox addon called RESTClient (https://addons.mozilla.org/en-US/firefox/addon/9780/) + +== changes +- field values recovering when Firefox crashes +- fixed header deleting (now you can use delete key when editing header name or value) +- fixed display of json data (I've just moved css file to right place) +- added ability to select and copy text from response (by adding right css style, that doesn't work always properly) +- field values storing when Firefox is shutting down by user + +== todo +- switch from TabRestored to TabRestoring for tab recovering +- bind refresh key to send request action diff --git a/chrome.manifest b/chrome.manifest index c6636c1..db4ba78 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -1,3 +1,4 @@ +<<<<<<< HEAD content restclient jar:chrome/restclient.jar!/content/ locale restclient en-US jar:chrome/restclient.jar!/locale/en-US/ @@ -5,6 +6,13 @@ locale restclient zh-CN jar:chrome/restclient.jar!/locale/zh-CN/ locale restclient fr-FR jar:chrome/restclient.jar!/locale/fr-FR/ skin restclient classic/1.0 jar:chrome/restclient.jar!/skin/ +======= +content restclient content/ +skin restclient classic/1.0 skin/ +locale restclient en-US locale/en-US/ +locale restclient fr-FR locale/fr-FR/ +locale restclient zh-CN locale/zh-CN/ +>>>>>>> d8e0f25c9b460181c151a203e810df78219c8574 overlay chrome://browser/content/browser.xul chrome://restclient/content/restclientOverlay.xul style chrome://global/content/customizeToolbar.xul chrome://restclient/skin/overlay.css \ No newline at end of file diff --git a/content/JSONPrettyPrint.css b/content/JSONPrettyPrint.css new file mode 100644 index 0000000..647a2cd --- /dev/null +++ b/content/JSONPrettyPrint.css @@ -0,0 +1,69 @@ +/* The top-level container for all the formatted json or the error message if there is one */ +.json-content { + background-color: white; + border: 1px solid #999999; + margin-right: 10px; + padding: 10px 10px 10px 0; +} + +.json-string { + color: green; + white-space: pre; +} + +.json-null { + color: red; +} + +.json-numeric { + color: red; +} + +.json-bool { + color: blue; +} + +/* + An object or an array +*/ +.json-object { + padding-left: 10px; +} + +/* + A member of an array or object. + - a member of an array is just a value + - a member of an object is a name/value pair +*/ +.json-member { + padding-left: 10px; +} + +/* + The label, for example: + { + validated: true + ^^^^^^^^^ + } +*/ +.json-label { + font-weight: bold; +} + +/* + The braces for objects and arrays, ie {} or [] +*/ +.json-brace { + font-weight: bold; +} + +/* The part that says there was an error, eg "There was an error" */ +.json-error-title { + font-weight: bold; +} + +/* The actual error message, eg "Missing left bracket on line 6" */ +.json-error-message { + +} + diff --git a/content/XMLPrettyPrint.xsl b/content/XMLPrettyPrint.xsl new file mode 100644 index 0000000..ba8450e --- /dev/null +++ b/content/XMLPrettyPrint.xsl @@ -0,0 +1,132 @@ + + + + + + + + + + + + < + + + /> + + + + + + < + + + > + + + + </ + + > + + + + + + + + + < + + + > + + + + </ + + > + + + + + + + + + + = + + + " + # + attribute-href + setRequestUrl(''); + + " + + + "" + + + + + + + + + + + + + <? + + + + ?> + + + + + + + + + <? + + ?> + + + + + + + + <!-- + + --> + + + + + + + + + <!-- + + --> + + + + + + + + + + diff --git a/content/about.xul b/content/about.xul new file mode 100644 index 0000000..5facb3c --- /dev/null +++ b/content/about.xul @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +