retoor fefd47f703 feat: add external attribute support to image-preview for direct URL rendering
Introduce an 'external' attribute on the image-preview component to bypass the devrant image URL builder when the source is an external link. Update the component's observed attributes, rendering logic, and lightbox initialization to conditionally use the raw src URL. Modify rant-content to detect external images via the presence of links and pass the external flag accordingly.
2025-12-12 18:00:51 +00:00

Rantii

DevRant client built with vanilla JavaScript, Web Components, and CSS.

Requirements

  • Python 3.8+
  • aiohttp (pip install aiohttp)

Run

python3 proxy.py

Open http://localhost:8101

Features

  • Browse rants, weekly challenges, collabs, stories
  • User profiles and notifications
  • Voting, commenting, posting
  • Search
  • 7 themes: dark, light, black, white, ocean, forest, sunset
  • PWA installable
  • Offline support via service worker

Structure

rantii/
├── index.html
├── proxy.py
├── manifest.json
├── sw.js
├── css/
│   ├── base.css
│   ├── variables.css
│   ├── themes/
│   └── components/
├── js/
│   ├── app.js
│   ├── api/
│   ├── services/
│   ├── components/
│   ├── pages/
│   └── utils/
├── lib/
│   ├── marked.min.js
│   └── highlight.min.js
└── assets/

Author

retoor retoor@molodetz.nl

S
Description
devRant front-end with markdown, syntax highlighting, url previews and youtube / image embedding.
Readme
672 KiB
Languages
JavaScript 73.6%
CSS 19.1%
Python 6.2%
HTML 1%