Commit graph

45 commits

Author SHA1 Message Date
rottenwheel
f5eb94b8c1
index: swap EUR for USD as default currency to query the price of 2024-10-19 00:36:23 -05:00
recanman
c6a402927d refactor: replace require with require_once, remove unneeded semicolon 2024-10-05 00:00:17 -07:00
recanman
bffbd46ce0 feat: add footer, qr code img 2024-10-04 23:37:01 -07:00
rottenwheel
4e54935c2c
index: update GitHub repository link 2024-09-06 19:40:39 +00:00
7a8b1f21cf
refactor: move HTML to template file
Separated HTML content from index.php into templates/index.php for improved organization and maintainability. This change helps to keep business logic and presentation code separate, making the codebase easier to navigate and modify.
2024-08-30 10:14:56 +02:00
aa9cdf8a8a
feat(ui): add custom behavior to fiat buttons
Enhanced the fiat currency buttons to include event listeners. When a button is clicked, it now updates the select box value and triggers the appropriate conversion function (XMR to Fiat or Fiat to XMR). The browser's address bar is also updated to reflect the selected currency. This improves the user experience by making currency selection more intuitive and dynamic.
2024-08-30 09:38:34 +02:00
0f891ba6ea
refactor: streamline language file loading
Simplified the logic for loading language files by consolidating into a single loop. Now, the base English file and potential browser language files are loaded in sequence, ensuring a more efficient and clearer process. Removed redundant checks and code for language alias handling.
2024-08-30 09:18:56 +02:00
38586826e2
feat(language): improve language detection and file loading
Simplify and enhance language detection and file loading mechanism:
- Parse primary language from browser settings more accurately.
- Remove redundant scanning of language files.
- Load default English language file as a base.
- Add support for region-specific language files if available.
- Remove unused language strings from various translation files.

These changes enhance the robustness and efficiency of language handling, ensuring better support for user language preferences.
2024-08-30 09:16:07 +02:00
25f6bb423e
feat: improve language recognition and alias handling
Updated browser language detection to handle full locale strings and
mapped various Chinese variants to simplified or traditional Chinese.
Renamed language files for consistency with the new alias system.

This improves support for a wider array of language settings, ensuring
users receive content in their preferred language variant when possible.
2024-08-30 08:28:20 +02:00
d18fcd803c
fix(config): update default GitHub URL to new repository
Updated the default GitHub URL in the configuration to point to the new repository at git.private.coffee. Ensures users are directed to the correct project location for up-to-date resources and issue tracking.
2024-08-28 15:21:36 +02:00
90f6f6ce3e
feat: auto-generate coingecko.json on first run
Added logic to check for the existence of 'coingecko.json' and generate it by executing 'coingecko.php' if it doesn't exist. This ensures that the necessary data file is available on first run, preventing potential errors or missing data.
2024-08-28 15:20:33 +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
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
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
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
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
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
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
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
fc8f7b4a93
Hotfix 2024-06-24 06:40:55 +02:00
Luke
091714abf3
pt-BR fix 2024-06-15 10:38:20 +02:00
Luke
1f6bbb915b
Added new Languages
Translation outstanding
2024-06-15 10:17:21 +02:00
Luke
16f52797fe
Update Office Feature
Time and Hyperlinks added
2024-06-13 10:37:00 +02:00
Luke
77e4619da6
Added Excel,Calc Feature 2024-06-11 12:13:51 +02:00
Luke
7454a72765
JS-Script Error Fix
CopyBtn-Fix
2024-06-05 07:37:42 +02:00
thecashewtrader
eb0cf80b42 add webpack for lean bootstrap js 2024-05-24 20:18:12 +05:30
thecashewtrader
75a0632af7 use updated coingecko.php 2024-05-24 16:05:56 +05:30
thecashewtrader
d162e90c7e Remove Montserrat 2024-05-24 14:51:12 +05:30
thecashewtrader
27814e9b70 use minified css in index.php 2024-05-24 14:14:42 +05:30
thecashewtrader
cc44911ea1 fix API fetching to variables 2024-05-24 14:13:21 +05:30
Luke
642537c441
Add files via upload 2024-05-15 08:21:02 +02:00
Luke
b3564695e9
Update Language (zh-CN)
Chinese (PRC – People’s Republic of China) Language has now been added correctly. Chinese (Taiwan) would now also be possible.
2024-05-11 21:54:12 +02:00
Luke
981f959dee
MXN added 2023-06-19 11:38:38 +02:00
Luke
4ed85ce53d
CLP added & Hotfixes 2023-06-19 09:43:47 +02:00
Luke
1429263af5
Bug fix
CCP to CLP
2023-05-18 10:54:17 +02:00
Luke
9430dfcef9
added full project 2023-05-15 09:04:02 +02:00