mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 00:14:25 +00:00
Run npm lint:fix
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { getUsers, getWorkspaces, getSystemStats } from '@/api/admin';
|
||||
import { SystemStats, WorkspaceStats } from '@/types/adminApi';
|
||||
import { User } from '@/types/authApi';
|
||||
import type { SystemStats, WorkspaceStats } from '@/types/adminApi';
|
||||
import type { User } from '@/types/authApi';
|
||||
|
||||
// Possible types of admin data
|
||||
type AdminDataType = 'stats' | 'workspaces' | 'users';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { listFiles } from '../api/file';
|
||||
import { useWorkspace } from '../contexts/WorkspaceContext';
|
||||
import { FileNode } from '../types/fileApi';
|
||||
import type { FileNode } from '../types/fileApi';
|
||||
|
||||
interface UseFileListResult {
|
||||
files: FileNode[];
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useCallback } from 'react';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { pullChanges, commitAndPush } from '../api/git';
|
||||
import { useWorkspace } from '../contexts/WorkspaceContext';
|
||||
import { CommitHash } from '@/types/git';
|
||||
import type { CommitHash } from '@/types/git';
|
||||
|
||||
interface UseGitOperationsResult {
|
||||
handlePull: () => Promise<boolean>;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { updateProfile, deleteUser } from '../api/user';
|
||||
import { User } from '../types/authApi';
|
||||
import { UpdateProfileRequest } from '../types/userApi';
|
||||
import type { User } from '../types/authApi';
|
||||
import type { UpdateProfileRequest } from '../types/userApi';
|
||||
|
||||
interface UseProfileSettingsResult {
|
||||
loading: boolean;
|
||||
|
||||
@@ -5,8 +5,8 @@ import {
|
||||
deleteUser as adminDeleteUser,
|
||||
} from '../api/admin';
|
||||
import { notifications } from '@mantine/notifications';
|
||||
import { User } from '../types/authApi';
|
||||
import { CreateUserRequest, UpdateUserRequest } from '../types/adminApi';
|
||||
import type { User } from '../types/authApi';
|
||||
import type { CreateUserRequest, UpdateUserRequest } from '../types/adminApi';
|
||||
|
||||
interface UseUserAdminResult {
|
||||
users: User[];
|
||||
|
||||
Reference in New Issue
Block a user