Skip to content

Commit b3dc12c

Browse files
App Version 1.6 Code 14
1 parent f5db823 commit b3dc12c

9 files changed

+362
-148
lines changed

commands.js

-5
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,6 @@ ipcMain.on('apply-power-optimizations', (event, selectedIds) => {
289289
executeCommands(commands, event, 'power-optimizations-response');
290290
});
291291

292-
ipcMain.on('execute-custom-command', (event, customCmd) => {
293-
log(`Received custom command: ${customCmd}`);
294-
executeCommands([wrapCommand(customCmd)], event, 'custom-command-response');
295-
});
296-
297292
ipcMain.handle('check-fixes-state', async (event, category, optionId) => {
298293
let option;
299294
if (category === 'systemTweaks') {

index.html

+57-31
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@
4040

4141
<div class="main-content">
4242
<div class="tab active" id="appsTab">
43-
<div class="section" id="removeAppsSection">
43+
<div class="sub-tabs">
44+
<button class="sub-tab active" data-subtab="removeAppsSection">Remove Windows Apps</button>
45+
<button class="sub-tab" data-subtab="uselessBloatwareSection">Useless Bloatware</button>
46+
</div>
47+
48+
<div class="sub-tab-content active" id="removeAppsSection">
4449
<div class="section-header">
4550
<h3>Remove Windows Apps</h3>
4651
<div class="btn-group">
4752
<button class="select-all">Select All</button>
4853
<button class="deselect-all">Deselect All</button>
4954
</div>
5055
</div>
51-
<div class="section-content active">
56+
<div class="section-content">
5257
<h4 class="sub-section-heading" style="margin-top: 8px !important;">Core Windows Apps</h4>
5358
<div class="checkbox-group">
5459
<label><input type="checkbox" value="apps_calc" checked /> Calculator</label>
@@ -79,7 +84,7 @@ <h4 class="sub-section-heading">Other Apps</h4>
7984
</div>
8085
</div>
8186

82-
<div class="section" id="uselessBloatwareSection" style="margin-bottom: 0 !important">
87+
<div class="sub-tab-content" id="uselessBloatwareSection">
8388
<div class="section-header">
8489
<h3>Useless Bloatware</h3>
8590
<div class="btn-group">
@@ -145,15 +150,23 @@ <h4 class="sub-section-heading">Misc Bloatware</h4>
145150
</div>
146151

147152
<div class="tab" id="optimizationsTab">
148-
<div class="section" id="privacySection">
153+
<div class="sub-tabs">
154+
<button class="sub-tab active" data-subtab="privacySection">Privacy</button>
155+
<button class="sub-tab" data-subtab="gamingSection">Gaming</button>
156+
<button class="sub-tab" data-subtab="updatesSection">Updates</button>
157+
<button class="sub-tab" data-subtab="servicesSection">Services</button>
158+
<button class="sub-tab" data-subtab="maintenanceSection">Maintenance</button>
159+
</div>
160+
161+
<div class="sub-tab-content active" id="privacySection">
149162
<div class="section-header">
150163
<h3>Privacy Optimizations</h3>
151164
<div class="btn-group">
152165
<button class="select-all">Select All</button>
153166
<button class="deselect-all">Deselect All</button>
154167
</div>
155168
</div>
156-
<div class="section-content active">
169+
<div class="section-content">
157170
<h4 class="sub-section-heading" style="margin-top: 8px !important;">Activity &amp; Telemetry</h4>
158171
<div class="checkbox-group">
159172
<label><input type="checkbox" value="privacy1" checked /> Disable Activity History</label>
@@ -207,7 +220,7 @@ <h4 class="sub-section-heading">Remote &amp; Misc</h4>
207220
</div>
208221
</div>
209222

210-
<div class="section" id="gamingSection">
223+
<div class="sub-tab-content" id="gamingSection">
211224
<div class="section-header">
212225
<h3>Gaming Optimizations</h3>
213226
<div class="btn-group">
@@ -250,7 +263,7 @@ <h4 class="sub-section-heading">Networking &amp; Performance</h4>
250263
</div>
251264
</div>
252265

253-
<div class="section" id="updatesSection">
266+
<div class="sub-tab-content" id="updatesSection">
254267
<div class="section-header">
255268
<h3>Update Optimizations</h3>
256269
<div class="btn-group">
@@ -274,7 +287,7 @@ <h4 class="sub-section-heading" style="margin-top: 8px !important;">Windows Upda
274287
</div>
275288
</div>
276289

277-
<div class="section" id="servicesSection">
290+
<div class="sub-tab-content" id="servicesSection">
278291
<div class="section-header">
279292
<h3>Windows Services</h3>
280293
<div class="btn-group">
@@ -307,7 +320,7 @@ <h4 class="sub-section-heading" style="margin-top: 8px !important;">Disable Unus
307320
</div>
308321
</div>
309322

310-
<div class="section" id="maintenanceSection" style="margin-bottom: 0 !important">
323+
<div class="sub-tab-content" id="maintenanceSection">
311324
<div class="section-header">
312325
<h3>Cleanup Optimizations</h3>
313326
<div class="btn-group">
@@ -334,15 +347,23 @@ <h4 class="sub-section-heading" style="margin-top: 8px !important;">Cleanup</h4>
334347
</div>
335348

336349
<div class="tab" id="commandsTab">
337-
<div class="section" id="systemToolsSection">
350+
<div class="sub-tabs">
351+
<button class="sub-tab active" data-subtab="systemToolsSection">System Tools</button>
352+
<button class="sub-tab" data-subtab="systemTweaksSection">System Tweaks</button>
353+
<button class="sub-tab" data-subtab="networkToolsSection">Network Tools</button>
354+
<button class="sub-tab" data-subtab="networkTweaksSection">Network Tweaks</button>
355+
<button class="sub-tab" data-subtab="powerSection">Power Settings</button>
356+
</div>
357+
358+
<div class="sub-tab-content active" id="systemToolsSection">
338359
<div class="section-header">
339360
<h3>System Tools</h3>
340361
<div class="btn-group">
341362
<button class="select-all">Select All</button>
342363
<button class="deselect-all">Deselect All</button>
343364
</div>
344365
</div>
345-
<div class="section-content active">
366+
<div class="section-content">
346367
<h4 class="sub-section-heading" style="margin-top: 8px !important;">Maintenance &amp; Repair</h4>
347368
<div class="checkbox-group">
348369
<label><input type="checkbox" value="sys_disk_cleanup" checked /> Run Disk Cleanup</label>
@@ -360,7 +381,7 @@ <h4 class="sub-section-heading">Monitoring</h4>
360381
</div>
361382
</div>
362383

363-
<div class="section" id="systemTweaksSection">
384+
<div class="sub-tab-content" id="systemTweaksSection">
364385
<div class="section-header">
365386
<h3>System Tweaks</h3>
366387
<div class="btn-group">
@@ -395,7 +416,7 @@ <h4 class="sub-section-heading">Notifications &amp; Error Reporting</h4>
395416
</div>
396417
</div>
397418

398-
<div class="section" id="networkToolsSection">
419+
<div class="sub-tab-content" id="networkToolsSection">
399420
<div class="section-header">
400421
<h3>Network Tools</h3>
401422
<div class="btn-group">
@@ -420,7 +441,7 @@ <h4 class="sub-section-heading">IP Config</h4>
420441
</div>
421442
</div>
422443

423-
<div class="section" id="networkTweaksSection">
444+
<div class="sub-tab-content" id="networkTweaksSection">
424445
<div class="section-header">
425446
<h3>Network Tweaks</h3>
426447
<div class="btn-group">
@@ -454,7 +475,7 @@ <h4 class="sub-section-heading">Protocols</h4>
454475
</div>
455476
</div>
456477

457-
<div class="section" id="powerSection">
478+
<div class="sub-tab-content" id="powerSection">
458479
<div class="section-header">
459480
<h3>Power Settings</h3>
460481
<div class="btn-group">
@@ -487,28 +508,22 @@ <h4 class="sub-section-heading">PCIe &amp; Performance</h4>
487508
<button class="apply-btn" id="applyPowerBtn"><i class="fa fa-check"></i> Apply Settings</button>
488509
</div>
489510
</div>
490-
491-
<div class="section" id="customCommandSection" style="margin-bottom: 0 !important">
492-
<div class="section-header">
493-
<h3>Custom Command</h3>
494-
</div>
495-
<div class="section-content">
496-
<input type="text" id="customCommandInput" placeholder="Enter your command here..." style="width: 100%; padding: 10px; border-radius: 5px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text-color);" />
497-
<button class="apply-btn" id="executeCustomCommandBtn" style="margin-top: 10px"><i class="fa fa-terminal"></i> Run Command</button>
498-
</div>
499-
</div>
500511
</div>
501512

502513
<div class="tab" id="windowsFixesTab">
503-
<div class="section" id="windowsFixesSection" style="margin-bottom: 0 !important">
514+
<div class="sub-tabs">
515+
<button class="sub-tab active" data-subtab="windowsFixesSection">Windows Fixes</button>
516+
</div>
517+
518+
<div class="sub-tab-content active" id="windowsFixesSection">
504519
<div class="section-header">
505520
<h3>Windows Fixes</h3>
506521
<div class="btn-group">
507522
<button class="select-all">Select All</button>
508523
<button class="deselect-all">Deselect All</button>
509524
</div>
510525
</div>
511-
<div class="section-content active">
526+
<div class="section-content">
512527
<h4 class="sub-section-heading" style="margin-top: 8px !important;">Update &amp; Store</h4>
513528
<div class="checkbox-group">
514529
<label><input type="checkbox" value="reset_windows_update" /> Windows Update Reset</label>
@@ -551,15 +566,20 @@ <h4 class="sub-section-heading">Other Fixes &amp; Tweaks</h4>
551566
</div>
552567

553568
<div class="tab" id="windowsFeaturesTab">
554-
<div class="section" id="userFeaturesSection">
569+
<div class="sub-tabs">
570+
<button class="sub-tab active" data-subtab="userFeaturesSection">User Windows Features</button>
571+
<button class="sub-tab" data-subtab="machineFeaturesSection">Machine Windows Features</button>
572+
</div>
573+
574+
<div class="sub-tab-content active" id="userFeaturesSection">
555575
<div class="section-header">
556576
<h3>User Windows Features</h3>
557577
<div class="btn-group">
558578
<button class="select-all">Select All</button>
559579
<button class="deselect-all">Deselect All</button>
560580
</div>
561581
</div>
562-
<div class="section-content active">
582+
<div class="section-content">
563583
<h4 class="sub-section-heading" style="margin-top: 8px !important;">Privacy & Personalization</h4>
564584
<div class="checkbox-group">
565585
<label><input type="checkbox" value="disable_advertising_id" checked /> Disable Advertising ID</label>
@@ -643,7 +663,7 @@ <h4 class="sub-section-heading" style="margin-top: 8px !important;">Privacy & Pe
643663
</div>
644664
</div>
645665

646-
<div class="section" id="machineFeaturesSection" style="margin-bottom: 0 !important">
666+
<div class="sub-tab-content" id="machineFeaturesSection">
647667
<div class="section-header">
648668
<h3>Machine Windows Features</h3>
649669
<div class="btn-group">
@@ -730,13 +750,19 @@ <h4 class="sub-section-heading" style="margin-top: 8px !important;">System & Sec
730750
<div class="tab" id="aboutTab">
731751
<div class="about-section">
732752
<img src="logo.png" />
733-
<p><strong>Version:</strong> 1.6-13</p>
753+
<p><strong>Version:</strong> 1.6-14</p>
734754
<p><strong>Developed by:</strong> AlphaSystem</p>
735755
<p><strong>Description:</strong> OptiForge is a system optimization tool designed to streamline Windows performance, enhance privacy, and maximize system efficiency. Leveraging advanced algorithms and real-time monitoring, OptiForge delivers a smoother, faster, and more secure computing experience.</p>
736756
<p><strong>Why "OptiForge":</strong> The name "OptiForge" is a fusion of two core concepts. <em>Opti</em> stands for "optimization," reflecting our commitment to enhancing system performance, while <em>Forge</em> suggests the craftsmanship and precision of building a robust, finely tuned system—much like a blacksmith forges a reliable tool.</p>
737757
<p><strong>Disclaimer:</strong> Use OptiForge at your own risk. Always back up your data before applying any system modifications. The developers are not liable for any adverse effects.</p>
738758
<p><strong>Contact:</strong> [email protected]</p>
739759
</div>
760+
761+
<div class="section-content">
762+
<div class="checkbox-group">
763+
<button class="apply-btn" id="showLogsBtn"> Show Live Logging </button>
764+
</div>
765+
</div>
740766
</div>
741767
</div>
742768
</div>

logs.html

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Application Logs</title>
5+
6+
<link rel="stylesheet" href="styles.css">
7+
8+
<style>
9+
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');
10+
11+
* {
12+
margin: 0;
13+
padding: 0;
14+
box-sizing: border-box;
15+
user-select: text;
16+
}
17+
18+
body {
19+
background: #1e1e2f;
20+
color: #f8f8f2;
21+
font-family: 'Roboto', sans-serif;
22+
height: 100vh;
23+
display: flex;
24+
flex-direction: column;
25+
padding: 20px;
26+
}
27+
28+
#logContainer {
29+
background: rgba(40, 42, 54, 0.9);
30+
border-radius: 8px;
31+
padding: 20px;
32+
flex: 1;
33+
overflow-y: auto;
34+
overflow-x: hidden;
35+
word-break: break-all;
36+
white-space: pre-wrap;
37+
font-family: 'Fira Code', monospace;
38+
font-size: 13px;
39+
line-height: 1.5;
40+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
41+
border: 1px solid rgba(68, 71, 90, 0.5);
42+
margin-top: 32px;
43+
}
44+
45+
#logContainer::-webkit-scrollbar {
46+
width: 8px;
47+
background: transparent;
48+
}
49+
50+
#logContainer::-webkit-scrollbar-thumb {
51+
background: #44475a;
52+
border-radius: 4px;
53+
}
54+
55+
#logContainer::-webkit-scrollbar-thumb:hover {
56+
background: #6272a4;
57+
}
58+
59+
#logContainer div {
60+
padding: 2px 0;
61+
border-bottom: 1px solid rgba(68, 71, 90, 0.2);
62+
white-space: pre-wrap;
63+
word-break: break-word;
64+
overflow-wrap: anywhere;
65+
}
66+
67+
#logContainer div:last-child {
68+
border-bottom: none;
69+
}
70+
</style>
71+
</head>
72+
73+
<body>
74+
<div class="title-bar">
75+
<div class="window-controls">
76+
<button class="window-button close-button" id="close-button"></button>
77+
</div>
78+
</div>
79+
80+
<div id="logContainer"></div>
81+
82+
<script src="https://cdn.alphasystem.dev/plugins/disable-dev-tools/latest/script-min.js"></script>
83+
84+
<script>
85+
const { ipcRenderer } = require('electron');
86+
const logContainer = document.getElementById('logContainer');
87+
88+
ipcRenderer.on('log-entry', (event, entry) => {
89+
const logEntry = document.createElement('div');
90+
logEntry.style.color = getColorForLevel(entry.level);
91+
logEntry.textContent = `[${entry.timestamp}] ${entry.message}`;
92+
logContainer.appendChild(logEntry);
93+
logContainer.scrollTop = logContainer.scrollHeight;
94+
});
95+
96+
document.getElementById('close-button')?.addEventListener('click', () => {
97+
ipcRenderer.send('window-close');
98+
});
99+
100+
function getColorForLevel(level) {
101+
switch (level) {
102+
case 'error': return '#ff5555';
103+
case 'warn': return '#ffb86c';
104+
default: return '#f8f8f2';
105+
}
106+
}
107+
</script>
108+
</body>
109+
</html>

0 commit comments

Comments
 (0)