Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
password prompt for DropBox
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Jun 4, 2017
1 parent a7f6bda commit 3a80055
Show file tree
Hide file tree
Showing 7 changed files with 230 additions and 168 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 9.16.0 (June 4th, 2017; password prompts)

* password box is shown now if no password is defined in [API](https://github.com/mkloubert/vs-deploy/wiki/target_api), [FTP](https://github.com/mkloubert/vs-deploy/wiki/target_ftp) and [mail](https://github.com/mkloubert/vs-deploy/wiki/target_mail) targets
* password box is shown now if no password is defined in [API](https://github.com/mkloubert/vs-deploy/wiki/target_api), [DropBox](https://github.com/mkloubert/vs-deploy/wiki/target_dropbox), [FTP](https://github.com/mkloubert/vs-deploy/wiki/target_ftp) and [mail](https://github.com/mkloubert/vs-deploy/wiki/target_mail) targets

## 9.15.1 (June 4th, 2017; bugfixes and password prompt for SFTP)

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6862,6 +6862,11 @@
"description": "The algorithm for the password to use.",
"default": "aes-256-ctr"
},
"promptForToken": {
"type": "boolean",
"description": "Prompt for a access token if not defined.",
"default": true
},
"description": {
"type": "string",
"description": "A description for the target."
Expand Down
10 changes: 10 additions & 0 deletions src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ export const EVENT_DEPLOYONSAVE_ENABLE = 'deploy.deployOnSave.enable';
*/
export const EVENT_DEPLOYONSAVE_TOGGLE = 'deploy.deployOnSave.toggle';

/**
* An object that can handle passwords.
*/
export interface AccessTokenObject {
/**
* Prompt for a access token if not defined.
*/
promptForToken?: boolean;
}

/**
* A deploy operation for compiling files that is invoked AFTER
* ALL files have been deployed.
Expand Down
1 change: 1 addition & 0 deletions src/i18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface Translation {
},
},
prompts?: {
inputAccessToken?: string;
inputPassword?: string;
},
pull?: {
Expand Down
1 change: 1 addition & 0 deletions src/lang/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export const translation: Translation = {
},
},
prompts: {
inputAccessToken: 'Geben Sie das Zugriffs-Token an...',
inputPassword: 'Geben Sie das Passwort an...',
},
pull: {
Expand Down
1 change: 1 addition & 0 deletions src/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export const translation: Translation = {
},
},
prompts: {
inputAccessToken: 'Input the access token...',
inputPassword: 'Input the password...',
},
pull: {
Expand Down
Loading

0 comments on commit 3a80055

Please sign in to comment.