Commit graph

9 commits

Author SHA1 Message Date
feibisi
8beaadc3bc Add i18n and release-aware download for repo card
This update adds internationalization to all user-facing strings in the block editor UI and repository card, and refactors download logic to support release ZIPs and branch ZIPs for GitHub, GitLab, Gitea, Forgejo, and custom platforms. The PHP backend now fetches release info, generates appropriate download URLs and filenames, and improves caching and debug logging. The block UI and card rendering are updated to use translated strings and new download button logic.
2025-08-01 01:12:42 +08:00
feibisi
2f811072c5 Remove unused dashicon from custom avatar markup
Eliminated the dashicons-format-image span from the repository custom avatar section to clean up the HTML output.
2025-07-31 17:54:13 +08:00
feibisi
d04f2c7940 Support more platforms and improve avatar handling
Added support for GitLab, Gitea, Forgejo, and custom/self-hosted Git services. Improved avatar logic to prioritize repository avatars, updated UI to reflect avatar source, simplified download URL generation, and enhanced localization and language support. Refactored code structure and updated styles for better appearance and responsiveness.
2025-07-31 17:49:25 +08:00
feibisi
959fc6b9b8 Improve custom Git service support and UI styling
Enhanced detection of default branches for custom/self-hosted Git services and improved archive URL handling in both PHP and JS. Updated UI elements and styles for better appearance and consistency, including avatar shape, spacing, font sizes, and icon usage. Added more robust cache clearing logic and improved owner type normalization.
2025-07-31 16:07:05 +08:00
feibisi
3b10f2574f Add support for custom Git platforms and UI enhancements
This update introduces support for self-hosted Git platforms (Gitea, Forgejo, GitLab, and custom services) with custom domain and site name options. It adds new UI controls for button size, style, and additional action buttons (Issues, Forks), and implements new card styles (gradient, glassmorphism) and platform-specific color badges. The PHP backend now normalizes API calls and repository data for multiple platforms, and the CSS is updated for new styles and platform-specific elements.
2025-07-31 15:19:38 +08:00
feibisi
0c4746d0d3 Add site info and avatar display options to repo card
Introduces options to show site information and owner avatar in the repository card, including avatar size selection. Updates PHP, JS, and CSS to support new UI elements, avatar caching, and cache clearing via AJAX. Enhances visual presentation and user customization for embedded repository cards.
2025-07-31 14:45:54 +08:00
feibisi
105d769c7f Add advanced style and button options to embed block
Introduces new attributes for card and button styles, and granular control over action buttons (view, clone, download) in both JS and PHP. Updates UI to use Dashicons, improves accessibility, and enhances CSS for multiple card and button styles, including minimal, bordered, shadow, and outline variants. Clone button now copies the URL to clipboard with feedback.
2025-07-31 14:45:00 +08:00
feibisi
729238cb5e Add Git repository embed block plugin
Introduces a WordPress block plugin to embed GitHub repositories with a customizable card UI. Includes block registration, AJAX data fetching, server-side rendering, and styles for alignment and responsive display.
2025-07-31 14:43:41 +08:00
feng
e764912546
Initial commit 2025-07-31 14:42:31 +08:00