mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
Paths to be app paths
This commit is contained in:
parent
7c1da49d12
commit
cd73c56ae4
@ -1,6 +1,6 @@
|
||||
import { Stack, Text, SegmentedControl } from '@mantine/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ProcessingMode } from '../../types/parameters';
|
||||
import { ProcessingMode } from '@app/types/parameters';
|
||||
|
||||
export interface ProcessingModeToggleProps {
|
||||
value: ProcessingMode;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import { ToggleableProcessingParameters } from '../../../types/parameters';
|
||||
import { ToggleableProcessingParameters } from '@app/types/parameters';
|
||||
|
||||
export interface ReorganizePagesParameters extends ToggleableProcessingParameters {
|
||||
customMode: string; // empty string means custom order using pageNumbers
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { PDFDocument, StandardFonts } from 'pdf-lib';
|
||||
import type { AddPageNumbersParameters } from '../../components/tools/addPageNumbers/useAddPageNumbersParameters';
|
||||
import { resolvePageNumbers } from '../pageSelection';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { AddPageNumbersParameters } from '@app/components/tools/addPageNumbers/useAddPageNumbersParameters';
|
||||
import { resolvePageNumbers } from '@app/utils/pageSelection';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { degrees, PDFDocument, PDFPage, rgb } from 'pdf-lib';
|
||||
import type { AddStampParameters } from '../../components/tools/addStamp/useAddStampParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import { resolvePageNumbers } from '../pageSelection';
|
||||
import { loadFontForAlphabet } from './fontCache';
|
||||
import type { AddStampParameters } from '@app/components/tools/addStamp/useAddStampParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import { resolvePageNumbers } from '@app/utils/pageSelection';
|
||||
import { loadFontForAlphabet } from '@app/utils/pdfOperations/fontCache';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { degrees, PDFDocument, rgb } from 'pdf-lib';
|
||||
import type { AddWatermarkParameters } from '../../hooks/tools/addWatermark/useAddWatermarkParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import { loadFontForAlphabet } from './fontCache';
|
||||
import type { AddWatermarkParameters } from '@app/hooks/tools/addWatermark/useAddWatermarkParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import { loadFontForAlphabet } from '@app/utils/pdfOperations/fontCache';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { AdjustPageScaleParameters, PageSize } from '../../hooks/tools/adjustPageScale/useAdjustPageScaleParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { AdjustPageScaleParameters, PageSize } from '@app/hooks/tools/adjustPageScale/useAdjustPageScaleParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument, PDFName, PDFString, PDFDict } from 'pdf-lib';
|
||||
import type { ChangeMetadataParameters } from '../../hooks/tools/changeMetadata/useChangeMetadataParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { ChangeMetadataParameters } from '@app/hooks/tools/changeMetadata/useChangeMetadataParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { CropParameters } from '../../hooks/tools/crop/useCropParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { CropParameters } from '@app/hooks/tools/crop/useCropParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { FlattenParameters } from '../../hooks/tools/flatten/useFlattenParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { FlattenParameters } from '@app/hooks/tools/flatten/useFlattenParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { MergeParameters } from '../../hooks/tools/merge/useMergeParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { MergeParameters } from '@app/hooks/tools/merge/useMergeParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument, rgb } from 'pdf-lib';
|
||||
import type { PageLayoutParameters } from '../../hooks/tools/pageLayout/usePageLayoutParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { PageLayoutParameters } from '@app/hooks/tools/pageLayout/usePageLayoutParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
const A4_WIDTH = 595.28;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { RemovePagesParameters } from '../../hooks/tools/removePages/useRemovePagesParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import { resolvePageNumbers } from '../pageSelection';
|
||||
import type { RemovePagesParameters } from '@app/hooks/tools/removePages/useRemovePagesParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import { resolvePageNumbers } from '@app/utils/pageSelection';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { ReorganizePagesParameters } from '../../hooks/tools/reorganizePages/useReorganizePagesParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import { resolvePageOrderSequence } from '../pageSelection';
|
||||
import type { ReorganizePagesParameters } from '@app/hooks/tools/reorganizePages/useReorganizePagesParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import { resolvePageOrderSequence } from '@app/utils/pageSelection';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { PDFDocument, degrees } from 'pdf-lib';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { RotateParameters } from '../../hooks/tools/rotate/useRotateParameters';
|
||||
import { normalizeAngle } from '../../hooks/tools/rotate/useRotateParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import type { RotateParameters } from '@app/hooks/tools/rotate/useRotateParameters';
|
||||
import { normalizeAngle } from '@app/hooks/tools/rotate/useRotateParameters';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { SingleLargePageParameters } from '../../hooks/tools/singleLargePage/useSingleLargePageParameters';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import type { SingleLargePageParameters } from '@app/hooks/tools/singleLargePage/useSingleLargePageParameters';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import type { SplitParameters } from '../../hooks/tools/split/useSplitParameters';
|
||||
import { resolvePageNumbers, validatePageNumbers } from '../pageSelection';
|
||||
import { createFileFromApiResponse } from '../fileResponseUtils';
|
||||
import { SPLIT_METHODS } from '../../constants/splitConstants';
|
||||
import type { SplitParameters } from '@app/hooks/tools/split/useSplitParameters';
|
||||
import { resolvePageNumbers, validatePageNumbers } from '@app/utils/pageSelection';
|
||||
import { createFileFromApiResponse } from '@app/utils/fileResponseUtils';
|
||||
import { SPLIT_METHODS } from '@app/constants/splitConstants';
|
||||
|
||||
const PDF_MIME_TYPE = 'application/pdf';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user