Skip to content

Commit 75d7f31

Browse files
Merge pull request #9 from MaximSamorukov/refactor_to_fsd
Refactor to fsd
2 parents b97a82c + ff599ed commit 75d7f31

File tree

310 files changed

+629
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+629
-616
lines changed

README.md

Lines changed: 6 additions & 2 deletions

src/app/(crm)/admin_register/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import s from './style.module.scss';
3-
import { RegisterForm } from '@/widgets/common/ui/RegisterForm';
3+
import { RegisterForm } from '@/widgets/RegisterForm';
44

55
export default function AdminRegister() {
66
return (
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
import { Filters } from '@/pagesComponents/Dashboard/Filters';
2-
import { Header } from '@/pagesComponents/Dashboard/Header';
3-
import { Table } from '@/pagesComponents/Dashboard/Table';
41
import React from 'react';
2+
import { CRMDashboard } from '@/pages_layer/Dashboard';
53

6-
export default function Dashboard() {
7-
return (
8-
<>
9-
<Header />
10-
<Filters />
11-
<Table />
12-
</>
13-
);
4+
export default function Dashboards() {
5+
return <CRMDashboard />;
146
}

src/app/(crm)/crm/settings/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Filters } from '@/pagesComponents/Dashboard/Filters';
2-
import { Header } from '@/pagesComponents/Dashboard/Header';
3-
import { Table } from '@/pagesComponents/Dashboard/Table';
4-
import { LoginButton } from '@/widgets/common/ui/LoginButton';
1+
import { Filters } from '@/widgets/CRMDashboard/Filters';
2+
import { Header } from '@/widgets/CRMDashboard/Header';
3+
import { Table } from '@/widgets/CRMDashboard/Table';
4+
import { LoginButton } from '@/shared/ui/LoginButton';
55
import Link from 'next/link';
66
import React from 'react';
77

src/app/(crm)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import type { Metadata } from 'next';
88
import { Roboto } from 'next/font/google';
99
import '@/app/(website)/globals.css';
10-
import { Provider } from '@/shared/common/Provider';
10+
import { Provider } from '@/shared/Provider';
1111

1212
const roboto = Roboto({
1313
variable: '--font-roboto',

src/app/(website)/3d_printing/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Printing3D } from '@/pagesComponents/3dPrinting';
1+
import { Printing3D } from '@/pages_layer/3dPrinting';
22
// export const runtime = 'nodejs';
33

44
export default function Printing3DPage() {

src/app/(website)/contacts/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
import { Contacts } from '@/pagesComponents/Contacts';
3-
// export const runtime = 'nodejs';
2+
import { Contacts } from '@/pages_layer/Contacts';
43

54
export default function Printing3D() {
65
return (

src/app/(website)/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import type { Metadata } from 'next';
77
import { Roboto } from 'next/font/google';
88
import '@/app/(website)/globals.css';
9-
import Header from '@/widgets/common/ui/Header';
10-
import ActionPanel from '@/widgets/common/ui/ActionPanel';
11-
import Footer from '@/widgets/common/ui/Footer';
12-
import { Provider } from '@/shared/common/Provider';
9+
import { Header } from '@/widgets/WebsiteLayoutWidgets';
10+
import { ActionPanel } from '@/widgets/WebsiteLayoutWidgets';
11+
import { Footer } from '@/widgets/WebsiteLayoutWidgets';
12+
import { Provider } from '@/shared/Provider';
1313
import { Suspense } from 'react';
1414
import Head from 'next/head';
1515

src/app/(website)/logistic/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { LogisticAndPayment } from '@/pagesComponents/LogisticAndPayment';
2+
import { LogisticAndPayment } from '@/pages_layer/LogisticAndPayment';
33
// export const runtime = 'nodejs';
44

55
export default function Page() {

src/app/(website)/plastic/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import PlasticTypes from '@/pagesComponents/PlasticTypes';
2+
import PlasticTypes from '@/pages_layer/PlasticTypes';
33
// export const runtime = 'nodejs';
44

55
export default function Plastics() {

0 commit comments

Comments
 (0)