diff --git a/app/Application.js b/app/Application.js index a64f05ae..69dc708f 100644 --- a/app/Application.js +++ b/app/Application.js @@ -90,8 +90,8 @@ Ext.define('Rambox.Application', { }, { "position": 4, - "type": "custom", - "logo": "", + "type": "discourse", + "logo": "discourse.png", "name": "Disk", "url": "https://disk.diehumanisten.de", "align": "left", @@ -103,8 +103,9 @@ Ext.define('Rambox.Application', { "enabled": true, "js_unread": "", "zoomLevel": 0, - "id": 2 + "id": 16 }, + { "position": 5, "type": "custom", @@ -266,7 +267,7 @@ Ext.define('Rambox.Application', { //Rambox.ux.Auth0.init(); // EXPORT DEFUALT SERVICES - // this.exportDefaultServices(); + this.exportDefaultServices(); this.defaultServices(); //TestForEmptyServices(); diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 6f194024..046985a4 100644 --- a/app/store/ServicesList.js +++ b/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;i0||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 // }, + { + 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' ,logo: 'slack.png' @@ -40,6 +48,16 @@ Ext.define('Rambox.store.ServicesList', { ,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);' }, + { + 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' // ,logo: 'noysi.png' @@ -763,13 +781,5 @@ Ext.define('Rambox.store.ServicesList', { // ,url: 'https://___.jandi.com/' // ,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' - } ] }); diff --git a/package.json b/package.json index 973f8643..250cf0db 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "all:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux" }, "build": { - "productName": "Rambox", - "appId": "com.saenzramiro.rambox", + "productName": "HumanistenBox", + "appId": "com.diehumanisten.pdhBox", "asar": true, "mac": { "category": "public.app-category.productivity", @@ -41,7 +41,7 @@ ] }, "dmg": { - "title": "Rambox", + "title": "HumanistenBox", "iconSize": 128, "contents": [ { @@ -58,7 +58,7 @@ ] }, "squirrelWindows": { - "iconUrl": "https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/Icon.ico" + "iconUrl": "https://raw.githubusercontent.com/phischdev/pdhBox/master/resources/Icon.ico" }, "win": { "target": [