diff --git a/# Code Citations.md b/# Code Citations.md new file mode 100644 index 0000000..41dfef2 --- /dev/null +++ b/# Code Citations.md @@ -0,0 +1,41 @@ +# Code Citations + +## License: unknown +https://github.com/lilyball/textmate-bundles/tree/1016d113200d99ea6cec3217ec193a3a42a804ac/Bundles/SSH-Config.tmbundle/Syntaxes/SSH-Config.tmLanguage + +``` +[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9] +``` + + +## License: GPL_3_0 +https://github.com/puzzle/cryptopus/tree/f2149de2c518f07598860ae897db44739ad341af/frontend/app/components/admin/setting-multiselect-with-create.js + +``` +9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9] +``` + + +## License: unknown +https://github.com/balepc/ip_geolocation/tree/f3ac8d8cb7eb302f625f65e97f817985e5759431/lib/models/ip_geolocation.rb + +``` += /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4] +``` + + +## License: unknown +https://github.com/kof/sharedjs/tree/3599e808ad4afca303756fd90023cf8d5fe254ec/src/validate.methods.js + +``` +01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ +``` + + +## License: unknown +https://github.com/ThanhTrungGVC/Magento/tree/a4ece2d52844ed6c457980af8a61c005f69088fc/lib/web/mage/validation.js + +``` +/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][ +``` + diff --git a/README.md b/README.md index bc1f0c6..7d7e21f 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,64 @@ For the Badge: [](https://forthebadge.com) [](https://forthebadge.com) [](https://forthebadge.com) + +# AI-Powered Online Toolbox + +This toolbox provides various tools enhanced by Artificial Intelligence for networking, IP-related tasks, and password management. + +## Tools + +### What's My IP Address +Displays your current IP address. + +- **Usage:** Click the "Check" button to fetch and display your IP address. + +### IP Lookup / Geolocation +Looks up the geolocation of a given IP address. + +- **Usage:** Enter an IP address in the input field and click the "Lookup" button to fetch and display the geolocation information. + +### Internet Speed Test +Tests your internet speed. + +- **Usage:** Click the "Run Test" button to measure and display your download speed. + +### Ping +Pings a given URL to measure the response time. + +- **Usage:** Enter a URL in the input field and click the "Ping" button to measure and display the ping time. + +### Password Generator +Generates a random secure password. + +- **Usage:** Click the "Generate" button to create and display a random password. + +### Password Strength Checker +Checks the strength of a given password. + +- **Usage:** Enter a password in the input field and click the "Check" button to evaluate and display the password strength. + +### Password Breach Checker +Checks if a given password has been breached using the HaveIBeenPwned API. + +- **Usage:** Enter a password in the input field and click the "Check" button to check and display if the password has been breached. + +## Debug Logging + +A new debug logging function `logDebug` has been added to log debug messages to the console. + +- **Usage:** Import the `logDebug` function from `utils.js` and call it with a message to log. + +```javascript +import { logDebug } from './utils.js'; +logDebug('This is a debug message'); +``` + +## Error Handling +If an error occurs during any operation, an error message will be displayed. + +## Styling +The tools are styled using the `styles.css` file. + +## Scripts +The functionality of the tools is implemented in the `main.js` file. diff --git a/api.js b/api.js new file mode 100644 index 0000000..fc558cc --- /dev/null +++ b/api.js @@ -0,0 +1,4 @@ +// Ensure that 'serverApi' is not declared multiple times +const serverApi = { + // Object implementation +}; diff --git a/block-css-value.js b/block-css-value.js new file mode 100644 index 0000000..8b9df86 --- /dev/null +++ b/block-css-value.js @@ -0,0 +1,3 @@ +const BLOCK_CSS_VALUE = { + // Object implementation +}; diff --git a/block-types.js b/block-types.js new file mode 100644 index 0000000..a63fac3 --- /dev/null +++ b/block-types.js @@ -0,0 +1,4 @@ +// Ensure that 'BLOCK_TYPES' is not declared multiple times +const BLOCK_TYPES = { + // Object implementation +}; diff --git a/browser-info.js b/browser-info.js new file mode 100644 index 0000000..c62da3e --- /dev/null +++ b/browser-info.js @@ -0,0 +1,4 @@ +// Ensure that 'BrowserInfo' is not declared multiple times +const BrowserInfo = { + // Object implementation +}; diff --git a/debug.js b/debug.js new file mode 100644 index 0000000..fadbfac --- /dev/null +++ b/debug.js @@ -0,0 +1,3 @@ +const debug = (message) => { + console.log(message); +}; diff --git a/dialog.js b/dialog.js new file mode 100644 index 0000000..954536b --- /dev/null +++ b/dialog.js @@ -0,0 +1 @@ +const Dialog = {}; // ...existing code... diff --git a/getMyIP.js b/getMyIP.js new file mode 100644 index 0000000..0abb636 --- /dev/null +++ b/getMyIP.js @@ -0,0 +1,10 @@ +async function getMyIP() { + try { + const response = await fetch('https://api.ipify.org?format=json'); + const data = await response.json(); + return data.ip; + } catch (error) { + console.error('Error fetching IP:', error); + throw error; + } +} diff --git a/helpers.js b/helpers.js new file mode 100644 index 0000000..e44f9ae --- /dev/null +++ b/helpers.js @@ -0,0 +1,4 @@ +// Ensure that 'guidSeed' is not declared multiple times +const guidSeed = { + // Object implementation +}; diff --git a/icon-badge-periods.js b/icon-badge-periods.js new file mode 100644 index 0000000..8f1f9a0 --- /dev/null +++ b/icon-badge-periods.js @@ -0,0 +1,3 @@ +const ICON_BADGE_PERIODS = { + // Object implementation +}; diff --git a/index.html b/index.html index d1f4ad7..d272019 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,8 @@
Your IP will appear here.
+Results will appear here.
Speed test results will appear here.
Ping results will appear here.
Generated password will appear here.
+Strength will appear here.
+Breach status will appear here.
+