From 0e60957359c11124c4cf78aa7a5db20cef776ebc Mon Sep 17 00:00:00 2001 From: Chun <12265739+rxchun@users.noreply.github.com> Date: Wed, 18 Jun 2025 04:30:30 +0100 Subject: [PATCH 1/4] Add Repository last updated tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note: This is supposed to be an extension for the last PR #91 This PR introduces a new feature that enhances plugin visibility and compatibility display: - Fetches all plugin repository links and retrieves their metadata. - Stores metadata locally using localStorage for performance, and also not bombard fetches to `raw.githubusercontent.com` on every page request. - Dynamically generates a footer section for each plugin with: - Repository update date - "Q2A Tested With" tag based on the plugin’s `max_q2a` metadata.json key, if available. This helps users quickly assess which plugins are compatible with their Q2A version and when they were last updated. I also added a message to the Plugins & Themes pages, explaining that "outdated" plugins doesn't necessarily mean that they don't work. Some of them just don't require to be updated as frequently. Also, everybody can create PRs to update the `max_q2a` version of a plugin they know it works, because they're using it. --- _includes/breadcrumbs.html | 17 + _includes/footer.html | 28 +- _includes/header.html | 89 +- _includes/sidebar.html | 7 + _layouts/default.html | 82 +- _layouts/home.html | 48 +- _layouts/page.html | 23 +- addons/clients.md | 1 + addons/index.md | 9 +- addons/plugins.md | 90 +- addons/themes.md | 12 +- addons/translations-old.md | 1 + addons/translations.md | 16 +- code/external.md | 3 +- code/functions.md | 9 +- code/structure.md | 3 +- contribute/coding-style.md | 1 + contribute/docs.md | 1 + contribute/index.md | 1 + contribute/unit-tests.md | 1 + css/styles.css | 1373 +++++++++++++++++ images/pexels-leeloothefirst-5428824-800.webp | Bin 0 -> 37258 bytes images/q2a-icon.svg | 1 + images/question2answer-logo-350x40.webp | Bin 0 -> 5644 bytes images/question2answer-logo-white-350x40.webp | Bin 0 -> 4236 bytes index.md | 8 +- install/htaccess.md | 1 + install/index.md | 9 +- install/optimize.md | 1 + install/security.md | 3 +- install/single-sign-on.md | 3 +- install/upgrade.md | 3 +- install/versions/1.md | 1 + install/versions/index.md | 5 +- install/wordpress.md | 3 +- js/GithubLinks.js | 431 ++++++ js/scripts.js | 237 +++ license.md | 1 + plugins/index.md | 43 +- plugins/layers.md | 5 +- plugins/modules-captcha.md | 5 +- plugins/modules-editor.md | 9 +- plugins/modules-event.md | 5 +- plugins/modules-filter.md | 7 +- plugins/modules-login.md | 7 +- plugins/modules-page.md | 7 +- plugins/modules-process.md | 5 +- plugins/modules-search.md | 7 +- plugins/modules-viewer.md | 7 +- plugins/modules-widget.md | 5 +- plugins/modules.md | 27 +- plugins/overrides.md | 3 +- plugins/tutorial.md | 33 +- services.md | 1 + themes/index.md | 3 +- translate/index.md | 7 +- 56 files changed, 2463 insertions(+), 245 deletions(-) create mode 100644 _includes/breadcrumbs.html create mode 100644 _includes/sidebar.html create mode 100644 css/styles.css create mode 100644 images/pexels-leeloothefirst-5428824-800.webp create mode 100644 images/q2a-icon.svg create mode 100644 images/question2answer-logo-350x40.webp create mode 100644 images/question2answer-logo-white-350x40.webp create mode 100644 js/GithubLinks.js create mode 100644 js/scripts.js diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html new file mode 100644 index 0000000..c63c5c7 --- /dev/null +++ b/_includes/breadcrumbs.html @@ -0,0 +1,17 @@ + diff --git a/_includes/footer.html b/_includes/footer.html index 5977d15..adc2a0e 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,11 +1,23 @@ +