Commit Graph

23 Commits

Author SHA1 Message Date
Pierre Nel
ddfcec21c2 parse code snippets ie ``js const a = 1;`` in Telegram and perform syntax highlighting in the post using Prism 2024-08-09 11:37:54 +02: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
8bec08657d feat: enhance image layout and handling
Improved image display by introducing a responsive grid layout for image lists, optimizing the first image's placement in odd-numbered lists to span across both columns. This change enhances visual appeal and usability, especially on larger screens. Additionally, refactored image retrieval logic to wrap images in a container, dynamically adjusting the class based on the number of images for tailored styling.
2024-08-09 08:20:53 +08:00
ccbikai
44a6f86830 feat: improve regex for title extraction
Enhanced regex pattern to more accurately capture titles in posts by adjusting the lookahead assertion to better handle various punctuation marks and URLs. This improves the robustness of title extraction, ensuring more consistent and correct results across different post formats.
2024-08-08 12:14:29 +08:00
ccbikai
e7cd5d61ca feat: enhance reply handling in posts
Refactor to improve handling of reply links within posts by introducing a dedicated function, ensuring more accurate and consistent URL modifications. This enhancement simplifies future maintenance and scalability of the codebase.
2024-08-07 21:56:03 +08:00
ccbikai
2a4a3be3cc feat: enhance null safety in content retrieval
Improved content retrieval logic to handle potential null values, enhancing robustness and reliability of the Telegram message parsing functionality.
2024-08-07 21:49:38 +08:00
面条
8e0fc38055 Merge pull request #26 from mitian233/main
fix: quote message display
2024-08-07 21:47:49 +08:00
ccbikai
d7afe256c5 Merge branch 'main' of github.com:ccbikai/BroadcastChannel 2024-08-07 21:46:55 +08:00
ccbikai
8db461e881 feat: add audio handling in posts
Enhances post rendering by integrating audio element processing, ensuring audio files are correctly proxied and controls are enabled for user interaction. This improvement expands multimedia support within posts, enhancing user experience and engagement.
2024-08-07 21:46:08 +08:00
某M氏
d9f41423bf chore: modify getPost function to handle different message text classes 2024-08-07 11:20:25 +00:00
Yunfi
1be9fde7c5 chore(typo): "Macth" to "Match" in lib/telegram/index.js 2024-08-06 14:19:00 +00: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
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
面条
78f82c84cf Merge pull request #7 from mitian233/patch-1
feat: add support for stickers and video stickers
2024-08-06 13:22:00 +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
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
某M氏
a08547ef95 chore: fix style 2024-08-05 16:42:28 +00:00
某M氏
086c00bd2c support stickers display 2024-08-05 20:14:44 +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
4339f22851 refactor: improve tag extraction logic
Enhanced tag extraction by encoding tag text into URLs and removing unnecessary style attributes, streamlining the process and ensuring better URL handling for search functionality.
2024-08-05 13:45:21 +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