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.
@@ -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
- <li>
75
- <NavLink
76
- to="/"
77
- title="Dashboard"
78
- 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"
79
- >
80
- <MdDashboard className="text-3xl text-white p-0.5 rounded-md" />
81
- <p>Project</p>
82
- </NavLink>
83
- </li>
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
+ )
@@ -1,7 +1,8 @@
1
1
  import { defineConfig } from 'vite'
2
2
  import react from '@vitejs/plugin-react'
3
+ import tailwindcss from '@tailwindcss/vite'
3
4
 
4
5
  // https://vite.dev/config/
5
6
  export default defineConfig({
6
- plugins: [react()],
7
+ plugins: [react(), tailwindcss()],
7
8
  })
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "sms-tps",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
- "license": "MIT",
5
+ "license": "ISC",
6
6
  "author": "",
7
7
  "type": "module",
8
8
  "main": "index.js",
File without changes