Browse Source

Added new email services and filtering feature.

Added Outlook, ProtonMail, TutaNota y Hushmail.
pull/3/head
saenzramiro 9 years ago
parent
commit
11e740b164
  1. 3
      app/model/ServiceList.js
  2. 38
      app/store/ServicesList.js
  3. 25
      app/view/main/Main.js
  4. 9
      app/view/main/MainController.js
  5. BIN
      resources/icons/hushmail.png
  6. BIN
      resources/icons/outlook.png
  7. BIN
      resources/icons/protonmail.png
  8. BIN
      resources/icons/tutanota.png

3
app/model/ServiceList.js

@ -13,5 +13,8 @@ Ext.define('Rambox.model.ServiceList', {
},{ },{
name: 'url' name: 'url'
,type: 'string' ,type: 'string'
},{
name: 'type'
,type: 'string'
}] }]
}); });

38
app/store/ServicesList.js

@ -21,102 +21,140 @@ Ext.define('Rambox.store.ServicesList', {
,logo: 'whatsapp.png' ,logo: 'whatsapp.png'
,name: 'WhatsApp' ,name: 'WhatsApp'
,url: 'https://web.whatsapp.com/' ,url: 'https://web.whatsapp.com/'
,type: 'messaging'
}, },
{ {
id: 'slack' id: 'slack'
,logo: 'slack.png' ,logo: 'slack.png'
,name: 'Slack' ,name: 'Slack'
,url: 'https://___.slack.com/' ,url: 'https://___.slack.com/'
,type: 'messaging'
}, },
{ {
id: 'noysi' id: 'noysi'
,logo: 'noysi.png' ,logo: 'noysi.png'
,name: 'Noysi' ,name: 'Noysi'
,url: 'https://noysi.com/#/identity/sign-in' ,url: 'https://noysi.com/#/identity/sign-in'
,type: 'messaging'
}, },
{ {
id: 'messenger' id: 'messenger'
,logo: 'messenger.png' ,logo: 'messenger.png'
,name: 'Messenger' ,name: 'Messenger'
,url: 'https://www.messenger.com/login/' ,url: 'https://www.messenger.com/login/'
,type: 'messaging'
}, },
{ {
id: 'skype' id: 'skype'
,logo: 'skype.png' ,logo: 'skype.png'
,name: 'Skype' ,name: 'Skype'
,url: 'https://web.skype.com/' ,url: 'https://web.skype.com/'
,type: 'messaging'
}, },
{ {
id: 'hangouts' id: 'hangouts'
,logo: 'hangouts.png' ,logo: 'hangouts.png'
,name: 'Hangouts' ,name: 'Hangouts'
,url: 'https://hangouts.google.com/' ,url: 'https://hangouts.google.com/'
,type: 'messaging'
}, },
{ {
id: 'hipchat' id: 'hipchat'
,logo: 'hipchat.png' ,logo: 'hipchat.png'
,name: 'HipChat' ,name: 'HipChat'
,url: 'https://www.hipchat.com/sign_in/' ,url: 'https://www.hipchat.com/sign_in/'
,type: 'messaging'
}, },
{ {
id: 'telegram' id: 'telegram'
,logo: 'telegram.png' ,logo: 'telegram.png'
,name: 'Telegram' ,name: 'Telegram'
,url: 'https://web.telegram.org/#/login' ,url: 'https://web.telegram.org/#/login'
,type: 'messaging'
}, },
{ {
id: 'wechat' id: 'wechat'
,logo: 'wechat.png' ,logo: 'wechat.png'
,name: 'WeChat' ,name: 'WeChat'
,url: 'https://web.wechat.com/' ,url: 'https://web.wechat.com/'
,type: 'messaging'
}, },
{ {
id: 'gmail' id: 'gmail'
,logo: 'gmail.png' ,logo: 'gmail.png'
,name: 'Gmail' ,name: 'Gmail'
,url: 'https://mail.google.com/mail/' ,url: 'https://mail.google.com/mail/'
,type: 'email'
}, },
{ {
id: 'inbox' id: 'inbox'
,logo: 'inbox.png' ,logo: 'inbox.png'
,name: 'Inbox' ,name: 'Inbox'
,url: 'http://inbox.google.com/?cid=imp' ,url: 'http://inbox.google.com/?cid=imp'
,type: 'email'
}, },
{ {
id: 'chatwork' id: 'chatwork'
,logo: 'chatwork.png' ,logo: 'chatwork.png'
,name: 'ChatWork' ,name: 'ChatWork'
,url: 'https://www.chatwork.com/login.php' ,url: 'https://www.chatwork.com/login.php'
,type: 'messaging'
}, },
{ {
id: 'groupme' id: 'groupme'
,logo: 'groupme.png' ,logo: 'groupme.png'
,name: 'GroupMe' ,name: 'GroupMe'
,url: 'https://web.groupme.com/signin' ,url: 'https://web.groupme.com/signin'
,type: 'messaging'
}, },
{ {
id: 'grape' id: 'grape'
,logo: 'grape.png' ,logo: 'grape.png'
,name: 'Grape' ,name: 'Grape'
,url: 'https://chatgrape.com/accounts/login/' ,url: 'https://chatgrape.com/accounts/login/'
,type: 'messaging'
}, },
{ {
id: 'gitter' id: 'gitter'
,logo: 'gitter.png' ,logo: 'gitter.png'
,name: 'Gitter' ,name: 'Gitter'
,url: 'https://gitter.im/login' ,url: 'https://gitter.im/login'
,type: 'messaging'
}, },
{ {
id: 'steam' id: 'steam'
,logo: 'steam.png' ,logo: 'steam.png'
,name: 'Steam Chat' ,name: 'Steam Chat'
,url: 'https://steamcommunity.com/chat' ,url: 'https://steamcommunity.com/chat'
,type: 'messaging'
}, },
{ {
id: 'discord' id: 'discord'
,logo: 'discord.png' ,logo: 'discord.png'
,name: 'Discord' ,name: 'Discord'
,url: 'https://discordapp.com/login' ,url: 'https://discordapp.com/login'
,type: 'messaging'
},
{
id: 'protonmail'
,logo: 'protonmail.png'
,name: 'ProtonMail'
,url: 'https://mail.protonmail.com/inbox'
,type: 'email'
},
{
id: 'tutanota'
,logo: 'tutanota.png'
,name: 'Tutanota'
,url: 'https://app.tutanota.de/'
,type: 'email'
},
{
id: 'hushmail'
,logo: 'hushmail.png'
,name: 'Hushmail'
,url: 'https://www.hushmail.com/hushmail/index.php'
,type: 'email'
} }
] ]
}); });

25
app/view/main/Main.js

@ -85,6 +85,31 @@ Ext.define('Rambox.view.main.Main', {
,margin: '50 0 0 0' ,margin: '50 0 0 0'
,tools: [ ,tools: [
{ {
xtype: 'checkboxgroup'
,items: [
{
xtype: 'checkbox'
,boxLabel: 'Messaging'
,name: 'messaging'
,checked: true
,uncheckedValue: false
,inputValue: true
}
,{
xtype: 'checkbox'
,boxLabel: 'Email'
,margin: '0 10 0 10'
,name: 'email'
,checked: true
,uncheckedValue: false
,inputValue: true
}
]
,listeners: {
change: 'doFilter'
}
}
,{
type: 'plus' type: 'plus'
,tooltip: 'Add a custom service (soon...)' ,tooltip: 'Add a custom service (soon...)'
} }

9
app/view/main/MainController.js

@ -227,4 +227,13 @@ Ext.define('Rambox.view.main.MainController', {
} }
}); });
} }
,doFilter: function( cg, newValue, oldValue ) {
var values = Ext.cq1('checkboxgroup').getValue();
Ext.getStore('ServicesList').getFilters().replaceAll({
fn: function(record) {
return Ext.Array.contains(Ext.Object.getKeys(values), record.get('type'));
}
});
}
}); });

BIN
resources/icons/hushmail.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
resources/icons/outlook.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
resources/icons/protonmail.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
resources/icons/tutanota.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Loading…
Cancel
Save