Skip to content

Commit

Permalink
Release version: 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gear54rus committed Nov 30, 2017
2 parents 307f930 + d9bd4b9 commit 4905ee3
Show file tree
Hide file tree
Showing 54 changed files with 1,128 additions and 842 deletions.
11 changes: 11 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contributing

Contributing to this project is pretty straightforward.

Please check out [this wiki article](../../../wiki/Setting-up-a-dev-environment) to learn how to setup a development environment.

After that, you can fork that repo, hack on it, push your changes and [submit a pull request](../../../pulls).

You can also [submit bugs or feature requests](../../../issues) in the corresponding section.

**In both cases you will be presented with a mandatory template that you will need to fill, ignoring the template will most likely result in rejection of your item.**
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**Do you want to request a *feature* or report a *bug*?**
<!-- Is this a new feature or a bug in the existing functionality? -->

**Your envieronment**
<!-- Names and versions of: OS, browser, extension itself -->

**What is the current behavior?**
<!-- Step-by-step instructions about what to do to see the issue -->

**What is the expected behavior?**
<!-- What did you expect to happen? -->

**Videos/screenshots of the issue**
<!-- You can use ShareX (https://getsharex.com/) to record GIFs and upload them to Imgur -->
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**Changes description**
<!-- What does your code change? If there is a corresponding issue in this project already, provide its ID -->

**What browsers (with versions) did you use to test your code?**
<!-- Names and versions of: OS, browser, extension itself -->
20 changes: 8 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
.idea
*.xpi
install.rdf
node_modules
bootstrap.js
RESTED-APS.*
manifest.json
npm-debug.log
target
dist/*rested-aps.js
dist/*rested-aps.js.map
coverage/
/.idea
/node_modules
/RESTED-APS.*
/manifest.json
/dist/background.js
/dist/content.js
/dist/rested-aps.js
/coverage/
147 changes: 0 additions & 147 deletions CONTRIBUTING.md

This file was deleted.

27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
![RESTED APS](https://github.com/gear54rus/RESTED-APS/raw/master/doc/images/rested-aps-logo-full.png)
![RESTED APS logo](./doc/images/rested-aps-logo-full.png)

A REST client for the rest of us.
# What is this?

**RESTED** is a new take on REST clients for browsers.
A REST HTTP client for the rest of us, with [APS features](https://doc.apsstandard.org/). Forked from [RESTED](../../../../RESTEDClient/RESTED) client. This extension replaces the old [RESTClient APS](../../../../odin-public/RESTClient-APS), RIP ⚰️.

It is designed to be easy to use to let you work as effective as possible.
It features all the most commonly used HTTP methods, setting headers, beautiful themes,
saving requests in your browser, and more.
**RESTED** is built upon all the latest web technologies to make
both the user's and developer's experience as great as possible. _Enjoy!_
### Minimum browser versions:

![Image of RESTED](https://github.com/gear54rus/RESTED-APS/raw/master/doc/images/rested-aps-app.png)
- Firefox: `52.4.1`
- Chrome: `60.0`

**RESTED APS** is a fork of **RESTED** with [APS](http://doc.apsstandard.org/7.2/) features.
# Addon downloads
<a href='https://addons.mozilla.org/en-US/firefox/addon/rested-aps/'><img src='./doc/images/firefox-icon.png' height='128' alt='Firefox'></a>
<a href='https://chrome.google.com/webstore/detail/rested-aps/omkndfeccmeplaimlpaefimnimmniccl'><img src='./doc/images/chrome-icon.png' height='128' alt='Chrome'></a>

# Contributions

All contributions are welcome. Please review [the guidelines](.github/CONTRIBUTING.md) and the [article about how to setup the development environment](../../wiki/Setting-up-a-dev-environment).

Submit your issues in the [issues section](../../issues). [Pull requests](../../pulls) will also be reviewed.

**Issues and pull requests that do not adhere to the template will be closed.**
Binary file added doc/images/chrome-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/firefox-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/rested-aps-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "RESTED APS",
"version": "0.0.2",
"version": "0.0.4",
"description": "A REST client for the rest of us, with APS features",
"homepage_url": "https://github.com/gear54rus/RESTED-APS",
"manifest_version": 2,
"applications": {
"gecko": {
"id": "rested-aps@restedclient",
"strict_min_version": "45.0"
"strict_min_version": "52.0"
}
},
"icons": {
Expand All @@ -18,7 +18,7 @@
"128": "dist/img/favicon/favicon-128x128.png"
},
"browser_action": {
"default_title": "RESTED APS",
"default_title": "Open RESTED APS tab",
"default_icon": {
"16": "dist/img/favicon/favicon-16x16.png",
"32": "dist/img/favicon/favicon-32x32.png",
Expand All @@ -28,8 +28,17 @@
}
},
"background": {
"scripts": ["main.js"]
"scripts": ["dist/background.js"]
},
"content_scripts": [
{
"matches": ["*://*/*"],
"match_about_blank": false,
"all_frames": true,
"js": ["dist/content.js"],
"run_at": "document_idle"
}
],
"permissions": [
"<all_urls>",
"webRequest",
Expand Down
16 changes: 13 additions & 3 deletions google-chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "RESTED APS",
"version": "0.0.2",
"version": "0.0.4",
"description": "A REST client for the rest of us, with APS features",
"homepage_url": "https://github.com/gear54rus/RESTED-APS",
"manifest_version": 2,
"minimum_chrome_version": "60.0",
"icons": {
"16": "dist/img/favicon/favicon-16x16.png",
"32": "dist/img/favicon/favicon-32x32.png",
Expand All @@ -12,7 +13,7 @@
"128": "dist/img/favicon/favicon-128x128.png"
},
"browser_action": {
"default_title": "RESTED APS",
"default_title": "Open RESTED APS tab",
"default_icon": {
"16": "dist/img/favicon/favicon-16x16.png",
"32": "dist/img/favicon/favicon-32x32.png",
Expand All @@ -22,8 +23,17 @@
}
},
"background": {
"scripts": ["main.js"]
"scripts": ["dist/background.js"]
},
"content_scripts": [
{
"matches": ["*://*/*"],
"match_about_blank": false,
"all_frames": true,
"js": ["dist/content.js"],
"run_at": "document_idle"
}
],
"permissions": [
"<all_urls>",
"webRequest",
Expand Down
4 changes: 0 additions & 4 deletions main.js

This file was deleted.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@
"description": "A REST client for the rest of us, with APS features",
"author": "Espen Henriksen",
"license": "MIT",
"version": "0.0.2",
"version": "0.0.4",
"main": "./main.js",
"permissions": {
"multiprocess": true
},
"scripts": {
"test": "jest --coverage",
"test:watch": "jest --watchman --watchAll",
"test:snapshot": "jest --update-snapshot",
"test:snapshot": "jest --updateSnapshot",
"test:debugger": "node --debug-brk --inspect ./node_modules/.bin/jest -i",
"eslint": "eslint src test",
"eslint:fix": "eslint --fix src test",
"start": "npm run dev",
"dev": "NODE_ENV=development webpack --progress --colors --watch",
"build": "NODE_ENV=production webpack -p --progress",
"dev": "webpack --progress --colors --watch --env",
"build": "webpack -p --progress --env.production",
"precommit": "echo Please wait while tests run && npm run eslint && npm test"
},
"dependencies": {
"babel-polyfill": "^6.23.0",
"classnames": "^2.2.5",
"fuzzysort": "^0.9.3",
"immutable": "^3.8.1",
"localforage": "^1.5.0",
"localforage-webextensionstorage-driver": "^1.1.2",
Expand Down Expand Up @@ -77,9 +78,7 @@
"react-addons-test-utils": "^15.4.2",
"react-dnd-test-backend": "^2.3.0",
"react-test-renderer": "^15.4.2",
"redux-devtools": "^3.3.2",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.2.0",
"remote-redux-devtools": "^0.5.12",
"webpack": "^3.4.0",
"whatwg-fetch": "^2.0.3"
}
Expand Down
26 changes: 26 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const oaTabData = {};

chrome.runtime.onConnect.addListener(port => {
port.onMessage.addListener(tabData => {
const tabID = port.sender.tab.id;
let text = '';

if (tabData) {
oaTabData[tabID] = tabData;
text = String(Object.keys(tabData.data).length);
} else {
delete oaTabData[tabID];
}

chrome.browserAction.setBadgeText({
tabId: tabID,
text,
});
});
});

chrome.browserAction.onClicked.addListener(({ id: tabID }) => {
chrome.tabs.create({
url: chrome.extension.getURL(`dist/index.html${oaTabData[tabID] ? `#${JSON.stringify(oaTabData[tabID])}` : ''}`),
});
});
Loading

0 comments on commit 4905ee3

Please sign in to comment.