Skip to content

Commit 05e7170

Browse files
style: format code with ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format
This commit fixes the style issues introduced in d05613e according to the output from ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format. Details: None
1 parent d05613e commit 05e7170

13 files changed

Lines changed: 354 additions & 323 deletions

index.html

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,44 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>All-in-One Tools</title>
7-
<link rel="stylesheet" href="css/style.css">
8-
</head>
9-
<body>
10-
<header>
11-
<h1>All-in-One Tools</h1>
12-
<p>A collection of useful tools, all in one place.</p>
13-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>All-in-One Tools</title>
7+
<link rel="stylesheet" href="css/style.css" />
8+
</head>
9+
<body>
10+
<header>
11+
<h1>All-in-One Tools</h1>
12+
<p>A collection of useful tools, all in one place.</p>
13+
</header>
1414

15-
<main class="tool-grid">
16-
<div class="tool-card">
17-
<h2>Unit Converter</h2>
18-
<p>Convert between common units (length, weight, temperature).</p>
19-
<a href="tools/converter.html" class="btn">Open</a>
20-
</div>
21-
<div class="tool-card">
22-
<h2>Calculator</h2>
23-
<p>Perform quick calculations.</p>
24-
<a href="tools/calculator.html" class="btn">Open</a>
25-
</div>
26-
<div class="tool-card">
27-
<h2>Password Generator</h2>
28-
<p>Create strong and secure passwords.</p>
29-
<a href="tools/password.html" class="btn">Open</a>
30-
</div>
31-
<div class="tool-card">
32-
<h2>QR Code Generator</h2>
33-
<p>Turn text or links into QR codes.</p>
34-
<a href="tools/qr.html" class="btn">Open</a>
35-
</div>
15+
<main class="tool-grid">
16+
<div class="tool-card">
17+
<h2>Unit Converter</h2>
18+
<p>Convert between common units (length, weight, temperature).</p>
19+
<a href="tools/converter.html" class="btn">Open</a>
20+
</div>
21+
<div class="tool-card">
22+
<h2>Calculator</h2>
23+
<p>Perform quick calculations.</p>
24+
<a href="tools/calculator.html" class="btn">Open</a>
25+
</div>
26+
<div class="tool-card">
27+
<h2>Password Generator</h2>
28+
<p>Create strong and secure passwords.</p>
29+
<a href="tools/password.html" class="btn">Open</a>
30+
</div>
31+
<div class="tool-card">
32+
<h2>QR Code Generator</h2>
33+
<p>Turn text or links into QR codes.</p>
34+
<a href="tools/qr.html" class="btn">Open</a>
35+
</div>
36+
</main>
3637

37-
</main>
38-
39-
<footer>
40-
<p>Made with ❤️ by LCS</p>
41-
</footer>
42-
</body>
38+
<footer>
39+
<p>Made with ❤️ by LCS</p>
40+
</footer>
41+
</body>
4342
</html>
4443

4544
<script
@@ -61,4 +60,4 @@ <h2>QR Code Generator</h2>
6160

6261
<script>
6362
myUndefinedFunction(); // This will trigger an error
64-
</script>
63+
</script>

js/sentry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Sentry.init({
33
Sentry.browserTracingIntegration(),
44
Sentry.replayIntegration(),
55
],
6-
tracesSampleRate: 1.0, // Performance monitoring
7-
replaysSessionSampleRate: 0.1, // Record 10% of sessions
8-
replaysOnErrorSampleRate: 1.0, // Always record on error
6+
tracesSampleRate: 1.0, // Performance monitoring
7+
replaysSessionSampleRate: 0.1, // Record 10% of sessions
8+
replaysOnErrorSampleRate: 1.0, // Always record on error
99
});
1010

1111
// Test error (remove after verification)
1212
setTimeout(() => {
1313
myUndefinedFunction();
14-
}, 2000);
14+
}, 2000);

tools/calculator.html

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,53 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Calculator</title>
7-
<link rel="stylesheet" href="../css/style.css">
8-
<link rel="stylesheet" href="calculator.css">
9-
</head>
10-
<body>
11-
<header>
12-
<h1>Calculator</h1>
13-
<a href="../index.html" class="btn">← Back</a>
14-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Calculator</title>
7+
<link rel="stylesheet" href="../css/style.css" />
8+
<link rel="stylesheet" href="calculator.css" />
9+
</head>
10+
<body>
11+
<header>
12+
<h1>Calculator</h1>
13+
<a href="../index.html" class="btn">← Back</a>
14+
</header>
1515

16-
<main class="calc-container">
17-
<div class="calc-screen" id="screen">0</div>
18-
<div class="calc-buttons">
19-
<button>C</button>
20-
<button></button>
21-
<button>%</button>
22-
<button>/</button>
16+
<main class="calc-container">
17+
<div class="calc-screen" id="screen">0</div>
18+
<div class="calc-buttons">
19+
<button>C</button>
20+
<button></button>
21+
<button>%</button>
22+
<button>/</button>
2323

24-
<button>7</button>
25-
<button>8</button>
26-
<button>9</button>
27-
<button>*</button>
24+
<button>7</button>
25+
<button>8</button>
26+
<button>9</button>
27+
<button>*</button>
2828

29-
<button>4</button>
30-
<button>5</button>
31-
<button>6</button>
32-
<button>-</button>
29+
<button>4</button>
30+
<button>5</button>
31+
<button>6</button>
32+
<button>-</button>
3333

34-
<button>1</button>
35-
<button>2</button>
36-
<button>3</button>
37-
<button>+</button>
34+
<button>1</button>
35+
<button>2</button>
36+
<button>3</button>
37+
<button>+</button>
3838

39-
<button>0</button>
40-
<button>.</button>
41-
<button>=</button>
42-
</div>
43-
</main>
39+
<button>0</button>
40+
<button>.</button>
41+
<button>=</button>
42+
</div>
43+
</main>
4444

45-
<script src="calculator.js"></script>
46-
</body>
45+
<script src="calculator.js"></script>
46+
</body>
4747
</html>
4848

49-
<script src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js" crossorigin="anonymous"></script>
50-
<script src="../js/sentry.js"></script>
49+
<script
50+
src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js"
51+
crossorigin="anonymous"
52+
></script>
53+
<script src="../js/sentry.js"></script>

tools/calculator.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,25 @@ const buttons = document.querySelectorAll(".calc-buttons button");
33

44
let current = "";
55

6-
buttons.forEach(btn => {
6+
buttons.forEach((btn) => {
77
btn.addEventListener("click", () => {
88
const value = btn.textContent;
99

1010
if (value === "C") {
1111
current = "";
1212
screen.textContent = "0";
13-
}
14-
else if (value === "←") {
13+
} else if (value === "←") {
1514
current = current.slice(0, -1);
1615
screen.textContent = current || "0";
17-
}
18-
else if (value === "=") {
16+
} else if (value === "=") {
1917
try {
2018
current = eval(current).toString();
2119
screen.textContent = current;
2220
} catch {
2321
screen.textContent = "Error";
2422
current = "";
2523
}
26-
}
27-
else {
24+
} else {
2825
current += value;
2926
screen.textContent = current;
3027
}
@@ -36,11 +33,11 @@ function calculateExpression(expression) {
3633
const result = eval(expression);
3734
Sentry.captureMessage("Calculation performed", {
3835
level: "info",
39-
extra: { expression: expression, result: result }
36+
extra: { expression, result },
4037
});
4138
return result;
4239
} catch (error) {
4340
Sentry.captureException(error); // error tracking
4441
return "Error";
4542
}
46-
}
43+
}

tools/clock.html

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Live Clock</title>
7-
<link rel="stylesheet" href="clock.css">
8-
</head>
9-
<body>
10-
<header>
11-
<h1>🕒 Live Clock</h1>
12-
<p>See the current date and time in real time.</p>
13-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Live Clock</title>
7+
<link rel="stylesheet" href="clock.css" />
8+
</head>
9+
<body>
10+
<header>
11+
<h1>🕒 Live Clock</h1>
12+
<p>See the current date and time in real time.</p>
13+
</header>
1414

15-
<main class="clock-container">
16-
<div id="clock" class="clock-display">--:--:--</div>
17-
<div id="date" class="date-display">Loading date...</div>
18-
</main>
15+
<main class="clock-container">
16+
<div id="clock" class="clock-display">--:--:--</div>
17+
<div id="date" class="date-display">Loading date...</div>
18+
</main>
1919

20-
<footer>
21-
<p><a href="../index.html">⬅ Back to Tools</a></p>
22-
</footer>
20+
<footer>
21+
<p><a href="../index.html">⬅ Back to Tools</a></p>
22+
</footer>
2323

24-
<script src="clock.js"></script>
25-
</body>
24+
<script src="clock.js"></script>
25+
</body>
2626
</html>
2727

28-
<script src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js" crossorigin="anonymous"></script>
29-
<script src="../js/sentry.js"></script>
28+
<script
29+
src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js"
30+
crossorigin="anonymous"
31+
></script>
32+
<script src="../js/sentry.js"></script>

tools/converter.html

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,48 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Unit Converter</title>
7-
<link rel="stylesheet" href="../css/style.css">
8-
<link rel="stylesheet" href="converter.css">
9-
</head>
10-
<body>
11-
<header>
12-
<h1>Unit Converter</h1>
13-
<a href="../index.html" class="btn">← Back</a>
14-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Unit Converter</title>
7+
<link rel="stylesheet" href="../css/style.css" />
8+
<link rel="stylesheet" href="converter.css" />
9+
</head>
10+
<body>
11+
<header>
12+
<h1>Unit Converter</h1>
13+
<a href="../index.html" class="btn">← Back</a>
14+
</header>
1515

16-
<main class="converter-container">
17-
<div class="converter-box">
18-
<label for="type">Conversion Type:</label>
19-
<select id="type">
20-
<option value="length">Length (m ↔ km)</option>
21-
<option value="weight">Weight (kg ↔ g)</option>
22-
<option value="temperature">Temperature (°C ↔ °F)</option>
23-
</select>
24-
</div>
16+
<main class="converter-container">
17+
<div class="converter-box">
18+
<label for="type">Conversion Type:</label>
19+
<select id="type">
20+
<option value="length">Length (m ↔ km)</option>
21+
<option value="weight">Weight (kg ↔ g)</option>
22+
<option value="temperature">Temperature (°C ↔ °F)</option>
23+
</select>
24+
</div>
2525

26-
<div class="converter-box">
27-
<label for="inputValue">Input Value:</label>
28-
<input type="number" id="inputValue" placeholder="Enter value">
29-
</div>
26+
<div class="converter-box">
27+
<label for="inputValue">Input Value:</label>
28+
<input type="number" id="inputValue" placeholder="Enter value" />
29+
</div>
3030

31-
<div class="converter-box">
32-
<button id="convertBtn" class="btn">Convert</button>
33-
</div>
31+
<div class="converter-box">
32+
<button id="convertBtn" class="btn">Convert</button>
33+
</div>
3434

35-
<div class="converter-box">
36-
<h2>Result: <span id="result">-</span></h2>
37-
</div>
38-
</main>
35+
<div class="converter-box">
36+
<h2>Result: <span id="result">-</span></h2>
37+
</div>
38+
</main>
3939

40-
<script src="converter.js"></script>
41-
</body>
40+
<script src="converter.js"></script>
41+
</body>
4242
</html>
4343

44-
<script src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js" crossorigin="anonymous"></script>
45-
<script src="../js/sentry.js"></script>
44+
<script
45+
src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js"
46+
crossorigin="anonymous"
47+
></script>
48+
<script src="../js/sentry.js"></script>

0 commit comments

Comments
 (0)