sms-tps 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend-project/.env +1 -1
- package/backend-project/Controller/ProductController.js +43 -0
- package/backend-project/Controller/StockTransactionController.js +89 -0
- package/backend-project/Controller/WarehouseController.js +20 -0
- package/backend-project/Models/ProductModel.js +17 -0
- package/backend-project/Models/StockTransactionModel.js +16 -0
- package/backend-project/Models/WarehouseModel.js +12 -0
- package/backend-project/Router/ProductRouter.js +7 -0
- package/backend-project/Router/StockTransactionRouter.js +10 -0
- package/backend-project/Router/WarehouseRouter.js +8 -0
- package/backend-project/package.json +2 -1
- package/backend-project/server.js +7 -2
- package/frontend-project/package-lock.json +65 -20
- package/frontend-project/package.json +2 -2
- package/frontend-project/src/App.jsx +36 -0
- package/frontend-project/src/Component/Product.jsx +388 -0
- package/frontend-project/src/Component/Report.jsx +162 -0
- package/frontend-project/src/Component/Transfer.jsx +442 -0
- package/frontend-project/src/Component/Warehouse.jsx +238 -0
- package/frontend-project/src/Layout/Pannel.jsx +40 -75
- package/frontend-project/src/index.css +1 -0
- package/frontend-project/src/main.jsx +12 -0
- package/frontend-project/vite.config.js +2 -1
- package/package.json +2 -2
- package/frontend-project/src/App.css +0 -0
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
FaBone,
|
|
7
7
|
FaBroadcastTower,
|
|
8
8
|
FaExchangeAlt,
|
|
9
|
+
FaFileAlt,
|
|
9
10
|
FaHome,
|
|
10
11
|
FaHouseUser,
|
|
11
12
|
FaLandmark,
|
|
@@ -15,6 +16,7 @@ import {
|
|
|
15
16
|
FaMapMarkerAlt,
|
|
16
17
|
FaMapPin,
|
|
17
18
|
FaMapSigns,
|
|
19
|
+
FaProductHunt,
|
|
18
20
|
FaRegHandPointRight,
|
|
19
21
|
FaUser,
|
|
20
22
|
FaUserAlt,
|
|
@@ -33,6 +35,9 @@ import {
|
|
|
33
35
|
MdPayment,
|
|
34
36
|
MdReceipt,
|
|
35
37
|
MdReport,
|
|
38
|
+
MdTransferWithinAStation,
|
|
39
|
+
MdTranslate,
|
|
40
|
+
MdWarehouse,
|
|
36
41
|
} from "react-icons/md";
|
|
37
42
|
import { userAuth } from "../Context/UserContext";
|
|
38
43
|
|
|
@@ -57,6 +62,29 @@ const Pannel = () => {
|
|
|
57
62
|
nav("/login");
|
|
58
63
|
logout();
|
|
59
64
|
};
|
|
65
|
+
|
|
66
|
+
const navItems = [
|
|
67
|
+
{
|
|
68
|
+
to: "/",
|
|
69
|
+
label: "Warehouse",
|
|
70
|
+
icon: <MdWarehouse className="text-3xl text-white p-0.5 rounded-md" />,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
to: "product",
|
|
74
|
+
label: "Product",
|
|
75
|
+
icon: <FaProductHunt className="text-3xl text-white p-0.5 rounded-md" />,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
to: "transfer",
|
|
79
|
+
label: "Transaction",
|
|
80
|
+
icon: <FaExchangeAlt className="text-3xl text-white p-0.5 rounded-md" />,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
to: "report",
|
|
84
|
+
label: "Report",
|
|
85
|
+
icon: <FaFileAlt className="text-3xl text-white p-0.5 rounded-md" />,
|
|
86
|
+
},
|
|
87
|
+
];
|
|
60
88
|
return (
|
|
61
89
|
<div>
|
|
62
90
|
<div className="flex gap-2 w-full min-h-screen">
|
|
@@ -68,86 +96,23 @@ const Pannel = () => {
|
|
|
68
96
|
<h1 className="text-lg text-blue-500 font-bold">Project</h1>
|
|
69
97
|
</div>
|
|
70
98
|
<ul className="flex flex-col gap-2 w-full">
|
|
71
|
-
|
|
72
99
|
{/* Start Link */}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{/* Link */}
|
|
86
|
-
|
|
87
|
-
<li>
|
|
88
|
-
<NavLink
|
|
89
|
-
to="student"
|
|
90
|
-
title="Owners"
|
|
91
|
-
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
92
|
-
>
|
|
93
|
-
<FaUserEdit className="text-3xl text-white p-0.5 rounded-md" />
|
|
94
|
-
<p>Project</p>
|
|
95
|
-
</NavLink>
|
|
96
|
-
</li>
|
|
97
|
-
|
|
98
|
-
{/* Link */}
|
|
99
|
-
|
|
100
|
-
<li>
|
|
101
|
-
<NavLink
|
|
102
|
-
to="land"
|
|
103
|
-
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
104
|
-
>
|
|
105
|
-
<FaMapSigns className="text-3xl text-white p-0.5 rounded-md" />
|
|
106
|
-
<p>Project</p>
|
|
107
|
-
</NavLink>
|
|
108
|
-
</li>
|
|
109
|
-
|
|
110
|
-
{/* Link */}
|
|
111
|
-
|
|
112
|
-
<li>
|
|
113
|
-
<NavLink
|
|
114
|
-
to="transfer"
|
|
115
|
-
title="Transfer"
|
|
116
|
-
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
117
|
-
>
|
|
118
|
-
<FaExchangeAlt className="text-3xl text-white p-0.5 rounded-md" />
|
|
119
|
-
<p>Project</p>
|
|
120
|
-
</NavLink>
|
|
121
|
-
</li>
|
|
122
|
-
|
|
123
|
-
{/* Link */}
|
|
124
|
-
|
|
125
|
-
<li>
|
|
126
|
-
<NavLink
|
|
127
|
-
to="payment"
|
|
128
|
-
title="Payment"
|
|
129
|
-
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
130
|
-
>
|
|
131
|
-
<MdPayment className="text-3xl text-white p-0.5 rounded-md" />
|
|
132
|
-
<p>Project</p>
|
|
133
|
-
</NavLink>
|
|
134
|
-
</li>
|
|
100
|
+
{navItems.map((n, i) => (
|
|
101
|
+
<li key={i}>
|
|
102
|
+
<NavLink
|
|
103
|
+
to={n.to}
|
|
104
|
+
title={n.label}
|
|
105
|
+
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
106
|
+
>
|
|
107
|
+
{n.icon}
|
|
108
|
+
<p>{n.label}</p>
|
|
109
|
+
</NavLink>
|
|
110
|
+
</li>
|
|
111
|
+
))}
|
|
135
112
|
|
|
136
113
|
{/* Link */}
|
|
137
114
|
|
|
138
|
-
<li>
|
|
139
|
-
<NavLink
|
|
140
|
-
to="report"
|
|
141
|
-
title="Report"
|
|
142
|
-
className="flex items-center gap-2 text-lg font-semibold text-white/70 hover:bg-white/50 hover:text-blue-500 rounded-md p-2"
|
|
143
|
-
>
|
|
144
|
-
<MdOutlineAnalytics className="text-3xl text-white p-0.5 rounded-md" />
|
|
145
|
-
<p>Project</p>
|
|
146
|
-
</NavLink>
|
|
147
|
-
</li>
|
|
148
|
-
|
|
149
115
|
{/* End Link */}
|
|
150
|
-
|
|
151
116
|
</ul>
|
|
152
117
|
</div>
|
|
153
118
|
<div className="flex-1 bg-blue-200 rounded-lg p-2">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'tailwindcss'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StrictMode } from 'react'
|
|
2
|
+
import { createRoot } from 'react-dom/client'
|
|
3
|
+
import './index.css'
|
|
4
|
+
import App from './App.jsx'
|
|
5
|
+
import AuthContext from './Context/UserContext.jsx'
|
|
6
|
+
|
|
7
|
+
createRoot(document.getElementById('root')).render(
|
|
8
|
+
<AuthContext>
|
|
9
|
+
<App />
|
|
10
|
+
</AuthContext>
|
|
11
|
+
|
|
12
|
+
)
|
package/package.json
CHANGED
|
File without changes
|