Reorganize frontend and install Craco to alias modules (#190)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { GraphqlQueryCompany } from '../../interfaces/entities/company.interface';
|
||||
import { GraphqlQueryCompany } from '@/companies/interfaces/company.interface';
|
||||
|
||||
export const mockedCompaniesData: Array<GraphqlQueryCompany> = [
|
||||
{
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
import { GraphQLVariables } from 'msw';
|
||||
|
||||
import { Company } from '@/companies/interfaces/company.interface';
|
||||
import { Person } from '@/people/interfaces/person.interface';
|
||||
import { User } from '@/users/interfaces/user.interface';
|
||||
import { BoolExpType } from '@/utils/interfaces/generic.interface';
|
||||
import {
|
||||
CompanyOrderByWithRelationInput,
|
||||
PersonOrderByWithRelationInput,
|
||||
StringFilter,
|
||||
UserOrderByWithRelationInput,
|
||||
} from '../../generated/graphql';
|
||||
import { Company } from '../../interfaces/entities/company.interface';
|
||||
import { BoolExpType } from '../../interfaces/entities/generic.interface';
|
||||
import { Person } from '../../interfaces/entities/person.interface';
|
||||
import { User } from '../../interfaces/entities/user.interface';
|
||||
} from '~/generated/graphql';
|
||||
|
||||
function filterData<DataT>(
|
||||
data: Array<DataT>,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { GraphqlQueryPerson } from '../../interfaces/entities/person.interface';
|
||||
import { GraphqlQueryPerson } from '@/people/interfaces/person.interface';
|
||||
|
||||
export const mockedPeopleData = [
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { GraphqlQueryUser } from '../../interfaces/entities/user.interface';
|
||||
import { GraphqlQueryUser } from '@/users/interfaces/user.interface';
|
||||
|
||||
export const mockedUsersData: Array<GraphqlQueryUser> = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user