1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

ADD: repo-api-tokens GET POST PUT and access via-repo-token/dir and v… (#4136)

* ADD: repo-api-tokens GET POST PUT and access via-repo-token/dir and via-repo-token/upload-link by repo-api-token

* MOD: POST /via-api-token/dir logic

* MOD: check app and token when POST /repo-api-tokens

* MOD: use seafile_api.get_dir_id_by_path in via_repo_token for list dirs
This commit is contained in:
Alex Happy
2019-11-04 15:47:20 +08:00
committed by Daniel Pan
parent 9801ddc51d
commit b15b1bdffc
16 changed files with 1563 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ class MylibRepoMenu extends React.Component {
generatorOperations = () => {
let repo = this.props.repo;
let showResetPasswordMenuItem = repo.encrypted && enableResetEncryptedRepoPassword && isEmailConfigured;
let operations = ['Rename', 'Transfer', 'History Setting'];
let operations = ['Rename', 'Transfer', 'History Setting', 'API Token'];
if (repo.encrypted) {
operations.push('Change Password');
}
@@ -105,6 +105,9 @@ class MylibRepoMenu extends React.Component {
case 'Label Current State':
translateResult = gettext('Label Current State');
break;
case 'API Token':
translateResult = gettext('API Token');
break;
default:
break;
}