Browse Source

Merge branch 'master' into add-messages-service

pull/1744/head
Ramiro Saenz 7 years ago committed by GitHub
parent
commit
eee9f8c81a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .editorconfig
  2. 21
      .github/CONTRIBUTING.md
  3. 17
      .gitignore
  4. 158
      CONTRIBUTING.md
  5. 316
      README.md
  6. 2
      app.js
  7. 21
      app/Application.js
  8. 29
      app/README.md
  9. 30
      app/Readme.md
  10. 5
      app/model/README.md
  11. 4
      app/model/ServiceList.js
  12. 2
      app/package.json
  13. 0
      app/store/README.md
  14. 44
      app/store/ServicesList.js
  15. 159
      app/ux/Auth0.js
  16. 10
      app/ux/WebView.js
  17. 6
      app/view/add/Add.js
  18. 8
      app/view/main/Main.js
  19. 3
      app/view/main/MainController.js
  20. 38
      app/view/preferences/Preferences.js
  21. 11
      electron/main.js
  22. 6
      electron/menu.js
  23. 2
      ext/packages/ext-aria/build/resources/Readme.md
  24. 2
      ext/packages/ext-aria/resources/Readme.md
  25. 4
      ext/packages/ext-aria/sass/etc/Readme.md
  26. 1
      ext/packages/sencha-soap/Readme.md
  27. 2
      languages.js
  28. 7302
      package-lock.json
  29. 20
      package.json
  30. 1
      packages/local/rambox-default-theme/Readme.md
  31. 47
      packages/local/rambox-default-theme/examples/Readme.md
  32. 8
      packages/local/rambox-default-theme/sass/Readme.md
  33. 4
      packages/local/rambox-default-theme/sass/etc/Readme.md
  34. 4
      packages/local/rambox-default-theme/sass/src/Readme.md
  35. 3
      packages/local/rambox-default-theme/src/Readme.md
  36. 4
      resources/Readme.md
  37. BIN
      resources/icons/devrant.png
  38. BIN
      resources/icons/googlevoice.png
  39. BIN
      resources/icons/reddit.png
  40. BIN
      resources/icons/zinc.png
  41. 151
      resources/js/AuthService.js
  42. 2
      resources/languages/af.js
  43. 2
      resources/languages/ar.js
  44. 2
      resources/languages/bg.js
  45. 2
      resources/languages/bn.js
  46. 2
      resources/languages/bs2.js
  47. 2
      resources/languages/ca.js
  48. 1
      resources/languages/ceb.js
  49. 2
      resources/languages/cs.js
  50. 2
      resources/languages/da.js
  51. 2
      resources/languages/de-CH.js
  52. 2
      resources/languages/de.js
  53. 2
      resources/languages/el.js
  54. 2
      resources/languages/en.js
  55. 2
      resources/languages/es-ES.js
  56. 2
      resources/languages/fa.js
  57. 2
      resources/languages/fi.js
  58. 1
      resources/languages/fil.js
  59. 2
      resources/languages/fr.js
  60. 2
      resources/languages/he.js
  61. 2
      resources/languages/hi.js
  62. 2
      resources/languages/hr.js
  63. 2
      resources/languages/hu.js
  64. 2
      resources/languages/id.js
  65. 2
      resources/languages/it.js
  66. 2
      resources/languages/ja.js
  67. 2
      resources/languages/ko.js
  68. 2
      resources/languages/nl.js
  69. 2
      resources/languages/no.js
  70. 2
      resources/languages/pl.js
  71. 2
      resources/languages/pt-BR.js
  72. 2
      resources/languages/pt-PT.js
  73. 2
      resources/languages/ro.js
  74. 2
      resources/languages/ru.js
  75. 2
      resources/languages/sk.js
  76. 2
      resources/languages/sr.js
  77. 2
      resources/languages/sv-SE.js
  78. 2
      resources/languages/tr.js
  79. 2
      resources/languages/uk.js
  80. 2
      resources/languages/vi.js
  81. 2
      resources/languages/zh-CN.js
  82. 2
      resources/languages/zh-TW.js
  83. 39
      sass/README.md
  84. 44
      sass/Readme.md

7
.editorconfig

@ -10,6 +10,11 @@ insert_final_newline = true
indent_style = tab
tab_width = 2
[*{yml,yaml}]
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.{md}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

21
.github/CONTRIBUTING.md

@ -1,32 +1,27 @@
# Contributing
## Submitting issues
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Go to "Issues" and type any word in the top search/command bar.
- Consider to search on closed issues. To do that just remove "is:open" from the search field.
- More info on [search syntax within github](https://help.github.com/articles/searching-issues)
* Report the issue using our [template][template], it includes all the information we need to track down the issue.
- More info on [search syntax within github](https://help.github.com/articles/searching-issues).
- Report the issue using our [template](https://github.com/saenzramiro/rambox/blob/master/.github/ISSUE_TEMPLATE.md), it includes all the information we need to track down the issue.
Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
[template]: https://github.com/saenzramiro/rambox/blob/master/.github/ISSUE_TEMPLATE.md
## Share your Custom Services
If you consider there are other users that can use your Custom Service, we have a repo for this: [Rambox Services Contrib][rambox-services-contrib].
[rambox-services-contrib]: https://github.com/saenzramiro/rambox-services-contrib
If you consider there are other users that can use your Custom Service, we have a repo for this: [Rambox Services Contrib](https://github.com/saenzramiro/rambox-services-contrib)
## Ask for help
We have a great community in [Gitter][gitter] that can help you with any doubt or problem.
[gitter]: https://gitter.im/saenzramiro/rambox
We have a great community in [Slack (Prefered)](https://rambox.typeform.com/to/t7jc4C) or [Gitter](https://gitter.im/saenzramiro/rambox) (Gitter channel is mirroring into Slack `general` room) that can help you with any doubt or problem.
## Contributing to Source Code
Feel free to create pull requests to help us offer a great and complete software. :wink:
## Translations
Please submit translations via [Transifex][transifex].
[transifex]: https://www.transifex.com/rambox/rambox-app/
Please submit translations via [Crowdin](https://crowdin.com/project/rambox/).

17
.gitignore vendored

@ -1,10 +1,10 @@
# Sencha (ExtJS)
/build/development
/build/production
/build/temp
build/development/
build/production/
build/temp/
.sass-cache/
.sass_cache/
/dist
dist/
# OS generated files #
######################
@ -18,8 +18,8 @@ Thumbs.db
# IDE generated files #
######################
.project
.idea
.project/
.idea/
# bootstrap files are regenerated by Sencha CMD on every build or refresh
bootstrap.js
@ -27,11 +27,12 @@ bootstrap.css
bootstrap.json
# Electron
node_modules
node_modules/
npm-debug.log
# Vagrant
/.vagrant
.vagrant/
env.js
rambox_cfg.json
languages.js

158
CONTRIBUTING.md

@ -3,18 +3,14 @@
We welcome pull requests! Follow these steps to contribute:
1. Find an [issue](https://github.com/saenzramiro/rambox/issues) that needs assistance.
1. Let us know you are working on it by posting a comment on the issue.
1. Follow the [Contribution Guidelines](#contribution-guidelines) to start working on the issue.
2. Let us know you are working on it by posting a comment on the issue.
Working on your first Pull Request? You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
3. Follow the [Contribution Guidelines](#contribution-guidelines) to start working on the issue.
##### If you've found a bug that is not on the board, [follow these steps](README.md#found-a-bug).
Working on your first Pull Request? You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub]
(https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
###### If you've found a bug that is not on the board, [follow these steps](README.md#found-a-bug).
--------------------------------------------------------------------------------
---
## Contribution Guidelines
@ -45,7 +41,7 @@ Working on your first Pull Request? You can learn how from this *free* series [H
| ------------------------------------------------------------- | ------- |
| [Sencha](https://www.sencha.com/products/extjs/cmd-download/) | `=6.1.2.15` |
| [Ruby](https://www.ruby-lang.org/en/downloads/) | `=2.3` |
| [Node.js](http://nodejs.org) | `~ ^4.0.0` |
| [Node.js](https://nodejs.org) | `~ ^4.0.0` |
| npm (comes with Node) | `~ ^3.8.7` |
> _Updating to the latest releases is recommended_.
@ -65,22 +61,19 @@ If your versions are lower than the prerequisite versions, you should update.
#### Setting Up Your System
1. Install [Git](https://git-scm.com/) or your favorite Git client.
2. (Optional) [Setup an SSH Key](https://help.github.com/articles/generating-an-ssh-key/) for GitHub.
1. (Optional) [Setup an SSH Key](https://help.github.com/articles/generating-an-ssh-key/) for GitHub.
#### Forking rambox
1. Go to the top level rambox repository: <https://github.com/saenzramiro/rambox>
2. Click the "Fork" Button in the upper right hand corner of the interface ([More Details Here](https://help.github.com/articles/fork-a-repo/))
3. After the repository (repo) has been forked, you will be taken to your copy of the rambox repo at <https://github.com/yourUsername/rambox>
1. Click the "Fork" Button in the upper right hand corner of the interface ([More Details Here](https://help.github.com/articles/fork-a-repo/))
1. After the repository (repo) has been forked, you will be taken to your copy of the rambox repo at <https://github.com/yourUsername/rambox>
#### Cloning Your Fork
1. Open a Terminal / Command Line / Bash Shell in your projects directory (_i.e.: `/yourprojectdirectory/`_)
2. Clone your fork of rambox
```shell
$ git clone https://github.com/yourUsername/rambox.git
```
1. Clone your fork of rambox
- `git clone https://github.com/yourUsername/rambox.git`
**(make sure to replace `yourUsername` with your GitHub username)**
@ -89,13 +82,10 @@ This will download the entire rambox repo to your projects directory.
#### Setup Your Upstream
1. Change directory to the new rambox directory (`cd rambox`)
2. Add a remote to the official rambox repo:
1. Add a remote to the official rambox repo:
- `git remote add upstream https://github.com/saenzramiro/rambox.git`
```shell
$ git remote add upstream https://github.com/saenzramiro/rambox.git
```
Congratulations, you now have a local copy of the rambox repo!
Congratulations, you now have a local copy of the rambox repo! :tada:
### Create a Branch
@ -103,7 +93,7 @@ Before you start working, you will need to create a separate branch specific to
#### Naming Your Branch
Name the branch something like `fix/xxx` or `feature/xxx` where `xxx` is a short description of the changes or feature you are attempting to add. For example
Name the branch something like `fix/xxx` or `feature/xxx` where `xxx` is a short description of the changes or feature you are attempting to add. For example
`fix/email-login` would be a branch where you fix something specific to email login.
@ -112,13 +102,13 @@ Name the branch something like `fix/xxx` or `feature/xxx` where `xxx` is a short
To create a branch on your local machine (and switch to this branch):
```shell
$ git checkout -b [name_of_your_new_branch]
git checkout -b [name_of_your_new_branch]
```
and to push to GitHub:
```shell
$ git push origin [name_of_your_new_branch]
git push origin [name_of_your_new_branch]
```
**If you need more help with branching, take a look at [this](https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches).**
@ -145,12 +135,13 @@ cp env-sample.js env.js
# Windows
copy env-sample.js env.js
```
Then edit the `env.js` file and modify the API keys only for services that you will use.
```bash
# Compile the files...
$ sencha app watch
$ npm start # in a new terminal
# Compile the files...
sencha app watch
npm start # in a new terminal
```
### Make Changes
@ -159,90 +150,61 @@ This bit is up to you!
#### How to find the code in the rambox codebase to fix/edit
The best way to find out any code you wish to change/add or remove is using
the GitHub search bar at the top of the repository page. For example, you could
search for a challenge name and the results will display all the files along
with line numbers. Then you can proceed to the files and verify this is the area
that you were looking forward to edit. Always feel free to reach out to the chat
room when you are not certain of any thing specific in the code.
The best way to find out any code you wish to change/add or remove is using the GitHub search bar at the top of the repository page.
For example, you could search for a challenge name and the results will display all the files along with line numbers.
Then you can proceed to the files and verify this is the area that you were looking forward to edit.
Always feel free to reach out to the chat room when you are not certain of any thing specific in the code.
#### Adding or Editing Services
The services are stored inside the file `./app/store/ServicesList.js`. Add your service to the *BOTTOM* of the array.
The logo it's referencing is located in `./resources/icons/`.
To see these changes you'll need to stop your `npm start` and `sencha app watch`, and then rerun those.
### Creating a Pull Request
#### What is a Pull Request?
A pull request (PR) is a method of submitting proposed changes to the rambox
repo (or any repo, for that matter). You will make changes to copies of the
files which make up rambox in a personal fork, then apply to have them
accepted by rambox proper.
A pull request (PR) is a method of submitting proposed changes to the rambox repo (or any repo, for that matter).
You will make changes to copies of thefiles which make up rambox in a personal fork, then apply to have them accepted by rambox proper.
#### Important: ALWAYS EDIT ON A BRANCH
Take away only one thing from this document: Never, **EVER**
make edits to the `staging` branch. ALWAYS make a new branch BEFORE you edit
files. This is critical, because if your PR is not accepted, your copy of
staging will be forever sullied and the only way to fix it is to delete your
fork and re-fork.
Take away only one thing from this document: Never, **EVER** make edits to the `staging` branch.
ALWAYS make a new branch BEFORE you edit files.
This is critical, because if your PR is not accepted, your copy of staging will be forever sullied and the only way to fix it is to delete your fork and re-fork.
### Common Steps
1. Once the edits have been committed, you will be prompted to create a pull
request on your fork's GitHub Page.
2. By default, all pull requests should be against the rambox main repo, `staging`
branch.
**Make sure that your Base Fork is set to saenzramiro/rambox when raising a Pull Request.**
3. Submit a pull request.
4. The title (also called the subject) of your PR should be descriptive of your
changes and succinctly indicates what is being fixed.
- **Do not add the issue number in the PR title or commit message.**
- Examples: `Added Service servicename` `Correct typo in menu`
5. In the body of your PR include a more detailed summary of the changes you
made and why.
- If the PR is meant to fix an existing bug/issue then, at the end of
your PR's description, append the keyword `closes` and #xxxx (where xxxx
is the issue number). Example: `closes #1337`. This tells GitHub to
close the existing issue, if the PR is merged.
6. Indicate if you have tested on a local copy of the site or not.
1. Once the edits have been committed, you will be prompted to create a pull request on your fork's GitHub Page.
1. By default, all pull requests should be against the rambox main repo, `staging` branch.
- **Make sure that your Base Fork is set to saenzramiro/rambox when raising a Pull Request.**
1. Submit a pull request.
1. The title (also called the subject) of your PR should be descriptive of your changes and succinctly indicates what is being fixed.
- **Do not add the issue number in the PR title or commit message.**
- Examples: `Added Service servicename` `Correct typo in menu`
1. In the body of your PR include a more detailed summary of the changes you made and why.
- If the PR is meant to fix an existing bug/issue then, at the end of your PR's description, append the keyword `closes` and #xxxx (where xxxx is the issue number).
- Example: `closes #1337`. This tells GitHub to automatically close the existing issue, if the PR is merged.
1. Indicate if you have tested on a local copy of the site or not.
### How We Review and Merge Pull Requests
rambox has a team of volunteer Issue Moderators. These Issue Moderators routinely go through open pull requests in a process called [Quality Assurance]
Rambox has a team of volunteer Issue Moderators. These Issue Moderators routinely go through open pull requests in a process called [Quality Assurance](https://en.wikipedia.org/wiki/Quality_assurance) (QA).
(https://en.wikipedia.org/wiki/Quality_assurance) (QA).
1. If an Issue Moderator QA's a pull request and confirms that the new code does what it is supposed without seeming to introduce any new bugs, they will comment: `"LGTM" which means "Looks good to me."`
1. Another Issue Moderator will QA the same pull request.
- Once they have also confirmed that the new code does what it is supposed to without seeming to introduce any new bugs, they will merge the pull request.
1. If an Issue Moderator QA's a pull request and confirms that the new code does what it is supposed without seeming to introduce any new bugs, they will comment
"LGTM" which means "Looks good to me."
2. Another Issue Moderator will QA the same pull request. Once they have also confirmed that the new code does what it is supposed to without seeming to introduce
any new bugs, they will merge the pull request.
If you would like to apply to join our Issue Moderator team - which is a Core Team position - message [@BerkeleyTrue](https://gitter.im/berkeleytrue) with links
to 5 of your pull requests that have been accepted and 5 issues where you have helped someone else through commenting or QA'ing.
If you would like to apply to join our Issue Moderator team - which is a Core Team position - message [@BerkeleyTrue](https://gitter.im/berkeleytrue) with links to 5 of your pull requests that have been accepted and 5 issues where you have helped someone else through commenting or QA'ing.
### How We Close Stale Issues
We will close any issues or pull requests that have been inactive for more than 15 days, except those that match the following criteria:
- bugs that are confirmed
- pull requests that are waiting on other pull requests to be merged
- features that are a part of a GitHub project
- Bugs that are confirmed
- Pull requests that are waiting on other pull requests to be merged
- Features that are a part of a GitHub project
### Next Steps
@ -251,21 +213,17 @@ We will close any issues or pull requests that have been inactive for more than
Once your PR is accepted, you may delete the branch you created to submit it.
This keeps your working fork clean.
You can do this with a press of a button on the GitHub PR interface. You can
delete the local copy of the branch with: `git branch -D branch/to-delete-name`
You can do this with a press of a button on the GitHub PR interface. You can delete the local copy of the branch with: `git branch -D branch/to-delete-name`
#### If your PR is rejected
Don't despair! You should receive solid feedback as to
why it was rejected and what changes are needed.
Don't despair! You should receive solid feedback as to why it was rejected and what changes are needed.
Many Pull Requests, especially first Pull Requests, require correction or
updating. If you have used the GitHub interface to create your PR, you will need
to close your PR, create a new branch, and re-submit.
Many Pull Requests, especially first Pull Requests, require correction or updating.
If you have used the GitHub interface to create your PR, you will need to close your PR, create a new branch, and re-submit.
If you have a local copy of the repo, you can make the requested changes and
amend your commit with: `git commit --amend` This will update your existing
commit. When you push it to your fork you will need to do a force push to
overwrite your old commit: `git push --force`
If you have a local copy of the repo, you can make the requested changes and amend your commit with: `git commit --amend`
This will update your existing commit.
When you push it to your fork you will need to do a force push to overwrite your old commit: `git push --force`
Be sure to post in the PR conversation that you have made the requested changes.
Be sure to post in the PR conversation that you have made the requested changes.

316
README.md

@ -1,38 +1,41 @@
<h1 align="center">
<br>
<a href="http://rambox.pro"><img src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/Icon.png" width="256px" alt="Rambox"></a>
<br>
Rambox
<br>
<br>
</h1>
<h4 align="center">Free, Open Source and Cross Platform messaging and emailing app that combines common web applications into one.</h4>
<p align="center">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU75QWS7LH2CA" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate with PayPal"></a>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank"><img src="https://img.shields.io/github/license/saenzramiro/rambox.svg" alt="GNU GPL v3"></a>
<a href="https://gitter.im/saenzramiro/rambox" target="_blank"><img src="https://badges.gitter.im/saenzramiro/rambox.svg" alt="Gitter"></a>
<a href="https://github.com/saenzramiro/rambox/releases/latest" target="_blank"><img src="https://img.shields.io/github/release/saenzramiro/rambox.svg" alt="Release"></a>
<a target="_blank" href="https://crowdin.com/project/rambox"><img src="https://d322cqt584bo4o.cloudfront.net/rambox/localized.svg"></a>
</p>
<p align="center">
<a href="https://travis-ci.org/saenzramiro/rambox" target="_blank"><img src="https://travis-ci.org/saenzramiro/rambox.svg?branch=master" alt="Travis CI"></a>
<a href="https://ci.appveyor.com/project/saenzramiro/rambox" target="_blank"><img src="https://ci.appveyor.com/api/projects/status/3kk9ixjgxwrh7yfy?svg=true" alt="AppVeyor CI"></a>
<a href="https://david-dm.org/saenzramiro/rambox" title="Dependency status"><img src="https://david-dm.org/saenzramiro/rambox.svg"/></a>
<a href="https://david-dm.org/saenzramiro/rambox#info=devDependencies" title="devDependency status"><img src="https://david-dm.org/saenzramiro/rambox/dev-status.svg"/></a>
</p>
<h5 align="center">Available for Windows, Mac and Linux.</h5>
<h5 align="center"><a href="http://rambox.pro/#download" target="_blank"><img src="https://cdn.rawgit.com/saenzramiro/rambox/gh-pages/images/img-download.svg" width="250" alt="DOWNLOAD HERE"></a></h5>
<h6 align="center">Logo designed by <a href="http://andyur.com/" target="_blank">Andriy Yurchenko</a></h6>
----------
<div align="center">
<h1>
<br />
<a href="https://rambox.pro"><img src="./resources/Icon.png" width="256px" alt="Rambox" /></a><br />
Rambox CE
<br /><br/>
</h1>
<h4>Free, Open Source and Cross Platform messaging and emailing app that combines common web applications into one.</h4>
<p>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU75QWS7LH2CA" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate with PayPal" /></a>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank"><img src="https://img.shields.io/github/license/saenzramiro/rambox.svg" alt="GNU GPL v3" /></a>
<a href="https://gitter.im/saenzramiro/rambox" target="_blank"><img src="https://badges.gitter.im/saenzramiro/rambox.svg" alt="Gitter" /></a>
<a href="https://github.com/saenzramiro/rambox/releases/latest" target="_blank">
<img src="https://img.shields.io/github/release/saenzramiro/rambox.svg" alt="Release" />
</a>
<a target="_blank" href="https://crowdin.com/project/rambox"><img src="https://d322cqt584bo4o.cloudfront.net/rambox/localized.svg" /></a>
</p>
<p>
<a href="https://travis-ci.org/saenzramiro/rambox" target="_blank"><img src="https://travis-ci.org/saenzramiro/rambox.svg?branch=master" alt="Travis CI" /></a>
<a href="https://ci.appveyor.com/project/saenzramiro/rambox" target="_blank"><img src="https://ci.appveyor.com/api/projects/status/3kk9ixjgxwrh7yfy?svg=true" alt="AppVeyor CI" /></a>
<a href="https://david-dm.org/saenzramiro/rambox" title="Dependency status"><img src="https://david-dm.org/saenzramiro/rambox.svg" /></a>
<a href="https://david-dm.org/saenzramiro/rambox#info=devDependencies" title="devDependency status"><img src="https://david-dm.org/saenzramiro/rambox/dev-status.svg" /></a>
</p>
<h5>Available for Windows, Mac and Linux.</h5>
<h5><a href="https://rambox.pro/#download" target="_blank"><img src="https://cdn.rawgit.com/saenzramiro/rambox/gh-pages/images/img-download.svg" width="250" alt="DOWNLOAD HERE" /></a></h5>
<h6>Logo designed by <a href="https://www.linkedin.com/in/andriyyurchenko/" target="_blank">Andriy Yurchenko</a></h6>
</div>
---
## Table of Contents
- [Table of Contents](#table-of-contents)
- [Screenshot](#screenshot)
- [Services available - 99](#services-available---99)
- [Features](#features)
@ -40,124 +43,123 @@
- [Donations](#donations)
- [Translations](#translations)
- [Install on Linux - Steps](#install-on-linux---steps)
- [To Do](#to-do)
- [Contributing](#contributing)
- [Quickstart](#quickstart)
- [Disclosure](#disclosure)
- [Licence](#licence)
----------
---
## Screenshot
![Rambox](https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/screenshots/mac.png)
![Rambox](./resources/screenshots/mac.png)
## Services available - 99
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/whatsapp.png" alt="WhatsApp" title="WhatsApp">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/messenger.png" alt="Messenger" title="Messenger">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/skype.png" alt="Skype" title="Skype">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/slack.png" alt="Slack" title="Slack">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hangouts.png" alt="Hangouts" title="Hangouts">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/telegram.png" alt="Telegram" title="Telegram">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/wechat.png" alt="WeChat" title="WeChat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/gmail.png" alt="Gmail" title="Gmail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/inbox.png" alt="Inbox" title="Inbox">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hipchat.png" alt="HipChat" title="HipChat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/allo.png" alt="Allo" title="Allo">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/chatwork.png" alt="ChatWork" title="ChatWork">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/groupme.png" alt="GroupMe" title="GroupMe">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/grape.png" alt="Grape" title="Grape">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/gitter.png" alt="Gitter" title="Gitter">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/steam.png" alt="Steam" title="Steam">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/discord.png" alt="Discord" title="Discord">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/noysi.png" alt="Noysi" title="Noysi">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/outlook.png" alt="Outlook" title="Outlook">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/outlook365.png" alt="Outlook 365" title="Outlook 365">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/tutanota.png" alt="TutaNota" title="TutaNota">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hushmail.png" alt="Hushmail" title="Hushmail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/bearychat.png" alt="BearyChat" title="BearyChat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/aol.png" alt="Aol" title="Aol">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/sync.png" alt="Sync" title="Sync">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/wire.png" alt="Wire" title="Wire">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/rocketchat.png" alt="Rocket Chat" title="Rocket Chat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/missive.png" alt="Missive" title="Missive">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/yahoo.png" alt="Yahoo! Mail" title="Yahoo! Mail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/ryver.png" alt="Ryver" title="Ryver">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/yandex.png" alt="Yandex Mail" title="Yandex Mail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/dasher.png" alt="Dasher" title="Dasher">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/dingtalk.png" alt="DingTalk" title="DingTalk">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/flowdock.png" alt="FlowDock" title="FlowDock">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/mattermost.png" alt="Mattermost" title="Mattermost">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/voxer.png" alt="Voxer" title="Voxer">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/glip.png" alt="Glip" title="Glip">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/yahoomessenger.png" alt="Yahoo! Messenger" title="Yahoo! Messenger">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/mysms.png" alt="mysms" title="mysms">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/icq.png" alt="ICQ" title="ICQ">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/tweetdeck.png" alt="TweetDeck" title="TweetDeck">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zinc.png" alt="Zinc" title="Zinc">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/freenode.png" alt="FreeNode" title="FreeNode">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/mightytext.png" alt="MightyText" title="MightyText">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zohoemail.png" alt="Zoho Email" title="Zoho Email">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zohochat.png" alt="Zoho Chat" title="Zoho Chat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/roundcube.png" alt="Roundcube" title="Roundcube">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/horde.png" alt="Horde" title="Horde">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/squirrelmail.png" alt="SquirrelMail" title="SquirrelMail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zimbra.png" alt="Zimbra" title="Zimbra">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hootsuite.png" alt="Hootsuite" title="Hootsuite">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/amium.png" alt="Amium" title="Amium">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/rainloop.png" alt="RainLoop" title="RainLoop">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/icloud.png" alt="iCloud Mail" title="iCloud Mail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/irccloud.png" alt="IRC Cloud" title="IRC Cloud">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/kiwi.png" alt="Kiwi IRC" title="Kiwi IRC">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/smooch.png" alt="Smooch" title="Smooch">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/crisp.png" alt="Crisp" title="Crisp">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/flock.png" alt="Flock" title="Flock">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/openmailbox.png" alt="Openmailbox" title="Openmailbox">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/typetalk.png" alt="Typetalk" title="Typetalk">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/drift.png" alt="Drift" title="Drift">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/spark.png" alt="Cisco Spark" title="Cisco Spark">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/fleep.png" alt="Fleep" title="Fleep">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/socialcast.png" alt="Socialcast" title="Socialcast">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/riot.png" alt="Riot" title="Riot">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/pushbullet.png" alt="Pushbullet" title="Pushbullet">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/movim.png" alt="Movim" title="Movim">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/kaiwa.png" alt="Kaiwa" title="Kaiwa">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zyptonite.png" alt="Zyptonite" title="Zyptonite">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/linkedin.png" alt="LinkedIn" title="LinkedIn">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/lounge.png" alt="The Lounge" title="The Lounge">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/kezmo.png" alt="Kezmo" title="Kezmo">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/teams.png" alt="Teams" title="Teams">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/xing.png" alt="Xing" title="Xing">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/workplace.png" alt="Workplace" title="Workplace">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/fastmail.png" alt="FastMail" title="FastMail">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hibox.png" alt="Hibox" title="Hibox">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/jandi.png" alt="Jandi" title="Jandi">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/threema.png" alt="Threema" title="Threema">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/messengerpages.png" alt="Messenger for Pages" title="Messenger for Pages">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/vk.png" alt="VK Messenger" title="VK Messenger">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/mastodon.png" alt="Mastodon" title="Mastodon">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/teamworkchat.png" alt="Teamwork Chat" title="Teamwork Chat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/clocktweets.png" alt="ClockTweets" title="ClockTweets">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/intercom.png" alt="Intercom" title="Intercom">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/googlevoice.png" alt="Voice" title="Voice">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/sandstorm.png" alt="Sandstorm" title="Sandstorm">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/gadugadu.png" alt="Gadu-Gadu" title="Gadu-Gadu">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/mailru.png" alt="Mail.Ru" title="Mail.Ru">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/kune.png" alt="Kune" title="Kune">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/zulip.png" alt="Zulip" title="Zulip">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/stride.png" alt="Stride" title="Stride">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/hangoutschat.png" alt="Hangouts Chat" title="Hangouts Chat">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/messengerpages.png" alt="Messenger for Business" title="Messenger for Business">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/androidmessages.png" alt="Android Messages" title="Android Messages">
<img width="80" align="left" src="./resources/icons/whatsapp.png" alt="WhatsApp" title="WhatsApp" />
<img width="80" align="left" src="./resources/icons/messenger.png" alt="Messenger" title="Messenger" />
<img width="80" align="left" src="./resources/icons/skype.png" alt="Skype" title="Skype" />
<img width="80" align="left" src="./resources/icons/slack.png" alt="Slack" title="Slack" />
<img width="80" align="left" src="./resources/icons/hangouts.png" alt="Hangouts" title="Hangouts" />
<img width="80" align="left" src="./resources/icons/telegram.png" alt="Telegram" title="Telegram" />
<img width="80" align="left" src="./resources/icons/wechat.png" alt="WeChat" title="WeChat" />
<img width="80" align="left" src="./resources/icons/gmail.png" alt="Gmail" title="Gmail" />
<img width="80" align="left" src="./resources/icons/inbox.png" alt="Inbox" title="Inbox" />
<img width="80" align="left" src="./resources/icons/hipchat.png" alt="HipChat" title="HipChat" />
<img width="80" align="left" src="./resources/icons/allo.png" alt="Allo" title="Allo" />
<img width="80" align="left" src="./resources/icons/chatwork.png" alt="ChatWork" title="ChatWork"/>
<img width="80" align="left" src="./resources/icons/groupme.png" alt="GroupMe" title="GroupMe"/>
<img width="80" align="left" src="./resources/icons/grape.png" alt="Grape" title="Grape"/>
<img width="80" align="left" src="./resources/icons/gitter.png" alt="Gitter" title="Gitter"/>
<img width="80" align="left" src="./resources/icons/steam.png" alt="Steam" title="Steam"/>
<img width="80" align="left" src="./resources/icons/discord.png" alt="Discord" title="Discord"/>
<img width="80" align="left" src="./resources/icons/noysi.png" alt="Noysi" title="Noysi"/>
<img width="80" align="left" src="./resources/icons/outlook.png" alt="Outlook" title="Outlook"/>
<img width="80" align="left" src="./resources/icons/outlook365.png" alt="Outlook 365" title="Outlook 365"/>
<img width="80" align="left" src="./resources/icons/tutanota.png" alt="TutaNota" title="TutaNota"/>
<img width="80" align="left" src="./resources/icons/hushmail.png" alt="Hushmail" title="Hushmail" />
<img width="80" align="left" src="./resources/icons/bearychat.png" alt="BearyChat" title="BearyChat" />
<img width="80" align="left" src="./resources/icons/aol.png" alt="Aol" title="Aol" />
<img width="80" align="left" src="./resources/icons/sync.png" alt="Sync" title="Sync" />
<img width="80" align="left" src="./resources/icons/wire.png" alt="Wire" title="Wire" />
<img width="80" align="left" src="./resources/icons/rocketchat.png" alt="Rocket Chat" title="Rocket Chat" />
<img width="80" align="left" src="./resources/icons/missive.png" alt="Missive" title="Missive" />
<img width="80" align="left" src="./resources/icons/yahoo.png" alt="Yahoo! Mail" title="Yahoo! Mail" />
<img width="80" align="left" src="./resources/icons/ryver.png" alt="Ryver" title="Ryver" />
<img width="80" align="left" src="./resources/icons/yandex.png" alt="Yandex Mail" title="Yandex Mail" />
<img width="80" align="left" src="./resources/icons/dasher.png" alt="Dasher" title="Dasher" />
<img width="80" align="left" src="./resources/icons/dingtalk.png" alt="DingTalk" title="DingTalk" />
<img width="80" align="left" src="./resources/icons/flowdock.png" alt="FlowDock" title="FlowDock" />
<img width="80" align="left" src="./resources/icons/mattermost.png" alt="Mattermost" title="Mattermost" />
<img width="80" align="left" src="./resources/icons/voxer.png" alt="Voxer" title="Voxer" />
<img width="80" align="left" src="./resources/icons/glip.png" alt="Glip" title="Glip" />
<img width="80" align="left" src="./resources/icons/yahoomessenger.png" alt="Yahoo! Messenger" title="Yahoo! Messenger" />
<img width="80" align="left" src="./resources/icons/mysms.png" alt="mysms" title="mysms" />
<img width="80" align="left" src="./resources/icons/icq.png" alt="ICQ" title="ICQ" />
<img width="80" align="left" src="./resources/icons/tweetdeck.png" alt="TweetDeck" title="TweetDeck" />
<img width="80" align="left" src="./resources/icons/zinc.png" alt="Zinc" title="Zinc" />
<img width="80" align="left" src="./resources/icons/freenode.png" alt="FreeNode" title="FreeNode" />
<img width="80" align="left" src="./resources/icons/mightytext.png" alt="MightyText" title="MightyText" />
<img width="80" align="left" src="./resources/icons/zohoemail.png" alt="Zoho Email" title="Zoho Email" />
<img width="80" align="left" src="./resources/icons/zohochat.png" alt="Zoho Chat" title="Zoho Chat" />
<img width="80" align="left" src="./resources/icons/roundcube.png" alt="Roundcube" title="Roundcube" />
<img width="80" align="left" src="./resources/icons/horde.png" alt="Horde" title="Horde" />
<img width="80" align="left" src="./resources/icons/squirrelmail.png" alt="SquirrelMail" title="SquirrelMail" />
<img width="80" align="left" src="./resources/icons/zimbra.png" alt="Zimbra" title="Zimbra" />
<img width="80" align="left" src="./resources/icons/hootsuite.png" alt="Hootsuite" title="Hootsuite" />
<img width="80" align="left" src="./resources/icons/amium.png" alt="Amium" title="Amium" />
<img width="80" align="left" src="./resources/icons/rainloop.png" alt="RainLoop" title="RainLoop" />
<img width="80" align="left" src="./resources/icons/icloud.png" alt="iCloud Mail" title="iCloud Mail" />
<img width="80" align="left" src="./resources/icons/irccloud.png" alt="IRC Cloud" title="IRC Cloud" />
<img width="80" align="left" src="./resources/icons/kiwi.png" alt="Kiwi IRC" title="Kiwi IRC" />
<img width="80" align="left" src="./resources/icons/smooch.png" alt="Smooch" title="Smooch" />
<img width="80" align="left" src="./resources/icons/crisp.png" alt="Crisp" title="Crisp" />
<img width="80" align="left" src="./resources/icons/flock.png" alt="Flock" title="Flock" />
<img width="80" align="left" src="./resources/icons/openmailbox.png" alt="Openmailbox" title="Openmailbox" />
<img width="80" align="left" src="./resources/icons/typetalk.png" alt="Typetalk" title="Typetalk" />
<img width="80" align="left" src="./resources/icons/drift.png" alt="Drift" title="Drift" />
<img width="80" align="left" src="./resources/icons/spark.png" alt="Cisco Spark" title="Cisco Spark" />
<img width="80" align="left" src="./resources/icons/fleep.png" alt="Fleep" title="Fleep" />
<img width="80" align="left" src="./resources/icons/socialcast.png" alt="Socialcast" title="Socialcast" />
<img width="80" align="left" src="./resources/icons/riot.png" alt="Riot" title="Riot" />
<img width="80" align="left" src="./resources/icons/pushbullet.png" alt="Pushbullet" title="Pushbullet" />
<img width="80" align="left" src="./resources/icons/movim.png" alt="Movim" title="Movim" />
<img width="80" align="left" src="./resources/icons/kaiwa.png" alt="Kaiwa" title="Kaiwa" />
<img width="80" align="left" src="./resources/icons/zyptonite.png" alt="Zyptonite" title="Zyptonite" />
<img width="80" align="left" src="./resources/icons/linkedin.png" alt="LinkedIn" title="LinkedIn" />
<img width="80" align="left" src="./resources/icons/lounge.png" alt="The Lounge" title="The Lounge" />
<img width="80" align="left" src="./resources/icons/kezmo.png" alt="Kezmo" title="Kezmo" />
<img width="80" align="left" src="./resources/icons/teams.png" alt="Teams" title="Teams" />
<img width="80" align="left" src="./resources/icons/xing.png" alt="Xing" title="Xing" />
<img width="80" align="left" src="./resources/icons/workplace.png" alt="Workplace" title="Workplace" />
<img width="80" align="left" src="./resources/icons/fastmail.png" alt="FastMail" title="FastMail" />
<img width="80" align="left" src="./resources/icons/hibox.png" alt="Hibox" title="Hibox" />
<img width="80" align="left" src="./resources/icons/jandi.png" alt="Jandi" title="Jandi" />
<img width="80" align="left" src="./resources/icons/threema.png" alt="Threema" title="Threema" />
<img width="80" align="left" src="./resources/icons/messengerpages.png" alt="Messenger for Pages" title="Messenger for Pages" />
<img width="80" align="left" src="./resources/icons/vk.png" alt="VK Messenger" title="VK Messenger" />
<img width="80" align="left" src="./resources/icons/mastodon.png" alt="Mastodon" title="Mastodon" />
<img width="80" align="left" src="./resources/icons/teamworkchat.png" alt="Teamwork Chat" title="Teamwork Chat" />
<img width="80" align="left" src="./resources/icons/clocktweets.png" alt="ClockTweets" title="ClockTweets" />
<img width="80" align="left" src="./resources/icons/intercom.png" alt="Intercom" title="Intercom" />
<img width="80" align="left" src="./resources/icons/googlevoice.png" alt="Voice" title="Voice" />
<img width="80" align="left" src="./resources/icons/sandstorm.png" alt="Sandstorm" title="Sandstorm" />
<img width="80" align="left" src="./resources/icons/gadugadu.png" alt="Gadu-Gadu" title="Gadu-Gadu" />
<img width="80" align="left" src="./resources/icons/mailru.png" alt="Mail.Ru" title="Mail.Ru" />
<img width="80" align="left" src="./resources/icons/kune.png" alt="Kune" title="Kune" />
<img width="80" align="left" src="./resources/icons/zulip.png" alt="Zulip" title="Zulip" />
<img width="80" align="left" src="./resources/icons/stride.png" alt="Stride" title="Stride" />
<img width="80" align="left" src="./resources/icons/hangoutschat.png" alt="Hangouts Chat" title="Hangouts Chat" />
<img width="80" align="left" src="./resources/icons/messengerpages.png" alt="Messenger for Business" title="Messenger for Business" />
<img width="80" align="left" src="./resources/icons/androidmessages.png" alt="Android Messages" title="Android Messages">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
## Features
@ -182,28 +184,32 @@
No personal information will be saved
Sessions will persist using the [partition:persist](https://electronjs.org/docs/api/webview-tag#partition) attribute for Webviews. So every time you open Rambox, your sessions will keep alive until you remove the service.
Sessions will persist using the [partition:persist](https://electronjs.org/docs/api/webview-tag#partition) attribute for Webviews.
So every time you open Rambox, your sessions will keep alive until you remove the service.
Sync feature use Auth0 for Single Sign On & Token Based Authentication and to store the services that user is using (and the configuration for each service). You are always welcome to check the code! ;)
Sync feature use Auth0 for Single Sign On & Token Based Authentication and to store the services that user is using (and the configuration for each service).
You are always welcome to check the code! ;)
## Donations
| Type | URL/Wallet |
|--------------------|:------------------------------------------------------------------------------------------:|
| PayPal | [HERE](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU75QWS7LH2CA) |
| Cryptocurrencies | [HERE](https://www.vaulty.io/v/b6480279-af28-4855-868c-17e5cb0ae7fa) |
| Type | URL/Wallet |
| ---------------- | :----------------------------------------------------------------------------------------: |
| PayPal | [HERE](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WU75QWS7LH2CA) |
| Cryptocurrencies | [HERE](https://www.vaulty.io/v/b6480279-af28-4855-868c-17e5cb0ae7fa) |
## Translations
Help us translate Rambox on https://crowdin.com/project/rambox/invite.
Help us translate Rambox on <https://crowdin.com/project/rambox/invite>.
## [Install on Linux - Steps](https://github.com/saenzramiro/rambox/wiki/Install-on-Linux)
## Contributing
## [Contributing](./CONTRIBUTING.md)
Want to report a bug, request a feature, contribute to or translate Rambox? We need all the help we can get! Fork and work!
Want to report a bug, request a feature, contribute to or translate Rambox?
We need all the help we can get!
Fork and work!
### Quickstart:
### Quickstart
```shell
git clone https://github.com/saenzramiro/rambox.git
@ -215,16 +221,14 @@ sencha app watch
npm start
```
See [Contributing.md](https://github.com/saenzramiro/rambox/blob/master/CONTRIBUTING.md) for more detailed information about getting set up.
See [Contributing.md](./CONTRIBUTING.md) for more detailed information about getting set up.
-------------------
---
Disclosure
-------------------
## Disclosure
Rambox is not affiliated with any of the messaging apps offered.
Licence
-------------------
## Licence
[GNU GPL v3](https://github.com/saenzramiro/rambox/LICENSE)

2
app.js

@ -63,7 +63,7 @@ ipc.on('autoUpdater:update-downloaded', function(e, releaseNotes, releaseName, r
xtype: 'button'
,text: 'Changelog'
,ui: 'decline'
,href: 'https://github.com/saenzramiro/rambox/releases/tag/'+releaseName
,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+releaseName
}
,'->'
,{

21
app/Application.js

@ -26,6 +26,21 @@ Ext.define('Rambox.Application', {
}
,launch: function () {
// Prevent track if the user have disabled this option (default: false)
if ( !ipc.sendSync('sendStatistics') ) {
ga_storage = {
_enableSSL: Ext.emptyFn
,_disableSSL: Ext.emptyFn
,_setAccount: Ext.emptyFn
,_setDomain: Ext.emptyFn
,_setLocale: Ext.emptyFn
,_setCustomVar: Ext.emptyFn
,_deleteCustomVar: Ext.emptyFn
,_trackPageview: Ext.emptyFn
,_trackEvent: Ext.emptyFn
}
}
// Set Google Analytics events
ga_storage._setAccount('UA-80680424-1');
ga_storage._trackPageview('/index.html', 'main');
@ -229,7 +244,7 @@ Ext.define('Rambox.Application', {
,checkUpdate: function(silence) {
console.info('Checking for updates...');
Ext.Ajax.request({
url: 'http://rambox.pro/api/latestversion.json'
url: 'https://rambox.pro/api/latestversion.json'
,method: 'GET'
,success: function(response) {
var json = Ext.decode(response.responseText);
@ -249,7 +264,7 @@ Ext.define('Rambox.Application', {
,{
xtype: 'button'
,text: locale['app.update[1]']
,href: process.platform === 'darwin' ? 'https://getrambox.herokuapp.com/download/'+process.platform+'_'+process.arch : 'https://github.com/saenzramiro/rambox/releases/latest'
,href: process.platform === 'darwin' ? 'https://getrambox.herokuapp.com/download/'+process.platform+'_'+process.arch : 'https://github.com/ramboxapp/community-edition/releases/latest'
,hidden: process.platform === 'win32'
}
,{
@ -257,7 +272,7 @@ Ext.define('Rambox.Application', {
,text: locale['app.update[2]']
,ui: 'decline'
,tooltip: 'Click here to see more information about the new version.'
,href: 'https://github.com/saenzramiro/rambox/releases/tag/'+json.version
,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+json.version
}
,'->'
,{

29
app/README.md

@ -0,0 +1,29 @@
# ./controller
This folder contains the application's global controllers.
ViewControllers are located alongside their respective view class in `./view`.
These controllers are used for routing and other activities that span all views.
# ./model
This folder contains the application's (data) Model classes.
# ./view
This folder contains the views as well as ViewModels and ViewControllers depending on the application's architecture.
Pure MVC applications may not have ViewModels, for example.
For MVCVM applications or MVC applications that use ViewControllers, the following directory structure is recommended:
```text
./view/
foo/ # Some meaningful grouping of one or more views
Foo.js # The view class
FooController.js # The controller for Foo (a ViewController)
FooModel.js # The ViewModel for Foo
```
This structure helps keep these closely related classes together and easily identifiable in most tabbed IDE's or text editors.
# ./store
This folder contains any number of store instances or types that can then be reused in the application.

30
app/Readme.md

@ -1,30 +0,0 @@
# ./controller
This folder contains the application's global controllers. ViewControllers are located
alongside their respective view class in `"./view"`. These controllers are used for routing
and other activities that span all views.
# ./model
This folder contains the application's (data) Model classes.
# ./view
This folder contains the views as well as ViewModels and ViewControllers depending on the
application's architecture. Pure MVC applications may not have ViewModels, for example. For
MVCVM applications or MVC applications that use ViewControllers, the following directory
structure is recommended:
./view/
foo/ # Some meaningful grouping of one or more views
Foo.js # The view class
FooController.js # The controller for Foo (a ViewController)
FooModel.js # The ViewModel for Foo
This structure helps keep these closely related classes together and easily identifiable in
most tabbed IDE's or text editors.
# ./store
This folder contains any number of store instances or types that can then be reused in the
application.

5
app/model/Readme.md → app/model/README.md

@ -15,13 +15,10 @@ Structure of a service entry:
|note|Additional info to display when adding the service.|no|
|manual_notifications|Set to `true` to let Rambox trigger notifications. Can be used for services that doesn't support browser notifications.|no|
|js_unread|JavaScript code for setting the unread count (see below).|no|
|dont_update_unread_from_title|Set to `true` to prevent updating the unread count from the window title (see below).|no|
### Setting the unread count
While there is also a way to set the unread count by adding ` (COUNT)` to the window title, this describes the preferred way of doing it:
First set `dont_update_unread_from_title` in the service config to `true`.
While by default the unread count is determined by looking for ` (COUNT)` to the window title, this describes the preferred way of doing it:
Code provided by `js_unread` will be injected into the service website.
You can retrieve the unread count in this JavaScript code e.g. by parsing elements.

4
app/model/ServiceList.js

@ -48,9 +48,5 @@ Ext.define('Rambox.model.ServiceList', {
name: 'custom_domain'
,type: 'boolean'
,defaultValue: false
},{
name: 'dont_update_unread_from_title'
,type: 'boolean'
,defaultValue: false
}]
});

2
app/package.json

@ -12,7 +12,7 @@
"bugs": {
"url": "https://github.com/saenzramiro/rambox/issues"
},
"homepage": "http://rambox.pro",
"homepage": "https://rambox.pro",
"keywords": [
"Rambox",
"messaging",

0
app/store/Readme.md → app/store/README.md

44
app/store/ServicesList.js

@ -29,7 +29,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://web.whatsapp.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){const elements = document.querySelectorAll(\'.CxUIE, .unread\');let count = 0;for (let i = 0; i < elements.length; i++) {if (elements[i].querySelectorAll(\'*[data-icon="muted"]\').length === 0) {count++;}}updateBadge(count);}function updateBadge(count){if(count && count>=1){rambox.setUnreadCount(count);}else{rambox.clearUnreadCount();}}setInterval(checkUnread, 1e3);'
,dont_update_unread_from_title: true
},
{
id: 'slack'
@ -38,7 +37,7 @@ Ext.define('Rambox.store.ServicesList', {
,description: locale['services[1]']
,url: 'https://___.slack.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var e=$(".p-channel_sidebar__channel--unread:not(.p-channel_sidebar__channel--muted)").length,a=0;$(".p-channel_sidebar__badge").each(function(){a+=isNaN(parseInt($(this).html()))?0:parseInt($(this).html())}),updateBadge(e,a)}function updateBadge(e,a){var n=a>0?"("+a+") ":e>0?"(•) ":"";document.title=n+originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);'
,js_unread: 'function checkUnread(){var e=$(".p-channel_sidebar__channel--unread:not(.p-channel_sidebar__channel--muted)").length,n=0;$(".p-channel_sidebar__badge").each(function(){n+=isNaN(parseInt($(this).html()))?0:parseInt($(this).html())}),count=0<n?n:0<e?"•":0,updateBadge(count)}function updateBadge(e){1<=e||"•"===e?rambox.setUnreadCount(e):rambox.clearUnreadCount();}setInterval(checkUnread,3e3);'
},
{
id: 'noysi'
@ -77,7 +76,6 @@ Ext.define('Rambox.store.ServicesList', {
,type: 'messaging'
,titleBlink: true
,manual_notifications: true
,dont_update_unread_from_title: true
,js_unread: 'function checkUnread(){updateBadge(document.getElementById("hangout-landing-chat").lastChild.contentWindow.document.body.getElementsByClassName("ee").length)}function updateBadge(e){e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
},
{
@ -98,7 +96,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://web.telegram.org/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var e=document.getElementsByClassName("im_dialog_badge badge"),t=0;for(i=0;i<e.length;i++)if(!e[i].classList.contains("im_dialog_badge_muted")){t+=parseInt(e[i].innerHTML.trim())}updateBadge(t)}function updateBadge(e){e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
,dont_update_unread_from_title: true
},
{
id: 'wechat'
@ -118,14 +115,13 @@ Ext.define('Rambox.store.ServicesList', {
,allow_popups: true
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("aim")[0];updateBadge(-1!=a.textContent.indexOf("(")&&(t=parseInt(a.textContent.replace(/[^0-9]/g,""))))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,note: 'To enable desktop notifications, you have to go to Settings inside Gmail. <a href="https://support.google.com/mail/answer/1075549?ref_topic=3394466" target="_blank">Read more...</a>'
,dont_update_unread_from_title: true
},
{
id: 'inbox'
,logo: 'inbox.png'
,name: 'Inbox'
,description: locale['services[10]']
,url: 'http://inbox.google.com/?cid=imp'
,url: 'https://inbox.google.com/?cid=imp'
,type: 'email'
,manual_notifications: true
,js_unread: 'function checkUnread(){updateBadge(document.getElementsByClassName("ss").length)}function updateBadge(a){a>=1?document.title="("+a+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);'
@ -149,7 +145,6 @@ Ext.define('Rambox.store.ServicesList', {
,type: 'messaging'
,note: 'To enable desktop notifications, you have to go to Options inside GroupMe. To count unread messages, be sure to be in Chats.'
,js_unread: 'function checkUnread(){var a=document.querySelectorAll(".badge-count:not(.ng-hide)"),b=0;for(i=0;i<a.length;i++)b+=parseInt(a[i].innerHTML.trim());updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
id: 'grape'
@ -242,7 +237,7 @@ Ext.define('Rambox.store.ServicesList', {
,logo: 'tutanota.png'
,name: 'Tutanota'
,description: locale['services[21]']
,url: 'https://app.tutanota.de/'
,url: 'https://mail.tutanota.com/'
,type: 'email'
},
{
@ -514,7 +509,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://www.icloud.com/#mail'
,type: 'email'
,js_unread: 'function checkUnread(){updateBadge(document.querySelector(".current-app").querySelector(".sb-badge").style.display==="none"?0:parseInt(document.querySelector(".current-app").querySelector(".text").innerHTML.trim()))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
id: 'rainloop'
@ -644,7 +638,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://web.flock.co/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("unreadMessages no-unread-mentions has-unread"),b=0;for(i=0;i<a.length;i++)b+=parseInt(a[i].innerHTML.trim());updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
@ -671,7 +664,6 @@ Ext.define('Rambox.store.ServicesList', {
url: 'https://www.xing.com/messages/conversations',
type: 'messaging',
js_unread: '(function() { let originalTitle = document.title; function checkUnread() { let count = null; let notificationElement = document.querySelector(\'[data-update="unread_conversations"]\'); if (notificationElement && notificationElement.style.display !== \'none\') { count = parseInt(notificationElement.textContent.trim(), 10); } updateBadge(count); } function updateBadge(count) { if (count && count >= 1) { rambox.setUnreadCount(count); } else { rambox.clearUnreadCount(); } } setInterval(checkUnread, 3000); checkUnread(); })();',
dont_update_unread_from_title: true
},
{
id: 'threema',
@ -681,7 +673,6 @@ Ext.define('Rambox.store.ServicesList', {
url: 'https://web.threema.ch/',
type: 'messaging',
js_unread: '(function () { let unreadCount = 0; function checkUnread() { let newUnread = 0; try { let webClientService = angular.element(document.documentElement).injector().get(\'WebClientService\'); let conversations = webClientService.conversations.conversations; conversations.forEach(function(conversation) { newUnread += conversation.unreadCount; }); } catch (e) { } if (newUnread !== unreadCount) { unreadCount = newUnread; updateBadge(unreadCount); } } function updateBadge(count) { if (count && count >= 1) { rambox.setUnreadCount(count); } else { rambox.clearUnreadCount(); } } setInterval(checkUnread, 3000); checkUnread(); })();',
dont_update_unread_from_title: true
},
{
id: 'workplace'
@ -733,7 +724,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://app.zyptonite.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("z-messages"),b=0;for(i=0;i<a.length;i++)b+=parseInt(a[i].innerHTML.trim());updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
id: 'fastmail'
@ -806,7 +796,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://___/chat'
,type: 'messaging'
,js_unread: 'function checkUnread(){updateBadge(parseInt(document.getElementsByClassName("sidebar-notification-indicator").length > 0 ? document.getElementsByClassName("sidebar-notification-indicator")[0].innerHTML : 0))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
id: 'clocktweets'
@ -824,7 +813,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://app.intercom.io'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("unread")[0];updateBadge(t=a===undefined?0:parseInt(a.textContent.replace(/[^0-9]/g,"")))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
,dont_update_unread_from_title: true
},
{
id: 'allo'
@ -834,7 +822,6 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://allo.google.com/web'
,type: 'messaging'
,js_unread: 'function checkUnread(){var e=document.querySelectorAll(".hasUnread.conversation_item"),n=0;for(i=0;i<e.length;i++){var m=e[i].querySelector("#muted"),u=e[i].querySelector(".unreadCount"),c=parseInt(u.innerHTML.trim()),r=(m===null||m.style.display==="none")?c:0;n+=isNaN(r)?0:r}updateBadge(n)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,dont_update_unread_from_title: true
},
{
id: 'Kune'
@ -876,7 +863,7 @@ Ext.define('Rambox.store.ServicesList', {
,logo: 'mailru.png'
,name: 'Mail.Ru'
,description: 'Free voice and video calls, ICQ support, Odnoklassniki, VKontakte, Facebook, online games, free SMS.'
,url: 'http://webagent.mail.ru/webim/agent/popup.html'
,url: 'https://webagent.mail.ru/webim/agent/popup.html'
,type: 'email'
},
{
@ -906,18 +893,33 @@ Ext.define('Rambox.store.ServicesList', {
,type: 'messaging'
,titleBlink: true
,manual_notifications: true
,dont_update_unread_from_title: true
,js_unread: 'function checkUnread(){updateBadge(document.querySelectorAll(".SSPGKf.EyyDtb.Q6oXP:not(.oCHqfe) .eM5l9e.FVKzAb").length)}function updateBadge(e){e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
},
{
id: 'androidmessages'
id: 'devrant'
,logo: 'devrant.png'
,name: 'devRant'
,description: 'Share and bond over successes and frustrations with code, tech and life as a programmer'
,url: 'https://devrant.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.querySelectorAll(".menu-notif.notif-badge")[0];updateBadge(t=a===undefined?0:(a.textContent.length?parseInt(a.textContent.replace(/[^0-9]/g,"")):0))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
},
{
id: 'reddit'
,logo: 'reddit.png'
,name: 'Reddit'
,description: 'Reddit\'s in-build chat service.'
,url: 'https://www.reddit.com/chat'
,type: 'messaging'
},
{
id: 'androidmessages'
,logo: 'androidmessages.png'
,name: 'Android Messages'
,description: 'Text on your computer with Messages for web.'
,url: 'https://messages.android.com/'
,type: 'messaging'
,dont_update_unread_from_title: true
,js_unread: 'function checkUnread(){var t = document.querySelectorAll(".tpEAA.yrs5ff").length;if(t>=1){rambox.setUnreadCount(t)}else{rambox.clearUnreadCount()}}setInterval(checkUnread,3000);'
}
}
]
});

159
app/ux/Auth0.js

@ -4,85 +4,78 @@ Ext.define('Rambox.ux.Auth0', {
// private
,lock: null
,auth0: null
,authService: null
,backupCurrent: false
,init: function() {
var me = this;
var Auth0Lock = require('auth0-lock')['default'];
var Auth0 = require('auth0-js');
// Auth0 Config
me.lock = new Auth0Lock(auth0Cfg.clientID, auth0Cfg.domain, {
autoclose: true
,autofocus: true
,auth: {
redirect: false
,params: {scope: 'openid offline_access'}
}
,theme: {
logo: 'resources/Icon.png'
,primaryColor: '#0675A0'
}
,languageDictionary: {
title: 'Rambox Account'
}
,popupOptions: {
nodeIntegration: 'no'
}
,language: localStorage.getItem('locale-auth0') === null ? 'en' : localStorage.getItem('locale-auth0')
var _AuthService = require('./resources/js/AuthService');
me.authService = new _AuthService.default({
clientId: auth0Cfg.clientID,
authorizeEndpoint: 'https://'+auth0Cfg.domain+'/authorize',
audience: 'https://'+auth0Cfg.domain+'/userinfo',
scope: 'openid profile offline_access',
redirectUri: 'https://'+auth0Cfg.domain+'/mobile',
tokenEndpoint: 'https://'+auth0Cfg.domain+'/oauth/token'
});
me.auth0 = new Auth0.WebAuth({ clientID: auth0Cfg.clientID, domain : auth0Cfg.domain });
me.defineEvents();
//me.defineEvents();
}
,defineEvents: function() {
,onLogin: function(token, authWindow) {
var me = this;
me.lock.on("authenticated", function(authResult) {
me.lock.getProfile(authResult.idToken, function(err, profile) {
if ( err ) {
if ( err.error === 401 || err.error === 'Unauthorized' ) return me.renewToken(me.checkConfiguration);
Ext.Msg.hide();
return Ext.Msg.show({
title: 'Error'
,message: 'There was an error getting the profile: ' + err.error_description
,icon: Ext.Msg.ERROR
,buttons: Ext.Msg.OK
});
}
// Display a spinner while waiting
Ext.Msg.wait(locale['app.window[29]'], locale['app.window[28]']);
// Google Analytics Event
ga_storage._trackEvent('Users', 'loggedIn');
// Set cookies to help Tooltip.io messages segmentation
Ext.util.Cookies.set('auth0', true);
// User is logged in
// Save the profile and JWT.
localStorage.setItem('profile', JSON.stringify(profile));
localStorage.setItem('id_token', authResult.idToken);
localStorage.setItem('refresh_token', authResult.refreshToken);
if ( !Ext.isEmpty(profile.user_metadata) && !Ext.isEmpty(profile.user_metadata.services) && !me.backupCurrent ) {
Ext.each(profile.user_metadata.services, function(s) {
var service = Ext.create('Rambox.model.Service', s);
service.save();
Ext.getStore('Services').add(service);
});
require('electron').remote.getCurrentWindow().reload();
}
authWindow.close();
me.auth0.client.userInfo(token.access_token, function(err, profile) {
if ( err ) {
if ( err.error === 401 || err.error === 'Unauthorized' ) return me.renewToken(me.checkConfiguration);
Ext.Msg.hide();
Ext.cq1('app-main').getViewModel().set('username', profile.name);
Ext.cq1('app-main').getViewModel().set('avatar', profile.picture);
});
return Ext.Msg.show({
title: 'Error'
,message: 'There was an error getting the profile: ' + err.error_description
,icon: Ext.Msg.ERROR
,buttons: Ext.Msg.OK
});
}
profile.user_metadata = profile['https://rambox.pro/user_metadata'];
delete profile['https://rambox.pro/user_metadata'];
// Display a spinner while waiting
Ext.Msg.wait(locale['app.window[29]'], locale['app.window[28]']);
// Google Analytics Event
ga_storage._trackEvent('Users', 'loggedIn');
// Set cookies to help Tooltip.io messages segmentation
Ext.util.Cookies.set('auth0', true);
// User is logged in
// Save the profile and JWT.
localStorage.setItem('profile', JSON.stringify(profile));
localStorage.setItem('access_token', token.access_token);
localStorage.setItem('id_token', token.id_token);
localStorage.setItem('refresh_token', token.refresh_token);
if ( !Ext.isEmpty(profile.user_metadata) && !Ext.isEmpty(profile.user_metadata.services) && !me.backupCurrent ) {
Ext.each(profile.user_metadata.services, function(s) {
var service = Ext.create('Rambox.model.Service', s);
service.save();
Ext.getStore('Services').add(service);
});
require('electron').remote.getCurrentWindow().reload();
}
Ext.Msg.hide();
Ext.cq1('app-main').getViewModel().set('username', profile.name);
Ext.cq1('app-main').getViewModel().set('avatar', profile.picture);
});
}
@ -147,7 +140,7 @@ Ext.define('Rambox.ux.Auth0', {
,restoreConfiguration: function() {
var me = this;
me.lock.getProfile(localStorage.getItem('id_token'), function (err, profile) {
me.auth0.client.userInfo(localStorage.getItem('access_token'), function(err, profile) {
if ( err ) {
if ( err.error === 401 || err.error === 'Unauthorized' ) return me.renewToken(me.checkConfiguration);
return Ext.Msg.show({
@ -158,8 +151,12 @@ Ext.define('Rambox.ux.Auth0', {
});
}
profile.user_metadata = profile['https://rambox.pro/user_metadata'];
delete profile['https://rambox.pro/user_metadata'];
// First we remove all current services
Ext.cq1('app-main').getController().removeAllServices(false, function() {
if ( !profile.user_metadata || !profile.user_metadata.services ) return;
Ext.each(profile.user_metadata.services, function(s) {
var service = Ext.create('Rambox.model.Service', s);
service.save();
@ -174,7 +171,7 @@ Ext.define('Rambox.ux.Auth0', {
,checkConfiguration: function() {
var me = this;
me.lock.getProfile(localStorage.getItem('id_token'), function (err, profile) {
me.auth0.client.userInfo(localStorage.getItem('access_token'), function(err, profile) {
if ( err ) {
if ( err.error === 401 || err.error === 'Unauthorized' ) return me.renewToken(me.checkConfiguration);
return Ext.Msg.show({
@ -185,6 +182,9 @@ Ext.define('Rambox.ux.Auth0', {
});
}
profile.user_metadata = profile['https://rambox.pro/user_metadata'];
delete profile['https://rambox.pro/user_metadata'];
if ( !profile.user_metadata ) {
Ext.toast({
html: 'You don\'t have any backup yet.'
@ -243,7 +243,34 @@ Ext.define('Rambox.ux.Auth0', {
,login: function() {
var me = this;
me.lock.show();
var electron = require('electron').remote;
var authWindow = new electron.BrowserWindow({
title: 'Rambox - Login'
,width: 400
,height: 600
,maximizable: false
,minimizable: false
,resizable: false
,center: true
,autoHideMenuBar: true
,skipTaskbar: true
,fullscreenable: false
,modal: true
,parent: require('electron').remote.getCurrentWindow()
,webPreferences: {
partition: 'persist:rambox'
}
});
authWindow.on('closed', function() {
authWindow = null;
});
authWindow.loadURL(me.authService.requestAuthCode());
authWindow.webContents.on('did-get-redirect-request', function(e, oldUrl, newUrl) {
me.authService.requestAccessCode(newUrl, me.onLogin.bind(me), authWindow);
});
}
,logout: function() {

10
app/ux/WebView.js

@ -174,7 +174,7 @@ Ext.define('Rambox.ux.WebView',{
,plugins: 'true'
,allowtransparency: 'on'
,autosize: 'on'
,webpreferences: 'allowRunningInsecureContent=yes' //,nativeWindowOpen=yes
,webpreferences: '' //,nativeWindowOpen=yes
//,disablewebsecurity: 'on' // Disabled because some services (Like Google Drive) dont work with this enabled
,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent')
,preload: './resources/js/rambox-service-api.js'
@ -477,14 +477,14 @@ Ext.define('Rambox.ux.WebView',{
/**
* Handles 'rambox.setUnreadCount' messages.
* Sets the badge text if the event contains an integer as first argument.
* Sets the badge text if the event contains an integer or a '•' (indicating non-zero but unknown number of unreads) as first argument.
*
* @param event
*/
function handleSetUnreadCount(event) {
if (Array.isArray(event.args) === true && event.args.length > 0) {
var count = event.args[0];
if (count === parseInt(count, 10)) {
if (count === parseInt(count, 10) || "•" === count) {
me.setUnreadCount(count);
}
}
@ -497,9 +497,9 @@ Ext.define('Rambox.ux.WebView',{
});
/**
* Register page title update event listener only for services that don't prevent it by setting 'dont_update_unread_from_title' to true.
* Register page title update event listener only for services that don't specify a js_unread
*/
if (Ext.getStore('ServicesList').getById(me.record.get('type')).get('dont_update_unread_from_title') !== true) {
if (Ext.getStore('ServicesList').getById(me.record.get('type')).get('js_unread') === '' && me.record.get('js_unread') === '') {
webview.addEventListener("page-title-updated", function(e) {
var count = e.title.match(/\(([^)]+)\)/); // Get text between (...)
count = count ? count[1] : '0';

6
app/view/add/Add.js

@ -65,7 +65,7 @@ Ext.define('Rambox.view.add.Add',{
,readOnly: me.edit ? (me.service.get('custom_domain') && me.service.get('url') === me.record.get('url') ? true : me.service.get('url').indexOf('___') === -1 && !me.service.get('custom_domain')) : me.record.get('url').indexOf('___') === -1 && me.record.get('custom_domain')
,allowBlank: false
,submitEmptyText: false
,emptyText: me.record.get('url') === '___' ? 'http://' : ''
,emptyText: me.record.get('url') === '___' ? 'https://' : ''
,vtype: me.record.get('url') === '___' ? 'url' : ''
,listeners: { specialkey: 'onEnter' }
,flex: 1
@ -97,7 +97,7 @@ Ext.define('Rambox.view.add.Add',{
}
,changeHandler: function(cycleBtn, activeItem) {
Ext.apply(cycleBtn.previousSibling(), {
emptyText: activeItem.custom ? 'http://' : ' '
emptyText: activeItem.custom ? 'https://' : ' '
,vtype: activeItem.custom ? 'url' : ''
});
cycleBtn.previousSibling().applyEmptyText();
@ -127,7 +127,7 @@ Ext.define('Rambox.view.add.Add',{
,{
xtype: 'textfield'
,fieldLabel: locale['app.window[18]']
,emptyText: 'http://url.com/image.png'
,emptyText: 'https://url.com/image.png'
,name: 'logo'
,vtype: me.record.get('type') === 'custom' ? 'url' : ''
,value: me.record.get('type') === 'custom' ? (me.edit ? me.record.get('logo') : '') : me.record.get('logo')

8
app/view/main/Main.js

@ -31,7 +31,7 @@ Ext.define('Rambox.view.main.Main', {
,html: '<span class="fa fa-heart" style="color:red;font-size:16px;cursor:pointer;padding:0 5px;"></span>'
,baseCls: ''
,tooltip: locale['app.main[25]']
,href: 'https://fundraiseup.com/widget/FUNSGXPIJWQ/donate?key=KPCFEZKZ'
,href: 'https://rambox.pro/#donate'
}]
}
,items: [
@ -313,7 +313,7 @@ Ext.define('Rambox.view.main.Main', {
text: locale['app.main[22]']
,icon: 'resources/auth0.png'
,id: 'loginBtn'
,tooltip: locale['app.main[23]']+'<br /><br /><i>'+locale['app.main[24]']+' Auth0 (http://auth0.com)</i>'
,tooltip: locale['app.main[23]']+'<br /><br /><i>'+locale['app.main[24]']+' Auth0 (https://auth0.com)</i>'
,bind: {
hidden: '{username}'
}
@ -338,7 +338,7 @@ Ext.define('Rambox.view.main.Main', {
,{
text: locale['app.main[25]']
,glyph: 'xf21e@FontAwesome'
,href: 'https://fundraiseup.com/widget/FUNSGXPIJWQ/donate?key=KPCFEZKZ'
,href: 'https://rambox.pro/#donate'
}
,{
text: 'Translation'
@ -371,7 +371,7 @@ Ext.define('Rambox.view.main.Main', {
}
,{
glyph: 'xf09b@FontAwesome'
,href: 'https://www.github.com/saenzramiro/rambox'
,href: 'https://github.com/ramboxapp/community-edition'
}
]
}

3
app/view/main/MainController.js

@ -9,7 +9,7 @@ Ext.define('Rambox.view.main.MainController', {
tabPanel.setTabPosition(config.tabbar_location);
tabPanel.setTabRotation(0);
let reorderer = tabPanel.plugins.find((plugin) => plugin.ptype == "tabreorderer");
var reorderer = tabPanel.plugins.find(function(plugin) { return plugin.ptype == "tabreorderer"});
if ( reorderer !== undefined ) {
const names = reorderer.container.getLayout().names;
@ -486,6 +486,7 @@ Ext.define('Rambox.view.main.MainController', {
Ext.cq1('app-main').getViewModel().set('avatar', '');
if ( Ext.isFunction(callback) ) callback();
Ext.Msg.hide();
}
if ( btn ) {

38
app/view/preferences/Preferences.js

@ -149,7 +149,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'combo'
,name: 'tabbar_location'
,fieldLabel: 'Service bar location'
,fieldLabel: locale['preferences[11]']
,labelAlign: 'left'
,width: 380
,labelWidth: 180
@ -170,7 +170,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'combo'
,name: 'default_service'
,fieldLabel: 'Default service to display when Rambox starts'
,fieldLabel: locale['preferences[12]']
,labelAlign: 'top'
//,width: 380
//,labelWidth: 105
@ -186,7 +186,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'combo'
,name: 'window_display_behavior'
,fieldLabel: 'Display behaviour'
,fieldLabel: locale['preferences[13]']
,labelAlign: 'left'
,width: 380
,labelWidth: 105
@ -197,9 +197,9 @@ Ext.define('Rambox.view.preferences.Preferences',{
,store: Ext.create('Ext.data.Store', {
fields: ['value', 'label']
,data: [
{ 'value': 'show_taskbar', 'label': 'Show in Taskbar' }
,{ 'value': 'show_trayIcon', 'label': 'Show Tray Icon' }
,{ 'value': 'taskbar_tray', 'label': 'Show in Taskbar and Tray Icon' }
{ 'value': 'show_taskbar', 'label': locale['preferences[14]'] }
,{ 'value': 'show_trayIcon', 'label': locale['preferences[15]'] }
,{ 'value': 'taskbar_tray', 'label': locale['preferences[16]'] }
]
})
,hidden: process.platform === 'darwin'
@ -207,7 +207,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'combo'
,name: 'window_close_behavior'
,fieldLabel: 'When closing the main window'
,fieldLabel: locale['preferences[17]']
,labelAlign: 'left'
,width: 380
,labelWidth: 180
@ -218,9 +218,9 @@ Ext.define('Rambox.view.preferences.Preferences',{
,store: Ext.create('Ext.data.Store', {
fields: ['value', 'label']
,data: [
{ 'value': 'keep_in_tray', 'label': 'Keep in tray' }
,{ 'value': 'keep_in_tray_and_taskbar', 'label': 'Keep in tray and/or taskbar' }
,{ 'value': 'quit', 'label': 'Quit' }
{ 'value': 'keep_in_tray', 'label': locale['preferences[18]'] }
,{ 'value': 'keep_in_tray_and_taskbar', 'label': locale['preferences[19]'] }
,{ 'value': 'quit', 'label': locale['preferences[20]'] }
]
})
,hidden: process.platform === 'darwin'
@ -228,13 +228,13 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'checkbox'
,name: 'always_on_top'
,boxLabel: 'Always on top'
,boxLabel: locale['preferences[21]']
,value: config.always_on_top
}
,{
xtype: 'checkbox'
,name: 'systemtray_indicator'
,boxLabel: 'Show System Tray indicator on unread messages'
,boxLabel: locale['preferences[22]']
,value: config.systemtray_indicator
,hidden: process.platform === 'darwin'
}
@ -247,7 +247,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'checkbox'
,name: 'disable_gpu'
,boxLabel: 'Disable Hardware Acceleration (needs to relaunch)'
,boxLabel: locale['preferences[23]']
,value: config.disable_gpu
}
,{
@ -259,7 +259,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
}
,{
xtype: 'fieldset'
,title: 'Master Password - Ask for password on startup'
,title: locale['preferences[24]']
,collapsed: !config.master_password
,checkboxToggle: true
,checkboxName: 'master_password'
@ -271,7 +271,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
{
xtype: 'textfield'
,inputType: 'password'
,fieldLabel: 'Password'
,fieldLabel: locale['preferences[25]']
,name: 'master_password1'
,itemId: 'pass'
,flex: 1
@ -287,7 +287,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,{
xtype: 'textfield'
,inputType: 'password'
,fieldLabel: 'Repeat Password'
,fieldLabel: locale['preferences[26]']
,name: 'master_password2'
,margin: '0 0 0 10'
,vtype: 'password'
@ -337,6 +337,12 @@ Ext.define('Rambox.view.preferences.Preferences',{
}
]
}
,{
xtype: 'checkbox'
,name: 'sendStatistics'
,boxLabel: locale['preferences[27]']
,value: config.sendStatistics
}
]
}
];

11
electron/main.js

@ -38,6 +38,7 @@ const config = new Config({
,locale: 'en'
,enable_hidpi_support: false
,default_service: 'ramboxTab'
,sendStatistics: false
,x: undefined
,y: undefined
@ -157,9 +158,7 @@ function createWindow () {
,show: !config.get('start_minimized')
,acceptFirstMouse: true
,webPreferences: {
webSecurity: false
,nodeIntegration: true
,plugins: true
plugins: true
,partition: 'persist:rambox'
}
});
@ -279,7 +278,7 @@ function updateBadge(title) {
title = title.split(" - ")[0]; //Discard service name if present, could also contain digits
var messageCount = title.match(/\d+/g) ? parseInt(title.match(/\d+/g).join("")) : 0;
messageCount = isNaN(messageCount) ? 0 : messageCount;
tray.setBadge(messageCount, config.get('systemtray_indicator'));
if (process.platform === 'win32') { // Windows
@ -338,6 +337,10 @@ ipcMain.on('setConfig', function(event, values) {
}
});
ipcMain.on('sendStatistics', function(event) {
event.returnValue = config.get('sendStatistics');
});
ipcMain.on('validateMasterPassword', function(event, pass) {
if ( config.get('master_password') === require('crypto').createHash('md5').update(pass).digest('hex') ) {
createWindow();

6
electron/menu.js

@ -22,7 +22,7 @@ module.exports = function(config) {
{
label: `&`+locale['menu.help[0]'],
click() {
shell.openExternal('http://rambox.pro');
shell.openExternal('https://rambox.pro');
}
},
{
@ -40,7 +40,7 @@ module.exports = function(config) {
{
label: `&GitHub`,
click() {
shell.openExternal('https://www.github.com/saenzramiro/rambox');
shell.openExternal('https://github.com/ramboxapp/community-edition');
}
},
{
@ -60,7 +60,7 @@ module.exports = function(config) {
> Electron ${process.versions.electron}
> ${process.platform} ${process.arch} ${os.release()}`;
shell.openExternal(`https://github.com/saenzramiro/rambox/issues/new?body=${encodeURIComponent(body)}`);
shell.openExternal(`https://github.com/ramboxapp/community-edition/issues/new?body=${encodeURIComponent(body)}`);
}
},
{

2
ext/packages/ext-aria/build/resources/Readme.md

@ -1,3 +1,3 @@
# ext-aria/resources
This folder contains static resources (typically an `"images"` folder as well).
This folder contains static resources (typically an `images` folder as well).

2
ext/packages/ext-aria/resources/Readme.md

@ -1,3 +1,3 @@
# ext-aria/resources
This folder contains static resources (typically an `"images"` folder as well).
This folder contains static resources (typically an `images` folder as well).

4
ext/packages/ext-aria/sass/etc/Readme.md

@ -1,4 +1,4 @@
# ext-aria/sass/etc
This folder contains miscellaneous SASS files. Unlike `"ext-aria/sass/etc"`, these files
need to be used explicitly.
This folder contains miscellaneous SASS files.
Unlike `ext-aria/sass/etc`, these files need to be used explicitly.

1
ext/packages/sencha-soap/Readme.md

@ -1,2 +1 @@
# sencha-soap - Read Me

2
languages.js

@ -18,7 +18,7 @@ var deleteFolderRecursive = function(path) {
};
var crowdin = new Crowdin({
apiKey: '',
apiKey: '1e7c2453268af5e31f6ac8cf6044d48b',
endpointUrl: 'https://api.crowdin.net/api/project/rambox'
});

7302
package-lock.json generated

File diff suppressed because it is too large Load Diff

20
package.json

@ -28,7 +28,9 @@
"setup:osx": "npm run sencha:clean && npm run sencha:compile && npm run clean:osx && npm run pack:osx && npm run build:osx",
"setup:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run build:win",
"all:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run zip:win32 && npm run zip:win64 && npm run build:win",
"all:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux"
"all:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux",
"translations:download": "node languages.js download",
"translations:generate": "node languages.js generate"
},
"build": {
"productName": "Rambox",
@ -99,21 +101,23 @@
"crowdin": "1.0.0",
"csvjson": "4.3.3",
"electron": "^1.8.4",
"electron-builder": "^20.10.0",
"electron-builder-squirrel-windows": "15.0.0",
"electron-builder": "^20.28.3",
"electron-builder-squirrel-windows": "^20.28.3",
"electron-squirrel-startup": "^1.0.0",
"mocha": "3.2.0",
"spectron": "3.4.0"
"mocha": "^5.2.0",
"spectron": "^3.8.0"
},
"dependencies": {
"@exponent/electron-cookies": "2.0.0",
"auth0-js": "^8.12.3",
"auth0-lock": "^10.22.0",
"auth0-js": "^9.7.3",
"auto-launch-patched": "5.0.2",
"crypto": "^1.0.1",
"electron-config": "0.2.1",
"electron-context-menu": "0.9.1",
"electron-is-dev": "^0.3.0",
"mime": "^1.4.0",
"mime": "^2.3.1",
"request": "^2.88.0",
"request-promise": "^4.2.2",
"rimraf": "2.6.1",
"tmp": "0.0.28"
}

1
packages/local/rambox-default-theme/Readme.md

@ -1,2 +1 @@
# rambox-default-theme - Read Me

47
packages/local/rambox-default-theme/examples/Readme.md

@ -1,38 +1,45 @@
# rambox-default-theme/examples
This folder contains example applications demonstrating this package. Each of
these applications will be built as part of the package build:
This folder contains example applications demonstrating this package.
Each of these applications will be built as part of the package build:
cd /path/to/package
sencha package build
```bash
cd /path/to/package
sencha package build
```
As applications, they can also be built individually:
cd /path/to/package/examples/example-app
sencha app build
```bash
cd /path/to/package/examples/example-app
sencha app build
```
Or you can build all examples as a group:
cd /path/to/package
sencha ant examples
```bash
cd /path/to/package
sencha ant examples
```
The ideal location for the example builds to reside is the `"./build"` folder:
/path/to/package/
src/
resources/
```text
/path/to/package/
src/
resources/
...
examples/
example-app/
other-example/
...
build/
resources/
examples/
example-app/
other-example/
...
build/
resources/
examples/
example-app/
other-example/
```
This can be specified in the `".sencha/app/build.properties"` file for the
example applications:
This can be specified in the `".sencha/app/build.properties"` file for the example applications:
build.dir=${package.build.dir}/examples/${app.name}
`build.dir=${package.build.dir}/examples/${app.name}`

8
packages/local/rambox-default-theme/sass/Readme.md

@ -2,6 +2,8 @@
This folder contains SASS files of various kinds, organized in sub-folders:
rambox-default-theme/sass/etc
rambox-default-theme/sass/src
rambox-default-theme/sass/var
```text
rambox-default-theme/sass/etc
rambox-default-theme/sass/src
rambox-default-theme/sass/var
```

4
packages/local/rambox-default-theme/sass/etc/Readme.md

@ -1,4 +1,4 @@
# rambox-default-theme/sass/etc
This folder contains miscellaneous SASS files. Unlike `"rambox-default-theme/sass/etc"`, these files
need to be used explicitly.
This folder contains miscellaneous SASS files.
Unlike `"rambox-default-theme/sass/etc"`, these files need to be used explicitly.

4
packages/local/rambox-default-theme/sass/src/Readme.md

@ -1,4 +1,4 @@
# rambox-default-theme/sass/src
This folder contains SASS sources that mimic the component-class hierarchy. These files
are gathered in to a build of the CSS based on classes that are used by the build.
This folder contains SASS sources that mimic the component-class hierarchy.
These files are gathered in to a build of the CSS based on classes that are used by the build.

3
packages/local/rambox-default-theme/src/Readme.md

@ -1,4 +1,3 @@
# rambox-default-theme/src
This folder contains source code that will automatically be added to the classpath when
the package is used.
This folder contains source code that will automatically be added to the classpath when the package is used.

4
resources/Readme.md

@ -1,4 +0,0 @@
# Rambox/resources
This folder contains resources (such as images) needed by the application. This file can
be removed if not needed.

BIN
resources/icons/devrant.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
resources/icons/googlevoice.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 57 KiB

BIN
resources/icons/reddit.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
resources/icons/zinc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 68 KiB

151
resources/js/AuthService.js

@ -0,0 +1,151 @@
// Credits: github.com/adeperio and github.com/uotw
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
var _request = require('request');
var _request2 = _interopRequireDefault(_request);
var _crypto = require('crypto');
var _crypto2 = _interopRequireDefault(_crypto);
var _requestPromise = require('request-promise');
var _requestPromise2 = _interopRequireDefault(_requestPromise);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
//https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce
var AuthService = function() {
function AuthService(config) {
_classCallCheck(this, AuthService);
this.config = config;
}
_createClass(AuthService, [{
key: 'requestAuthCode',
value: function requestAuthCode() {
this.challengePair = AuthService.getPKCEChallengePair();
return this.getAuthoriseUrl(this.challengePair);
}
}, {
key: 'requestAccessCode',
value: function requestAccessCode(callbackUrl, onSuccess, authWindow) {
var _this = this;
return new Promise(function(resolve, reject) {
if (_this.isValidAccessCodeCallBackUrl(callbackUrl)) {
var authCode = AuthService.getParameterByName('code', callbackUrl);
if (authCode != null) {
var _verifier = _this.challengePair.verifier;
var options = _this.getTokenPostRequest(authCode, _verifier);
return (0, _requestPromise2.default)(options).then(function(response) {
onSuccess(JSON.parse(response), authWindow);
}).catch(function(err) {
if (err) throw new Error(err);
});
} else {
reject('Could not parse the authorization code');
}
} else {
//reject('Access code callback url not expected.');
}
});
}
}, {
key: 'getAuthoriseUrl',
value: function getAuthoriseUrl(challengePair) {
return this.config.authorizeEndpoint + '?scope=' + this.config.scope + '&response_type=code&client_id=' + this.config.clientId + '&code_challenge=' + challengePair.challenge + '&code_challenge_method=S256&redirect_uri=' + this.config.redirectUri;
}
}, {
key: 'getTokenPostRequest',
value: function getTokenPostRequest(authCode, verifier) {
return {
method: 'POST',
url: this.config.tokenEndpoint,
headers: {
'content-type': 'application/json'
},
body: '{"grant_type":"authorization_code",\n "client_id": "' + this.config.clientId + '",\n "code_verifier": "' + verifier + '",\n "code": "' + authCode + '",\n "redirect_uri":"' + this.config.redirectUri + '"\n }'
};
}
}, {
key: 'isValidAccessCodeCallBackUrl',
value: function isValidAccessCodeCallBackUrl(callbackUrl) {
//console.log(this.config.redirectUri);
return callbackUrl.indexOf(this.config.redirectUri) > -1;
}
}], [{
key: 'getPKCEChallengePair',
value: function getPKCEChallengePair() {
var verifier = AuthService.base64URLEncode(_crypto2.default.randomBytes(32));
var challenge = AuthService.base64URLEncode(AuthService.sha256(verifier));
return {
verifier: verifier,
challenge: challenge
};
}
}, {
key: 'getParameterByName',
value: function getParameterByName(name, url) {
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
}, {
key: 'base64URLEncode',
value: function base64URLEncode(str) {
return str.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
}
}, {
key: 'sha256',
value: function sha256(buffer) {
return _crypto2.default.createHash('sha256').update(buffer).digest();
}
}]);
return AuthService;
}();
exports.default = AuthService;

2
resources/languages/af.js

File diff suppressed because one or more lines are too long

2
resources/languages/ar.js

File diff suppressed because one or more lines are too long

2
resources/languages/bg.js

File diff suppressed because one or more lines are too long

2
resources/languages/bn.js

File diff suppressed because one or more lines are too long

2
resources/languages/bs2.js

File diff suppressed because one or more lines are too long

2
resources/languages/ca.js

File diff suppressed because one or more lines are too long

1
resources/languages/ceb.js

File diff suppressed because one or more lines are too long

2
resources/languages/cs.js

File diff suppressed because one or more lines are too long

2
resources/languages/da.js

File diff suppressed because one or more lines are too long

2
resources/languages/de-CH.js

File diff suppressed because one or more lines are too long

2
resources/languages/de.js

File diff suppressed because one or more lines are too long

2
resources/languages/el.js

File diff suppressed because one or more lines are too long

2
resources/languages/en.js

File diff suppressed because one or more lines are too long

2
resources/languages/es-ES.js

File diff suppressed because one or more lines are too long

2
resources/languages/fa.js

File diff suppressed because one or more lines are too long

2
resources/languages/fi.js

File diff suppressed because one or more lines are too long

1
resources/languages/fil.js

File diff suppressed because one or more lines are too long

2
resources/languages/fr.js

File diff suppressed because one or more lines are too long

2
resources/languages/he.js

File diff suppressed because one or more lines are too long

2
resources/languages/hi.js

File diff suppressed because one or more lines are too long

2
resources/languages/hr.js

File diff suppressed because one or more lines are too long

2
resources/languages/hu.js

File diff suppressed because one or more lines are too long

2
resources/languages/id.js

File diff suppressed because one or more lines are too long

2
resources/languages/it.js

File diff suppressed because one or more lines are too long

2
resources/languages/ja.js

File diff suppressed because one or more lines are too long

2
resources/languages/ko.js

File diff suppressed because one or more lines are too long

2
resources/languages/nl.js

File diff suppressed because one or more lines are too long

2
resources/languages/no.js

File diff suppressed because one or more lines are too long

2
resources/languages/pl.js

File diff suppressed because one or more lines are too long

2
resources/languages/pt-BR.js

File diff suppressed because one or more lines are too long

2
resources/languages/pt-PT.js

File diff suppressed because one or more lines are too long

2
resources/languages/ro.js

File diff suppressed because one or more lines are too long

2
resources/languages/ru.js

File diff suppressed because one or more lines are too long

2
resources/languages/sk.js

File diff suppressed because one or more lines are too long

2
resources/languages/sr.js

File diff suppressed because one or more lines are too long

2
resources/languages/sv-SE.js

File diff suppressed because one or more lines are too long

2
resources/languages/tr.js

File diff suppressed because one or more lines are too long

2
resources/languages/uk.js

File diff suppressed because one or more lines are too long

2
resources/languages/vi.js

File diff suppressed because one or more lines are too long

2
resources/languages/zh-CN.js

File diff suppressed because one or more lines are too long

2
resources/languages/zh-TW.js

File diff suppressed because one or more lines are too long

39
sass/README.md

@ -0,0 +1,39 @@
# ./sass
This folder contains the styling for the application's views. The primary pi
## Styling
Sencha Cmd supports styling using Sass and integrates the styling from the theme and required packages (specified in `app.json`) with application-defined views.
### ./sass/etc
This folder contains misc. support code for Sass builds (global functions, mixins, etc.).
### ./sass/src
This folder contains Sass files defining CSS rules corresponding to classes
included in the application's JavaScript code build. By default, files in this
folder are mapped to the application's root namespace, 'Rambox'. This is set in
`app.json`:
```json
"sass": {
"namespace": "Rambox"
}
```
### ./sass/var
This folder contains Sass files defining Sass variables corresponding to classes included in the application's JavaScript code build.
By default, files in this folder are mapped to the application's root namespace, 'Rambox' in the same way as `Rambox/sass/src`.
## Slicing
Internet Explorer 8 and 9 do not support linear gradients and IE8 does not support border-radius.
To compensate for this, Sencha Cmd provides "image slicing" using an internal WebKit based renderer.
To enable this, there is a special web page that renders all components and states so they can be captured and turned into image sprites.
### ./sass/example
This folder contains the web page used to present all components and states so they can be captured as an image and used to produce images for IE8 and 9.

44
sass/Readme.md

@ -1,44 +0,0 @@
# ./sass
This folder contains the styling for the application's views. The primary pi
## Styling
Sencha Cmd supports styling using Sass and integrates the styling from the theme
and required packages (specified in `"app.json"`) with application-defined views.
### ./sass/etc
This folder contains misc. support code for Sass builds (global functions,
mixins, etc.).
### ./sass/src
This folder contains Sass files defining CSS rules corresponding to classes
included in the application's JavaScript code build. By default, files in this
folder are mapped to the application's root namespace, 'Rambox'. This is set in
`"app.json"`:
"sass": {
"namespace": "Rambox"
}
### ./sass/var
This folder contains Sass files defining Sass variables corresponding to classes
included in the application's JavaScript code build. By default, files in this
folder are mapped to the application's root namespace, 'Rambox' in the same way
as `"Rambox/sass/src"`.
## Slicing
Internet Explorer 8 and 9 do not support linear gradients and IE8 does not support
border-radius. To compensate for this, Sencha Cmd provides "image slicing" using an
internal WebKit based renderer. To enable this, there is a special web page that
renders all components and states so they can be captured and turned into image
sprites.
### ./sass/example
This folder contains the web page used to present all components and states so they
can be captured as an image and used to produce images for IE8 and 9.
Loading…
Cancel
Save