Browse Source

disk service

pull/943/head
phischdev 8 years ago
parent
commit
0bf9b9ddb9
  1. 9
      app/Application.js
  2. 26
      app/store/ServicesList.js
  3. 8
      package.json

9
app/Application.js

@ -90,8 +90,8 @@ Ext.define('Rambox.Application', {
}, },
{ {
"position": 4, "position": 4,
"type": "custom", "type": "discourse",
"logo": "", "logo": "discourse.png",
"name": "Disk", "name": "Disk",
"url": "https://disk.diehumanisten.de", "url": "https://disk.diehumanisten.de",
"align": "left", "align": "left",
@ -103,8 +103,9 @@ Ext.define('Rambox.Application', {
"enabled": true, "enabled": true,
"js_unread": "", "js_unread": "",
"zoomLevel": 0, "zoomLevel": 0,
"id": 2 "id": 16
}, },
{ {
"position": 5, "position": 5,
"type": "custom", "type": "custom",
@ -266,7 +267,7 @@ Ext.define('Rambox.Application', {
//Rambox.ux.Auth0.init(); //Rambox.ux.Auth0.init();
// EXPORT DEFUALT SERVICES // EXPORT DEFUALT SERVICES
// this.exportDefaultServices(); this.exportDefaultServices();
this.defaultServices(); this.defaultServices();
//TestForEmptyServices(); //TestForEmptyServices();

26
app/store/ServicesList.js

@ -31,6 +31,14 @@ Ext.define('Rambox.store.ServicesList', {
// ,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("infinite-list-item"),b=0;for(i=0;i<a.length;i++)if(!(a[i].getElementsByClassName("icon-muted").length>0||0===a[i].getElementsByClassName("unread-count").length)){var c=parseInt(a[i].getElementsByClassName("unread-count")[0].innerHTML.trim());b+=isNaN(c)?0:c}updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}var originalTitle=document.title;setInterval(checkUnread,1e3);' // ,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("infinite-list-item"),b=0;for(i=0;i<a.length;i++)if(!(a[i].getElementsByClassName("icon-muted").length>0||0===a[i].getElementsByClassName("unread-count").length)){var c=parseInt(a[i].getElementsByClassName("unread-count")[0].innerHTML.trim());b+=isNaN(c)?0:c}updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}var originalTitle=document.title;setInterval(checkUnread,1e3);'
// ,dont_update_unread_from_title: true // ,dont_update_unread_from_title: true
// }, // },
{
id: 'trello',
logo: 'trello.png' ,
name: 'Trello' ,
description: 'Infinitely flexible. Incredibly easy to use. Great mobile apps. It\'s free. Trello keeps track of everything, from the big picture to the minute details.',
url: 'https://trello.com/login',
type: 'mitglieder'
},
{ {
id: 'slack' id: 'slack'
,logo: 'slack.png' ,logo: 'slack.png'
@ -40,6 +48,16 @@ Ext.define('Rambox.store.ServicesList', {
,type: 'mitglieder' ,type: 'mitglieder'
,js_unread: 'function checkUnread(){var a=0,b=0;$(".unread_msgs").each(function(){a+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),$(".unread_highlights").each(function(){b+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),updateBadge(a,b)}function updateBadge(a,b){var c=b>0?"("+b+") ":a>0?"(•) ":"";document.title=c+originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' ,js_unread: 'function checkUnread(){var a=0,b=0;$(".unread_msgs").each(function(){a+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),$(".unread_highlights").each(function(){b+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),updateBadge(a,b)}function updateBadge(a,b){var c=b>0?"("+b+") ":a>0?"(•) ":"";document.title=c+originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);'
}, },
{
id: 'discourse'
,logo: 'discourse.png'
,name: 'Discourse'
,type: 'mitglieder'
,custom_domain: true
,allow_popups: true
,url: "https://___"
,js_unread: 'function checkUnread(){var a=0,b=0;document.querySelector(".widget-link.badge-notification.unread-private-messages")&&(a=parseInt(document.querySelector(".widget-link.badge-notification.unread-private-messages").title,10)),document.querySelector(".widget-link.badge-notification.unread-notifications")&&(b=parseInt(document.querySelector(".widget-link.badge-notification.unread-notifications").title,10)),updateBadge(a+b)}function updateBadge(a){document.title=a>=1?"("+a+") "+originalTitle:originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);'
},
// { // {
// id: 'noysi' // id: 'noysi'
// ,logo: 'noysi.png' // ,logo: 'noysi.png'
@ -763,13 +781,5 @@ Ext.define('Rambox.store.ServicesList', {
// ,url: 'https://___.jandi.com/' // ,url: 'https://___.jandi.com/'
// ,type: 'messaging' // ,type: 'messaging'
// }, // },
{
id: 'trello',
logo: 'trello.png' ,
name: 'Trello' ,
description: 'Infinitely flexible. Incredibly easy to use. Great mobile apps. It\'s free. Trello keeps track of everything, from the big picture to the minute details.',
url: 'https://trello.com/login',
type: 'mitglieder'
}
] ]
}); });

8
package.json

@ -31,8 +31,8 @@
"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"
}, },
"build": { "build": {
"productName": "Rambox", "productName": "HumanistenBox",
"appId": "com.saenzramiro.rambox", "appId": "com.diehumanisten.pdhBox",
"asar": true, "asar": true,
"mac": { "mac": {
"category": "public.app-category.productivity", "category": "public.app-category.productivity",
@ -41,7 +41,7 @@
] ]
}, },
"dmg": { "dmg": {
"title": "Rambox", "title": "HumanistenBox",
"iconSize": 128, "iconSize": 128,
"contents": [ "contents": [
{ {
@ -58,7 +58,7 @@
] ]
}, },
"squirrelWindows": { "squirrelWindows": {
"iconUrl": "https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/Icon.ico" "iconUrl": "https://raw.githubusercontent.com/phischdev/pdhBox/master/resources/Icon.ico"
}, },
"win": { "win": {
"target": [ "target": [

Loading…
Cancel
Save