whatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinbox
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
956 B
43 lines
956 B
Ext.define("Rambox.store.ServicesList", { |
|
extend: "Ext.data.Store", |
|
alias: "store.serviceslist", |
|
|
|
requires: ["Ext.data.proxy.LocalStorage"], |
|
|
|
model: "Rambox.model.ServiceList", |
|
|
|
proxy: { |
|
type: "ajax", |
|
url: |
|
"https://raw.githubusercontent.com/ramboxapp/community-edition/gh-pages/api/services.json", |
|
reader: { |
|
type: "json", |
|
rootProperty: "responseText", |
|
}, |
|
}, |
|
listeners: { |
|
load: function () { |
|
Ext.get("spinner") ? Ext.get("spinner").destroy() : null; |
|
Ext.get("background") ? Ext.get("background").destroy() : null; |
|
this.add({ |
|
id: "custom", |
|
logo: "custom.png", |
|
name: "_Custom Service", |
|
description: locale["services[38]"], |
|
url: "___", |
|
type: "custom", |
|
allow_popups: true, |
|
}); |
|
}, |
|
}, |
|
sorters: [ |
|
{ |
|
property: "name", |
|
direction: "ASC", |
|
}, |
|
], |
|
|
|
autoLoad: true, |
|
autoSync: true, |
|
pageSize: 100000, |
|
});
|
|
|