Skip to content

Commit ed9b64a

Browse files
committed
release
1 parent 24b9203 commit ed9b64a

13 files changed

Lines changed: 119 additions & 118 deletions

File tree

dist/main/index.js

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8071,7 +8071,7 @@
80718071

80728072

80738073
// Initialise the Websocket connection
8074-
websocket = (0, _websocket.initialise)(("http://35.162.145.41:8000"));
8074+
websocket = (0, _websocket.initialise)(("http://35.167.249.144:8000"));
80758075

80768076
websocket.on('data', function (action) {
80778077
var reduxAction = (0, _mapWebsocketToRedux2.default)(store, action);
@@ -8276,14 +8276,14 @@
82768276
// Assign the global_env to process.env
82778277
// GLOBAL_ENV is set in webpack using the definePlugin
82788278
if (true) {
8279-
Object.assign(process.env, ({"APP_TYPE":"desktop","NODE_ENV":"production","WEBSITE_URL":"http://localhost:3333","API_SERVER":"http://35.162.145.41","WEBSOCKET_SERVER":"http://35.162.145.41:8000","ELECTRON_CRASH_REPORT_SERVER":"http://35.162.145.41:2096"}));
8279+
Object.assign(process.env, ({"APP_TYPE":"desktop","NODE_ENV":"production","WEBSITE_URL":"http://localhost:3333","API_SERVER":"http://35.167.249.144","WEBSOCKET_SERVER":"http://35.167.249.144:8000","ELECTRON_CRASH_REPORT_SERVER":"http://35.167.249.144:2096"}));
82808280
}
82818281

82828282
// Initialise Reporting
82838283
(0, _electronCrash2.default)();
82848284
(0, _ravenMain2.default)();
82858285

8286-
_axios2.default.defaults.baseURL = ("http://35.162.145.41") + '/';
8286+
_axios2.default.defaults.baseURL = ("http://35.167.249.144") + '/';
82878287

82888288
/***/ },
82898289
/* 299 */
@@ -10914,7 +10914,7 @@
1091410914
_electron.crashReporter.start({
1091510915
companyName: 'Stemn',
1091610916
productName: 'Stemn Desktop',
10917-
submitURL: ("http://35.162.145.41:2096"),
10917+
submitURL: ("http://35.167.249.144:2096"),
1091810918
autoSubmit: true,
1091910919
extra: {
1092010920
app_version: _package.version,
@@ -12644,10 +12644,10 @@
1264412644
value: true
1264512645
});
1264612646
// Sentry DSN for the Electron Main project
12647-
var sentryPrivate = exports.sentryPrivate = 'http://b882145da3624d20a8b388b1f499f1d7:70c3c691cdbc48529ace050e45b016f6@35.162.145.41:9000/4';
12647+
var sentryPrivate = exports.sentryPrivate = 'http://b882145da3624d20a8b388b1f499f1d7:70c3c691cdbc48529ace050e45b016f6@35.167.249.144:9000/4';
1264812648

1264912649
// Sentry DSN for the Electron Renderer project
12650-
var sentryPublic = exports.sentryPublic = 'http://fae90f76026746ecbb42464ba51ec2ec@35.162.145.41:9000/2';
12650+
var sentryPublic = exports.sentryPublic = 'http://fae90f76026746ecbb42464ba51ec2ec@35.167.249.144:9000/2';
1265112651

1265212652
/***/ },
1265312653
/* 362 */
@@ -13431,11 +13431,6 @@
1343113431
appIcon = new _electron.Tray(trayIcon);
1343213432
appIcon.setToolTip('Stemn Desktop');
1343313433

13434-
if (_process2.default.platform == 'win32') {
13435-
13436-
// appIcon.setContextMenu(contextMenu);
13437-
}
13438-
1343913434
var lastClickTime = Date.now();
1344013435

1344113436
appIcon.on('right-click', function (event, trayBounds) {
@@ -13471,8 +13466,8 @@
1347113466
}
1347213467
}, {
1347313468
label: 'Account Settings',
13474-
enabled: (auth.authToken && auth.user._id) === true,
13475-
onClick: function onClick() {
13469+
enabled: auth.authToken && auth.user._id ? true : false,
13470+
click: function click() {
1347613471
windows.main.show();
1347713472
dispatch((0, _reactRouterRedux.push)({
1347813473
pathname: '/settings/account',
@@ -21384,7 +21379,6 @@
2138421379
description: description
2138521380
}
2138621381
}).then(function (response) {
21387-
console.log();
2138821382
dispatch((0, _ToastsActions.show)({
2138921383
title: response.data.files.length + ' files commited',
2139021384
actions: [{
@@ -72983,7 +72977,7 @@
7298372977
});
7298472978

7298572979
exports.default = function (fileMeta) {
72986-
return fileMeta.project && fileMeta.project._id ? ("http://35.162.145.41") + '/api/v1/sync/download/' + fileMeta.project._id + '/' + fileMeta.fileId + (fileMeta.revisionId ? '?revisionId=' + fileMeta.revisionId : '') : ("http://35.162.145.41") + '/api/v1/remote/download/' + fileMeta.provider + '/' + fileMeta.fileId + (fileMeta.revisionId ? '?revisionId=' + fileMeta.revisionId : '');
72980+
return fileMeta.project && fileMeta.project._id ? ("http://35.167.249.144") + '/api/v1/sync/download/' + fileMeta.project._id + '/' + fileMeta.fileId + (fileMeta.revisionId ? '?revisionId=' + fileMeta.revisionId : '') : ("http://35.167.249.144") + '/api/v1/remote/download/' + fileMeta.provider + '/' + fileMeta.fileId + (fileMeta.revisionId ? '?revisionId=' + fileMeta.revisionId : '');
7298772981
};
7298872982

7298972983
module.exports = exports['default'];
@@ -73281,7 +73275,7 @@
7328173275

7328273276
var dest = _path2.default.join(folderPath, name);
7328373277
var onProgress = function onProgress(progressPerc) {
73284-
console.log(onProgressAction, progressPerc);
73278+
// console.log(onProgressAction, progressPerc);
7328573279
};
7328673280
return (0, _downloadToDisk2.default)({ url: url, params: params, dest: dest, extract: extract, onProgress: onProgress }).then(function (response1) {
7328773281
// If extract is true, we rename the files, then save them to the store
@@ -73341,6 +73335,7 @@
7334173335
var getFile = function getFile() {
7334273336
// If there is a render url, we check the render.status, otherwise we just download directly
7334373337
if (!renderUrl) {
73338+
console.log(url);
7334473339
return downloadToDiskAndSave({ key: key, url: url, params: params, name: name, extract: extract, onProgressAction: onProgressAction }).then(processResult);
7334573340
} else {
7334673341
return (0, _axios2.default)({ url: renderUrl, params: params }).then(function (response) {
@@ -73352,7 +73347,9 @@
7335273347
};
7335373348

7335473349
// If we have a cache entry, get the file
73355-
return fileCache[key] ? fsPromise.stat(_path2.default.join(folderPath, fileCache[key].name)).then(processResult).catch(getFile) : getFile();
73350+
return fileCache[key] ? fsPromise.stat(_path2.default.join(folderPath, fileCache[key].name)).then(processResult).catch(getFile)
73351+
// Else, we download the file.
73352+
: getFile();
7335673353
};
7335773354

7335873355
/*******************************************************
@@ -95279,7 +95276,6 @@
9527995276

9528095277
// unzip event uses close, but all others use end
9528195278
if (extract) {
95282-
// console.log('Download to Disk Complete', {url, params, dest, onProgress, extract});
9528395279
file.on('close', function (response) {
9528495280
resolve({
9528595281
size: total,
@@ -95295,6 +95291,8 @@
9529595291
});
9529695292
}
9529795293
stream.pipe(file);
95294+
}).catch(function (error) {
95295+
reject(error.response);
9529895296
});
9529995297
});
9530095298
};
@@ -113258,6 +113256,7 @@
113258113256
case 'FILES/GET_FILE_PENDING':
113259113257
return _icepick2.default.assocIn(state, ['fileData', action.meta.cacheKey, 'loading'], true);
113260113258
case 'FILES/GET_FILE_REJECTED':
113259+
console.log(action.payload);
113261113260
return _icepick2.default.assocIn(state, ['fileData', action.meta.cacheKey], {
113262113261
error: action.payload.data,
113263113262
loading: false
@@ -150547,7 +150546,7 @@
150547150546
port: 49554
150548150547
},
150549150548
websocket: {
150550-
host: ("http://35.162.145.41:8000") || 'localhost',
150549+
host: ("http://35.167.249.144:8000") || 'localhost',
150551150550
port: 8000
150552150551
}
150553150552
};

dist/main/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/common/index.js

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/common/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/commonPreview/index.js

Lines changed: 33 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/commonPreview/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/main/index.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/main/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/menubar/index.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/renderer/menubar/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)