Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 0669daf

Browse files
committed
EOL: Thank you, thank you, thank you, thank you
❤❤❤❤
1 parent 78acfee commit 0669daf

File tree

139 files changed

+2106
-957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2106
-957
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ npm-debug.log
3434
# Vagrant
3535
.vagrant/
3636

37-
env.js
38-
rambox_cfg.json
3937
languages.js
4038
electron/dev-app-update.yml

CONTRIBUTING.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,6 @@ Once you have rambox cloned, before you start the application, you first need to
122122
npm install
123123
```
124124

125-
Then you need to add the private environment variables (API Keys):
126-
127-
```bash
128-
# Copy `env-sample.js` with a name of env.js
129-
# Populate it with Auth0 clientid and domain e.g. test.auth0.com
130-
# You can get these details from one of your "apps" here https://manage.auth0.com/#/clients/
131-
132-
# macOS / Linux
133-
cp env-sample.js env.js
134-
135-
# Windows
136-
copy env-sample.js env.js
137-
```
138-
139-
Then edit the `env.js` file and modify the API keys only for services that you will use.
140-
141125
```bash
142126
# Compile the files...
143127
sencha app watch

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ Fork and work!
110110
```shell
111111
git clone https://github.com/saenzramiro/rambox.git
112112
cd rambox
113-
cp env-sample.js env.js
114-
# update env.js with your auth0 details.
115113
npm install
116114
sencha app watch
117115
npm start

app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ ipc.on('autoUpdater:update-downloaded', function(e, info) {
6161
'->'
6262
,{
6363
xtype: 'label'
64-
,html: '<b>New version ready to install ('+info.version+')!</b> It will be installed the next time Rambox is relaunched.'
64+
,html: '<b>New version is ready to be installed ('+info.version+')!</b> Click the following button to install it now.'
6565
}
6666
,{
6767
xtype: 'button'
68-
,text: 'Relaunch Now'
68+
,text: 'Install now'
6969
,handler: function(btn) { ipc.send('autoUpdater:quit-and-install'); }
7070
}
7171
,{
7272
xtype: 'button'
7373
,text: 'Changelog'
7474
,ui: 'decline'
75-
,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+info.version
75+
,href: 'https://github.com/ramboxapp/download/releases/latest'
7676
}
7777
,'->'
7878
,{

app.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@
109109
{
110110
"path": "resources/js/loadscreen.js"
111111
},
112-
{
113-
"path": "env.js",
114-
"remote": true
115-
},
116112
{
117113
"path": "app.js",
118114
"bundle": true
@@ -291,10 +287,10 @@
291287
*/
292288
"resources": [
293289
"electron",
294-
"env.js",
295290
"package.json",
296291
"package-lock.json",
297-
"masterpassword.html"
292+
"masterpassword.html",
293+
"screenselector.html"
298294
],
299295

300296
/**

app/Application.js

Lines changed: 14 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Ext.define('Rambox.Application', {
44
,name: 'Rambox'
55

66
,requires: [
7-
'Rambox.ux.Auth0'
8-
,'Rambox.util.MD5'
7+
'Rambox.util.MD5'
98
,'Ext.window.Toast'
109
,'Ext.util.Cookies'
1110
]
@@ -134,47 +133,20 @@ Ext.define('Rambox.Application', {
134133
]
135134
});
136135
}
137-
// Prevent track if the user have disabled this option (default: false)
138-
if ( !ipc.sendSync('sendStatistics') ) {
139-
ga_storage = {
140-
_enableSSL: Ext.emptyFn
141-
,_disableSSL: Ext.emptyFn
142-
,_setAccount: Ext.emptyFn
143-
,_setDomain: Ext.emptyFn
144-
,_setLocale: Ext.emptyFn
145-
,_setCustomVar: Ext.emptyFn
146-
,_deleteCustomVar: Ext.emptyFn
147-
,_trackPageview: Ext.emptyFn
148-
,_trackEvent: Ext.emptyFn
149-
}
150-
}
151-
152-
// Set Google Analytics events
153-
ga_storage._setAccount('UA-80680424-1');
154-
ga_storage._trackPageview('/index.html', 'main');
155-
ga_storage._trackEvent('Versions', require('electron').remote.app.getVersion());
156136

157137
// Load language for Ext JS library
158-
Ext.Loader.loadScript({url: Ext.util.Format.format("ext/packages/ext-locale/build/ext-locale-{0}.js", localStorage.getItem('locale-auth0') || 'en')});
159-
160-
// Initialize Auth0
161-
if ( auth0Cfg.clientID !== '' && auth0Cfg.domain !== '' ) Rambox.ux.Auth0.init();
162-
163-
// Set cookies to help Tooltip.io messages segmentation
164-
Ext.util.Cookies.set('version', require('electron').remote.app.getVersion());
165-
if ( Ext.util.Cookies.get('auth0') === null ) Ext.util.Cookies.set('auth0', false);
166-
167-
// Check for updates
168-
if ( require('electron').remote.process.argv.indexOf('--without-update') === -1 ) Rambox.app.checkUpdate(true);
169-
170-
// Get Google URLs
171-
Ext.Ajax.request({
172-
url: 'https://raw.githubusercontent.com/ramboxapp/community-edition/gh-pages/api/google.json'
173-
,method: 'GET'
174-
,success: function(response) {
175-
Rambox.app.config.googleURLs = Ext.decode(response.responseText);
176-
}
177-
});
138+
Ext.Loader.loadScript({url: Ext.util.Format.format("ext/packages/ext-locale/build/ext-locale-{0}.js", localStorage.getItem('locale-extjs') || 'en')});
139+
140+
// Set Google URLs
141+
Rambox.app.config.googleURLs = [
142+
"accounts.google.com/ServiceLogin",
143+
"accounts.google.com/signin",
144+
"accounts.google.com/_/lookup/accountlookup",
145+
"accounts.google.com/o/oauth2",
146+
"accounts.google.com/_/signin",
147+
"accounts.google.com/AddSession?",
148+
"accounts.google.com/_/"
149+
];
178150

179151
// Shortcuts
180152
const platform = require('electron').remote.process.platform;
@@ -275,60 +247,6 @@ Ext.define('Rambox.Application', {
275247
}
276248

277249
,checkUpdate: function(silence) {
278-
console.info('Checking for updates...');
279-
Ext.Ajax.request({
280-
url: 'https://api.github.com/repos/ramboxapp/community-edition/releases/latest'
281-
,method: 'GET'
282-
,success: function(response) {
283-
var json = Ext.decode(response.responseText);
284-
var appVersion = new Ext.Version(require('electron').remote.app.getVersion());
285-
if ( appVersion.isLessThan(json.name) && !json.draft && !json.prerelease ) {
286-
console.info('New version is available', json.version);
287-
Ext.cq1('app-main').addDocked({
288-
xtype: 'toolbar'
289-
,dock: 'top'
290-
,ui: 'newversion'
291-
,items: [
292-
'->'
293-
,{
294-
xtype: 'label'
295-
,html: '<b>'+locale['app.update[0]']+'</b> ('+json.version+')' + ( process.platform === 'win32' ? ' is downloading in the background and you will be notified when it is ready to be installed.' : '' )
296-
}
297-
,{
298-
xtype: 'button'
299-
,text: locale['app.update[1]']
300-
,href: process.platform === 'darwin' ? 'https://getrambox.herokuapp.com/download/'+process.platform+'_'+process.arch : 'https://github.com/ramboxapp/community-edition/releases/latest'
301-
,hidden: process.platform === 'win32'
302-
}
303-
,{
304-
xtype: 'button'
305-
,text: locale['app.update[2]']
306-
,ui: 'decline'
307-
,tooltip: 'Click here to see more information about the new version.'
308-
,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+json.version
309-
}
310-
,'->'
311-
,{
312-
glyph: 'xf00d@FontAwesome'
313-
,baseCls: ''
314-
,style: 'cursor:pointer;'
315-
,handler: function(btn) { Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true); }
316-
}
317-
]
318-
});
319-
ipc.send('autoUpdater:check-for-updates');
320-
return;
321-
} else if ( !silence ) {
322-
Ext.Msg.show({
323-
title: locale['app.update[3]']
324-
,message: locale['app.update[4]']
325-
,icon: Ext.Msg.INFO
326-
,buttons: Ext.Msg.OK
327-
});
328-
}
329-
330-
console.info('Your version is the latest. No need to update.');
331-
}
332-
});
250+
ipc.send('autoUpdater:check-for-updates');
333251
}
334252
});

app/store/ServicesList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Ext.define('Rambox.store.ServicesList', {
1010

1111
,proxy: {
1212
type: 'ajax',
13-
url: 'https://raw.githubusercontent.com/ramboxapp/community-edition/gh-pages/api/services.json',
13+
url: 'resources/services.json',
1414
reader: {
1515
type: 'json',
1616
rootProperty: 'responseText'

0 commit comments

Comments
 (0)