Skip to content

Commit 3629434

Browse files
deepsource-autofix[bot]LCSOGthbgithub-advanced-security[bot]
authored
style: format code with ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format (#7)
* style: format code with ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format This commit fixes the style issues introduced in e0e4cdc according to the output from ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format. Details: None * Potential fix for code scanning alert no. 6: Inefficient regular expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: LCSOGthb <185141600+LCSOGthb@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 78bf297 commit 3629434

60 files changed

Lines changed: 6125 additions & 6819 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
| < 4.0 | :x: |
1111

1212
## Reporting a Vulnerability
13+
1314
Go to Issues Report a Vulnerability

api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'serverApi' is declared only once
22
const serverApi = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

block-css-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'BLOCK_CSS_VALUE' is declared only once
22
const BLOCK_CSS_VALUE = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

block-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'BLOCK_TYPES' is declared only once
22
const BLOCK_TYPES = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

browser-info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'BrowserInfo' is declared only once
22
const BrowserInfo = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Ensure 'debug' is declared only once
22
const debug = (message) => {
3-
console.log(message);
3+
console.log(message);
44
};

dialog.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
2-
3-
4-
5-
6-
// ...existing code...}; // ...existing code...const Dialog = {
1+
// ...existing code...}; // ...existing code...const Dialog = {

helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'guidSeed' is declared only once
22
const guidSeed = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

icon-badge-periods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ensure 'ICON_BADGE_PERIODS' is declared only once
22
const ICON_BADGE_PERIODS = {
3-
// ...existing code...
3+
// ...existing code...
44
};
55
// ...existing code...

index.html

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,49 @@
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">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>AI-Powered Toolbox</title>
7-
<link rel="stylesheet" href="styles.css">
8-
</head>
9-
<body>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
1010
<header>
11-
<h1>AI-Powered Online Toolbox</h1>
12-
<p>Your go-to tools enhanced by Artificial Intelligence for networking and IP-related tasks.</p>
11+
<h1>AI-Powered Online Toolbox</h1>
12+
<p>
13+
Your go-to tools enhanced by Artificial Intelligence for networking and
14+
IP-related tasks.
15+
</p>
1316
</header>
1417
<main>
15-
<section id="tools">
16-
<div>
17-
<h2>What's My IP Address</h2>
18-
<button onclick="getMyIP()">Check</button>
19-
<p id="my-ip">Your IP will appear here.</p>
20-
</div>
21-
<div>
22-
<h2>IP Lookup / Geolocation</h2>
23-
<input type="text" id="ip-input" placeholder="Enter an IP address">
24-
<button onclick="lookupIP()">Lookup</button>
25-
<p id="ip-info">Results will appear here.</p>
26-
</div>
27-
<div>
28-
<h2>Internet Speed Test</h2>
29-
<button onclick="runSpeedTest()">Run Test</button>
30-
<p id="speed-results">Speed test results will appear here.</p>
31-
</div>
32-
<div>
33-
<h2>Ping</h2>
34-
<input type="text" id="ping-url" placeholder="Enter URL">
35-
<button onclick="ping()">Ping</button>
36-
<p id="ping-results">Ping results will appear here.</p>
37-
</div>
38-
</section>
39-
<div id="error-message" style="display:none;"></div>
18+
<section id="tools">
19+
<div>
20+
<h2>What's My IP Address</h2>
21+
<button onclick="getMyIP()">Check</button>
22+
<p id="my-ip">Your IP will appear here.</p>
23+
</div>
24+
<div>
25+
<h2>IP Lookup / Geolocation</h2>
26+
<input type="text" id="ip-input" placeholder="Enter an IP address" />
27+
<button onclick="lookupIP()">Lookup</button>
28+
<p id="ip-info">Results will appear here.</p>
29+
</div>
30+
<div>
31+
<h2>Internet Speed Test</h2>
32+
<button onclick="runSpeedTest()">Run Test</button>
33+
<p id="speed-results">Speed test results will appear here.</p>
34+
</div>
35+
<div>
36+
<h2>Ping</h2>
37+
<input type="text" id="ping-url" placeholder="Enter URL" />
38+
<button onclick="ping()">Ping</button>
39+
<p id="ping-results">Ping results will appear here.</p>
40+
</div>
41+
</section>
42+
<div id="error-message" style="display: none"></div>
4043
</main>
4144
<footer>
42-
<p>&copy; 2025 AI Toolbox</p>
45+
<p>&copy; 2025 AI Toolbox</p>
4346
</footer>
4447
<script src="scripts.js"></script>
45-
</body>
48+
</body>
4649
</html>

0 commit comments

Comments
 (0)