Skip to content

Commit 96b1291

Browse files
committed
Prettier
1 parent adac92c commit 96b1291

7 files changed

Lines changed: 842 additions & 759 deletions

File tree

css/style.css

Lines changed: 87 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
}
7070

7171
@keyframes pulse {
72-
0%, 100% {
72+
0%,
73+
100% {
7374
transform: scale(1);
7475
box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
7576
}
@@ -90,7 +91,9 @@ button,
9091
}
9192

9293
body {
93-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
94+
font-family:
95+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
96+
"Helvetica Neue", Arial, sans-serif;
9497
font-style: normal;
9598
font-weight: 400;
9699
margin: 0;
@@ -261,7 +264,9 @@ div.clear {
261264

262265
#log {
263266
max-width: 100%;
264-
font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
267+
font-family:
268+
"SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New",
269+
monospace;
265270
font-style: normal;
266271
font-weight: 400;
267272
font-size: 16px;
@@ -343,7 +348,9 @@ div.clear {
343348
line-height: 25px;
344349
font-size: 14px;
345350
color: white;
346-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
351+
font-family:
352+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
353+
"Helvetica Neue", Arial, sans-serif;
347354
font-style: normal;
348355
font-weight: 600;
349356
box-sizing: border-box;
@@ -391,8 +398,6 @@ div.clear {
391398
border-color: #67ac38;
392399
}
393400

394-
395-
396401
#commands {
397402
min-width: 600px;
398403
justify-content: center;
@@ -410,7 +415,7 @@ div.clear {
410415
}
411416

412417
/* Hide upload rows 2-8 by default, show dynamically via JavaScript */
413-
#commands .upload:nth-child(n+2):nth-child(-n+8) {
418+
#commands .upload:nth-child(n + 2):nth-child(-n + 8) {
414419
display: none;
415420
}
416421

@@ -486,8 +491,12 @@ div.clear {
486491
}
487492

488493
@keyframes indeterminate-stripes {
489-
0% { background-position: 0 0; }
490-
100% { background-position: 28px 0; }
494+
0% {
495+
background-position: 0 0;
496+
}
497+
100% {
498+
background-position: 28px 0;
499+
}
491500
}
492501

493502
#eraseProgress {
@@ -625,7 +634,9 @@ div.clear {
625634
border-style: solid;
626635
cursor: pointer;
627636
background-color: transparent;
628-
transition: background-color 0.2s, color 0.2s;
637+
transition:
638+
background-color 0.2s,
639+
color 0.2s;
629640
}
630641

631642
.partition-download-btn:hover {
@@ -976,7 +987,10 @@ div.clear {
976987
border-radius: 25px;
977988
cursor: pointer;
978989
margin-top: 20px;
979-
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
990+
transition:
991+
background-color 0.2s,
992+
color 0.2s,
993+
border-color 0.2s;
980994
display: inline-flex;
981995
align-items: center;
982996
justify-content: center;
@@ -1089,7 +1103,9 @@ div.clear {
10891103

10901104
.file-viewer-body pre {
10911105
margin: 0;
1092-
font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
1106+
font-family:
1107+
"SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New",
1108+
monospace;
10931109
font-size: 13px;
10941110
line-height: 1.5;
10951111
white-space: pre;
@@ -1100,7 +1116,9 @@ div.clear {
11001116
}
11011117

11021118
.file-viewer-body .hex-view {
1103-
font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
1119+
font-family:
1120+
"SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New",
1121+
monospace;
11041122
font-size: 12px;
11051123
line-height: 1.6;
11061124
}
@@ -1225,7 +1243,9 @@ div.clear {
12251243
padding: 12px 15px;
12261244
border-radius: 6px;
12271245
margin: 0 0 18px 0;
1228-
font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1246+
font-family:
1247+
"SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
1248+
monospace;
12291249
font-size: 14px;
12301250
line-height: 1.6;
12311251
white-space: pre-wrap;
@@ -1297,7 +1317,9 @@ pre.nvs-issue {
12971317
border-radius: 4px;
12981318
padding: 6px 8px;
12991319
margin: 4px 0;
1300-
font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1320+
font-family:
1321+
"SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
1322+
monospace;
13011323
font-size: 12px;
13021324
line-height: 1.5;
13031325
white-space: pre-wrap;
@@ -1369,13 +1391,21 @@ pre.nvs-issue {
13691391
}
13701392

13711393
@keyframes nvs-flash-row {
1372-
0% { background-color: #fff3a8; }
1373-
100% { background-color: transparent; }
1394+
0% {
1395+
background-color: #fff3a8;
1396+
}
1397+
100% {
1398+
background-color: transparent;
1399+
}
13741400
}
13751401

13761402
@keyframes nvs-flash-page {
1377-
0% { box-shadow: 0 0 0 3px #ffb74d; }
1378-
100% { box-shadow: 0 0 0 0 transparent; }
1403+
0% {
1404+
box-shadow: 0 0 0 3px #ffb74d;
1405+
}
1406+
100% {
1407+
box-shadow: 0 0 0 0 transparent;
1408+
}
13791409
}
13801410

13811411
/* Mobile Optimizations */
@@ -2557,7 +2587,8 @@ body.console-active .main {
25572587
background-color: #1c1c1c;
25582588
display: flex;
25592589
flex-direction: column;
2560-
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
2590+
font-family:
2591+
SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
25612592
color: #ddd;
25622593
}
25632594

@@ -2882,8 +2913,11 @@ body.hexeditor-active .main {
28822913
/* Progress overlay for loading */
28832914
.hexeditor-progress-overlay {
28842915
position: absolute;
2885-
top: 0; left: 0; right: 0; bottom: 0;
2886-
background-color: rgba(0,0,0,0.85);
2916+
top: 0;
2917+
left: 0;
2918+
right: 0;
2919+
bottom: 0;
2920+
background-color: rgba(0, 0, 0, 0.85);
28872921
display: flex;
28882922
flex-direction: column;
28892923
align-items: center;
@@ -3020,7 +3054,9 @@ body.hexeditor-active .main {
30203054
background-color: #1c1c1c;
30213055
display: flex;
30223056
flex-direction: column;
3023-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
3057+
font-family:
3058+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
3059+
sans-serif;
30243060
color: #ddd;
30253061
}
30263062

@@ -3196,10 +3232,18 @@ body.nvseditor-active .main {
31963232
border-bottom: 1px solid #3a3a3a;
31973233
}
31983234

3199-
.nvs-page-header.state-active { border-left: 4px solid #43a047; }
3200-
.nvs-page-header.state-full { border-left: 4px solid #ffa726; }
3201-
.nvs-page-header.state-freeing { border-left: 4px solid #ef5350; }
3202-
.nvs-page-header.state-other { border-left: 4px solid #666; }
3235+
.nvs-page-header.state-active {
3236+
border-left: 4px solid #43a047;
3237+
}
3238+
.nvs-page-header.state-full {
3239+
border-left: 4px solid #ffa726;
3240+
}
3241+
.nvs-page-header.state-freeing {
3242+
border-left: 4px solid #ef5350;
3243+
}
3244+
.nvs-page-header.state-other {
3245+
border-left: 4px solid #666;
3246+
}
32033247

32043248
.nvs-page-state {
32053249
font-weight: bold;
@@ -3209,10 +3253,22 @@ body.nvseditor-active .main {
32093253
text-transform: uppercase;
32103254
}
32113255

3212-
.state-active .nvs-page-state { background: #1b5e20; color: #a5d6a7; }
3213-
.state-full .nvs-page-state { background: #e65100; color: #ffcc80; }
3214-
.state-freeing .nvs-page-state { background: #b71c1c; color: #ef9a9a; }
3215-
.state-other .nvs-page-state { background: #424242; color: #999; }
3256+
.state-active .nvs-page-state {
3257+
background: #1b5e20;
3258+
color: #a5d6a7;
3259+
}
3260+
.state-full .nvs-page-state {
3261+
background: #e65100;
3262+
color: #ffcc80;
3263+
}
3264+
.state-freeing .nvs-page-state {
3265+
background: #b71c1c;
3266+
color: #ef9a9a;
3267+
}
3268+
.state-other .nvs-page-state {
3269+
background: #424242;
3270+
color: #999;
3271+
}
32163272

32173273
/* NVS Namespace */
32183274
.nvs-namespace {

electron/cli-main.cjs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* This provides a truly standalone CLI without requiring Node.js installation
44
*/
55

6-
const { app } = require('electron');
7-
const path = require('path');
6+
const { app } = require("electron");
7+
const path = require("path");
88

99
// Prevent Electron from showing any windows
1010
app.dock?.hide(); // macOS
11-
app.commandLine.appendSwitch('disable-gpu');
12-
app.commandLine.appendSwitch('no-sandbox');
11+
app.commandLine.appendSwitch("disable-gpu");
12+
app.commandLine.appendSwitch("no-sandbox");
1313

1414
// Get CLI arguments (skip electron executable and script path)
1515
const cliArgs = process.argv.slice(app.isPackaged ? 1 : 2);
@@ -19,27 +19,27 @@ app.whenReady().then(async () => {
1919
try {
2020
// Dynamically import the CLI module
2121
const cliPath = app.isPackaged
22-
? path.join(process.resourcesPath, 'app.asar', 'dist', 'cli.js')
23-
: path.join(__dirname, '..', 'dist', 'cli.js');
24-
22+
? path.join(process.resourcesPath, "app.asar", "dist", "cli.js")
23+
: path.join(__dirname, "..", "dist", "cli.js");
24+
2525
// Set process.argv to match CLI expectations
2626
// In packaged app: argv[0] is the executable path
2727
// We want: ['node', 'esp32tool', ...actualArgs]
2828
const actualArgs = cliArgs;
29-
process.argv = ['node', 'esp32tool', ...actualArgs];
30-
29+
process.argv = ["node", "esp32tool", ...actualArgs];
30+
3131
// Import CLI module
32-
const cliModule = await import('file://' + cliPath);
33-
32+
const cliModule = await import("file://" + cliPath);
33+
3434
// Run the CLI
3535
await cliModule.runCLI();
36-
36+
3737
// Give a small delay for cleanup
3838
setTimeout(() => {
3939
app.exit(0);
4040
}, 100);
4141
} catch (error) {
42-
console.error('CLI Error:', error.message);
42+
console.error("CLI Error:", error.message);
4343
if (process.env.DEBUG) {
4444
console.error(error.stack);
4545
}
@@ -50,25 +50,25 @@ app.whenReady().then(async () => {
5050
});
5151

5252
// Handle app activation (macOS)
53-
app.on('activate', () => {
53+
app.on("activate", () => {
5454
// Do nothing - we're a CLI app
5555
});
5656

5757
// Quit when all windows are closed
58-
app.on('window-all-closed', () => {
58+
app.on("window-all-closed", () => {
5959
// Do nothing - we don't have windows
6060
});
6161

6262
// Handle errors
63-
process.on('uncaughtException', (error) => {
64-
console.error('Uncaught Exception:', error.message);
63+
process.on("uncaughtException", (error) => {
64+
console.error("Uncaught Exception:", error.message);
6565
if (process.env.DEBUG) {
6666
console.error(error.stack);
6767
}
6868
app.exit(1);
6969
});
7070

71-
process.on('unhandledRejection', (reason) => {
72-
console.error('Unhandled Rejection:', reason);
71+
process.on("unhandledRejection", (reason) => {
72+
console.error("Unhandled Rejection:", reason);
7373
app.exit(1);
7474
});

0 commit comments

Comments
 (0)