26 Commits

Author SHA1 Message Date
面条
b800869aa5 refactor: improve image dimension inference logic
Enhances the algorithm for extracting image dimensions from Telegram widget styles by introducing a more robust fallback mechanism. Previously relied on partial style matching which could miss dimension data encoded across multiple DOM elements.

Now checks wrapper elements and padding-top percentage ratios more systematically to synthesize layout dimensions when explicit width/height are unavailable. This ensures more reliable image aspect ratio calculation for content rendering.

Also clarifies error messages in the sync workflow and updates code comments from Chinese to English for better maintainability.
2026-03-27 13:46:55 +08:00
面条
6ec262d8cf refactor: migrate to Tailwind CSS v4 and TypeScript
Replaces PostCSS-based styling with Tailwind CSS v4 via Vite plugin
Converts all .js files to .ts with proper type annotations
Adds comprehensive type definitions for Telegram data structures
Extracts reusable UI components and standardizes class utilities

Improves maintainability by eliminating custom CSS in favor of
Tailwind utilities and design tokens
Enhances type safety across Telegram parsing, env access, and API routes
Centralizes agent guidelines in AGENTS.md following repository standards
Upgrades iconography to astro-icon with Remix Icon integration

Expands accessible HTML patterns including ARIA labels, semantic
navigation, and keyboard interaction support
Refactors static proxy logic into shared utility functions
Consolidates modal and image preview markup for consistency
2026-03-26 21:11:11 +08:00
bunizao
fbd6bbe018 feat: add REACTIONS environment variable and integrate it into item component 2026-01-12 04:39:24 +08:00
bunizao
56a06cc410 style: update reaction styling and layout; remove unused emoji fallback logic 2026-01-12 04:10:12 +08:00
bunizao
d56245169a feat: add reaction support with custom emoji handling and styling 2026-01-12 03:56:37 +08:00
copilot-swe-agent[bot]
9e6da8fdb8 fix: properly compare HIDE_DESCRIPTION env variable as string
Co-authored-by: miantiao-me <2959393+miantiao-me@users.noreply.github.com>
2025-12-14 02:44:31 +00:00
copilot-swe-agent[bot]
a3b8c97bc3 feat: add HIDE_DESCRIPTION env variable to control TG description visibility
Co-authored-by: miantiao-me <2959393+miantiao-me@users.noreply.github.com>
2025-12-14 02:43:11 +00:00
ccbikai
e12a0d0f95 feat: enhance RSS handling and improve middleware logic 2024-11-07 19:05:16 +08:00
ccbikai
ed9393011c feat: add support for displaying comments on posts 2024-11-04 20:49:24 +08:00
ccbikai
affd4d2a9b feat: add tags functionality and UI enhancements 2024-11-04 19:55:58 +08:00
ccbikai
ff418d81a8 fix: improve accessibility and remove unnecessary attributes
Enhanced accessibility by wrapping time display in a semantic `<time>` element, ensuring better screen reader support. Removed inline styles and onclick attributes from elements, simplifying the code and improving performance.
2024-09-21 16:39:57 +08:00
ccbikai
58be3f399c chore: eslint fix and upgrade dependencies 2024-08-31 16:29:02 +08:00
ccbikai
958109752b refactor: improve pagination logic and URL handling
Enhanced pagination logic by adjusting the condition for displaying the 'Before' link, ensuring it appears when there's more than one item, improving user navigation. Improved URL handling in Telegram post and reply processing by using regular expressions for channel replacement, enhancing compatibility and robustness.
2024-08-13 12:03:20 +08:00
ccbikai
793bc52f19 feat: enhance code highlighting with flourite
Integrate flourite for improved language detection in code blocks, replacing manual detection logic. This enhances accuracy and supports a broader range of languages for syntax highlighting. Additionally, streamline CSS inclusion for code highlighting by importing directly from the package, reducing reliance on external CDN.
2024-08-11 10:14:03 +08:00
ccbikai
50fc7413a9 feat: enhance UI and fix video handling
- Hide video elements in widget for improved user experience
- Update header background for better contrast
- Prevent empty image containers from rendering
- Remove unsupported video player elements
- Add onclick attribute to links for enhanced functionality
- Include Yandex.ru in target whitelist for expanded compatibility
2024-08-09 12:03:02 +08:00
ccbikai
bd7bba2f06 feat: enhance CSS handling and optimize global styles
- Enabled PostCSS nesting with specific configuration for modern compatibility
- Added global CSS reset for consistent tap highlights across browsers
- Optimized package configuration for broader browser support
- Refactored and streamlined global CSS, removing redundant styles for better maintainability
- Integrated additional CSS import in component for modular styling approach
2024-08-06 19:02:56 +08:00
ccbikai
4085dd2143 Merge branch 'dev' 2024-08-06 13:35:09 +08:00
ccbikai
06f81a2d14 chore: improve sticker rendering and CSS specificity
Enhanced sticker rendering by adding optional chaining for safer DOM traversal and reordered sticker rendering logic to ensure proper inclusion in post content. Improved CSS specificity for sticker styling to ensure consistent application across components.
2024-08-06 13:34:37 +08:00
面条
609a594cc0 Merge pull request #11 from siygle/more-sns
feat: support Mastodon/BlueSky social button
2024-08-06 13:20:34 +08:00
ccbikai
a83c3069e6 refactor(emoji): adjust spacing for better alignment
Improved spacing around emojis in multiple components to enhance visual consistency and readability. Simplified the selector for content modification in the Telegram library function for better maintainability.
2024-08-06 13:12:51 +08:00
ccbikai
b8ab845520 feat: enhance CSS processing and content rendering
- Added postcss-nesting for improved CSS nesting support
- Updated dependencies to support new CSS processing features
- Modified HTML content handling to improve accessibility and styling
- Enhanced post content parsing for better rendering and SEO
2024-08-06 13:02:57 +08:00
sy
7896e90c92 feat: support Mastodon/BlueSky social button 2024-08-06 13:00:40 +08:00
ccbikai
5c998c6c34 feat: enhance header rendering and description extraction
- Optimized header component to directly set HTML content for improved rendering performance and security.
- Modified description extraction method to retrieve HTML content, enhancing the accuracy and richness of displayed information.
- Added word-break property to site intro for better handling of long words and URLs.
2024-08-06 09:30:07 +08:00
ccbikai
2df9b66ed9 feat: enhance deployment and media handling
- Updated deployment configurations to disable Incremental Static Regeneration (ISR) and cache on demand pages for better performance control.
- Extended .gitignore to include deployment-specific directories, preventing unnecessary files from being tracked.
- Improved video handling in content by adding support for additional video types and enhancing video element attributes for better playback control.
- Refactored post retrieval logic to ensure channel information is correctly merged and SEO data is accurately assigned.
- Enhanced static file handling to include error handling and domain whitelisting for security and reliability.
2024-08-05 18:57:28 +08:00
ccbikai
bfb8974612 feat: enhance modal image handling and SEO improvements
- Optimized modal image dimensions for better responsiveness
- Ensured modal images maintain aspect ratio and scale appropriately
- Added eager loading for header images to improve initial load performance
- Corrected GitHub link title typo for SEO accuracy
- Enhanced post content handling by normalizing emoji styles and search link paths
- Improved cache key management for channel info requests to include type and ID
- Streamlined channel info fetching logic for efficiency
- Updated breadcrumb image handling to support static proxy and void file fallback
2024-08-05 12:05:19 +08:00
ccbikai
c39ab2d528 feat: init 2024-08-04 20:42:51 +08:00