mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 11:21:29 +00:00
decodeURIComponent email (#5397)
This commit is contained in:
@@ -24,7 +24,8 @@ class OrgUserProfile extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
seafileAPI.orgAdminGetOrgUserInfo(orgID, this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.orgAdminGetOrgUserInfo(orgID, email).then((res) => {
|
||||
this.setState(Object.assign({
|
||||
loading: false
|
||||
}, res.data));
|
||||
|
@@ -24,7 +24,8 @@ class OrgUserOwnedRepos extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
seafileAPI.orgAdminGetOrgUserOwnedRepos(orgID, this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.orgAdminGetOrgUserOwnedRepos(orgID, email).then((res) => {
|
||||
this.setState(Object.assign({
|
||||
loading: false
|
||||
}, res.data));
|
||||
|
@@ -22,7 +22,8 @@ class OrgUserSharedRepos extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
seafileAPI.orgAdminGetOrgUserBesharedRepos(orgID, this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.orgAdminGetOrgUserBesharedRepos(orgID, email).then((res) => {
|
||||
this.setState(Object.assign({
|
||||
loading: false
|
||||
}, res.data));
|
||||
|
@@ -156,12 +156,13 @@ class Groups extends Component {
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
seafileAPI.sysAdminGetUser(this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.sysAdminGetUser(email).then((res) => {
|
||||
this.setState({
|
||||
userInfo: res.data
|
||||
});
|
||||
});
|
||||
seafileAPI.sysAdminListGroupsJoinedByUser(this.props.email).then(res => {
|
||||
seafileAPI.sysAdminListGroupsJoinedByUser(email).then(res => {
|
||||
this.setState({
|
||||
loading: false,
|
||||
items: res.data.group_list
|
||||
|
@@ -238,7 +238,8 @@ class User extends Component {
|
||||
|
||||
componentDidMount () {
|
||||
// avatar size: 160
|
||||
seafileAPI.sysAdminGetUser(this.props.email, 160).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.sysAdminGetUser(email, 160).then((res) => {
|
||||
this.setState({
|
||||
loading: false,
|
||||
userInfo: res.data
|
||||
|
@@ -231,13 +231,14 @@ class Links extends Component {
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
seafileAPI.sysAdminGetUser(this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.sysAdminGetUser(email).then((res) => {
|
||||
this.setState({
|
||||
userInfo: res.data
|
||||
});
|
||||
});
|
||||
|
||||
seafileAPI.sysAdminListShareLinksByUser(this.props.email).then(res => {
|
||||
seafileAPI.sysAdminListShareLinksByUser(email).then(res => {
|
||||
const items = res.data.share_link_list.map(item => {
|
||||
item.type = 'download';
|
||||
return item;
|
||||
@@ -250,7 +251,7 @@ class Links extends Component {
|
||||
shareLinkItems: items
|
||||
});
|
||||
});
|
||||
seafileAPI.sysAdminListUploadLinksByUser(this.props.email).then(res => {
|
||||
seafileAPI.sysAdminListUploadLinksByUser(email).then(res => {
|
||||
const items = res.data.upload_link_list.map(item => {
|
||||
item.type = 'upload';
|
||||
return item;
|
||||
|
@@ -236,12 +236,13 @@ class Repos extends Component {
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
seafileAPI.sysAdminGetUser(this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.sysAdminGetUser(email).then((res) => {
|
||||
this.setState({
|
||||
userInfo: res.data
|
||||
});
|
||||
});
|
||||
seafileAPI.sysAdminListReposByOwner(this.props.email).then(res => {
|
||||
seafileAPI.sysAdminListReposByOwner(email).then(res => {
|
||||
this.setState({
|
||||
loading: false,
|
||||
repoList: res.data.repos
|
||||
|
@@ -123,12 +123,13 @@ class Repos extends Component {
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
seafileAPI.sysAdminGetUser(this.props.email).then((res) => {
|
||||
const email = decodeURIComponent(this.props.email);
|
||||
seafileAPI.sysAdminGetUser(email).then((res) => {
|
||||
this.setState({
|
||||
userInfo: res.data
|
||||
});
|
||||
});
|
||||
seafileAPI.sysAdminListShareInRepos(this.props.email).then(res => {
|
||||
seafileAPI.sysAdminListShareInRepos(email).then(res => {
|
||||
this.setState({
|
||||
loading: false,
|
||||
repoList: res.data.repo_list
|
||||
|
Reference in New Issue
Block a user