chore: imports optimise

This commit is contained in:
ascarbek 2023-04-06 14:46:49 +06:00
parent 0c211188f0
commit d2b0f7e6b0
6 changed files with 19 additions and 19 deletions

View File

@ -1,6 +1,6 @@
import { SettingsSvg } from '../_shared/svg/SettingsSvg'; import { SettingsSvg } from '../_shared/svg/SettingsSvg';
import { SearchInput } from '../_shared/SearchInput'; import { SearchInput } from '../_shared/SearchInput';
import { BoardBlock } from './BoardBlock'; import { BoardGroup } from './BoardGroup';
import { NewBoardBlock } from './NewBoardBlock'; import { NewBoardBlock } from './NewBoardBlock';
import { useDatabase } from '../_shared/database-hooks/useDatabase'; import { useDatabase } from '../_shared/database-hooks/useDatabase';
import { ViewLayoutPB } from '@/services/backend'; import { ViewLayoutPB } from '@/services/backend';
@ -39,7 +39,7 @@ export const Board = ({ viewId }: { viewId: string }) => {
{controller && {controller &&
groups && groups &&
groups.map((group, index) => ( groups.map((group, index) => (
<BoardBlock <BoardGroup
key={group.groupId} key={group.groupId}
viewId={viewId} viewId={viewId}
controller={controller} controller={controller}

View File

@ -1,7 +1,7 @@
import { Details2Svg } from '../_shared/svg/Details2Svg'; import { Details2Svg } from '../_shared/svg/Details2Svg';
import { RowInfo } from '../../stores/effects/database/row/row_cache'; import { RowInfo } from '$app/stores/effects/database/row/row_cache';
import { useRow } from '../_shared/database-hooks/useRow'; import { useRow } from '../_shared/database-hooks/useRow';
import { DatabaseController } from '../../stores/effects/database/database_controller'; import { DatabaseController } from '$app/stores/effects/database/database_controller';
import { BoardCell } from './BoardCell'; import { BoardCell } from './BoardCell';
import { Draggable } from 'react-beautiful-dnd'; import { Draggable } from 'react-beautiful-dnd';

View File

@ -1,7 +1,7 @@
import { CellIdentifier } from '../../stores/effects/database/cell/cell_bd_svc'; import { CellIdentifier } from '$app/stores/effects/database/cell/cell_bd_svc';
import { CellCache } from '../../stores/effects/database/cell/cell_cache'; import { CellCache } from '$app/stores/effects/database/cell/cell_cache';
import { FieldController } from '../../stores/effects/database/field/field_controller'; import { FieldController } from '$app/stores/effects/database/field/field_controller';
import { FieldType } from '../../../services/backend'; import { FieldType } from '@/services/backend';
import { BoardOptionsCell } from './BoardOptionsCell'; import { BoardOptionsCell } from './BoardOptionsCell';
import { BoardDateCell } from './BoardDateCell'; import { BoardDateCell } from './BoardDateCell';
import { BoardTextCell } from './BoardTextCell'; import { BoardTextCell } from './BoardTextCell';

View File

@ -1,8 +1,8 @@
import { DateCellDataPB } from '../../../services/backend'; import { DateCellDataPB } from '@/services/backend';
import { useCell } from '../_shared/database-hooks/useCell'; import { useCell } from '../_shared/database-hooks/useCell';
import { CellIdentifier } from '../../stores/effects/database/cell/cell_bd_svc'; import { CellIdentifier } from '$app/stores/effects/database/cell/cell_bd_svc';
import { CellCache } from '../../stores/effects/database/cell/cell_cache'; import { CellCache } from '$app/stores/effects/database/cell/cell_cache';
import { FieldController } from '../../stores/effects/database/field/field_controller'; import { FieldController } from '$app/stores/effects/database/field/field_controller';
export const BoardDateCell = ({ export const BoardDateCell = ({
cellIdentifier, cellIdentifier,

View File

@ -1,12 +1,12 @@
import { Details2Svg } from '../_shared/svg/Details2Svg'; import { Details2Svg } from '../_shared/svg/Details2Svg';
import AddSvg from '../_shared/svg/AddSvg'; import AddSvg from '../_shared/svg/AddSvg';
import { BoardCard } from './BoardCard'; import { BoardCard } from './BoardCard';
import { RowInfo } from '../../stores/effects/database/row/row_cache'; import { RowInfo } from '$app/stores/effects/database/row/row_cache';
import { DatabaseController } from '../../stores/effects/database/database_controller'; import { DatabaseController } from '$app/stores/effects/database/database_controller';
import { Droppable } from 'react-beautiful-dnd'; import { Droppable } from 'react-beautiful-dnd';
import { DatabaseGroupController } from '$app/stores/effects/database/group/group_controller'; import { DatabaseGroupController } from '$app/stores/effects/database/group/group_controller';
export const BoardBlock = ({ export const BoardGroup = ({
viewId, viewId,
controller, controller,
allRows, allRows,

View File

@ -1,8 +1,8 @@
import { SelectOptionCellDataPB } from '../../../services/backend'; import { SelectOptionCellDataPB } from '@/services/backend';
import { useCell } from '../_shared/database-hooks/useCell'; import { useCell } from '../_shared/database-hooks/useCell';
import { CellIdentifier } from '../../stores/effects/database/cell/cell_bd_svc'; import { CellIdentifier } from '$app/stores/effects/database/cell/cell_bd_svc';
import { CellCache } from '../../stores/effects/database/cell/cell_cache'; import { CellCache } from '$app/stores/effects/database/cell/cell_cache';
import { FieldController } from '../../stores/effects/database/field/field_controller'; import { FieldController } from '$app/stores/effects/database/field/field_controller';
import { getBgColor } from '$app/components/_shared/getColor'; import { getBgColor } from '$app/components/_shared/getColor';
export const BoardOptionsCell = ({ export const BoardOptionsCell = ({