Commit graph

176 commits

Author SHA1 Message Date
Luke
d360b1ea71
Update index.php 2024-08-25 10:57:46 +02:00
Luke
5a007aaeed
Czech added 2024-08-25 10:54:01 +02:00
Luke
8a255709b8
Merge pull request #7 from Chall-T/polish-translation
Polish translation
2024-08-24 18:15:32 +02:00
Chall-T
9adecc95a4 urls correction 2024-08-24 18:13:41 +02:00
Chall-T
f78d28304e correction 2024-08-24 14:59:01 +02:00
Chall-T
00321b448c polish translation 2024-08-24 14:57:18 +02:00
Luke
e155d17df7
Swedish Krona Fix
Spelling error/issue#6
2024-08-20 22:04:52 +02:00
fdebb16a85
fix: remove inline script and improve noscript message
Refactored inline exchangeRates script to main.js for better practice and maintainability. Enhanced the noscript warning message's readability by replacing paragraph tags with line breaks, ensuring clearer instructions for users without JavaScript.
2024-08-10 16:49:33 +02:00
227d56a2bd
feat: enhance accessibility and UI feedback
Added a noscript alert message for users with JavaScript disabled, informing them about the limitations and manual controls available. Improved UI spacing with an additional margin in the conversion button section. Adjusted CSS padding for better visual alignment. Expanded Webpack safelist to include alert classes for proper styling.
2024-08-10 16:43:57 +02:00
77c41c08c2
fix(js): hide conversion buttons if JavaScript enabled
Removed event listeners on conversion buttons and instead
hide them when JavaScript is enabled. This aims to improve
the user experience by preventing redundant UI interactions
that are handled dynamically.
2024-08-10 16:34:42 +02:00
e97805d379
feat: add bidirectional XMR to fiat conversion
Introduced bidirectional conversion functionality for XMR to fiat calculations. Added form elements and event listeners to handle user inputs and conversion direction. Enhanced URL and metadata processing to be dynamic based on protocol. Updated UI with conversion buttons for a better user experience. Safelisted new CSS classes in webpack configuration.
2024-08-10 16:23:52 +02:00
5747f73c68
refactor(index.php): move config setup to top of the file
Relocated the configuration setup to the top of index.php to improve code clarity and maintainability. This ensures configuration settings are initialized before any other operations, reducing potential for unexpected behaviors and making the code easier to follow.

No functional changes introduced.
2024-08-09 16:03:30 +02:00
49be7374b1
feat: add dynamic GitHub URL support in configuration
Enhanced configuration by introducing a dynamic GitHub URL. This change ensures the GitHub link in all language files is consistently updated based on the configuration, increasing maintainability and consistency across translations.
2024-08-09 16:01:37 +02:00
bc4761ac46
feat: Add preferred currencies ordering support
Enhanced the configuration and display logic to allow specifying preferred currencies, which are now ordered at the top of the list. This improves user experience by prioritizing commonly used currencies.

This also eliminates duplicate entries for the currently selected currency in the drop-down.
2024-08-09 15:03:44 +02:00
bd29ffd43c
feat: add custom footer links to configuration
Introduced a new 'footer_links' configuration option allowing users to specify custom links to display in the footer. Each link includes 'text' and 'url'. This enhances the flexibility of the footer content, making it adaptable to various use cases.

Updated the index.php to dynamically generate these footer links if they are set in the configuration, ensuring they are rendered appropriately along with existing links.
2024-08-09 12:05:51 +02:00
04cadac205
fix: increase precision of fiat conversion result
Extended the decimal precision of the converted XMR value from 8 to 12 places. This ensures more accurate representation of conversion rates, especially critical for high-precision financial calculations.
2024-08-09 08:33:06 +02:00
acb18fd17e
fix: standardize decimal places for cryptocurrency conversion
Unified the decimal places to 8 for all cryptocurrency conversions in
fiatConvert function. This simplifies the logic and ensures consistent
precision across all supported cryptocurrencies.
2024-08-09 08:31:15 +02:00
a1ccf0b43b
feat: fetch exchange rates immediately on startup
Start fetching exchange rates immediately upon initialization, ensuring the most current data is available from the outset. This prevents potential inaccuracies during initial use if rates are only fetched after the interval delay.
2024-08-09 08:12:58 +02:00
31cadc232b
feat: add support for additional cryptocurrencies
Added translations for new currencies including Bitcoin Cash, Binance Coin, EOS.IO, Ripple, Stellar Lumens, Chainlink, Polkadot, Yearn.Finance, Georgian Lari, and Special Drawing Rights across multiple languages. This enhances the platform's comprehensive support for various cryptocurrencies, making it more accessible and informative for international users.
2024-08-09 07:59:26 +02:00
fae1336444
feat: refactor input handling and copy button functionality
Refactored event listeners for XMR and fiat input fields, consolidating common logic and improving maintainability. Introduced explicit copy button IDs and enhanced their functionality by moving inline click handlers to addEventListener. These changes streamline form control interactions and ensure consistent behavior across different user inputs.

Additionally, removed redundant onchange handlers from the PHP file to simplify code and mitigate potential conflicts.
2024-08-08 16:34:03 +02:00
5f0a0abff9
chore: update .gitignore for clarity and consistency
- Added config.php to ignore list for security reasons
- Clarified comments for NodeJS dependencies and Coingecko export data
- Ensured consistent use of leading slashes for ignored paths
2024-08-08 16:07:32 +02:00
2e77cc58ab
fix: correct info text alignment in multiple languages
Aligned info text more consistently by removing the unnecessary "clock" word in the time displays across different language files. This enhances readability and maintains uniformity in the presentation of exchange rate update times. No functional changes were made.
2024-08-08 15:57:18 +02:00
70edeaa283
fix: update exchange rate refresh interval to 1 minute
Changed the update frequency for exchange rates displayed on the site from every 5 seconds to approximately once per minute for all supported languages. This reflects the actual achievable update frequency given CoinGecko's rate limits.

No user-facing functionality is affected.
2024-08-08 15:55:01 +02:00
d249139901
fix(lang): add missing semicolon in German translation file
Added a missing semicolon to maintain consistent syntax and prevent potential issues in the German language translation file. This change ensures the proper functionality of the affected code.
2024-08-08 15:47:29 +02:00
85d30389b1
feat: add optional attribution and servers' info display
Introduced a new configuration file allowing optional attribution
content and conditional display of the "Servers Guru" attribution
link. This enhances customizability and control over displayed
attributions.

The changes include:
- Adding a config.dist.php for default configurations.
- Modifying index.php to load and utilize the new configuration
  options.
- Updating multiple language files to support the new attribution
  and link display.

These modifications will enable users to have a more tailored
display of attributions on the website.
2024-08-08 15:45:25 +02:00
061892fa04
feat: improve API error handling & add exchange rate updates
- Switched to using cURL for fetching data from CoinGecko API, with added error handling for failed requests. This reduces the chances of runtime errors and ensures fallback to previous data.
- Implemented periodic updates to exchange rates every 5 seconds in `main.js` to keep the rates current.
- Added OpenGraph meta tags on `index.php` for better social media integration.
- Minor CSS adjustments for better table rendering.
- Moved `import` statements for Bootstrap CSS and JS to the top in `main.js`.
2024-08-08 14:55:47 +02:00
91dd6df3dd
fix: correct spelling errors in English translations
Corrected spelling mistakes in the English translation file for "Tooltip Title" and "Swedish Krona" to improve accuracy and readability. These corrections ensure that the language used in the application is correct and professional, enhancing user experience.
2024-08-08 13:18:49 +02:00
73222b3f94
feat: Enhance currency tooltip descriptions
Updated the tooltip descriptions for currency links to display full currency names where available, improving user clarity and interface usability. If a full name is not available, the currency code is still shown. This enhances the experience by making the tooltips more informative.
2024-08-08 13:17:36 +02:00
9c7db1013e
feat: localize currency drop-down options
Enhanced the currency drop-down to display localized names if available. This improves user experience by showing familiar names in their local language. Ensures the default language is used if localization isn't specified.
2024-08-08 13:15:53 +02:00
e983660b55
fix: remove unused custom.css link from index.php
Eliminated the redundant stylesheet inclusion to reduce unnecessary HTTP requests and improve page load performance. No impact on visual styling as the content of custom.css was deprecated and merged into main.css.
2024-08-08 09:24:20 +02:00
959c9f86cf
fix: enhance button accessibility and clean up script tags
Replaced button element with a hyperlink to improve accessibility, ensuring better navigation for screen readers and users. Also, formatted the inline script for clarity and consistency. These changes contribute to a more user-friendly interface and maintain clean, readable code.
2024-08-08 09:23:37 +02:00
3a32bb2fd5
feat: improve coingecko JSON response handling
Updated to always output JSON in response, ensuring the latest data is provided to the client. Previously, data output was conditional based on the update interval. This change guarantees a more consistent API behavior and better user experience by always serving the current state, even if no recent update occurred.
2024-08-08 09:16:25 +02:00
9a09f86460
feat: dynamically fetch and filter currencies list
Replaced the static list of currencies with a dynamic fetch from the CoinGecko API. Implemented a filter to exclude 'bits' and 'sats' from the fetched currencies. This ensures the currency list is always up-to-date and excludes unsupported currencies.
2024-08-08 09:09:06 +02:00
f475b4ff73
refactor(coingecko.php): streamline currency data update process
Consolidated currency list initialization and improved data fetching from CoinGecko API. Enhanced error handling for CURL requests. Optimized the logic for updating and saving currency data, ensuring more efficient and readable code. Ensured data write-back occurs only when sufficient time has elapsed since the last update.
2024-08-08 08:58:55 +02:00
d89a2c9053
refactor: streamline currency data handling and UI updates
- Moved currency data initialization to load dynamically from JSON.
- Removed static array of currencies, utilizing the JSON keys instead.
- Simplified exchange rate extraction to dynamically fetch values.
- Improved user language detection and selection process.
- Refactored HTML and PHP to dynamically generate language and currency options.
- Replaced various currency conversion logic with a dynamic implementation.
- Enhanced UI elements for better readability and maintainability.
- Consolidated inline JavaScript functions into external script for organization.

These changes reduce hardcoding, improve maintainability, and ensure that currency data is up-to-date and reflects user preferences more effectively.
2024-08-08 08:44:42 +02:00
437dfbd57e
feat: add clipboard and conversion functionality to main.js 2024-08-08 08:44:06 +02:00
3a30c11ca6
feat: integrate PurgeCSS with Webpack and CSS handling
Added `mini-css-extract-plugin`, `css-loader`, and `purgecss-webpack-plugin` to handle CSS extraction and purification in the Webpack build process. Removed the old `purgecss.config.js` as its functionality has been moved to the Webpack configuration. This change aims to streamline the build process and ensure unused CSS is effectively removed, optimizing the final output.
2024-08-08 08:43:32 +02:00
4e368015e1
chore: Remove unused CSS files 2024-08-08 08:39:11 +02:00
263450fbd2
chore: update .gitignore to include compiled CSS files
Expanded the .gitignore to also ignore compiled CSS files, ensuring they are not tracked in the repository, similar to how compiled JS files are handled. This keeps the repo clean and focuses on source files.
2024-08-08 08:38:13 +02:00
220d5dde1d
refactor: translate comments, add TODOs for future dynamic data loading
Enhances code clarity by translating German comments to English and adding comments and TODOs for dynamic data loading
and generation of currencies, API data, language files, and HTML elements.
This will reduce hardcoded values and improve maintainability. Also, adds a
reminder to move scripts to separate files and add OpenGraph tags in the HTML.

No breaking changes, but dynamically loading these values will be essential
for improving the codebase in future iterations.
2024-08-08 07:46:58 +02:00
39c1551972
chore: update package name in package-lock.json
Renamed project from "moner.ooo-dev" to "moner.ooo" to match the
finalized project name, ensuring consistency across project
references. No functional changes.
2024-08-08 07:38:39 +02:00
7af63513a9
chore: remove Bootstrap bundle files
Deleted the "bootstrap.bundle.js" and "bootstrap.bundle.js.map" files from the "js" directory. These files are not necessary in the project, because they are built automatically. Ensures cleaner project structure and reduces unnecessary repository size.
2024-08-08 07:37:51 +02:00
3ad0a2c00b
chore: update .gitignore to exclude JS build artifacts
Added compiled JavaScript directory to .gitignore to prevent build artifacts from being tracked in the repository. This helps keep the repo clean and reduces unnecessary clutter from generated files.
2024-08-08 07:36:46 +02:00
94c01f2169
chore: update .gitignore to exclude Coingecko exports
Added Coingecko export files (coingecko.json and coingecko-original.json) to .gitignore to prevent them from being tracked by Git. This ensures that large or unnecessary data files do not clutter the repository and facilitates easier version control.
2024-08-08 07:35:19 +02:00
Luke
084552e72f
Unix Time for Office
Example: =A1/86400+25569
*A1 is the field with the Unix numerical value, set the created cell to the desired date format. The date is UTC/GMT+0
2024-07-27 16:43:55 +02:00
Luke
ba173fa2dd
Added Webhoster Servers Guru 2024-07-11 16:41:42 +02:00
Luke
35bd460ca6
Update Webhosting Sponsor 2024-07-11 16:18:08 +02:00
Luke
a8658027aa
Added Servers Guru Logo 2024-07-11 16:16:44 +02:00
Luke
fc8f7b4a93
Hotfix 2024-06-24 06:40:55 +02:00
Luke
1e9dd77cc5
Added Kuno (pt) href 2024-06-17 12:02:17 +02:00