mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Added Google Viewer Integration (Preview Microsoft Word, Excel and PowerPoint files)
This commit is contained in:
parent
1638b55411
commit
139f412b6a
15 changed files with 254 additions and 42 deletions
|
|
@ -65,6 +65,15 @@
|
|||
return this.sServer + '/Raw/' + this.sSubQuery + this.sSpecSuffix + '/ViewAsPlain/' + sDownload;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sDownload
|
||||
* @return {string}
|
||||
*/
|
||||
Links.prototype.attachmentFramed = function (sDownload)
|
||||
{
|
||||
return this.sServer + '/Raw' + this.sSubQuery + this.sSpecSuffix + '/FramedView/' + sDownload;
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1093,10 +1093,19 @@
|
|||
oData.googleEnable = ko.observable(false);
|
||||
oData.googleEnable.auth = ko.observable(false);
|
||||
oData.googleEnable.drive = ko.observable(false);
|
||||
oData.googleEnable.preview = ko.observable(false);
|
||||
oData.googleClientID = ko.observable('');
|
||||
oData.googleClientSecret = ko.observable('');
|
||||
oData.googleApiKey = ko.observable('');
|
||||
|
||||
oData.googleEnable.requireClientSettings = ko.computed(function () {
|
||||
return oData.googleEnable() && (oData.googleEnable.auth() || oData.googleEnable.drive());
|
||||
});
|
||||
|
||||
oData.googleEnable.requireApiKey = ko.computed(function () {
|
||||
return oData.googleEnable() && oData.googleEnable.drive();
|
||||
});
|
||||
|
||||
oData.dropboxEnable = ko.observable(false);
|
||||
oData.dropboxApiKey = ko.observable('');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue