Former-commit-id: beb6526d0ab03c12d3147b62a604ee4d8b6c5b2d
This commit is contained in:
troyeguo
2023-12-23 15:03:18 +08:00
parent a879b0f568
commit b6a3f9bb71
3 changed files with 3 additions and 24 deletions

View File

@@ -64,7 +64,6 @@
display: flex;
justify-content: center;
align-items: center;
opacity: 0.5;
border-radius: 10px;
box-sizing: border-box;
margin-right: 10px;

View File

@@ -122,11 +122,8 @@ class BackupDialog extends React.Component<
}
break;
case 2:
this.showMessage("Coming Soon");
break;
case 3:
case 2:
if (!StorageUtil.getReaderConfig("webdav_token")) {
this.props.handleTokenDialog(true);
break;
@@ -184,7 +181,7 @@ class BackupDialog extends React.Component<
className="backup-page-list-item"
onClick={() => {
//webdav is avavilible on desktop
if (index === 3 && !isElectron) {
if (index === 2 && !isElectron) {
toast(
this.props.t(
"Koodo Reader's web version are limited by the browser, for more powerful features, please download the desktop version."
@@ -194,7 +191,6 @@ class BackupDialog extends React.Component<
}
this.handleDrive(index);
}}
style={index !== 2 ? { opacity: 1 } : {}}
>
<div className="backup-page-list-item-container">
<span

View File

@@ -8,9 +8,6 @@ export const config = {
? "http://localhost:3366"
: "http://localhost:3366",
dropbox_client_id: "vnc67byrssocvy1",
googledrive_client_id:
"99440516227-ifr1ann33f2j610i3ri17ej0i51c7m6e.apps.googleusercontent.com",
onedrive_client_id: "ac96f9bf-94f2-49c0-8418-999b919bc236",
};
export const driveList = [
{
@@ -25,21 +22,8 @@ export const driveList = [
icon: "dropbox",
url: `https://www.dropbox.com/oauth2/authorize?response_type=token&client_id=${config.dropbox_client_id}&redirect_uri=${config.callback_url}`,
},
{
id: 3,
name: "Google Drive",
icon: "googledrive",
url: "",
},
// {
// id: 4,
// name: "OneDrive",
// icon: "onedrive",
// url: `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${config.onedrive_client_id}&scope=files.readwrite offline_access&response_type=code&redirect_uri=${config.callback_url}`,
// },
{
id: 5,
id: 2,
name: "WebDav",
icon: "webdav",
url: "",