chore: Refactoring all import directories to alias and all .js|.jsx renamed to be .ts|.tsx

This commit is contained in:
a.bouhuolia
2022-07-15 23:25:23 +02:00
parent cd08d0ee16
commit f00097f6c8
3846 changed files with 125197 additions and 128236 deletions

View File

@@ -1,8 +1,8 @@
import React, { useEffect, useCallback } from 'react';
import classNames from 'classnames';
import { CLASSES } from 'common/classes';
import { DataTableEditable } from 'components';
import { CLASSES } from '@/constants/classes';
import { DataTableEditable } from '@/components';
import { useEditableItemsEntriesColumns } from './components';
import {
@@ -10,7 +10,7 @@ import {
compose,
updateMinEntriesLines,
updateRemoveLineByIndex,
} from 'utils';
} from '@/utils';
import {
useFetchItemRow,
composeRowsOnNewRow,

View File

@@ -3,9 +3,9 @@ import intl from 'react-intl-universal';
import { MenuItem, Menu, Button, Position } from '@blueprintjs/core';
import { Popover2 } from '@blueprintjs/popover2';
import { Align, CellType } from 'common';
import { Hint, Icon, FormattedMessage as T } from 'components';
import { formattedAmount } from 'utils';
import { Align, CellType } from '@/constants';
import { Hint, Icon, FormattedMessage as T } from '@/components';
import { formattedAmount } from '@/utils';
import {
InputGroupCell,
MoneyFieldCell,
@@ -13,7 +13,7 @@ import {
PercentFieldCell,
NumericInputCell,
CheckBoxFieldCell,
} from 'components/DataTableCells';
} from '@/components/DataTableCells';
/**
* Item header cell.

View File

@@ -2,7 +2,7 @@ import React from 'react';
import * as R from 'ramda';
import { sumBy, isEmpty, last } from 'lodash';
import { useItem } from 'hooks/query';
import { useItem } from '@/hooks/query';
import {
toSafeNumber,
saveInvoke,
@@ -11,7 +11,7 @@ import {
updateAutoAddNewLine,
orderingLinesIndexes,
updateTableRow,
} from 'utils';
} from '@/utils';
/**
* Retrieve item entry total from the given rate, quantity and discount.