rename to watchFolder
This commit is contained in:
parent
bf21d8391a
commit
42c19b39a1
|
@ -13,7 +13,7 @@ import {
|
||||||
InProgressUpload,
|
InProgressUpload,
|
||||||
} from 'types/upload/ui';
|
} from 'types/upload/ui';
|
||||||
import UploadProgressContext from 'contexts/uploadProgress';
|
import UploadProgressContext from 'contexts/uploadProgress';
|
||||||
import watchService from 'services/watchService';
|
import watchService from 'services/watchFolderService';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
|
|
|
@ -9,10 +9,10 @@ import {
|
||||||
} from './styledComponents';
|
} from './styledComponents';
|
||||||
import React, { useContext, useEffect, useState } from 'react';
|
import React, { useContext, useEffect, useState } from 'react';
|
||||||
import { Dialog, IconButton } from '@mui/material';
|
import { Dialog, IconButton } from '@mui/material';
|
||||||
import watchService from 'services/watchService';
|
import watchService from 'services/watchFolderService';
|
||||||
import Close from '@mui/icons-material/Close';
|
import Close from '@mui/icons-material/Close';
|
||||||
import { CenteredFlex, SpaceBetweenFlex } from 'components/Container';
|
import { CenteredFlex, SpaceBetweenFlex } from 'components/Container';
|
||||||
import { WatchMapping } from 'types/watch';
|
import { WatchMapping } from 'types/watchFolder';
|
||||||
import { GalleryContext } from 'pages/gallery';
|
import { GalleryContext } from 'pages/gallery';
|
||||||
import constants from 'utils/strings/constants';
|
import constants from 'utils/strings/constants';
|
||||||
import { CheckmarkIcon } from './checkmarkIcon';
|
import { CheckmarkIcon } from './checkmarkIcon';
|
||||||
|
|
|
@ -9,9 +9,9 @@ import {
|
||||||
} from './styledComponents';
|
} from './styledComponents';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { CircularProgress, IconButton, Menu, MenuItem } from '@mui/material';
|
import { CircularProgress, IconButton, Menu, MenuItem } from '@mui/material';
|
||||||
import watchService from 'services/watchService';
|
import watchService from 'services/watchFolderService';
|
||||||
import { SpaceBetweenFlex } from 'components/Container';
|
import { SpaceBetweenFlex } from 'components/Container';
|
||||||
import { WatchMapping } from 'types/watch';
|
import { WatchMapping } from 'types/watchFolder';
|
||||||
import { AppContext } from 'pages/_app';
|
import { AppContext } from 'pages/_app';
|
||||||
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
|
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
|
||||||
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
||||||
|
|
|
@ -24,7 +24,7 @@ import UploadTypeSelector from '../../UploadTypeSelector';
|
||||||
import Router from 'next/router';
|
import Router from 'next/router';
|
||||||
import { isCanvasBlocked } from 'utils/upload/isCanvasBlocked';
|
import { isCanvasBlocked } from 'utils/upload/isCanvasBlocked';
|
||||||
import { downloadApp } from 'utils/common';
|
import { downloadApp } from 'utils/common';
|
||||||
import watchService from 'services/watchService';
|
import watchService from 'services/watchFolderService';
|
||||||
import DiscFullIcon from '@mui/icons-material/DiscFull';
|
import DiscFullIcon from '@mui/icons-material/DiscFull';
|
||||||
import { NotificationAttributes } from 'types/Notification';
|
import { NotificationAttributes } from 'types/Notification';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -38,7 +38,7 @@ import uiService from './uiService';
|
||||||
import { logUploadInfo } from 'utils/upload';
|
import { logUploadInfo } from 'utils/upload';
|
||||||
import isElectron from 'is-electron';
|
import isElectron from 'is-electron';
|
||||||
import ImportService from 'services/importService';
|
import ImportService from 'services/importService';
|
||||||
import watchService from 'services/watchService';
|
import watchService from 'services/watchFolderService';
|
||||||
import { ProgressUpdater } from 'types/upload/ui';
|
import { ProgressUpdater } from 'types/upload/ui';
|
||||||
|
|
||||||
const MAX_CONCURRENT_UPLOADS = 4;
|
const MAX_CONCURRENT_UPLOADS = 4;
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { removeFromCollection, syncCollections } from './collectionService';
|
||||||
import { syncFiles } from './fileService';
|
import { syncFiles } from './fileService';
|
||||||
import debounce from 'debounce-promise';
|
import debounce from 'debounce-promise';
|
||||||
import { logError } from 'utils/sentry';
|
import { logError } from 'utils/sentry';
|
||||||
import { EventQueueItem, WatchMapping } from 'types/watch';
|
import { EventQueueItem, WatchMapping } from 'types/watchFolder';
|
||||||
import { ElectronAPIsInterface } from 'types/electron';
|
import { ElectronAPIsInterface } from 'types/electron';
|
||||||
|
|
||||||
export class WatchService {
|
export class WatchService {
|
|
@ -1,6 +1,6 @@
|
||||||
import { WatchService } from 'services/watchService';
|
import { WatchService } from 'services/watchFolderService';
|
||||||
import { ElectronFile } from 'types/upload';
|
import { ElectronFile } from 'types/upload';
|
||||||
import { WatchMapping } from 'types/watch';
|
import { WatchMapping } from 'types/watchFolder';
|
||||||
|
|
||||||
export interface ElectronAPIsInterface {
|
export interface ElectronAPIsInterface {
|
||||||
exists: (path: string) => boolean;
|
exists: (path: string) => boolean;
|
||||||
|
|
Loading…
Reference in a new issue