1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-23 12:27:48 +00:00

System admin api (#6967)

* [system admin] moved related APIs from seafile-js to system-admin-api.js; made related fixup & improvements, and etc.

* [system admin] use 'systemAdminAPI' instead of 'seafileAPI' for the pages

* [system admin] use 'systemAdminAPI' instead of 'seafileAPI' for the dialogs
This commit is contained in:
llj
2024-10-30 08:48:04 +08:00
committed by GitHub
parent 23ac76bc3f
commit 801b473b5d
78 changed files with 1363 additions and 306 deletions

View File

@@ -4,7 +4,7 @@ import { Button } from 'reactstrap';
import { navigate } from '@gatsbyjs/reach-router';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import { seafileAPI } from '../../../utils/seafile-api';
import { systemAdminAPI } from '../../../utils/system-admin-api';
import { gettext } from '../../../utils/constants';
import { Utils } from '../../../utils/utils';
import EmptyTip from '../../../components/empty-tip';
@@ -271,7 +271,7 @@ class FileAccessLogs extends Component {
getLogsByPage = (page) => {
const { perPage, userFilteredBy, repoFilteredBy } = this.state;
seafileAPI.sysAdminListFileAccessLogs(page, perPage, userFilteredBy, repoFilteredBy).then((res) => {
systemAdminAPI.sysAdminListFileAccessLogs(page, perPage, userFilteredBy, repoFilteredBy).then((res) => {
this.setState({
logList: res.data.file_access_log_list,
loading: false,