Skip to content

Commit

Permalink
Tidy project folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardev1127 committed Apr 19, 2023
1 parent fafe949 commit 8e7859d
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { AuthParty } from '@/models/auth_parties';
import { AuthParty } from '@/models/applications/auth_parties';
import { SeraContext } from '@/contexts/SeraContext';

const authPartiesData: AuthParty[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { BusinessPartner } from '@/models/business_partner';
import { BusinessPartner } from '@/models/applications/business_partner';
import { SeraContext } from '@/contexts/SeraContext';

const busPartner: BusinessPartner[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
MenuItem
} from '@mui/material';
import Label from '@/components/Label';
import { ContractStatus, Proposals } from '@/models/contracts';
import { ContractStatus, Proposals } from '@/models/applications/contracts';
import { SeraContext } from '@/contexts/SeraContext';

interface Filters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { RFQ } from '@/models/contracts';
import { RFQ } from '@/models/applications/contracts';
import { SeraContext } from '@/contexts/SeraContext';

const rfq: RFQ[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Divider
} from '@mui/material';
import Label from '@/components/Label';
import { Invoice, InvoiceStatus } from '@/models/invoices';
import { Invoice, InvoiceStatus } from '@/models/applications/invoices';
import { SeraContext } from '@/contexts/SeraContext';

const invoicesData: Invoice[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Divider
} from '@mui/material';
import { SeraContext } from '@/contexts/SeraContext';
import { Materials } from '@/models/materials';
import { Materials } from '@/models/applications/materials';

const materialsData: Materials[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import {
Divider
} from '@mui/material';
import Label from '@/components/Label';
import { PurhcaseOrder, PurchaseOrderStatus } from '@/models/purhcase_orders';
import {
PurhcaseOrder,
PurchaseOrderStatus
} from '@/models/applications/purhcase_orders';
import { SeraContext } from '@/contexts/SeraContext';

const purOrderData: PurhcaseOrder[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { BusinessPartner } from '@/models/business_partner';
import { BusinessPartner } from '@/models/applications/business_partner';
import { SeraContext } from '@/contexts/SeraContext';

const busPartner: BusinessPartner[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { BusinessPartner } from '@/models/business_partner';
import { BusinessPartner } from '@/models/applications/business_partner';
import { SeraContext } from '@/contexts/SeraContext';

const busPartner: BusinessPartner[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Tooltip,
Divider
} from '@mui/material';
import { BusinessPartner } from '@/models/business_partner';
import { BusinessPartner } from '@/models/applications/business_partner';
import { SeraContext } from '@/contexts/SeraContext';

const busPartner: BusinessPartner[] = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Card } from '@mui/material';
import { CryptoOrder } from '@/models/crypto_order';
import { CryptoOrder } from '@/models/applications/crypto_order';
import RecentOrdersTable from './RecentOrdersTable';
import { subDays } from 'date-fns';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ import {
} from '@mui/material';

import Label from '@/components/Label';
import { CryptoOrder, CryptoOrderStatus } from '@/models/crypto_order';
import {
CryptoOrder,
CryptoOrderStatus
} from '@/models/applications/crypto_order';
import EditTwoToneIcon from '@mui/icons-material/EditTwoTone';
import DeleteTwoToneIcon from '@mui/icons-material/DeleteTwoTone';
import BulkActions from './BulkActions';
Expand Down
12 changes: 6 additions & 6 deletions sera_frontend_pro/src/contexts/SeraContext.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useState, ReactNode, createContext } from 'react';
import { BusinessPartner } from '@/models/business_partner';
import { AuthParty } from '@/models/auth_parties';
import { Proposals, RFQ } from '@/models/contracts';
import { Materials } from '@/models/materials';
import { PurhcaseOrder } from '@/models/purhcase_orders';
import { Invoice } from '@/models/invoices';
import { BusinessPartner } from '@/models/applications/business_partner';
import { AuthParty } from '@/models/applications/auth_parties';
import { Proposals, RFQ } from '@/models/applications/contracts';
import { Materials } from '@/models/applications/materials';
import { PurhcaseOrder } from '@/models/applications/purhcase_orders';
import { Invoice } from '@/models/applications/invoices';

type SeraContext = {
openAPDialog: any;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8e7859d

Please sign in to comment.