-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
104 lines (90 loc) · 4.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>System Booster</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;1,200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap" rel="stylesheet">
<line rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-900 text-white">
<div class="container mx-auto p-6">
<h1 class="text-4xl text-center mb-6 ">System Booster Dashboard</h1>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Memory Usage Chart -->
<div class="bg-gray-800 p-6 rounded-lg">
<h2 class="text-xl mb-4">Memory Usage</h2>
<canvas id="memoryChart"></canvas>
<hr class="my-4">
<div>
<h3 class="text-lg mb-4">Memory Details</h3>
<p id="memoryDetails">
Used (%): GB | Total: GB
</p>
</div>
</div>
<!-- CPU Usage Chart -->
<div class="bg-gray-800 p-6 rounded-lg">
<h2 class="text-xl mb-4">CPU Usage</h2>
<canvas id="cpuChart"></canvas>
<hr class="my-4">
<div>
<h3 class="text-lg mb-4">CPU Details</h3>
<p id="cpuDetails">
Used (%):
</p>
</div>
</div>
<div class="bg-gray-800 p-6 rounded-lg">
<h2 class="text-xl mb-4">Storage Usage</h2>
<canvas id="storageChart"
></canvas>
<hr class="my-4">
<div>
<h3 class="text-lg mb-4">Storage Details</h3>
<p id="storageDetails">
Total: GB | Used: GB | Used (%): GB
</p>
</div>
</div>
</div>
<div class="bg-gray-800 p-6 rounded-lg mt-6">
<h2 class="text-xl mb-4">About System</h2>
<hr class="my-4">
<div>
<h3 class="text-lg mb-4">System Details <hr class="my-4 w-1/2"></h3>
<p id="systemDetails">
</p>
</div>
</div>
<!-- Options to select program to close that are consuming more memory like above 200 mb, 500 mb, 1 gb, 2 gb, 5 gb, 10 gb -->
<div class="bg-gray-800 p-6 rounded-lg mt-6">
<h2 class="text-xl mb-2">Memory Limit</h2>
<hr class="my-4">
<select id="memoryLimit" class="w-full bg-gray-900 text-white p-2 rounded">
<option value="200">Close Programs consuming more than 200 MB</option>
<option value="500">Close Programs consuming more than 500 MB</option>
<option value="1000">Close Programs consuming more than 1 GB</option>
<option value="2000">Close Programs consuming more than 2 GB</option>
<option value="5000">Close Programs consuming more than 5 GB</option>
<option value="10000">Close Programs consuming more than 10 GB</option>
</select>
</div>
<!-- <div class="flex justify-around gap-4"> -->
<div class="mt-8 w-full">
<button id="boostButton" class="bg-green-500 px-4 py-2 rounded w-full font-sans text-lg font-bold tracking-wide">
Boost</button>
</div>
<!-- <div class="mt-8 w-full">
<button id="optimizeBtn" class="bg-green-500 px-4 py-2 rounded">Optimize Now</button>
</div> -->
<!-- </div> -->
</div>
</body>
<script src="renderer.js"></script>
</html>