Browse Source

Merge branch 'master' into master

pull/636/head
Ramiro Saenz 8 years ago committed by GitHub
parent
commit
e1ebb2af69
  1. 24
      README.md
  2. 4
      app/package.json
  3. 29
      app/store/ServicesList.js
  4. 2
      app/ux/Auth0.js
  5. 4
      app/ux/WebView.js
  6. 2
      appveyor.yml
  7. 8
      electron/tray.js
  8. 29
      package.json
  9. BIN
      resources/icons/threema.png
  10. 0
      resources/installer/icon.icns
  11. 0
      resources/installer/icon.ico
  12. 0
      resources/installer/install-spinner.gif
  13. BIN
      resources/installer/installerIcon.ico

24
README.md

@ -25,7 +25,7 @@
<h5 align="center">Available for Windows, Mac and Linux.</h5> <h5 align="center">Available for Windows, Mac and Linux.</h5>
<h5 align="center"><a href="http://rambox.pro/#download" target="_blank"><img src="http://windows7-8activator.com/wp-content/uploads/2015/04/button1.png" width="250" alt="DOWNLOAD HERE"></a></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> <h6 align="center">Logo designed by <a href="http://andyur.com/" target="_blank">Andriy Yurchenko</a></h6>
@ -114,6 +114,7 @@
<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/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/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/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/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/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/linkedin.png" alt="LinkedIn" title="LinkedIn">
@ -124,9 +125,8 @@
<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/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/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/hibox.png" alt="Hibox" title="Hibox">
<img width="80" align="left" src="https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/ciscospark.png" alt="Cisco Spark" title="Cisco Spark">
<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/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">
<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><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>
@ -179,7 +179,8 @@ If you're comfortable getting up and running from a `git clone`, this method is
#### Environment: #### Environment:
* Sencha Cmd 6.1.2.15 * Sencha Cmd 6.1.2.15 (make sure to check "Compass extension" during install if you don't have installed yet)
* Ruby 2.3
* NPM 3.8.7 * NPM 3.8.7
* Node.js 4.0.0 * Node.js 4.0.0
@ -191,7 +192,20 @@ If you're comfortable getting up and running from a `git clone`, this method is
4. `npm run sencha:compile` 4. `npm run sencha:compile`
5. `npm start` 5. `npm start`
---------- #### Compile on Ubuntu:
These instructions were tested with Ubuntu 17.04.
1. Install dependencies: `sudo apt install nodejs-legacy npm git`
2. Build and install electron: `sudo npm install electron-prebuilt -g`
3. Install Sencha Cmd (non-free): https://www.sencha.com/products/extjs/cmd-download/
4. Clone repository: `git clone https://github.com/saenzramiro/rambox.git`
5. Install npm dependencies: `npm install`
6. Configure `env-sample.js` and rename it to `env.js`.
7. Compile: `npm run sencha:compile`
8. Start program: `npm start`
-------------------
Disclosure Disclosure
------------------- -------------------

4
app/package.json

@ -1,7 +1,7 @@
{ {
"name": "Rambox", "name": "Rambox",
"productName": "Rambox", "productName": "Rambox",
"version": "0.5.3", "version": "0.5.7",
"description": "Rambox", "description": "Rambox",
"main": "electron/main.js", "main": "electron/main.js",
"private": true, "private": true,
@ -27,7 +27,7 @@
"skype" "skype"
], ],
"author": "Ramiro Saenz <saenzramiro@gmail.com>", "author": "Ramiro Saenz <saenzramiro@gmail.com>",
"license": "MIT", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"auto-launch": "4.0.0", "auto-launch": "4.0.0",
"tmp": "0.0.28", "tmp": "0.0.28",

29
app/store/ServicesList.js

@ -265,7 +265,6 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'HD quality calls, private and group chats with inline photos, music and video. Also available for your phone or tablet.' ,description: 'HD quality calls, private and group chats with inline photos, music and video. Also available for your phone or tablet.'
,url: 'https://app.wire.com/' ,url: 'https://app.wire.com/'
,type: 'messaging' ,type: 'messaging'
,userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'
}, },
{ {
id: 'sync' id: 'sync'
@ -516,7 +515,7 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'RainLoop Webmail - Simple, modern & fast web-based email client.' ,description: 'RainLoop Webmail - Simple, modern & fast web-based email client.'
,url: '___' ,url: '___'
,type: 'email' ,type: 'email'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("badge pull-right count"),b=0;for(i=0;i<a.length;i++)parseInt(a[i].textContent.trim())%1===0&&(b+=parseInt(a[i].textContent.trim()));updateBadge(b)}function updateBadge(a){a>=1?document.title="("+a+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,1e3);' ,js_unread: 'function checkUnread(){var a=document.querySelectorAll(".e-item .e-link:not(.hidden) .badge.pull-right.count"),b=0;for(i=0;i<a.length;i++)parseInt(a[i].textContent.trim())%1===0&&(b+=parseInt(a[i].textContent.trim()));updateBadge(b)}function updateBadge(a){a>=1?document.title="("+a+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,1e3);'
}, },
{ {
id: 'amium' id: 'amium'
@ -670,14 +669,24 @@ Ext.define('Rambox.store.ServicesList', {
,type: 'messaging' ,type: 'messaging'
}, },
{ {
id: 'xing' id: 'xing',
,logo: 'xing.png' logo: 'xing.png',
,name: 'XING' name: 'XING',
,description: 'Career-oriented social networking' description: 'Career-oriented social networking',
,url: 'https://www.xing.com/messages/conversations' url: 'https://www.xing.com/messages/conversations',
,type: 'messaging' 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(); })();' 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 dont_update_unread_from_title: true
},
{
id: 'threema',
logo: 'threema.png',
name: 'Threema',
description: 'Seriously secure messaging',
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' id: 'workplace'

2
app/ux/Auth0.js

@ -110,7 +110,7 @@ Ext.define('Rambox.ux.Auth0', {
,failure: function(response) { ,failure: function(response) {
Ext.Msg.hide(); Ext.Msg.hide();
Ext.toast({ Ext.toast({
html: '<i class="fa fa-times fa-3x fa-pull-left" aria-hidden="true"></i> Error ocurred when trying to backup your configuration.' html: '<i class="fa fa-times fa-3x fa-pull-left" aria-hidden="true"></i> Error occurred when trying to backup your configuration.'
,title: 'Synchronize Configuration' ,title: 'Synchronize Configuration'
,width: 300 ,width: 300
,align: 't' ,align: 't'

4
app/ux/WebView.js

@ -76,7 +76,7 @@ Ext.define('Rambox.ux.WebView',{
,handler: me.goBack ,handler: me.goBack
} }
,{ ,{
text: 'Foward' text: 'Forward'
,glyph: 'xf054@FontAwesome' ,glyph: 'xf054@FontAwesome'
,iconAlign: 'right' ,iconAlign: 'right'
,flex: 1 ,flex: 1
@ -412,7 +412,7 @@ Ext.define('Rambox.ux.WebView',{
,setUnreadCount: function(newUnreadCount) { ,setUnreadCount: function(newUnreadCount) {
var me = this; var me = this;
if (me.record.get('includeInGlobalUnreadCounter') === true) { if (newUnreadCount === parseInt(newUnreadCount,10) && me.record.get('includeInGlobalUnreadCounter') === true) {
Rambox.util.UnreadCounter.setUnreadCountForService(me.record.get('id'), newUnreadCount); Rambox.util.UnreadCounter.setUnreadCountForService(me.record.get('id'), newUnreadCount);
} else { } else {
Rambox.util.UnreadCounter.clearUnreadCountForService(me.record.get('id')); Rambox.util.UnreadCounter.clearUnreadCountForService(me.record.get('id'));

2
appveyor.yml

@ -1,4 +1,4 @@
version: 0.5.3 version: 0.5.7
pull_requests: pull_requests:
do_not_increment_build_number: true do_not_increment_build_number: true
branches: branches:

8
electron/tray.js

@ -50,8 +50,12 @@ exports.create = function(win, config) {
appIcon = new Tray(iconPath); appIcon = new Tray(iconPath);
appIcon.setToolTip('Rambox'); appIcon.setToolTip('Rambox');
appIcon.setContextMenu(contextMenu); appIcon.setContextMenu(contextMenu);
appIcon.on('double-click', () => { appIcon.on('click', () => {
if ( !win.isVisible() || win.isMinimized() ) config.get('maximized') ? win.maximize() : win.show(); if ( !win.isVisible() ) {
win.isVisible() ? win.hide() : win.show();
} else {
win.focus();
}
}); });
}; };

29
package.json

@ -33,17 +33,15 @@
"build": { "build": {
"productName": "Rambox", "productName": "Rambox",
"appId": "com.saenzramiro.rambox", "appId": "com.saenzramiro.rambox",
"category": "public.app-category.productivity",
"asar": true, "asar": true,
"mac": { "mac": {
"category": "public.app-category.productivity",
"target": [ "target": [
"default" "default"
], ]
"icon": "./resources/installer/Icon.icns"
}, },
"dmg": { "dmg": {
"title": "Rambox", "title": "Rambox",
"icon": "./resources/installer/Icon.icns",
"iconSize": 128, "iconSize": 128,
"contents": [ "contents": [
{ {
@ -59,39 +57,36 @@
} }
] ]
}, },
"squirrelWindows": {
"iconUrl": "https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/Icon.ico"
},
"win": { "win": {
"title": "Rambox",
"target": [ "target": [
"squirrel", "squirrel",
"zip" "zip"
], ]
"loadingGif": "./resources/installer/loading.gif",
"iconUrl": "https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/Icon.ico",
"icon": "./resources/Icon.ico",
"msi": false
}, },
"linux": { "linux": {
"category": "Office",
"target": [ "target": [
"AppImage", "AppImage",
"deb", "deb",
"rpm", "rpm",
"zip", "zip",
"tar.gz" "tar.gz"
], ]
"icon": "./resources/Icon.png"
}
}, },
"directories": { "directories": {
"buildResources": "resources/installer/", "buildResources": "resources/installer/",
"output": "dist/", "output": "dist/",
"app": "build/production/Rambox/" "app": "build/production/Rambox/"
}
}, },
"devDependencies": { "devDependencies": {
"asar": "^0.12.1", "asar": "^0.12.1",
"electron": "1.4.15", "electron": "^1.6.1",
"electron-builder": "11.3.0", "electron-builder": "^14.5.3",
"electron-builder-squirrel-windows": "11.6.1", "electron-builder-squirrel-windows": "15.0.0",
"electron-squirrel-startup": "^1.0.0", "electron-squirrel-startup": "^1.0.0",
"chai": "3.5.0", "chai": "3.5.0",
"mocha": "3.2.0", "mocha": "3.2.0",

BIN
resources/icons/threema.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

0
resources/installer/Icon.icns → resources/installer/icon.icns

0
resources/installer/Icon.ico → resources/installer/icon.ico

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

0
resources/installer/loading.gif → resources/installer/install-spinner.gif

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

BIN
resources/installer/installerIcon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

Loading…
Cancel
Save