Run npm lint:fix

This commit is contained in:
2025-05-18 16:57:48 +02:00
parent 16fbbec992
commit 2f181d0f7f
34 changed files with 85 additions and 68 deletions

View File

@@ -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';

View File

@@ -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[];

View File

@@ -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>;

View File

@@ -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;

View File

@@ -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[];