Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +606 -19
- prompts.txt +0 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: checkingui
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: pink
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,606 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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AP Fiori Test UI</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.sap-fiori-primary {
|
11 |
+
background-color: #0a6ed1;
|
12 |
+
}
|
13 |
+
.sap-fiori-primary-text {
|
14 |
+
color: #0a6ed1;
|
15 |
+
}
|
16 |
+
.sap-fiori-secondary {
|
17 |
+
background-color: #f7f7f7;
|
18 |
+
}
|
19 |
+
.sap-fiori-shadow {
|
20 |
+
box-shadow: 0 0 0.125rem 0 rgba(0, 0, 0, 0.1), 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
|
21 |
+
}
|
22 |
+
.sap-fiori-border {
|
23 |
+
border: 1px solid #d9d9d9;
|
24 |
+
}
|
25 |
+
.sap-fiori-hover:hover {
|
26 |
+
background-color: #ebf2fa;
|
27 |
+
}
|
28 |
+
</style>
|
29 |
+
</head>
|
30 |
+
<body class="font-sans bg-gray-50">
|
31 |
+
<!-- Login Screen (Initial View) -->
|
32 |
+
<div id="login-screen" class="flex items-center justify-center min-h-screen">
|
33 |
+
<div class="w-full max-w-md p-8 bg-white rounded sap-fiori-shadow">
|
34 |
+
<div class="text-center mb-8">
|
35 |
+
<i class="fas fa-cloud text-5xl sap-fiori-primary-text mb-4"></i>
|
36 |
+
<h1 class="text-2xl font-semibold text-gray-800">Welcome to SAP Test UI</h1>
|
37 |
+
<p class="text-gray-600 mt-2">Please sign in to continue</p>
|
38 |
+
</div>
|
39 |
+
|
40 |
+
<form id="login-form" class="space-y-4">
|
41 |
+
<div>
|
42 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
43 |
+
<input type="email" id="email" name="email" value="[email protected]"
|
44 |
+
class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
45 |
+
</div>
|
46 |
+
|
47 |
+
<div>
|
48 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
49 |
+
<input type="password" id="password" name="password" value="1244!@"
|
50 |
+
class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<div class="flex items-center justify-between">
|
54 |
+
<div class="flex items-center">
|
55 |
+
<input id="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-200 border-gray-300 rounded">
|
56 |
+
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
|
57 |
+
</div>
|
58 |
+
|
59 |
+
<a href="#" class="text-sm sap-fiori-primary-text hover:underline" onclick="showForgotPassword()">Forgot password?</a>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<button type="button" onclick="login()"
|
63 |
+
class="w-full sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
|
64 |
+
Sign In
|
65 |
+
</button>
|
66 |
+
</form>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<!-- Forgot Password Screen (Hidden by default) -->
|
71 |
+
<div id="forgot-password-screen" class="hidden items-center justify-center min-h-screen">
|
72 |
+
<div class="w-full max-w-md p-8 bg-white rounded sap-fiori-shadow">
|
73 |
+
<div class="text-center mb-8">
|
74 |
+
<i class="fas fa-key text-4xl sap-fiori-primary-text mb-4"></i>
|
75 |
+
<h1 class="text-2xl font-semibold text-gray-800">Reset Password</h1>
|
76 |
+
<p class="text-gray-600 mt-2">Enter your email to receive reset instructions</p>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<form class="space-y-4">
|
80 |
+
<div>
|
81 |
+
<label for="reset-email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
82 |
+
<input type="email" id="reset-email" name="email" value="[email protected]"
|
83 |
+
class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
84 |
+
</div>
|
85 |
+
|
86 |
+
<div class="flex space-x-3">
|
87 |
+
<button type="button" onclick="hideForgotPassword()"
|
88 |
+
class="flex-1 sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
|
89 |
+
Cancel
|
90 |
+
</button>
|
91 |
+
<button type="button" onclick="sendResetLink()"
|
92 |
+
class="flex-1 sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
|
93 |
+
Send Link
|
94 |
+
</button>
|
95 |
+
</div>
|
96 |
+
</form>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<!-- Main App Screen (Hidden by default) -->
|
101 |
+
<div id="app-screen" class="hidden min-h-screen">
|
102 |
+
<!-- Header -->
|
103 |
+
<header class="sap-fiori-primary text-white">
|
104 |
+
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
|
105 |
+
<div class="flex items-center space-x-4">
|
106 |
+
<i class="fas fa-cloud text-2xl"></i>
|
107 |
+
<span class="text-xl font-semibold">SAP Test UI</span>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<div class="flex items-center space-x-4">
|
111 |
+
<button class="p-2 rounded-full hover:bg-blue-700" onclick="showNotifications()">
|
112 |
+
<i class="fas fa-bell"></i>
|
113 |
+
</button>
|
114 |
+
<div class="flex items-center space-x-2 cursor-pointer" onclick="showUserMenu()">
|
115 |
+
<div class="w-8 h-8 rounded-full bg-blue-200 flex items-center justify-center">
|
116 |
+
<i class="fas fa-user text-blue-700"></i>
|
117 |
+
</div>
|
118 |
+
<span>User</span>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</header>
|
123 |
+
|
124 |
+
<!-- Sidebar and Main Content -->
|
125 |
+
<div class="flex">
|
126 |
+
<!-- Sidebar -->
|
127 |
+
<aside class="w-64 sap-fiori-secondary min-h-screen border-r sap-fiori-border">
|
128 |
+
<nav class="p-4">
|
129 |
+
<ul class="space-y-1">
|
130 |
+
<li>
|
131 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover sap-fiori-primary-text font-medium" onclick="showDashboard()">
|
132 |
+
<i class="fas fa-tachometer-alt mr-3"></i>
|
133 |
+
<span>Dashboard</span>
|
134 |
+
</a>
|
135 |
+
</li>
|
136 |
+
<li>
|
137 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showOrders()">
|
138 |
+
<i class="fas fa-shopping-cart mr-3"></i>
|
139 |
+
<span>Orders</span>
|
140 |
+
</a>
|
141 |
+
</li>
|
142 |
+
<li>
|
143 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showProducts()">
|
144 |
+
<i class="fas fa-boxes mr-3"></i>
|
145 |
+
<span>Products</span>
|
146 |
+
</a>
|
147 |
+
</li>
|
148 |
+
<li>
|
149 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showCustomers()">
|
150 |
+
<i class="fas fa-users mr-3"></i>
|
151 |
+
<span>Customers</span>
|
152 |
+
</a>
|
153 |
+
</li>
|
154 |
+
<li>
|
155 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showReports()">
|
156 |
+
<i class="fas fa-chart-bar mr-3"></i>
|
157 |
+
<span>Reports</span>
|
158 |
+
</a>
|
159 |
+
</li>
|
160 |
+
<li>
|
161 |
+
<a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showSettings()">
|
162 |
+
<i class="fas fa-cog mr-3"></i>
|
163 |
+
<span>Settings</span>
|
164 |
+
</a>
|
165 |
+
</li>
|
166 |
+
</ul>
|
167 |
+
</nav>
|
168 |
+
</aside>
|
169 |
+
|
170 |
+
<!-- Main Content Area -->
|
171 |
+
<main class="flex-1 p-6">
|
172 |
+
<div id="dashboard-content">
|
173 |
+
<div class="flex justify-between items-center mb-6">
|
174 |
+
<h2 class="text-2xl font-semibold text-gray-800">Dashboard</h2>
|
175 |
+
<button class="sap-fiori-primary text-white px-4 py-2 rounded hover:bg-blue-700" onclick="showCreateOrderModal()">
|
176 |
+
<i class="fas fa-plus mr-2"></i> Create Order
|
177 |
+
</button>
|
178 |
+
</div>
|
179 |
+
|
180 |
+
<!-- Cards -->
|
181 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
182 |
+
<div class="bg-white p-6 rounded sap-fiori-shadow">
|
183 |
+
<div class="flex items-center justify-between">
|
184 |
+
<div>
|
185 |
+
<p class="text-gray-500">Total Orders</p>
|
186 |
+
<h3 class="text-2xl font-semibold">1,234</h3>
|
187 |
+
</div>
|
188 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
189 |
+
<i class="fas fa-shopping-cart"></i>
|
190 |
+
</div>
|
191 |
+
</div>
|
192 |
+
</div>
|
193 |
+
|
194 |
+
<div class="bg-white p-6 rounded sap-fiori-shadow">
|
195 |
+
<div class="flex items-center justify-between">
|
196 |
+
<div>
|
197 |
+
<p class="text-gray-500">Revenue</p>
|
198 |
+
<h3 class="text-2xl font-semibold">$45,678</h3>
|
199 |
+
</div>
|
200 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
201 |
+
<i class="fas fa-dollar-sign"></i>
|
202 |
+
</div>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
<div class="bg-white p-6 rounded sap-fiori-shadow">
|
207 |
+
<div class="flex items-center justify-between">
|
208 |
+
<div>
|
209 |
+
<p class="text-gray-500">Customers</p>
|
210 |
+
<h3 class="text-2xl font-semibold">567</h3>
|
211 |
+
</div>
|
212 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
213 |
+
<i class="fas fa-users"></i>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
|
219 |
+
<!-- Recent Orders Table -->
|
220 |
+
<div class="bg-white rounded sap-fiori-shadow overflow-hidden">
|
221 |
+
<div class="p-4 border-b sap-fiori-border">
|
222 |
+
<h3 class="font-medium">Recent Orders</h3>
|
223 |
+
</div>
|
224 |
+
<div class="overflow-x-auto">
|
225 |
+
<table class="min-w-full divide-y divide-gray-200">
|
226 |
+
<thead class="bg-gray-50">
|
227 |
+
<tr>
|
228 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Order ID</th>
|
229 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
|
230 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
231 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
232 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
|
233 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
234 |
+
</tr>
|
235 |
+
</thead>
|
236 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
237 |
+
<tr>
|
238 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1001</td>
|
239 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Smith</td>
|
240 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
|
241 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
242 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
243 |
+
</td>
|
244 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,234.00</td>
|
245 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
246 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1001')">View</button>
|
247 |
+
<button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1001')">Delete</button>
|
248 |
+
</td>
|
249 |
+
</tr>
|
250 |
+
<tr>
|
251 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1002</td>
|
252 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td>
|
253 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td>
|
254 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
255 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Processing</span>
|
256 |
+
</td>
|
257 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$567.89</td>
|
258 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
259 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1002')">View</button>
|
260 |
+
<button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1002')">Delete</button>
|
261 |
+
</td>
|
262 |
+
</tr>
|
263 |
+
<tr>
|
264 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1003</td>
|
265 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Michael Brown</td>
|
266 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-13</td>
|
267 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
268 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Shipped</span>
|
269 |
+
</td>
|
270 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$890.12</td>
|
271 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
272 |
+
<button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1003')">View</button>
|
273 |
+
<button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1003')">Delete</button>
|
274 |
+
</td>
|
275 |
+
</tr>
|
276 |
+
</tbody>
|
277 |
+
</table>
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
</div>
|
281 |
+
|
282 |
+
<!-- Other Content Areas (Hidden by default) -->
|
283 |
+
<div id="orders-content" class="hidden">
|
284 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Orders</h2>
|
285 |
+
<p class="text-gray-600">This is the orders page content.</p>
|
286 |
+
</div>
|
287 |
+
|
288 |
+
<div id="products-content" class="hidden">
|
289 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Products</h2>
|
290 |
+
<p class="text-gray-600">This is the products page content.</p>
|
291 |
+
</div>
|
292 |
+
|
293 |
+
<div id="customers-content" class="hidden">
|
294 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Customers</h2>
|
295 |
+
<p class="text-gray-600">This is the customers page content.</p>
|
296 |
+
</div>
|
297 |
+
|
298 |
+
<div id="reports-content" class="hidden">
|
299 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Reports</h2>
|
300 |
+
<p class="text-gray-600">This is the reports page content.</p>
|
301 |
+
</div>
|
302 |
+
|
303 |
+
<div id="settings-content" class="hidden">
|
304 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Settings</h2>
|
305 |
+
<p class="text-gray-600">This is the settings page content.</p>
|
306 |
+
</div>
|
307 |
+
</main>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
|
311 |
+
<!-- Create Order Modal (Hidden by default) -->
|
312 |
+
<div id="create-order-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
313 |
+
<div class="bg-white rounded sap-fiori-shadow w-full max-w-md">
|
314 |
+
<div class="p-4 border-b sap-fiori-border flex justify-between items-center">
|
315 |
+
<h3 class="text-lg font-medium">Create New Order</h3>
|
316 |
+
<button onclick="hideCreateOrderModal()" class="text-gray-500 hover:text-gray-700">
|
317 |
+
<i class="fas fa-times"></i>
|
318 |
+
</button>
|
319 |
+
</div>
|
320 |
+
|
321 |
+
<div class="p-4">
|
322 |
+
<form class="space-y-4">
|
323 |
+
<div>
|
324 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Customer</label>
|
325 |
+
<select class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
326 |
+
<option>Select customer</option>
|
327 |
+
<option>John Smith</option>
|
328 |
+
<option>Sarah Johnson</option>
|
329 |
+
<option>Michael Brown</option>
|
330 |
+
</select>
|
331 |
+
</div>
|
332 |
+
|
333 |
+
<div>
|
334 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Product</label>
|
335 |
+
<select class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
336 |
+
<option>Select product</option>
|
337 |
+
<option>Product A</option>
|
338 |
+
<option>Product B</option>
|
339 |
+
<option>Product C</option>
|
340 |
+
</select>
|
341 |
+
</div>
|
342 |
+
|
343 |
+
<div>
|
344 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Quantity</label>
|
345 |
+
<input type="number" min="1" value="1"
|
346 |
+
class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
|
347 |
+
</div>
|
348 |
+
|
349 |
+
<div class="flex justify-end space-x-3 pt-4">
|
350 |
+
<button type="button" onclick="hideCreateOrderModal()"
|
351 |
+
class="sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
|
352 |
+
Cancel
|
353 |
+
</button>
|
354 |
+
<button type="button" onclick="submitOrder()"
|
355 |
+
class="sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
|
356 |
+
Create Order
|
357 |
+
</button>
|
358 |
+
</div>
|
359 |
+
</form>
|
360 |
+
</div>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
|
364 |
+
<!-- Notifications Panel (Hidden by default) -->
|
365 |
+
<div id="notifications-panel" class="hidden fixed right-4 top-16 w-80 bg-white rounded sap-fiori-shadow z-50">
|
366 |
+
<div class="p-3 border-b sap-fiori-border flex justify-between items-center">
|
367 |
+
<h3 class="font-medium">Notifications</h3>
|
368 |
+
<button onclick="hideNotifications()" class="text-gray-500 hover:text-gray-700">
|
369 |
+
<i class="fas fa-times"></i>
|
370 |
+
</button>
|
371 |
+
</div>
|
372 |
+
|
373 |
+
<div class="divide-y divide-gray-200">
|
374 |
+
<div class="p-3 hover:bg-gray-50 cursor-pointer">
|
375 |
+
<div class="flex items-start">
|
376 |
+
<div class="flex-shrink-0 pt-1">
|
377 |
+
<div class="h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center">
|
378 |
+
<i class="fas fa-info-circle text-blue-600"></i>
|
379 |
+
</div>
|
380 |
+
</div>
|
381 |
+
<div class="ml-3">
|
382 |
+
<p class="text-sm font-medium text-gray-900">New order received</p>
|
383 |
+
<p class="text-sm text-gray-500">Order #ORD-1004 from John Smith</p>
|
384 |
+
<p class="text-xs text-gray-400 mt-1">2 minutes ago</p>
|
385 |
+
</div>
|
386 |
+
</div>
|
387 |
+
</div>
|
388 |
+
|
389 |
+
<div class="p-3 hover:bg-gray-50 cursor-pointer">
|
390 |
+
<div class="flex items-start">
|
391 |
+
<div class="flex-shrink-0 pt-1">
|
392 |
+
<div class="h-8 w-8 rounded-full bg-green-100 flex items-center justify-center">
|
393 |
+
<i class="fas fa-check-circle text-green-600"></i>
|
394 |
+
</div>
|
395 |
+
</div>
|
396 |
+
<div class="ml-3">
|
397 |
+
<p class="text-sm font-medium text-gray-900">Order shipped</p>
|
398 |
+
<p class="text-sm text-gray-500">Order #ORD-1002 has been shipped</p>
|
399 |
+
<p class="text-xs text-gray-400 mt-1">1 hour ago</p>
|
400 |
+
</div>
|
401 |
+
</div>
|
402 |
+
</div>
|
403 |
+
</div>
|
404 |
+
</div>
|
405 |
+
|
406 |
+
<!-- User Menu (Hidden by default) -->
|
407 |
+
<div id="user-menu" class="hidden fixed right-4 top-16 w-48 bg-white rounded sap-fiori-shadow z-50">
|
408 |
+
<div class="p-2">
|
409 |
+
<div class="px-4 py-2 text-sm text-gray-700">Signed in as <span class="font-medium">[email protected]</span></div>
|
410 |
+
<div class="border-t sap-fiori-border my-1"></div>
|
411 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Your Profile</a>
|
412 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Settings</a>
|
413 |
+
<div class="border-t sap-fiori-border my-1"></div>
|
414 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded" onclick="logout()">Sign out</a>
|
415 |
+
</div>
|
416 |
+
</div>
|
417 |
+
|
418 |
+
<!-- Confirmation Dialog (Hidden by default) -->
|
419 |
+
<div id="confirmation-dialog" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
420 |
+
<div class="bg-white rounded sap-fiori-shadow w-full max-w-md">
|
421 |
+
<div class="p-4 border-b sap-fiori-border">
|
422 |
+
<h3 class="text-lg font-medium">Confirm Action</h3>
|
423 |
+
</div>
|
424 |
+
|
425 |
+
<div class="p-4">
|
426 |
+
<p id="confirmation-message" class="text-gray-700 mb-4">Are you sure you want to perform this action?</p>
|
427 |
+
|
428 |
+
<div class="flex justify-end space-x-3">
|
429 |
+
<button type="button" onclick="hideConfirmationDialog()"
|
430 |
+
class="sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
|
431 |
+
Cancel
|
432 |
+
</button>
|
433 |
+
<button type="button" id="confirm-action-button"
|
434 |
+
class="sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
|
435 |
+
Confirm
|
436 |
+
</button>
|
437 |
+
</div>
|
438 |
+
</div>
|
439 |
+
</div>
|
440 |
+
</div>
|
441 |
+
|
442 |
+
<script>
|
443 |
+
// Login functionality
|
444 |
+
function login() {
|
445 |
+
const email = document.getElementById('email').value;
|
446 |
+
const password = document.getElementById('password').value;
|
447 |
+
|
448 |
+
if (email === '[email protected]' && password === '1244!@') {
|
449 |
+
document.getElementById('login-screen').classList.add('hidden');
|
450 |
+
document.getElementById('app-screen').classList.remove('hidden');
|
451 |
+
} else {
|
452 |
+
alert('Invalid credentials. Use email: [email protected] and password: 1244!@');
|
453 |
+
}
|
454 |
+
}
|
455 |
+
|
456 |
+
// Forgot password flow
|
457 |
+
function showForgotPassword() {
|
458 |
+
document.getElementById('login-screen').classList.add('hidden');
|
459 |
+
document.getElementById('forgot-password-screen').classList.remove('hidden');
|
460 |
+
}
|
461 |
+
|
462 |
+
function hideForgotPassword() {
|
463 |
+
document.getElementById('forgot-password-screen').classList.add('hidden');
|
464 |
+
document.getElementById('login-screen').classList.remove('hidden');
|
465 |
+
}
|
466 |
+
|
467 |
+
function sendResetLink() {
|
468 |
+
alert('Password reset link sent to [email protected]');
|
469 |
+
hideForgotPassword();
|
470 |
+
}
|
471 |
+
|
472 |
+
// Navigation functions
|
473 |
+
function showDashboard() {
|
474 |
+
hideAllContent();
|
475 |
+
document.getElementById('dashboard-content').classList.remove('hidden');
|
476 |
+
}
|
477 |
+
|
478 |
+
function showOrders() {
|
479 |
+
hideAllContent();
|
480 |
+
document.getElementById('orders-content').classList.remove('hidden');
|
481 |
+
}
|
482 |
+
|
483 |
+
function showProducts() {
|
484 |
+
hideAllContent();
|
485 |
+
document.getElementById('products-content').classList.remove('hidden');
|
486 |
+
}
|
487 |
+
|
488 |
+
function showCustomers() {
|
489 |
+
hideAllContent();
|
490 |
+
document.getElementById('customers-content').classList.remove('hidden');
|
491 |
+
}
|
492 |
+
|
493 |
+
function showReports() {
|
494 |
+
hideAllContent();
|
495 |
+
document.getElementById('reports-content').classList.remove('hidden');
|
496 |
+
}
|
497 |
+
|
498 |
+
function showSettings() {
|
499 |
+
hideAllContent();
|
500 |
+
document.getElementById('settings-content').classList.remove('hidden');
|
501 |
+
}
|
502 |
+
|
503 |
+
function hideAllContent() {
|
504 |
+
const contents = ['dashboard-content', 'orders-content', 'products-content', 'customers-content', 'reports-content', 'settings-content'];
|
505 |
+
contents.forEach(id => {
|
506 |
+
document.getElementById(id).classList.add('hidden');
|
507 |
+
});
|
508 |
+
}
|
509 |
+
|
510 |
+
// Order functions
|
511 |
+
function showCreateOrderModal() {
|
512 |
+
document.getElementById('create-order-modal').classList.remove('hidden');
|
513 |
+
}
|
514 |
+
|
515 |
+
function hideCreateOrderModal() {
|
516 |
+
document.getElementById('create-order-modal').classList.add('hidden');
|
517 |
+
}
|
518 |
+
|
519 |
+
function submitOrder() {
|
520 |
+
hideCreateOrderModal();
|
521 |
+
alert('Order created successfully!');
|
522 |
+
}
|
523 |
+
|
524 |
+
function viewOrder(orderId) {
|
525 |
+
alert(`Viewing order ${orderId}`);
|
526 |
+
}
|
527 |
+
|
528 |
+
function deleteOrder(orderId) {
|
529 |
+
showConfirmationDialog(
|
530 |
+
`Are you sure you want to delete order ${orderId}?`,
|
531 |
+
() => alert(`Order ${orderId} deleted`)
|
532 |
+
);
|
533 |
+
}
|
534 |
+
|
535 |
+
// Notification functions
|
536 |
+
function showNotifications() {
|
537 |
+
document.getElementById('notifications-panel').classList.remove('hidden');
|
538 |
+
document.getElementById('user-menu').classList.add('hidden');
|
539 |
+
}
|
540 |
+
|
541 |
+
function hideNotifications() {
|
542 |
+
document.getElementById('notifications-panel').classList.add('hidden');
|
543 |
+
}
|
544 |
+
|
545 |
+
// User menu functions
|
546 |
+
function showUserMenu() {
|
547 |
+
document.getElementById('user-menu').classList.remove('hidden');
|
548 |
+
document.getElementById('notifications-panel').classList.add('hidden');
|
549 |
+
}
|
550 |
+
|
551 |
+
function hideUserMenu() {
|
552 |
+
document.getElementById('user-menu').classList.add('hidden');
|
553 |
+
}
|
554 |
+
|
555 |
+
// Logout function
|
556 |
+
function logout() {
|
557 |
+
document.getElementById('app-screen').classList.add('hidden');
|
558 |
+
document.getElementById('login-screen').classList.remove('hidden');
|
559 |
+
document.getElementById('user-menu').classList.add('hidden');
|
560 |
+
}
|
561 |
+
|
562 |
+
// Confirmation dialog functions
|
563 |
+
function showConfirmationDialog(message, confirmCallback) {
|
564 |
+
document.getElementById('confirmation-message').textContent = message;
|
565 |
+
const confirmButton = document.getElementById('confirm-action-button');
|
566 |
+
|
567 |
+
// Remove previous event listeners
|
568 |
+
const newConfirmButton = confirmButton.cloneNode(true);
|
569 |
+
confirmButton.parentNode.replaceChild(newConfirmButton, confirmButton);
|
570 |
+
|
571 |
+
// Add new event listener
|
572 |
+
newConfirmButton.addEventListener('click', function() {
|
573 |
+
hideConfirmationDialog();
|
574 |
+
confirmCallback();
|
575 |
+
});
|
576 |
+
|
577 |
+
document.getElementById('confirmation-dialog').classList.remove('hidden');
|
578 |
+
}
|
579 |
+
|
580 |
+
function hideConfirmationDialog() {
|
581 |
+
document.getElementById('confirmation-dialog').classList.add('hidden');
|
582 |
+
}
|
583 |
+
|
584 |
+
// Close menus when clicking outside
|
585 |
+
document.addEventListener('click', function(event) {
|
586 |
+
const notificationsPanel = document.getElementById('notifications-panel');
|
587 |
+
const userMenu = document.getElementById('user-menu');
|
588 |
+
|
589 |
+
if (notificationsPanel && !notificationsPanel.contains(event.target) &&
|
590 |
+
!event.target.closest('button[onclick="showNotifications()"]')) {
|
591 |
+
notificationsPanel.classList.add('hidden');
|
592 |
+
}
|
593 |
+
|
594 |
+
if (userMenu && !userMenu.contains(event.target) &&
|
595 |
+
!event.target.closest('div[onclick="showUserMenu()"]')) {
|
596 |
+
userMenu.classList.add('hidden');
|
597 |
+
}
|
598 |
+
});
|
599 |
+
|
600 |
+
// Initialize with dashboard shown
|
601 |
+
document.addEventListener('DOMContentLoaded', function() {
|
602 |
+
showDashboard();
|
603 |
+
});
|
604 |
+
</script>
|
605 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=anonymousatom/checkingui" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
606 |
+
</html>
|
prompts.txt
ADDED
File without changes
|